Cohorts
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
List all cohorts
Required API key scopes
cohort:read
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
Response
Status 200
Create cohorts
Required API key scopes
cohort:write
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Status 201
Retrieve cohorts
Required API key scopes
cohort:read
Path parameters
- idinteger
A unique integer value identifying this cohort.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Status 200
Update cohorts
Required API key scopes
cohort:write
Path parameters
- idinteger
A unique integer value identifying this cohort.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
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:write
Path parameters
- idinteger
A unique integer value identifying this cohort.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Status 405 No response body
Retrieve cohorts activity retrieve
Required API key scopes
activity_log:read
Path parameters
- idinteger
A unique integer value identifying this cohort.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Status 200 No response body
Update cohorts add persons to static cohort
Path parameters
- idinteger
A unique integer value identifying this cohort.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Status 200 No response body
Retrieve cohorts duplicate as static cohort
Path parameters
- idinteger
A unique integer value identifying this cohort.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Status 200 No response body
Retrieve cohorts persons
Required API key scopes
cohort:read
person:read
Path parameters
- idinteger
A unique integer value identifying this cohort.
- project_idstring
Project 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
Status 200 No response body
Retrieve cohorts activity
Required API key scopes
activity_log:read
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.