Approve held enrollments in bulk
Approves up to 500 enrollments a rule of engagement is holding for approval: the bulk form of Approve a held enrollment. Find them with List enrollments and pending_reason=approval. Each approved enrollment starts its cadence; if its sequence is off, it stays pending and starts when the sequence is turned on.
user_id must be the sequence’s author, the team owner or a team admin, and the person who enrolled a contact cannot decide on it unless they are the team owner or an admin. note is recorded on each approval decision and its approval_granted timeline event.
The ids are processed one at a time and one failure does not stop the rest. ok counts approvals; failed lists each id that was not approved, with the reason — for example This enrollment is not awaiting approval or Only the sequence owner or a team admin can approve or reject this enrollment. A repeat lists the already-approved ids under failed, so send an Idempotency-Key when you retry. Counts toward the Sequencer writes rate limit.
pending until the sequence is turned on.
failed gives each refusal’s reason:
note is recorded on each approval decision and its approval_granted event. A repeat reports the already-approved ids under failed, so send an Idempotency-Key and reuse it when you retry.Authorizations
Team-scoped API key generated in the Salesfinity dashboard under Settings → Connections → API & Webhooks. A missing or invalid key returns HTTP 403.
Headers
Makes this write safe to retry. Send a unique value, such as a UUID, and send the same value again when you retry the same request. A retry with the same key and the same request (method, path including the query string, and JSON body) returns the original successful response without acting twice. The same key with a different body or path returns 409, and so does a retry while the first request is still running; that one is safe to repeat after a moment. A request that fails frees its key, so a retry runs the write again: after a 5xx on a create, confirm with a GET before retrying. Keys are kept for 24 hours and are scoped to your team.
Body
The team member this call acts as. Must be an active member of the team the API key belongs to.
"507f1f77bcf86cd799439011"
Enrollment ids, 1 to 500.
500Bulk approve and bulk reject record it on each approval decision and timeline event. Bulk finish and move accept it but do not store it.
500Response
How many succeeded, and why each of the others did not. Returned even when every id failed.
The outcome of a bulk enrollment action. The ids are processed one at a time, in the order sent, and one failure does not stop the rest.