Update Owner of Content Object
PUT/api/content/:contentType/:key/owner
Update the owner of a content object. Only owners can perform this action.
Note: You have to specify the content type. For articles it is
articles.
You can find more information about content management here.
Note: The old owner will automatically be demoted to a
MAINTAINERrole if the action was successful.
Locale
A locale can be specified for this request. The email will be sent in the specified locale. You can learn more about locale in emails here.
If no locale is specified, the applications default locale will be used. You can learn more about configuring the default locale here.
Tokens
- A valid
AccessTokenof the owner of this content object is required.
Request
Responses
- 200
- 401
- 403
- 404
- 500
The updated content object. The response depends on the content object. For articles it will return FullArticleResponse.
The following error codes correspond to this status:
ACCESS_TOKEN_EXPIRED: Indicates that the access token is expired.ACCESS_TOKEN_INVALID: Indicates that the access token cannot be decoded.AUTHENTICATION_REQUIRED: User is not authenticated.
The following error codes correspond to this status:
NOT_AUTHORIZED: Action not authorized.
The following error codes correspond to this status:
CONTENT_TYPE_NOT_FOUND: Content type not found.CONTENT_NOT_FOUND: Content not found.USER_NOT_FOUND: User not found.
The following error codes correspond to this status:
ACCESS_TOKEN_ALLOWLIST_READING_FAILURE: Represents an exception indicating a failure when reading the allowlist for an access token cache.DATABASE_FAILURE: Exception representing a general failure related to database operations.RESPONSE_MAPPING_FAILURE: Response mapping failure.