Skip to main content
PUT
/
companies
/
{id}
Update a company
curl --request PUT \
  --url https://app.leonar.app/api/v1/companies/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "domain": "<string>",
  "industry": "<string>",
  "company_size": "<string>",
  "description": "<string>",
  "location": "<string>",
  "logo_url": "<string>",
  "phone": "<string>",
  "linkedin_url": "<string>",
  "annual_revenue": 123,
  "owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "custom_data": {}
}
'
{
  "data": {
    "id": "b2c3d4e5-6789-01ab-cdef-234567890abc",
    "name": "Doctolib",
    "domain": "doctolib.com",
    "industry": "Health Tech",
    "company_size": "1001-5000",
    "description": null,
    "location": "Paris, France",
    "logo_url": "https://logo.clearbit.com/doctolib.com",
    "phone": null,
    "linkedin_url": "https://www.linkedin.com/company/doctolib",
    "annual_revenue": null,
    "created_at": "2025-01-10T08:00:00Z",
    "updated_at": "2025-01-20T14:00:00Z",
    "archived_at": null
  }
}

Authorizations

Authorization
string
header
required

API key starting with leo_

Path Parameters

id
string<uuid>
required

Company ID

Body

application/json
name
string
domain
string
industry
string
company_size
string
description
string
location
string
logo_url
string
phone
string
linkedin_url
string
annual_revenue
number
owner_id
string<uuid>
custom_data
object

Response

Company updated

data
object
Example:
{
"id": "b2c3d4e5-6789-01ab-cdef-234567890abc",
"name": "Doctolib",
"domain": "doctolib.com",
"industry": "Health Tech",
"company_size": "1001-5000",
"description": null,
"location": "Paris, France",
"logo_url": "https://logo.clearbit.com/doctolib.com",
"phone": null,
"linkedin_url": "https://www.linkedin.com/company/doctolib",
"annual_revenue": null,
"created_at": "2025-01-10T08:00:00Z",
"updated_at": "2025-01-20T14:00:00Z",
"archived_at": null
}