You must have the write privileges for the SLOs feature in the Observability section of the Kibana feature privileges.
POST
/s/{spaceId}/api/observability/slos/{sloId}/disable
curl \
--request POST 'https://localhost:5601/s/default/api/observability/slos/9c235211-6834-11ea-a78c-6feb38a34414/disable' \
--header "Authorization: $API_KEY" \
--header "kbn-xsrf: string"
Response examples (400)
{
"error": "Bad Request",
"message": "Invalid value 'foo' supplied to: id",
"statusCode": 400
}
Response examples (401)
{
"error": "Unauthorized",
"message": "security_exception: unable to authenticate user for REST request [/api/observability/slos]",
"statusCode": 401
}
Response examples (403)
{
"error": "Forbidden",
"message": "security_exception: action [slo_write] is unauthorized for user",
"statusCode": 403
}
Response examples (404)
{
"error": "Not Found",
"message": "SLO [3749f390-03a3-11ee-8139-c7ff60a1692d] not found",
"statusCode": 404
}