Cancel a Monitoring Subscription
POST/v1/monitoring-subscriptions/:id/cancel
Cancel a Monitoring Subscription
Request​
Path Parameters
id stringrequired
Id of the Monitoring Subscription.
Responses​
- 200
- 400
- 401
- 403
- 404
Successfully cancelled a Monitoring Subscription
- application/json
- Schema
- Example (from schema)
Schema
data
object
id string
Example:
monitoringsubscription_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
organisationId stringnullable
Example:
organisation_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
validationRequestId stringnullable
Example:
validationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
status string
Possible values: [cancelled
]
Example:
cancelled
createdAt date-time
Example:
2020-10-13T17:46:54.000Z
object string
Example:
monitoring_subscription
{
"data": {
"id": "monitoringsubscription_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"organisationId": "organisation_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"validationRequestId": "validationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"status": "cancelled",
"createdAt": "2020-10-13T17:46:54.000Z"
},
"object": "monitoring_subscription"
}
Bad request
- application/json
- Schema
- Example (from schema)
- MonitoringSubscriptionAlreadyCancelled
Schema
error
object
code string
title string
message string
reasons string[]nullable
{
"error": {
"code": "string",
"title": "string",
"message": "string",
"reasons": [
"string"
]
}
}
Monitoring Subscription already cancelled
{
"error": {
"code": "monitoring_subscription/monitoring_subscription_already_cancelled",
"title": "Bad request",
"message": "Monitoring subscription is already cancelled"
}
}
Unauthorized
Forbidden (scope)
- application/json
- Schema
- Example (from schema)
Schema
error
object
code string
Example:
forbidden
title string
Example:
Forbidden
message string
Example:
Access is denied due to missing scope permissions
{
"error": {
"code": "forbidden",
"title": "Forbidden",
"message": "Access is denied due to missing scope permissions"
}
}
The specified resource was not found
- application/json
- Schema
- Example (from schema)
Schema
error
object
code string
Example:
not_found
title string
Example:
Resource not found
message string
Example:
This endpoint is unavailable or can not be found
{
"error": {
"code": "not_found",
"title": "Resource not found",
"message": "This endpoint is unavailable or can not be found"
}
}
Loading...