Skip to main content

Update Organization

Service to update your organization data: name, logo, visual customization (white label) and webhooks. All fields are optional; only the ones you send are modified.

PUT/companyprivate keyprk_

Authentication​

Include your private key in the Authorization header.

Authorization: prk_xxx...

Update parameters​

NameTypeRequiredDescription
nameStringOptionalOrganization name.
imageStringOptionalURL of the organization logo.
uxOptionsObjectOptionalVisual customization options (white label). Only the sent keys are updated (see merge note).
uxOptions.primaryColorStringConditionalBrand primary color in hexadecimal format (#RGB or #RRGGBB). Cannot be white (#fff / #ffffff).
uxOptions.alternateColorStringConditionalBrand secondary color in hexadecimal format (#RGB or #RRGGBB).
webhooksArrayOptionalComplete list of webhooks. Replaces the existing configuration (minimum 1, must include the default). See Webhooks.
uxOptions is updated per field

When you send uxOptions, only the keys included in the request are modified; the rest of the saved customization is preserved. For example, sending only primaryColor does not erase the already configured alternateColor.

webhooks replaces the complete list

Unlike uxOptions, the webhooks array fully replaces the saved list. To keep existing webhooks you must include them in the request, and the list must always contain the webhook with id: "default". See the Webhooks section for the detail of each field.

🧪 Usage examples​

Update name, logo and colors​

curl -X PUT 'https://api.auco.ai/v1.5/ext/company' \
-H 'Authorization: prk_private_key_company' \
-H 'Content-Type: application/json' \
-d '{
"name": "Mi Empresa",
"image": "https://miempresa.com/logo.png",
"uxOptions": {
"primaryColor": "#021C30",
"alternateColor": "#A557F2"
}
}'

Configure webhooks​

Remember to send the complete list of webhooks, always including the default. For the detail of each field see the Webhooks section.

curl -X PUT 'https://api.auco.ai/v1.5/ext/company' \
-H 'Authorization: prk_private_key_company' \
-H 'Content-Type: application/json' \
-d '{
"webhooks": [
{
"id": "default",
"description": "Webhook principal",
"url": "https://miempresa.com/webhooks/auco",
"header": { "key": "Authorization", "value": "Bearer ..." }
},
{
"id": "billing",
"description": "Webhook de facturación",
"url": "https://miempresa.com/webhooks/billing"
}
]
}'

📥 Response example​

{
"response": "OK"
}

⚠️ Error Responses​

CodeDescription
400Invalid data: color outside hexadecimal format, primaryColor set to white, or missing default webhook.
401Invalid or missing authentication.