v1
Companies

Update a company

PUT/api/v1/companies/{id}

Changes the fields you send and keeps the others.

A missing or null field stays as it is: send only what changed.

The API key needs the scopeEdit companiescompanies.edit

Parameters

NameInDescription
idrequiredstring (uuid)pathCompany id.

Request body

FieldDescription
namestringThe company's trade name. Required on creation.
legalNamestringLegal name.
taxIdstringCNPJ (Brazilian company tax id), digits only.
emailstringThe company's main email.
phoneNumberstringPhone with country and area code, digits only.
websitestringThe company's website.
addressStreetstringStreet.
addressNumberstringStreet number.
addressComplementstringAddress line 2.
addressDistrictstringNeighborhood.
addressCitystringCity.
addressStatestringState, as its abbreviation.
addressZipstringPostal code, digits only.
addressCountrystringCountry.
ownerIdstring (uuid)User who owns the account.
employeeCountintegerNumber of employees.
responsibleContactIdstring (uuid)Contact who answers for the company: the id of an existing contact.

Responses

200The company after the change.
application/json
{
  "id": "d49d40b3-dfd6-4b52-af6d-a90a16830193",
  "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
  "name": "Lima Consultoria",
  "legalName": "Lima Consultoria Empresarial Ltda.",
  "taxId": "12345678000190",
  "email": "[email protected]",
  "phoneNumber": "551133334444",
  "website": "https://limaconsultoria.com.br",
  "domain": "limaconsultoria.com.br",
  "profileImageUrl": null,
  "addressStreet": null,
  "addressNumber": null,
  "addressComplement": null,
  "addressDistrict": null,
  "addressCity": "São Paulo",
  "addressState": "SP",
  "addressZip": null,
  "addressCountry": "BR",
  "tags": null,
  "customFields": null,
  "ownerId": "5a3dc17c-3dc5-4770-bb35-0bff55f3151b",
  "employeeCount": 45,
  "averageRevenue12m": null,
  "responsibleContactId": null,
  "createdAt": "2026-11-23T11:45:17.88691Z",
  "updatedAt": null
}
400Invalid request: a body that is not JSON, a missing required field or a value in the wrong format.
application/json
{
  "error": "validation_failed",
  "message": "O campo name é obrigatório."
}
401Missing or invalid credentials. The response is the same for a key that does not exist and for a wrong secret; without the X-API-KEY header, it comes with no body.
application/json
{
  "error": "unauthorized",
  "message": "Credenciais de API inválidas."
}
403The key authenticated, but it lacks the scope the route requires, or the plan does not include the feature.
application/json
{
  "error": "forbidden",
  "message": "A chave de API não tem acesso a esta rota: falta o escopo exigido, ou a rota não aceita chave de API."
}
404The record does not exist in this company.
application/json
{
  "error": "not_found",
  "message": "Registro não encontrado."
}
429The requests-per-minute limit was reached. Wait for the time given in the Retry-After header.
application/json
{
  "error": "too_many_requests",
  "message": "Muitas requisições com esta chave de API. Aguarde o fim da janela e tente novamente."
}
curl -X PUT "https://api.guria.io/api/v1/companies/{id}" \
  -H "X-API-KEY: $GURIA_API_KEY" \
  -H "X-API-SECRET: $GURIA_API_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Lima Consultoria",
    "legalName": "Lima Consultoria Empresarial Ltda.",
    "taxId": "12345678000190",
    "email": "[email protected]",
    "phoneNumber": "551133334444",
    "website": "https://limaconsultoria.com.br",
    "addressStreet": "Rua dos Pinheiros",
    "addressNumber": "870",
    "addressComplement": "Sala 12",
    "addressDistrict": "Pinheiros",
    "addressCity": "São Paulo",
    "addressState": "SP",
    "addressZip": "05422001",
    "addressCountry": "BR",
    "employeeCount": 45
  }'
Response · 200
{
  "id": "d49d40b3-dfd6-4b52-af6d-a90a16830193",
  "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
  "name": "Lima Consultoria",
  "legalName": "Lima Consultoria Empresarial Ltda.",
  "taxId": "12345678000190",
  "email": "[email protected]",
  "phoneNumber": "551133334444",
  "website": "https://limaconsultoria.com.br",
  "domain": "limaconsultoria.com.br",
  "profileImageUrl": null,
  "addressStreet": null,
  "addressNumber": null,
  "addressComplement": null,
  "addressDistrict": null,
  "addressCity": "São Paulo",
  "addressState": "SP",
  "addressZip": null,
  "addressCountry": "BR",
  "tags": null,
  "customFields": null,
  "ownerId": "5a3dc17c-3dc5-4770-bb35-0bff55f3151b",
  "employeeCount": 45,
  "averageRevenue12m": null,
  "responsibleContactId": null,
  "createdAt": "2026-11-23T11:45:17.88691Z",
  "updatedAt": null
}