curl --request PATCH \
--url https://api.wellapp.ai/v1/workspaces/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"type": "<string>",
"attributes": {
"name": "<string>",
"description": "<string>"
},
"relationship": {
"owner": {
"data": {
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
},
"included": {
"owner": {
"data": {
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"first_name": "John",
"last_name": "Doe"
}
}
}
}
}
}
'{
"data": {
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"name": "<string>",
"desription": "<string>",
"external_workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"avatar_color": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"relationships": {
"owner": {
"data": {
"type": "<string>",
"id": "<string>"
}
}
},
"included": [
{
"type": "<string>",
"id": "temp-people1",
"attributes": {
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"created_at": "<string>",
"updated_at": "<string>"
}
}
]
}
}Update an existing workspace record
curl --request PATCH \
--url https://api.wellapp.ai/v1/workspaces/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"type": "<string>",
"attributes": {
"name": "<string>",
"description": "<string>"
},
"relationship": {
"owner": {
"data": {
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
},
"included": {
"owner": {
"data": {
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"first_name": "John",
"last_name": "Doe"
}
}
}
}
}
}
'{
"data": {
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"name": "<string>",
"desription": "<string>",
"external_workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"avatar_color": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"relationships": {
"owner": {
"data": {
"type": "<string>",
"id": "<string>"
}
}
},
"included": [
{
"type": "<string>",
"id": "temp-people1",
"attributes": {
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"created_at": "<string>",
"updated_at": "<string>"
}
}
]
}
}Bearer token for authentication
UUID of the workspace to update
Show child attributes
"workspace"Show child attributes
Show child attributes
Show child attributes
Show child attributes
"people"Temp-id that references a people in the relationships
Workspace updated successfully
Show child attributes
"workspace"Show child attributes
Workspace name
Workspace description
external workspace id
Color of the avatar
Timestamp when the workspace was created
Timestamp when the workspace was last updated
Show child attributes
"people""temp-people1"