Nápověda

Assign roles to a batch of companies.

Assign roles to a batch of companies.

POST
/companies/roles

Authorization

bearerAuth
AuthorizationBearer <token>

Access token from POST /directory/connect/token. Scope olifyapi.

In: header

Header Parameters

Olify-Tenant-Id*string

Tenant GUID the caller is allowed to access.

Formatuuid

Request Body

UpdateCompanyRoles

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/companies/roles" \  -H "Olify-Tenant-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "companyIds": [      "9cada282-6a7c-4e2c-806e-1fc2198ba49c"    ],    "roles": [      "Manufacturer"    ]  }'
Empty