Bulk add subscriptions
Changed onAdd subscriptions for all objects in a single collection. If a subscription for an object in the collection already exists, it will be updated. This endpoint also handles inline identifications for the recipient field.
Request
- Base URL: https://api.knock.app
- URL: https://api.knock.app/v1/objects/{collection}/bulk/subscriptions/add
- Auth: HTTP bearer
Path parameters
The collection this object belongs to.
Request body
Example request
{
"subscriptions": [
{
"id": "project-1",
"properties": null,
"recipients": [
{
"id": "user_1"
}
]
}
]
}Response
OK
Example response
{
"__typename": "BulkOperation",
"completed_at": null,
"error_count": 0,
"error_items": [],
"estimated_total_rows": 1000,
"failed_at": null,
"id": "123e4567-e89b-12d3-a456-426614174000",
"inserted_at": "2024-05-22T12:00:00Z",
"name": "Bulk operation name",
"processed_rows": 0,
"progress_path": "https://api.switchboard.com/v1/bulk_operations/123e4567-e89b-12d3-a456-426614174000",
"started_at": null,
"status": "processing",
"success_count": 0,
"updated_at": "2024-05-22T12:00:00Z"
}Changes
- info
added the new optional request property
//////////// - info
added the new optional request property
//////////// - info
added the new optional request property
//////////// - info
added the new optional request property
//////////// - info
added the new optional request property
//////////// - info
added the new optional request property
//////////// - info
added the new optional request property
//////////// - info
added the new optional request property
//////////// - info
added the new optional request property
//////////// - info
added the new optional request property
//////////// - info
added the new optional request property
//////////// - info
added the new optional request property
////////////
- info
- breaking
the request property
////////became not nullable - breaking
the request property
////////became not nullable - breaking
the
////////request property type changed frombooleanto no type - breaking
the
////////request property type changed frombooleanto no type - info
added
subschema #1subschema #3to the////////request propertyanyOflist - info
added
subschema #1subschema #3to the////////request propertyanyOflist
- breaking