Save entity data

Upserts the field values of an existing entity (location). It is a POST rather than a PATCH because it is an upsert keyed by field: omitted keys are left untouched. All writes of a request commit together or not at all. Answers with the saved entity in the shape GET /entities lists it.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
number
required

Entity ID. Its reference id (e.g. K7X2M9QA) is accepted too.

Query Params
string

The lookupId of a POST /company-data-finder/lookup whose values are being saved, so the entity values record where they came from

Body Params

Field values keyed by EntityField.key (snake_case, e.g. company_number). Keys are per-company: the global location fields plus any custom ones. Call GET /entity-fields to discover every key your company accepts, along with each field’s type. Values are sent as strings whatever the type; a DATE takes YYYY-MM-DD, country a single ISO-3166 ALPHA-2 code. Omitted keys are left untouched; keys sent with an empty value are ignored. Unknown keys are rejected: a key that matches no entity field answers 400 Unknown entity field(s): … and nothing in the request is written — unlike POST /users/{id}/data, which drops unknown keys and lists them in its response. Registry ids of another country are ignored, not rejected: a registry id issued by one country (cvr_number DK, cz_id CZ, siret_number FR, niss PT) is not stored on an entity of another country — the country sent in the body, else the stored one — and is listed in the response’s ignoredFields, so one payload can be sent for every entity. FILE fields take a file id, not bytes: call POST /files/signed-upload with the file name, PUT the bytes to the returned url, then send the returned id as the field value (comma-separated ids for a FILES field).

string

Location / entity display name

string

Registered company number for the entity

string

Entity country as an ISO-3166 ALPHA-2 code

Responses

400

Unknown entity field(s): <keys> — at least one body key matches no entity field of your company; GET /entity-fields lists the accepted keys. Also Invalid date for entity field(s): <keys> when a DATE value cannot be parsed. In both cases nothing in the request is written.

404

Entity not found for this company

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json