Bulk updates

Preview a bulk update

POST
https://api.searchsoftware.nl/v4/bulk-updates

Selects records and stores their IDs in a plan with one change; nothing changes yet. The selection is either records (1 to 1,000 IDs) or a search with the body of POST /v4/records/{plural_slug}/search without paging (query, filters, near, document_query); a search that selects everything is refused (422 SELECTION_REQUIRED). A plan holds at most 1,000 records, the oldest first: with more matches it says capped: true and the real matched. Permanently deleted and hidden records are never in a plan, and a status change leaves out the records already in the target. change.kind is status (normal or delete, the trash), workflow_phase (workflow_id, phase_status_id, optional note), assignee (user_id, or null to unassign) or gdpr_status (people only: permok, permreq, permno, novalue; from AI apps only with the workspace setting, 403 GDPR_WRITE_DISABLED). An unknown workflow, a phase of another workflow or an inactive user fails here (422 INVALID_CHANGE). A document_query that matches more than 200 records is refused (422 DOCUMENT_MATCHES_TRUNCATED): a plan never holds part of a document selection. The answer has plan_id, total, matched, capped and a sample of ten records with the current value of the attribute the change touches. The plan lapses 30 minutes after preview unless applied. With OAuth the plan belongs to the authorizing user; an API key names created_by (422 ACTOR_REQUIRED without it). 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
objectstringrequired

people, companies or jobs

querystring

Keywords, as in the record search

filtersarray

Filter groups, as in the record search

nearobject

A radius around a place or point, as in the record search

document_querystring

A keyword in the CV or main document, as in the record search. At most 200 matching records; more is refused (422 DOCUMENT_MATCHES_TRUNCATED).

recordsarray

Record IDs in place of a search, 1 to 1,000

changeobjectrequired

kind plus that kind's fields

created_bystring

API keys only: the acting user's ID

Response

Plan prepared

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 or unknown 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_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"
  }
}
422Unprocessable EntityErrorResponse

Invalid object, change or selection, no matching records, no acting user, or a document_query matching more than 200 records (DOCUMENT_MATCHES_TRUNCATED)

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