API reference
All operations
COMPANY

Assigns a rep (user) to a company in a given role.

The company and user are identified by `CompanyId` and `UserId` in the body. The new assignment's ID is not returned; use `GET /api/v2/companies/{companyId}/reps` to read it.

POST/api/v2/companies/rep

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentials

Request body

application/jsonrequired

The company, user, role, optional override rank, zone and whether the rep is primary.

CreateCompanyAssignedRepRequest
  • companyIdinteger · int32
  • userIdinteger · int32
  • roleIdinteger · int32
  • overrideRankIdinteger · int32
  • primaryboolean
  • zoneIdinteger · int32

Responses

Rep assigned successfully.

Standard response envelopeisSuccessmessageerrorsdata

Read the result from data. When isSuccess is false, errors lists what went wrong. Handling errors

databoolean
boolean