CompaniesUpdate companie

Update companie

Requires companies:write. Requires If-Match and Idempotency-Key. Omitted fields remain unchanged. Returns persisted confirmation, not the full detail.

curl -X PATCH "https://app.inrepli.com/v1/companies/example_string" \
  -H "Content-Type: application/json" \
  -H "If-Match: example_string" \
  -H "Idempotency-Key: example_string" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "industry": "Software"
}'
{
  "data": {
    "id": "example-id-4",
    "name": "Example company",
    "registeredName": null,
    "industry": "Software",
    "subIndustry": null,
    "employeeCount": 80,
    "revenue": null,
    "hqCountry": null,
    "yearFounded": null,
    "ownerId": null,
    "notes": null,
    "logo": null,
    "notesAt": null,
    "enrichmentAt": null,
    "enrichmentStatus": null,
    "lastMessageSentAt": null,
    "lastMessageReceivedAt": null,
    "lastInteractionAt": null,
    "createdAt": "2026-09-09T06:34:58.415Z",
    "updatedAt": "2026-09-09T06:34:59.422Z",
    "etag": ""2026-09-09T06:34:59.422Z"",
    "websiteUrl": "https://example.com",
    "customFields": {}
  }
}
PATCH
/companies/{id}
PATCH
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Tenant API key beginning with inr_v1_.

Tenant API key beginning with inr_v1_.
Content-Typestring
Required

The media type of the request body

Options: application/json
header
If-Matchstring
Required

Use the quoted etag from a list item, detail or previous PATCH. Missing: 428; stale: 412. Read is not implied by write.

header
Idempotency-Keystring
Required

Use a unique key for each logical update. Retry the exact body, resource and If-Match with the same key. Stored response expires after 24 hours; reuse with a different request during retention returns 409.

Min length: 1 • Max length: 255
namestring

Must contain a non-whitespace character.

Min length: 1
websiteUrlstring
Format: uri • Pattern: ^https?://
customFieldsobject

Active custom definition keys. Omitted keys remain unchanged; null clears a value. Select values use options[].value from definitions (valueKey), never option IDs. DECIMAL requires an exact string (20 integer and 10 fractional digits maximum). DATE uses YYYY-MM-DD; DATETIME uses an ISO timestamp. Updating values requires the resource write scope and current customFieldsEditable plan eligibility, not custom-fields:read.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Tenant API key beginning with inr_v1_.

Path Parameters

Headers

If-Matchstring
Required

Use the quoted etag from a list item, detail or previous PATCH. Missing: 428; stale: 412. Read is not implied by write.

Idempotency-Keystring
Required

Use a unique key for each logical update. Retry the exact body, resource and If-Match with the same key. Stored response expires after 24 hours; reuse with a different request during retention returns 409.

Body

application/json
namestring

Must contain a non-whitespace character.

customFieldsobject

Active custom definition keys. Omitted keys remain unchanged; null clears a value. Select values use options[].value from definitions (valueKey), never option IDs. DECIMAL requires an exact string (20 integer and 10 fractional digits maximum). DATE uses YYYY-MM-DD; DATETIME uses an ISO timestamp. Updating values requires the resource write scope and current customFieldsEditable plan eligibility, not custom-fields:read.

Responses

dataobject

Persisted company base fields and all active custom values. No relation, aggregate or fit expansion.