Create a new administrator for a specific partner.
The administrator type must be either partner or partnerSiteManager.
For partnerSiteManager, locationIds is required and must contain valid location IDs owned by the partner.
An email on an AMPECO domain (ampeco.com, ampeco.global, ampeco.tech) is refused with a 422 validation error: "Email addresses on AMPECO domains can only be assigned by AMPECO staff."
A partner that is offboarding or disabled does not accept new administrators: a valid request is refused with 409: "This partner is being offboarded or is disabled. Enable it to add admins."
roleId must be a role the API token's administrator can give under the admin panel role hierarchy: a role below their own, a role at their own level only when their role has the "Manage admins at their own level" permission, and never a role excluded for their role. Any other roleId is refused with a 422 validation error: "The selected roleId is invalid."
This behaviour changed in place, without a new API version.
Required permission: Admins.create
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
