Cohorts
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
List all cohorts
Required API key scopes
cohort:readPath parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query parameters
- limitintegerNumber of results to return per page. 
- offsetintegerThe initial index from which to return the results. 
Response
Request
GET 
Response
Status 200
Create cohorts
Required API key scopes
cohort:writePath parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Request parameters
- namestring
- descriptionstring
- groups
- deletedboolean
- filters
- query
- is_staticboolean
Response
Request
POST 
Response
Status 201
Retrieve cohorts
Required API key scopes
cohort:readPath parameters
- idintegerA unique integer value identifying this cohort. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Response
Request
GET 
Response
Status 200
Update cohorts
Required API key scopes
cohort:writePath parameters
- idintegerA unique integer value identifying this cohort. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Request parameters
- namestring
- descriptionstring
- groups
- deletedboolean
- filters
- query
- is_staticboolean
Response
Request
PATCH 
Response
Status 200
Delete cohorts
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
cohort:writePath parameters
- idintegerA unique integer value identifying this cohort. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Request
DELETE 
Response
Status 405 No response body
Retrieve cohorts activity retrieve
Required API key scopes
activity_log:readPath parameters
- idintegerA unique integer value identifying this cohort. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Response
Request
GET 
Response
Status 200
Retrieve cohorts duplicate as static cohort
Path parameters
- idintegerA unique integer value identifying this cohort. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Response
Request
GET 
Response
Status 200
Retrieve cohorts persons
Required API key scopes
cohort:readperson:readPath parameters
- idintegerA unique integer value identifying this cohort. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200
Retrieve cohorts activity
Required API key scopes
activity_log:readPath parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Response
Request
GET 
Response
Status 200