put
https://api.duodeal.app/api/companies/
Updates an existing company by its ID.
Use this same endpoint to upload, replace, or remove the company logo and cover images via the setLogo and setCover body fields.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Company unique identifier |
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Company name |
country | string | No | Country code (e.g., FR, US) |
siren | string | No | SIREN number (French business ID) |
address | string | No | Street address |
address2 | string | No | Additional address line |
postCode | string | No | Postal code |
city | string | No | City name |
companySize | string | No | Company size: 1, 2-10, 11-50, 51-200, 201-500, 500+ |
currency | string | No | Currency code (e.g., EUR, USD) |
currencyFormat | object | No | Currency formatting settings |
showUnboarding | boolean | No | Show onboarding flag |
dealSettings | object | No | Deal-specific settings |
setLogo | string | No | Add/replace or remove the company logo. Pass a base64-encoded image (data URI prefix like data:image/png;base64, is accepted and stripped), or the literal string "remove" to delete the current logo. The resulting public URL is stored in logo. Omit the field to leave the logo unchanged. |
setCover | string | No | Add/replace or remove the company cover image. Pass a base64-encoded image (data URI prefix like data:image/png;base64, is accepted and stripped), or the literal string "remove" to delete the current cover. The resulting public URL is stored in cover. Omit the field to leave the cover unchanged. |
Examples — Logo & Cover
Upload (or replace) a logo:
{
"setLogo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."
}Remove the current logo:
{
"setLogo": "remove"
}Update both logo and cover at once:
{
"setLogo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
"setCover": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA..."
}Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Company unique identifier |
name | string | Company name |
logo | string | Company logo URL |
cover | string | Company cover image URL |
country | string | Country code |
siren | string | SIREN number |
address | string | Street address |
address2 | string | Additional address line |
postCode | string | Postal code |
city | string | City name |
companySize | string | Company size: 1, 2-10, 11-50, 51-200, 201-500, 500+ |
currency | string | Currency code |
currencyFormat | object | Currency formatting settings |
archive | boolean | Whether the company is archived |
showUnboarding | boolean | Show onboarding flag |
dealSettings | object | Deal-specific settings |
numberingSetting | object | Numbering configuration |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
Response
200 OK: Company successfully updated400 Bad Request: Invalid request body or validation error401 Unauthorized: Invalid or missing API key404 Not Found: Company not found
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200Resource updated
400Bad request
401Unauthorized
404Resource not found
