Skip to main content
POST
Invite an admin to the cockpit
Key: Write Scope: Company

Authorizations

Authorization
string
header
required

Use your Primo API key in the Authorization header as Bearer <API_KEY>.

Body

application/json
email
string<email>

The email to invite. Give it, or employeeId, not both.

Pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
employeeId
string

The employee to invite, as getEmployees returns them. Give it, or email, not both.

Pattern: ^[a-f\d]{24}$

Response

default - application/json
status
enum<string>
required

INVITED: the invitation was sent, or the employee promoted. ALREADY_INVITED: an invitation is still pending, nothing was sent. ALREADY_IN_COCKPIT: already in the cockpit on a role other than employee, nothing was sent.

Available options:
INVITED,
ALREADY_INVITED,
ALREADY_IN_COCKPIT