Create a Monitoring Subscription
POST/v1/monitoring-subscriptions
Create a Monitoring Subscription
Request​
Header Parameters
Idempotency key
- application/json
Body
required
- MOD1
- MOD2
oneOf
Responses​
- 200
- 400
- 401
- 403
Successfully created a Monitoring Subscription
- application/json
- Schema
- Example (from schema)
Schema
data
object
monitoringsubscription_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
organisation_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
validationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Possible values: [live
, pending_validation_request
, validation_request_failed
, pending
, cancelled
]
live
hostedconfiguration_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
results
object
Possible values: [pass
, fail
]
fail
registration
object
Possible values: [yes
, no
]
no
warning
object
nullable
Possible values: [clear
, flag
]
flag
sanction
object
nullable
Possible values: [clear
, flag
]
flag
controversial
object
nullable
Possible values: [clear
, flag
]
flag
commercial
object
nullable
Possible values: [clear
, flag
]
flag
adverseMedia
object
nullable
Possible values: [clear
, flag
]
clear
hateSpeech
object
nullable
Possible values: [clear
, flag
]
flag
2020-10-13T17:46:54.000Z
organisation
object
Name of the organisation the Monitoring Subscription is attached to
monitoring_subscription
{
"data": {
"id": "monitoringsubscription_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"organisationId": "organisation_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"validationRequestId": "validationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"status": "live",
"configurationId": "hostedconfiguration_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"results": {
"complianceStatus": "fail",
"registration": {
"active": "no"
},
"warning": {
"status": "flag"
},
"sanction": {
"status": "flag"
},
"controversial": {
"status": "flag"
},
"commercial": {
"status": "flag"
},
"adverseMedia": {
"status": "clear"
},
"hateSpeech": {
"status": "flag"
}
},
"createdAt": "2020-10-13T17:46:54.000Z",
"organisation": {
"name": "Name of the organisation the Monitoring Subscription is attached to"
}
},
"object": "monitoring_subscription"
}
Bad request
- application/json
- Schema
- Example (from schema)
- EntityNotFound
- OrganisationNotActive
- BadRequest
- IncorrectParams
- OriginalCallInProgress
- SameKeyDifferentData
- KeyInUse
Schema
error
object
{
"error": {
"code": "string",
"title": "string",
"message": "string",
"reasons": [
"string"
]
}
}
Subscription Entity Not Found
{
"error": {
"code": "monitoring_subscription/entity_not_found",
"title": "Bad request",
"message": "Organisation or validation request was not found"
}
}
400 Bad request
{
"error": {
"code": "monitoring_subscription/organisation_not_active",
"title": "Bad request",
"message": "Organisation is not active"
}
}
400 Bad Request
{
"error": {
"code": "bad_request",
"title": "Bad request",
"message": "Something is wrong with your request, please check any parameters and try again"
}
}
400 Incorrect Parameters
{
"error": {
"code": "bad_request",
"title": "Bad request",
"message": "One or more of the inputs were invalid",
"reasons": [
"pageSize must be greater than or equal to 0"
]
}
}
Idempotency - Original call in progress
{
"error": {
"code": "idempotency/original_call_in_progress",
"title": "Bad request",
"message": "Original call with this idempotency key is still in progress"
}
}
Idempotency - Data has changed from previous request
{
"error": {
"code": "idempotency/same_key_different_data",
"title": "Bad request",
"message": "Data has changed from previous request"
}
}
Idempotency - Key in use
{
"error": {
"code": "idempotency/key_already_in_use",
"title": "Bad request",
"message": "Idempotency Key is already in use"
}
}
Unauthorized
Forbidden (scope)
- application/json
- Schema
- Example (from schema)
Schema
error
object
forbidden
Forbidden
Access is denied due to missing scope permissions
{
"error": {
"code": "forbidden",
"title": "Forbidden",
"message": "Access is denied due to missing scope permissions"
}
}