Documentation Index
Fetch the complete documentation index at: https://docs.cometly.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This endpoint updates an existing company using sparse PUT semantics. Any field you include is replaced with the value you provide; any field you omit is left untouched.
Path Parameters
The unique identifier of the company to update.
Request Body
At least one of domain or name must be provided.
New domain for the company. Omit to leave the existing domain untouched. Maximum 255 characters.
New name for the company. Omit to leave the existing name untouched. Maximum 255 characters.
Response
Success Response
Returns the full company object after the update.
The unique identifier of the company.
The domain currently associated with this company.
The name currently associated with this company.
Error Response
Error description explaining what went wrong.
Example Requests
curl -X PUT "https://app.cometly.com/public-api/v1/companies/12345" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"domain": "acme.io",
"name": "Acme Inc"
}'
Status Codes
| Status Code | Description |
|---|
| 200 | Company successfully updated |
| 401 | Missing or invalid API key |
| 403 | API key doesn’t have permission or subscription is inactive |
| 404 | Company not found |
| 422 | Invalid parameters provided (check error message for details) |
| 429 | Too many requests - rate limit exceeded. See Rate Limiting |
Notes
- Rate Limit: This endpoint has a limit of 60 requests per minute per Space. See Rate Limiting for details.
- Sparse PUT semantics: Only the fields you include in the request body are modified. Other columns are left untouched.
- At least one field is required: A request with neither
domain nor name is rejected with a 422 error.