Creates a new membership
post
/learn.rest/v1/memberships
Request
Supported Media Types
- application/json
Membership object that needs to be created.
Root Schema : MembershipRequest
Type:
Show Source
object
-
learnCenterId:
number(int32)
Minimum Value:
178409
Maximum Value:1.0E18
Example:178784
-
status:
string
Example:
approved
-
userId:
number
Minimum Value:
112867
Maximum Value:1.0E18
Example:112900
-
validFromDate(optional):
string(date-time)
Example:
2016-02-23T07:21:00-05:00
-
validUntilDate(optional):
string(date-time)
Example:
2016-02-23T07:21:00-05:00
Security
-
auth: basic
Type:
basic
Description:Basic Authentication
Response
Supported Media Types
- application/json
201 Response
New membership resource created.
Root Schema : MembershipResponse
Type:
Show Source
object
-
createdDate(optional):
string
Example:
2016-02-23T07:21:00-05:00
-
id(optional):
number(int32)
Example:
1345
-
learnCenter(optional):
array learnCenter
-
learnCenterId(optional):
number(int32)
Example:
178784
-
links(optional):
object MembershipLink
-
status(optional):
string
Example:
approved
-
statusChangedByUser(optional):
array statusChangedByUser
-
statusChangedByUserId(optional):
string
Example:
135131
-
statusChangedDate(optional):
string
Example:
2016-02-23T07:21:00-05:00
-
user(optional):
array user
-
userId(optional):
number
Example:
112900
-
validFromDate(optional):
string(datetime)
Example:
2016-02-23T07:21:00-05:00
-
validUntilDate(optional):
string(datetime)
Example:
2016-02-23T07:21:00-05:00
Nested Schema : MembershipLink
Type:
Show Source
object
-
href(optional):
string
Example:
{url}/learn.rest/v1/memberships/456
-
rel(optional):
string
Example:
canonical
Nested Schema : LearnCenterLink
Type:
Show Source
object
-
href(optional):
string
Example:
{url}/learn.rest/v1/learnCenters/178409
-
rel(optional):
string
Example:
canonical
Nested Schema : UserLink
Type:
Show Source
object
-
href(optional):
string
Example:
{url}/learn.rest/v1/users/456
-
rel(optional):
string
Example:
canonical
400 Response
Request has incorrect syntax or does not contain a field that is required.
409 Response
Another resource with the same identifier already exists.
500 Response
Internal server error.