Skip to main content
Updates an existing company record with partial data. Validates that the record exists before attempting update. Only updates fields provided in the request body (partial update).

Endpoint

Authentication

This endpoint requires authentication. Include a valid bearer token in the Authorization header. Permission Required: company:update

Path Parameters

Request Body

All fields are optional (partial update). Only provided fields will be updated. Note: Tracking fields (created_at, updated_at, deleted_at, is_actived, is_deleted, document_id) are managed automatically by the system and cannot be modified during update. To activate/deactivate a record, use the dedicated /active endpoint.

Response

Success Response (200 OK)

Returns the updated company record.

Error Responses

400 Bad Request - Invalid request body or validation failed
401 Unauthorized - Missing or invalid authentication token 403 Forbidden - Insufficient permissions 404 Not Found - Record not found
409 Conflict - Internal identifier already exists

Examples

Update Single Field

Update Multiple Fields