Preview a bulk update
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
objectstringrequiredpeople, companies or jobs
querystringKeywords, as in the record search
filtersarrayFilter groups, as in the record search
nearobjectA radius around a place or point, as in the record search
document_ querystringA keyword in the CV or main document, as in the record search. At most 200 matching records; more is refused (422 DOCUMENT_MATCHES_TRUNCATED).
recordsarrayRecord IDs in place of a search, 1 to 1,000
changeobjectrequiredkind plus that kind's fields
created_ bystringAPI keys only: the acting user's ID
Response
Plan prepared
Invalid body or unknown key
Invalid API key
Insufficient scope
Invalid object, change or selection, no matching records, no acting user, or a document_query matching more than 200 records (DOCUMENT_MATCHES_TRUNCATED)
Internal server error
Authorization
bearer_ authhttp (bearer) in headerAPI key or OAuth access token in Authorization header
oauth2_ authoauth2OAuth authorization code flow with mandatory S256 PKCE.
apikey_ authapiKey in queryAPI key in query string
