Luxor Documentation Hub Logo
Mining Pool/API Documentation/Workspaces

Update member role

Allows updating a group member's role.

PATCH
/v1/workspace/groups/{group_id}/members/{user_id}

Authorization

authorization<token>

Use your API key here.

In: header

Request Body

application/jsonRequired

Provide the new role for this member.

roleRequiredstring

Role of the user in the group

Value in: "STANDARD" | "ADMIN"

Path Parameters

group_idRequiredstring

An alternate shortcut for specifying subaccounts. Can be used in place of subaccount_names

Format: "uuid"
user_idRequiredstring

A user ID for which to retrieve user information.

Format: "uuid"
curl -X PATCH "https://beta.luxor.tech/api/v1/workspace/groups/497f6eca-6276-4993-bfeb-53cbbbba6f08/members/497f6eca-6276-4993-bfeb-53cbbbba6f08" \
  -H "authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "role": "ADMIN"
  }'

Response with the invite update member action created

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "actionName": "DISABLE_ADMIN_APPROVAL_FLOW",
  "status": "PROCESSING",
  "initiatedAt": "2019-08-24T14:15:22Z",
  "initiatedBy": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "displayName": "string",
    "type": "API_KEY"
  },
  "requiresApproval": true,
  "canceledBy": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "displayName": "string",
    "type": "API_KEY"
  },
  "approvedAt": "2019-08-24T14:15:22Z",
  "rejectedAt": "2019-08-24T14:15:22Z",
  "approvedBy": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "displayName": "string",
      "type": "API_KEY"
    }
  ],
  "rejectedBy": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "displayName": "string",
      "type": "API_KEY"
    }
  ],
  "url": "/v1/api/workspace/actions/0123456a-bc78-901d-efg2-h345ij6k78lm",
  "metadata": null
}