Skip to content

Share deal with a team

POST
/api/canvas/{deal_id}/share/team
curl --request POST \
--url https://example.com/api/canvas/example/share/team \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "min_role": "viewer" }'

Grant all members of a team access to this deal. Requires owner role.

deal_id
required
Deal Id
string
Media type application/json
ShareTeamRequest
object
team_id
required
Team Id
string format: uuid
min_role
Min Role
string
default: viewer

Successful Response

Media type application/json
ShareTeamResponse

Response from POST /canvas/{deal_id}/share/team.

object
shared
required
Shared
boolean
deal_id
required
Deal Id
string
team_id
required
Team Id
string
min_role
required
Min Role
string
Example generated
{
"shared": true,
"deal_id": "example",
"team_id": "example",
"min_role": "example"
}

Validation Error

Media type application/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
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}