POST
/
v1
/
members
/
jobs

Creates a new job, which runs asynchronously and returns a job ID. The job ID can be used to check the status of the job.

The job contains an array of operations, of the same format as the single changes APIs:

  • Add - Invites a new member to your Onsi programme.
  • Replace - Replaces the member’s data with new information. An inactive member will be re-added to Onsi.
  • Update - Updates the member’s data with new information. Does not re-add inactive members.
  • Remove - Removes the member from your Onsi programme.

Relevant Error Codes

If there are issues with any of the operations, the API will return a 400 status code with the following error codes:

If there are issues, Onsi will not process any of the operations in your request, and will not create a job. You will need to fix the issues and send a subsequent request.

Authorizations

X-API-KEY
string
header
required

Headers

x-idempotency-key
string

Unique key to ensure idempotency of the request

Body

application/json
actions
object[]
required

Response

202 - application/json
jobId
string
required