Creates a new membership

post

/learn.rest/v1/memberships

Request

Supported Media Types
Body ()
Membership object that needs to be created.
Root Schema : MembershipRequest
Type: object
Show Source
Example:
{
    "learnCenterId":178784,
    "userId":112900,
    "status":"approved",
    "validFromDate":"2016-02-23T07:21:00-05:00",
    "validUntilDate":"2016-02-23T07:21:00-05:00"
}
Security
Back to Top

Response

Supported Media Types

201 Response

New membership resource created.
Body ()
Root Schema : MembershipResponse
Type: object
Show Source
Nested Schema : learnCenter
Type: array
Show Source
Nested Schema : MembershipLinkItem
Type: object
Link to a Membership item.
Show Source
Example:
{
    "rel":"canonical",
    "href":"{url}/learn.rest/v1/memberships/456"
}
Nested Schema : statusChangedByUser
Type: array
Show Source
Nested Schema : user
Type: array
Show Source
Nested Schema : LearnCenterLinkItem
Type: object
Show Source
Example:
{
    "rel":"canonical",
    "href":"{url}/learn.rest/v1/learncenters/123456"
}
Nested Schema : UserLinkItem
Type: object
Object of the User Link Item.
Show Source
Example:
{
    "rel":"canonical",
    "href":"{url}/learn.rest/v1/users/456"
}

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.
Back to Top