Bulk updates

Apply a bulk update

POST
https://api.searchsoftware.nl/v4/bulk-updates/{plan_id}/apply

Applies the plan to its next records: at most 25, and at most 15 seconds, per call. Call it again while remaining is above 0. confirm_total must be the plan's total (422 CONFIRMATION_MISMATCH; the error doesn't repeat the number: read it with GET /v4/bulk-updates/{plan_id}). Each record is checked again first: one that is gone or no longer visible is skipped (not_found), one already in the target is skipped (unchanged), a trashed one is skipped for every change but status (in_trash), and a person on permno keeps that GDPR status (gdpr_locked). A failure never stops the chunk. results lists this call's records. Two calls at once on one plan: one answers 409 PLAN_BUSY. Once started, a plan lapses 24 hours later. A completed plan answers its totals again. Requires the object's write scope: people:write, companies:write or jobs:write (for an existing plan, the scope of the plan's object).

Body

application/json
confirm_totalintegerrequired

The plan's total, as the preview returned it

Parameters

plan_idstringrequiredpath

Plan ID from POST /v4/bulk-updates

Response

Chunk applied

Response fields application/json
statusstringokrequired
Example
ok
dataBulkUpdatePlanrequired
Show child attributes
plan_idstringrequired
Example
k3f9q2m8x7a1b4c6d0e5
objectstringpeoplecompaniesjobsrequired
Example
people
changeBulkUpdateChangerequired
Show child attributes
kindstringstatusworkflow_phaseassigneegdpr_statusrequired
Example
status
statusstring

status and gdpr_status

Example
delete
workflow_idstring

workflow_phase

Example
vM7Lp2q
phase_status_idstring

workflow_phase

Example
vM7Lp2q
phasestring

workflow_phase: the phase's name

Example
Declined
notestring

workflow_phase

Example
Closed after review
user_idstring | null

assignee; null unassigns

Example
vM7Lp2q
assigneestring | null

assignee: the user's name

Example
Anna de Vries
statusstringpreviewedrunningcompletedcancelledexpiredrequired
Example
previewed
totalinteger<int32>required

Records in the plan (at most 1,000)

Example
412
matchedinteger<int32>required

Records the selection matched

Example
412
cappedbooleanrequired

true when the selection matched more than the plan holds

Example
false
processedinteger<int32>required
Example
0
succeededinteger<int32>required
Example
0
skippedinteger<int32>required
Example
0
failedinteger<int32>required
Example
0
remaininginteger<int32>required
Example
412
created_atstring<date-time>
Example
2026-03-10T14:30:00Z
expires_atstring<date-time>
Example
2026-03-10T14:30:00Z
started_atstring<date-time>
Example
2026-03-10T14:30:00Z
finished_atstring<date-time>
Example
2026-03-10T14:30:00Z

Preview only: ten records of the plan.

Show child attributes
idstringrequired

Identifier

Example
vM7Lp2q
namestringrequired
Example
Anna de Vries
currentstring | nullrequired

The current value of the attribute the change touches

Example
normal

Apply only: this call's records.

Show child attributes
idstringrequired

Identifier

Example
vM7Lp2q
outcomestringsucceededskippedfailedrequired
Example
succeeded
detailstring

The skip reason (not_found, unchanged, in_trash, gdpr_locked) or the failure message

Example
unchanged
skipped_recordsArray<BulkUpdateEntry>

With results=true.

Show child attributes
idstringrequired

Identifier

Example
vM7Lp2q
reasonstring

skipped_records

Example
unchanged
messagestring

failed_records

Example
Failed to update record status

With results=true.

Show child attributes
idstringrequired

Identifier

Example
vM7Lp2q
reasonstring

skipped_records

Example
unchanged
messagestring

failed_records

Example
Failed to update record status
idsArray<string>

With ids=true.

400Bad RequestErrorResponse

Invalid body

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_BODY",
    "status_code": 400,
    "message": "Invalid request body"
  }
}
401UnauthorizedErrorResponse

Invalid API key

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_API_KEY",
    "status_code": 401,
    "message": "Invalid API key"
  }
}
403ForbiddenErrorResponse

Insufficient scope

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "FORBIDDEN",
    "status_code": 403,
    "message": "Insufficient scope"
  }
}
404Not FoundErrorResponse

Plan not found

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "NOT_FOUND",
    "status_code": 404,
    "message": "Record not found"
  }
}
409ConflictErrorResponse

Plan busy or cancelled

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Plan expired

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

422Unprocessable EntityErrorResponse

confirm_total is not the plan's total

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "VALIDATION_FAILED",
    "status_code": 422,
    "message": "Validation failed"
  }
}
500Internal Server ErrorErrorResponse

Internal server error

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INTERNAL_ERROR",
    "status_code": 500,
    "message": "Internal server error"
  }
}

Authorization

bearer_authhttp (bearer) in header

API key or OAuth access token in Authorization header

oauth2_authoauth2

OAuth authorization code flow with mandatory S256 PKCE.

apikey_authapiKey in query

API key in query string