API referenceCompanies
Update a company
Update CRM status, assignment or contact details. Omitted fields stay unchanged; null clears nullable fields.
Permissions: Companies: read and write.
PATCH
/companies/{orgNr}Authorization
bearerAuth AuthorizationBearer <token>
Create a key in Aventra → Innstillinger → API-nøkler.
In: header
Path Parameters
orgNr*string
Match
^\d{9}$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/companies/923609016" \ -H "Authorization: Bearer $AVENTRA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "status": "customer" }'{ "data": { "id": "4d73dca4-7537-4f9c-924e-8bccd354663f", "orgnr": "923609016", "name": "Eksempel AS", "status": "customer", "assigned_to": null, "source": "api", "org_form": "AS", "registered_at": "2019-10-16", "employees": 8, "nace_primary": "62.010", "email_address": null, "phone_number": null, "mobile_number": null, "website_url": null, "is_archived": false, "is_deleted": false }}See authentication, errors and retry guidance.