Block an author
POST/v1/authors/{external_id}/blockKey scope write
Sets the author's status to blocked, with an optional reason, until the author is enabled again. The status changes no recommendation by itself: content rules read it through an author status condition, and the automatic trust level is new while the author is not enabled.
Needs a key with the write scope. Authentication
Path parameters
external_idstringRequiredYour id for the end user. The author must exist: this call does not create one.
Request body
reasonstringWhy the author is blocked. Keep it to 255 characters: validation accepts up to 500, and a reason longer than 255 answers 500
internal_error. Stored asstatus_reasonand sent in theauthor.blockedevent. Omitted or null clears a reason stored earlier.untiltimestampAccepted and ignored: a block has no end date. Only a suspension reads
until.
Returns
The author. The author.blocked event is emitted when the status changed.
- 200 OKAn author object
Errors
- 404
not_foundThe project has no author with this id.
- 422
validation_errorThe body has an unknown key,
reasonis longer than 500 characters, oruntilis not ISO 8601 in UTC.
Every endpoint can also answer the errors any request can meet: a missing key, a rate limit, a malformed body. Errors
Something missing or unclear on this page? Write to support@useinfrared.com.