Curator API: Update a Post Status
GET https://api.curator.io/v1.3/posts/POST_ID/set-status/STATUS changes a post's status, for example to approve it or hide it from the feed. The request needs your API key, and your plan must include API access. Only HTTPS is supported.
This is a GET request that changes data, so don't share these URLs or let anything open them automatically.
Authentication
Send your Curator API key (find it in the Curator Dashboard) in one of three ways: as a query string (?api_key=API_KEY), as a Basic auth header with the API key as the username, or as a Bearer token (Authorization: Bearer API_KEY, with Bearer capitalised). You can only change posts in the account the key belongs to.
Example request
curl "https://api.curator.io/v1.3/posts/POST_ID/set-status/approved" \
-H "Authorization: Bearer API_KEY"Parameters
Parameter | Description |
|---|---|
| The post's numeric |
| The new status, by name, in lowercase: |
Response
A 200 response with the updated post in data, with its new status and post_status, plus a feed object (described in Curator API: Get Feeds) and usually a media array. Approving a post also adds a source field. The feed's cached responses are cleared, so the change shows straight away.
Errors
Status | When | Body |
|---|---|---|
401 | The API key is missing or not valid. |
|
403 | Your plan does not include API access. |
|
403 | No post in your account has that ID. This also covers posts that don't exist. |
|
418 |
|
|
429 | When rate limiting is enabled, more than 60 requests per minute. |
|