Subscriptions
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE |
List all subscriptions
Required API key scopes
subscription:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /subscriptionsExample response
Status 200
RESPONSE
Create subscriptions
Required API key scopes
subscription:writePath parameters
- project_idstring
Request parameters
- dashboardinteger
- insightinteger
- target_type
- target_valuestring
- frequency
- intervalinteger
- byweekdayarray
- bysetposinteger
- countinteger
- start_datestring
- until_datestring
- deletedboolean
- titlestring
- invite_messagestring
Response
Example request
POST /api /projects /:project_id /subscriptionsExample response
Status 201
RESPONSE
Retrieve subscriptions
Required API key scopes
subscription:readPath parameters
- idinteger
- project_idstring
Response
Example request
GET /api /projects /:project_id /subscriptions /:idExample response
Status 200
RESPONSE
Update subscriptions
Required API key scopes
subscription:writePath parameters
- idinteger
- project_idstring
Request parameters
- dashboardinteger
- insightinteger
- target_type
- target_valuestring
- frequency
- intervalinteger
- byweekdayarray
- bysetposinteger
- countinteger
- start_datestring
- until_datestring
- deletedboolean
- titlestring
- invite_messagestring
Response
Example request
PATCH /api /projects /:project_id /subscriptions /:idExample response
Status 200
RESPONSE
Delete subscriptions
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
subscription:writePath parameters
- idinteger
- project_idstring
Example request
DELETE /api /projects /:project_id /subscriptions /:id