Skip to main content
Add a user as a member of a target.

POST /:target/:target_id/members

Path Parameters

ParameterTypeRequiredDescription
targetstringYesResource type: orgs or blobs.
target_idstringYesThe unique ID of the target resource.

Request Body

ParameterTypeRequiredDescription
user_idstringYesThe ID of the user to add.
rolestringYesRole to assign: admin, write, or read.

Response

ParameterTypeDescription
memberobjectThe created member object.

Example

{
  "user_id": "user_789",
  "role": "write"
}