Skip to main content
DELETE
Remove an admin from 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 of the admin, or of the pending admin invitation, to remove. Give it, or adminId, not both.

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

The admin to remove, as getAdmins returns them (an employee id or an external userId). Give it, or email, not both.

Minimum string length: 1

Response

default - application/json
status
enum<string>
required

REMOVED: the admin left the cockpit, an employee keeping their employee access. INVITATION_REVOKED: the person was not an admin yet, and their pending admin invitation was revoked.

Available options:
REMOVED,
INVITATION_REVOKED