Premiums API
  1. Company
Premiums API
  • Seance
    • Execute a seance.
      POST
    • Cancels a seance.
      POST
    • Update a seance.
      PATCH
  • Company
    • Update company information.
      PATCH
    • Bulk Imports companies.
      POST
    • Imports companies.
      PUT
  • Trainee
    • Imports Trainee.
      PUT
    • Bulk Imports Trainee.
      POST
  • Schemas
    • Schemas
      • SeancePeriodClosed
    • Response
      • Success
      • SimulateResponse
      • SeanceCancelSuccess
      • CompanyResponse
      • SeanceConfirmSuccess
      • UnauthorizedError
      • SeancePaidConfirmSuccess
      • BadRequestError
      • SeancePeriodClosedSuccess
      • BadRequestWithMessagesError
      • NotFoundError
      • CompanyUpdateSuccess
      • InternalError
      • BadRequestWithSeanceCancelMessagesError
      • BadRequestWithSessionInformationError
      • BadRequestWithSeanceConfirmMessagesError
      • TooManyRequestsMessagesError
      • BadRequestWithSeancePaidConfirmMessagesError
      • BadRequestWithSeancePeriodClosedMessagesError
      • BadRequestWithCompanyUpdateMessagesError
    • Seance
    • CompanyUpdate
    • CompanyImportCsvFormat
    • SeanceUpdate
    • TraineeImportCsvFormat
  1. Company

Update company information.

PATCH
/v2/company/{company_uid}
Update company information. Requires premiums:write scope.

Request

Authorization
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Examples

Responses

🟢200CompanyUpdateSuccess
application/json
The request succeeded. The request does not provide any data in the response
Body

🟠400BadRequestWithCompanyUpdateMessagesError
🟠401UnauthorizedError
🔴500InternalError
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PATCH 'https://premiums-api-staging.anopio.com/v2/company/10365' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "worker_count": 24,
    "company_premium_class": "B",
    "initial_credit": 8107.20,
    "initial_collective_rights_balance_hours": 960,
    "date_start": "2025-01-01",
    "company_status": "ACTIVE"
}'
Response Response Example
200 - Example 1
{
    "status": 200,
    "data": {
        "status_details": "COMPANY_SAVED"
    },
    "request": {
        "worker_count": 0,
        "company_premium_class": "string",
        "initial_credit": 0,
        "initial_collective_rights_balance_hours": 0,
        "date_start": "string",
        "company_status": "ACTIVE"
    }
}
Modified at 2025-12-19 08:41:16
Previous
Update a seance.
Next
Bulk Imports companies.
Built with