microCMS

PATCH /api/v1/contents/{endpoint}/{content_id}/createdBy

This is the API for changing the content creator.

Request Header

X-MICROCMS-API-KEY

This is the authentication key required for PATCH API requests.
Please enable the "Change Content Creator" option with the default permissions of the Management API and include it in the request header when sending.

cautionCaution

If the X-MICROCMS-API-KEY is identifiable, it may allow unauthorized manipulation of content by third parties. Please handle it with care. For more details, please refer to "API Key (API Authentication and Authorization Management)".

Content-Type

Specifies the format of the data being sent.
Since microCMS only handles data in JSON format, please specify application/json.

Request Body

Please specify the member ID in createdBy.
The member ID can be confirmed from the Member Details Screen in the management console or from the Get Members API.

{"createdBy": "[Member ID]"}

Request Example

curl -X PATCH -H 'X-MICROCMS-API-KEY: [API Key]' -H 'Content-Type: application/json' https://[Service ID].microcms-management.io/api/v1/contents/[Endpoint]/[Content ID]/createdBy -d '{"createdBy": "[Member ID]"}'

Response

Status Code

If the author is successfully changed, a 200 response will be returned.

Response Body

If the author is successfully changed, a response like the following will be returned.

{"id":"some_content_id"}