Cohorts
A Cohort is a collection of devices that will be given a particular Release of the user's choosing. One will create a Deployment to give a particular Release to a Cohort.
Route Parameters
The Cohort
slugshould be used whenever referencing a Cohort in an API or URL.
Request Schema
| Field | Type | Description |
|---|---|---|
name Required | String | Name of the Cohort Example: "Beta Channel" |
slug | String | Slug of the Cohort Example: "beta" |
Query Parameters
The following parameters can be used to filter Cohorts.
| Query Parameter | Type | Description |
|---|---|---|
name | String[] | Name of the Cohort Example: "Beta%20Channel" |
slug | String[] | Slug for the Cohort Example: "beta" |
sort | String | Sort keys (listed below) Example: -created_date |
Sort Parameters
| Sort Parameter | Type | Description |
|---|---|---|
created_date | DateTime | Date the object was created |
Response Schema
{
"data": {
"id": 2,
"created_date": "2019-01-19T05:01:13.000000+00:00",
"updated_date": "2019-01-19T05:01:13.000000+00:00",
"name": "Production",
"slug": "prod",
"deployments": [
{
"id": 1,
"type": "normal",
"status": "done",
"deployer": {
"id": 1,
"email": "user@example.com",
"name": "Robert S"
},
"release": {
"id": 2,
"version": "1.2.3",
"revision": "11d95ef20f7a048ce1da1a6891dd3e2f92c89d85"
},
}
],
"count_devices": 24,
}
}
Create a Cohort
Create a **Cohort** for the given **Project**
List Cohorts
List all **Cohorts** for the given **Project**
Retrieve a Cohort
Retrieve a single **Cohort**
Update a Cohort
Update a single **Cohort**
Delete a Cohort
Delete a single **Cohort**
List Devices in a Cohort
List the **Devices** in the given **Cohort**
Move Devices to a Cohort
Move **Devices** to the given **Cohort**