Get a membership.
get
/learn.rest/v1/memberships/{membershipId}
Request
Path Parameters
-
membershipId: number
Unique identifier of membership.
Security
-
auth: basic
Type:
basicDescription:Basic Authentication
Response
Supported Media Types
- application/json
200 Response
Membership fetched.
Root Schema : MembershipResponse
Type:
objectThe Membership response object.
Show Source
-
createdDate(optional):
string
Date the membership was created.Example:
2016-02-23T07:21:00-05:00 -
id(optional):
number(int32)
Id of the membership.Example:
1345 -
learnCenter(optional):
array learnCenter
Link to the LearnCenter items.
-
learnCenterId(optional):
number(int32)
Minimum Value:
178409Maximum Value:1.0E18Unique identifier of the Learn Center.Example:178784 -
links(optional):
object MembershipLinkItems
-
status(optional):
string
Status of the membership.Example:
approved -
statusChangedByUser(optional):
array statusChangedByUser
The link to the user who changed the status.
-
statusChangedByUserId(optional):
string
User Id of the user who changed the membership status.Example:
135131 -
statusChangedDate(optional):
string
The date the status of the membership was changed.Example:
2016-02-23T07:21:00-05:00 -
user(optional):
array user
Link to the users.
-
userId(optional):
number
Minimum Value:
112867Maximum Value:1.0E18Unique Identifier for the user.Example:112900 -
validFromDate(optional):
string(date-time)
The date from which the membership is valid.Example:
2016-02-23T07:21:00-05:00 -
validUntilDate(optional):
string(date-time)
The date until which the membership is valid.Example:
2016-02-23T07:21:00-05:00
Example:
{
"id":1,
"learnCenterId":178784,
"learnCenter":[
{
"rel":"canonical",
"href":"{url}/learn.rest/v1/learncenters/123456"
},
{
"rel":"canonical",
"href":"{url}/learn.rest/v1/learncenters/123456"
}
],
"userId":112900,
"user":[
{
"rel":"canonical",
"href":"{url}/learn.rest/v1/users/456"
},
{
"rel":"canonical",
"href":"{url}/learn.rest/v1/users/456"
}
],
"statusChangedDate":"2016-02-23T07:21:00-05:00",
"statusChangedByUser":[
{
"rel":"canonical",
"href":"{url}/learn.rest/v1/users/456"
},
{
"rel":"canonical",
"href":"{url}/learn.rest/v1/users/456"
}
],
"validUntilDate":"2016-02-23T07:21:00-05:00",
"createdDate":"2016-02-23T07:21:00-05:00",
"statusChangedByUserId":"135131",
"validFromDate":"2016-02-23T07:21:00-05:00",
"links":{
"rel":"canonical",
"href":"{url}/learn.rest/v1/memberships/456"
},
"status":"approved"
}Nested Schema : learnCenter
Type:
arrayLink to the LearnCenter items.
Show Source
-
Array of:
object LearnCenterLinkItems
Learn Center Link Item object. This object comprises links to the Learn Center Items.
Nested Schema : MembershipLinkItems
Type:
Show Source
object-
href(optional):
string
Example:
{url}/learn.rest/v1/memberships/456 -
rel(optional):
string
Example:
canonical
Example:
{
"rel":"canonical",
"href":"{url}/learn.rest/v1/memberships/456"
}Nested Schema : statusChangedByUser
Type:
arrayThe link to the user who changed the status.
Show Source
-
Array of:
object UserLinkItems
Link to user items.
Nested Schema : user
Type:
arrayLink to the users.
Show Source
-
Array of:
object UserLinkItems
Link to user items.
Nested Schema : LearnCenterLinkItems
Type:
objectLearn Center Link Item object. This object comprises links to the Learn Center Items.
Show Source
-
href(optional):
string
Example:
{url}/learn.rest/v1/learncenters/178477 -
rel(optional):
string
Example:
canonical
Example:
{
"rel":"canonical",
"href":"{url}/learn.rest/v1/learncenters/178477"
}Nested Schema : UserLinkItems
Type:
objectLink to user items.
Show Source
-
href(optional):
string
Example:
{url}/learn.rest/v1/users/456 -
rel(optional):
string
Example:
canonical
Example:
{
"rel":"canonical",
"href":"{url}/learn.rest/v1/users/456"
}401 Response
Authentication refused for provided credentials or the token is invalid.
Headers
404 Response
Resource not found.
500 Response
Internal server error.