Activate Link for an organization
Idempotent: finds the organization's existing "Link Manager" role or creates it (permissions
bitgo.link.admin, link.account.admin, link.account.transfer,
link.account.view, enterprise.view, scoped to all enterprises): an
existing matching role is reused, otherwise the role is created via
Roles & Permissions, bypassing the pending-approval flow. When the optional
userIds is non-empty, those users are assigned to the role
the same way, and the response carries the role's membership after the
assignment. Requires the caller to be an organization admin.
Path Params
-
enterpriseIdstring requiredYour enterprise id.
Header Params
-
user-idstring requiredUser id of the user making the request.
Body Params
object
{}) to activate without
assigning users.-
userIdsarray of strings
Responses
201
Created
Response Body
object
Response for Link activation.
Carries the roleId of the organization's "Link Manager" role (reused when a
matching role already exists, created otherwise). When the request assigned
userIds, users carries the role's membership after the assignment;
otherwise it is absent.
-
roleIdstring required -
usersarray of objectsusers object
-
idstring requiredThe UMS id of the user record. -
userIdstring requiredThe external user ID of the user. -
userNamestring requiredThe username of the user. -
statusstring requiredThe status of the user. -
firstNamestringThe first name of the user (absent when unset). -
lastNamestringThe last name of the user (absent when unset).
-
401
Unauthorized
Response Body
object
-
errorNamestring required -
errorstring required
403
Forbidden
Response Body
object
-
errorNamestring required -
errorstring required
404
Not Found
Response Body
object
-
errorNamestring required -
errorstring required
422
Unprocessable Entity
Response Body
object
-
errorNamestring required -
errorstring required
500
Internal Server Error
Response Body
object
-
errorNamestring required -
errorstring required