Partially update a rejection reason
Updates one or more fields of a rejection reason. Send {"is_active": false} to retire a reason: it can no longer be cited when rejecting, and past rejections keep pointing at it.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the conversation rejection reason.
The body of a partial rejection reason update. Every field may be omitted.
Stable, unique identifier — letters, digits, hyphens and underscores.
^[-a-zA-Z0-9_]+$The rule's wording.
Whether the reason can be cited when rejecting.
text in other languages, keyed by language code. The rejection e-mail uses the author's language when it is here, and the stored text otherwise. Replaced as a whole when sent.
{"en-us":{"text":"Posts must not contain profanity or insults."}}The updated rejection reason.
A published rule a moderator can cite when rejecting a review or question.
The unique identifier of the reason — the value sent as rejection_reason when rejecting.
Stable, unique identifier used in reports. Returned as rejection_reason by the event endpoints.
^[-a-zA-Z0-9_]+$The rule's wording, shown to the author in the rejection e-mail.
Whether the reason can be cited when rejecting. Set false to retire it.
text in other languages, keyed by language code. The rejection e-mail uses the author's language when it is here, and the stored text otherwise. Replaced as a whole when sent.
{"en-us":{"text":"Posts must not contain profanity or insults."}}The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
No conversation rejection reason exists with the given identifier. Retired reasons (is_active: false) are still retrievable, so this answer means the record does not exist at all. An identifier that is not a number is answered with Not found. instead.
PATCH /api/v1/remote/1/conversation-rejection-reasons/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"is_active": false
}{
"pk": 3,
"code": "profanity",
"text": "Posts must not contain profanity or insults.",
"is_active": true,
"translations": {
"en-us": {
"text": "Posts must not contain profanity or insults."
}
}
}Last updated
Was this helpful?

