Skip to main content
POST
/
api
/
directory
/
resources.assign-team
Assign resource to a team
curl --request POST \
  --url https://api.example.com/api/directory/resources.assign-team \
  --header 'Content-Type: application/json' \
  --data '
{
  "resource_id": "872815618512410358",
  "team_id": "872815618512410358",
  "head": true,
  "start_date": "2019-11-11",
  "end_date": "2019-11-11",
  "regrouping": "<string>",
  "contract_number": "<string>",
  "external_id": "<string>",
  "warning_aware": false
}
'
{
  "warning_type": "assign-no-conflict",
  "description": "<string>",
  "details": {
    "modifications": [],
    "deletions": []
  },
  "warning_aware": "<string>"
}

Body

application/json
resource_id
string<snowflake>
required
Example:

"872815618512410358"

team_id
string<snowflake>
required
Example:

"872815618512410358"

head
boolean
required
start_date
string<local-date>
required
Example:

"2019-11-11"

end_date
string<local-date> | null
Example:

"2019-11-11"

regrouping
string | null
contract_number
string | null
external_id
string | null
warning_aware
boolean
default:false

Response

Resource successfully assigned to team.