Thrust Carbon

Travellers: Update

PATCH
/travellers

Travellers are employees, and this endpoint allows you to update data about those employees. Accepted parameters:

  • organisation_id
  • managed_groupings - These are groupings (business units) that are managed/owned by the given traveller (Eg head of Marketing would manage a grouping of Marketing). Please make sure you pass the managed groupings in the right structure, and include all managed groupings. The previously stored values will be removed and replaced with what you pass here.

Handling for other traveller parameters will be added in the future as necessary.

Request Body

application/json

Provide the organisation_id that the traveller belongs to, and the parameter that you would like to update.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PATCH "https://example.com/travellers" \  -H "Content-Type: application/json" \  -d '{    "organisation_id": "org_id",    "managed_groupings": {      "team": [        "Marketing"      ]    }  }'