curl --request POST \
--url https://api.wellapp.ai/v1/workspaces \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "workspace",
"attributes": {
"name": "Marketing Team Workspace",
"description": "Collaborative workspace for the marketing team to manage campaigns and content",
"avatar_color": "#FF5733",
"external_workspace_id": "mkt-workspace-001",
"auto_extract_enabled": false
},
"relationships": {
"owner": {
"data": {
"type": "people",
"id": "temp-id1"
}
}
},
"included": {
"owner": {
"data": {
"type": "people",
"id": "temp-id1",
"attributes": {
"first_name": "Sophie",
"last_name": "Martin"
}
}
}
}
}
'{
"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>"
}
}
]
}
}Create a new workspace record
curl --request POST \
--url https://api.wellapp.ai/v1/workspaces \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "workspace",
"attributes": {
"name": "Marketing Team Workspace",
"description": "Collaborative workspace for the marketing team to manage campaigns and content",
"avatar_color": "#FF5733",
"external_workspace_id": "mkt-workspace-001",
"auto_extract_enabled": false
},
"relationships": {
"owner": {
"data": {
"type": "people",
"id": "temp-id1"
}
}
},
"included": {
"owner": {
"data": {
"type": "people",
"id": "temp-id1",
"attributes": {
"first_name": "Sophie",
"last_name": "Martin"
}
}
}
}
}
'{
"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
Show child attributes
"workspace"Show child attributes
Workspace name
1 - 255Workspace description
1000Avatar color in hexadecimal format (e.g., #FF5733)
External workspace identifier
1 - 255Show child attributes
Show child attributes
Show child attributes
Show child attributes
"people"Temp-id that references a people in the relationships
Workspace created 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"