Skip to content
vocapable.Docs

Create a team

POST
/v1/workspace/teams
curl --request POST \
--url https://api.vocapable.com/v1/workspace/teams \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "description": "example", "department_id": "example", "parent_team_id": "example" }'
Idempotency-Key
Any of:
string

Unique key for this request, so a retry replays the original result instead of repeating the work. Stored for 24 hours; a replayed response carries Idempotent-Replay: true. A UUID is the documented shape.

Media typeapplication/json
WorkspaceTeamCreate
object
name
required
Name
string
>= 1 characters <= 80 characters
description
Any of:
string
<= 500 characters
department_id
Any of:
string
<= 64 characters
parent_team_id
Any of:
string
<= 64 characters
Examplegenerated
{
"name": "example",
"description": "example",
"department_id": "example",
"parent_team_id": "example"
}

Successful Response

Media typeapplication/json
WorkspaceTeamDetail
object
team
required
WorkspaceTeamSummary
object
id
required
Id
string
name
required
Name
string
description
required
Any of:
string
department_id
required
Any of:
string
scim_external_id
required
Any of:
string
member_count
required
Member Count
integer
lead_count
required
Lead Count
integer
revision
required
Revision
integer
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
parent_team_id
Any of:
string
depth
Depth
integer
default: 1
department_node_of
Any of:
string
members
required
Members
Array<object>
WorkspaceTeamPerson
object
membership_id
required
Membership Id
string
user_id
required
Any of:
string
name
required
Name
string
email
required
Email
string
is_lead
required
Is Lead
boolean
source
required
Source
string
Allowed values: manual scim import
status
required
Status
string
Allowed values: active suspended
is_primary
Is Primary
boolean
can_manage
required
Can Manage
boolean
Example
{
"team": {
"depth": 1
},
"members": [
{
"source": "manual",
"status": "active",
"is_primary": false
}
]
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}