Collections
...
Collections API
Collections
Update Collection
3min
Collections can be updated by making an HTTP PUT to the /collections/COLLECTION_ID endpoint (where COLLECTION_ID is the id of the Collection). The body can be either x-www-form-urlencoded parameters or a JSON object.
The parameters for updating a Collection are the same as those used when creating a Collection.
PUT /collections/COLLECTION_ID
In the example below we update a Collection with id=123456 to run weekly, on Monday at 8am:
Curl
Node.js
Python
PHP
1$ curl -X PUT "https://api.backyardapi.com/collections/123456?api_key=demo" \
2 -d schedule_type="weekly" \
3 -d schedule_days_of_week="1" \
4 -d schedule_hours="8"
Backyard API responds with a JSON object containing details of the updated Collection.
A Collection can only be updated when it is not running. To check whether a Collection is currently running use the Get Collection endpoint.
Next Steps Start Collection Get Collection
Updated 08 Aug 2024
Did this page help you?