Skip to main content

Update Cohort

PUT 

/cohorts/external

Update External Cohort

This endpoint is used to update an existing cohort by adding or removing users.

Edit the Base URL in request schema for switching between regions.

Request Headers

  • apikey: Your private API key (required for authorization)

Request Body Fields

  • name (string, required): Name of the cohort to update
  • addUsers (array of UUIDs, required): List of user IDs to add to the cohort
  • removeUsers (array of UUIDs, required): List of user IDs to remove from the cohort

Sample Request

{
"name": "Cohort 1",
"addUsers": [
"42504b2f-f0ea-4e5a-97dd-74ca518ccbc7",
"f478be9b-6723-4b5a-95ee-7e0f5f482a86",
"2582654d-aeae-4c9f-ab4c-9cb685125000"
],
"removeUsers": []
}

Request

Responses

Cohort updated successfully