workspace.members
Create a workspace member
Creates a new workspace member.
post/workspaces/{id}/members
Path parameters
idstring cuid required
The ID of the item
Example:cmf41ajzv003706un4i99q19z
Headers
x-client-idstring cuid required
The ID of the client
Example:cmf41ajzv003706un4i99q19z
Request body
Example request
{
"userId": "cmf41ajzv003706un4i99q1a0"
}Response
Workspace member created successfully
Example response
{
"createdAt": "2024-05-14T08:30:00Z",
"updatedAt": "2024-06-01T12:00:00Z",
"workspaceId": "cmf41ajzv003706un4i99q19z",
"userId": "cmf41ajzv003706un4i99q1a0",
"user": {
"id": "cmf41ajzv003706un4i99q1a0",
"email": "frida@example.com",
"firstName": "Frida",
"lastName": "Meyer"
}
}Changes
Changed in 1 of the 5 revisions of this API.1
- ○
added the media type
application/jsonfor the response with the status500response-media-type-added
- ○