Curator API: Update a Source
PUT https://api.curator.io/v1.2/sources/SOURCE_ID pauses or resumes a source, or changes what it pulls posts from. PATCH and POST to the same URL do the same thing. The request needs your API key, and your plan must include API access. Only HTTPS is supported.
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 and an empty password, or as a Bearer token (Authorization: Bearer API_KEY). You can only update sources in the account the key belongs to.
Example request
curl -X PUT "https://api.curator.io/v1.2/sources/SOURCE_ID?api_key=API_KEY" \
-d "status=paused" \
-d "tag=https://feeds.bbci.co.uk/news/rss.xml"Parameters
Send parameters as form fields or JSON.
Parameter | Description |
|---|---|
| The source's API ID (a UUID), from its |
| The handle, hashtag, search term, or URL the source pulls from, up to 200 characters. It must be sent every time, so send the current |
|
|
Other fields are ignored.
Pausing and resuming
Only a source whose
statusisactiveorpausedcan be paused or resumed. Sendingstatusfor a source in any other state (such asuninitialisedorerror-initialising) returns a 422 and changes nothing. You can still update itstagby leavingstatusout.Resuming a paused source runs the same plan checks as the Curator Dashboard: your plan's source limit, and whether Twitter, LinkedIn, Google Reviews, and TikTok Hashtag sources are on your plan. If a check fails, the response is a 403 and the source stays paused.
For Instagram, Facebook Page, and Twitter sources, resuming also checks the source with the network first. If that check fails, the response is a 422 with the reason and the source stays paused. The check uses the source's current
tag, not a new one sent in the same request.
Response
A 200 response is the updated source object, described in Curator API: Get Sources, without account. The feed's cached responses are cleared.
Errors
Status | When | Body |
|---|---|---|
401 | The API key is missing or not valid. |
|
403 | Your plan does not include API access. |
|
403 | You tried to resume a source and your plan does not allow it, for example because you have reached your source limit. |
|
404 | No source in your account has that ID. |
|
422 |
|
|
422 | You sent |
|
422 | You tried to resume an Instagram, Facebook Page, or Twitter source and the network check failed. |
|
429 | When rate limiting is enabled, more than 60 requests per minute. |
|