Update membership by ID

patch
/memberships/{id}

Update the information of an existing membership.

id
string
required

membership id

role
object
required
code
string
required

Code of a role. Unique in the organization.

>= 1 characters

OK

meta
Meta
required

Meta data object.

Example:
{"code":200,"type":"OK","message":"Everything worked as expected."}
code
number
required
Default:
200
Example:
200
type
string
required
>= 1 characters
message
string
required
>= 1 characters
errors
array[Error]

Each error object contains a "path" key and an "info" key. The "path" is the JSON path of the request object to indicate the error location. The "info" is a human-readable description of the error.

data
Membership

Object describes membership information.

id
string
required
>= 1 characters
organization
object
required
account
object
required
role
Role
required

Object describes role information.

Bad Request

meta
Meta

Meta data object.

Example:
{"code":200,"type":"OK","message":"Everything worked as expected."}
code
number
required
Default:
200
Example:
200
type
string
required
>= 1 characters
message
string
required
>= 1 characters
errors
array[Error]

Each error object contains a "path" key and an "info" key. The "path" is the JSON path of the request object to indicate the error location. The "info" is a human-readable description of the error.

data
object

Unauthorized

meta
Meta

Meta data object.

Example:
{"code":200,"type":"OK","message":"Everything worked as expected."}
code
number
required
Default:
200
Example:
200
type
string
required
>= 1 characters
message
string
required
>= 1 characters
errors
array[Error]

Each error object contains a "path" key and an "info" key. The "path" is the JSON path of the request object to indicate the error location. The "info" is a human-readable description of the error.

data
object

Forbidden

meta
Meta

Meta data object.

Example:
{"code":200,"type":"OK","message":"Everything worked as expected."}
code
number
required
Default:
200
Example:
200
type
string
required
>= 1 characters
message
string
required
>= 1 characters
errors
array[Error]

Each error object contains a "path" key and an "info" key. The "path" is the JSON path of the request object to indicate the error location. The "info" is a human-readable description of the error.

data
object

Not Found

meta
Meta

Meta data object.

Example:
{"code":200,"type":"OK","message":"Everything worked as expected."}
code
number
required
Default:
200
Example:
200
type
string
required
>= 1 characters
message
string
required
>= 1 characters
errors
array[Error]

Each error object contains a "path" key and an "info" key. The "path" is the JSON path of the request object to indicate the error location. The "info" is a human-readable description of the error.

data
object

Unprocessable Entity (WebDAV)

meta
Meta

Meta data object.

Example:
{"code":200,"type":"OK","message":"Everything worked as expected."}
code
number
required
Default:
200
Example:
200
type
string
required
>= 1 characters
message
string
required
>= 1 characters
errors
array[Error]

Each error object contains a "path" key and an "info" key. The "path" is the JSON path of the request object to indicate the error location. The "info" is a human-readable description of the error.

data
object

Internal Server Error

meta
Meta

Meta data object.

Example:
{"code":200,"type":"OK","message":"Everything worked as expected."}
code
number
required
Default:
200
Example:
200
type
string
required
>= 1 characters
message
string
required
>= 1 characters
errors
array[Error]

Each error object contains a "path" key and an "info" key. The "path" is the JSON path of the request object to indicate the error location. The "info" is a human-readable description of the error.

data
object
Auth
:
Parameters
:
Body
{ "role": { "code": "admin" } }
Response Example
{ "meta": { "code": 200, "type": "OK", "message": "Everything worked as expected." }, "data": { "id": "3ea1910b07394a95bf7cdaa611d3cc3f", "organization": { "id": "511ceb52969b400a93e3422c743ae34a" }, "account": { "id": "74d998151a1b4668bee5a283712dd57e", "email": "[email protected]" }, "role": { "code": "admin", "name": "Admin" } } }