updateMspAdminInvite
Update the identity fields or privilege assignments on a pending MSP administrator invitation.
Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.
Format:
Authorization: Token {apitoken}
Notes:
- An API token generated for a specific admin has the same privileges as that admin
- An API token is automatically removed if it is not used for more than 90 days
- SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.
In: header
Path Parameters
uuiduuidRequest Body
application/json
Request Body
Mist administrator account or organization API token details
Trade compliance status for this administrator. enum: blocked, restricted.
Value in
- "blocked"
- "restricted"
If admin account is not an Org API Token
emailExpiration time for the admin invitation, in epoch seconds
If admin account is not an Org API Token. For an invite, this is the original first name used
If admin account is not an Org API Token, how long the invite should be valid
1 <= value <= 16824If admin account is not an Org API Token. For an invite, this is the original last name used
For Org API Token Only
Optional, whether to store privacy-consent information. When it doesn’t exist, it’s assumed true on EU (i.e. no tracking, the user has to opt-in); otherwise, the user would have to opt-out
nullPassword last modified time, in epoch
doubleIf admin account is not an Org API Token. Phone number (numbers only, including country code)
If admin account is not an Org API Token. Secondary phone number (numbers only, including country code)
Privilege assignments that define the admin's MSP, organization, site, or site group access
1 <= itemsResponse Body
curl -X PUT "https://example.com/api/v1/msps/000000ab-00ab-00ab-00ab-0000000000ab/invites/000000ab-00ab-00ab-00ab-0000000000ab" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com", "first_name": "string", "last_name": "string", "privileges": [ { "msp_id": "b069b358-4c97-5319-1f8c-7c5ca64d6ab1", "msp_name": "string", "name": "string", "org_id": "b069b358-4c97-5319-1f8c-7c5ca64d6ab1", "org_name": "string", "orggroup_ids": [ "b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ], "role": "admin", "scope": "org", "site_id": "b069b358-4c97-5319-1f8c-7c5ca64d6ab1", "sitegroup_ids": [ "b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ] } ] }'{ "admin_id": "b069b358-4c97-5319-1f8c-7c5ca64d6ab1", "email": "user@example.com", "first_name": "string", "last_name": "string", "password_modified_time": 1656353525, "privileges": [ { "msp_id": "b069b358-4c97-5319-1f8c-7c5ca64d6ab1", "msp_name": "string", "name": "string", "org_id": "b069b358-4c97-5319-1f8c-7c5ca64d6ab1", "org_name": "string", "orggroup_ids": [ "b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ], "role": "admin", "scope": "org", "site_id": "b069b358-4c97-5319-1f8c-7c5ca64d6ab1", "sitegroup_ids": [ "6f4bf402-45f9-2a56-6c8b-7f83d3bc98e9" ] } ]}