For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update a rejection reason

Fully updates a rejection reason. code and text must be present; is_active keeps its stored value when omitted.

Rejections refer to the reason rather than copying it, so a changed text is also what the events of past rejections show as rejection_reason_text. E-mails already sent are unaffected.

put
/conversation-rejection-reasons/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the conversation rejection reason.

Body

The body of a rejection reason create or full update request.

codestring · max: 50Required

Stable, unique identifier — letters, digits, hyphens and underscores.

Pattern: ^[-a-zA-Z0-9_]+$
textstring · max: 255Required

The rule's wording.

is_activebooleanOptional

Whether the reason can be cited when rejecting.

Default: true
translationsobject · nullableOptional

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.

Example: {"en-us":{"text":"Posts must not contain profanity or insults."}}
Responses
200

The updated rejection reason.

application/json

A published rule a moderator can cite when rejecting a review or question.

pkintegerRead-onlyOptional

The unique identifier of the reason — the value sent as rejection_reason when rejecting.

codestring · max: 50Optional

Stable, unique identifier used in reports. Returned as rejection_reason by the event endpoints.

Pattern: ^[-a-zA-Z0-9_]+$
textstring · max: 255Optional

The rule's wording, shown to the author in the rejection e-mail.

is_activebooleanOptional

Whether the reason can be cited when rejecting. Set false to retire it.

translationsobject · nullableOptional

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.

Example: {"en-us":{"text":"Posts must not contain profanity or insults."}}
put/conversation-rejection-reasons/{id}/
PUT /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: 91

{
  "code": "profanity",
  "text": "Posts must not contain profanity or insults.",
  "is_active": true
}
{
  "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?