Luxor Documentation Hub Logo
Mining Pool/API Documentation/Workspaces

Update action

Allows the user to approve or reject an approval request.

PATCH
/v1/workspace/actions/{id}

Authorization

authorization<token>

Use your API key here.

In: header

Request Body

application/jsonRequired

Action to be performed

actionRequiredstring
Value in: "APPROVE" | "REJECT" | "CANCEL"

Path Parameters

idRequiredstring

The ID of the action

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

Default Response

{
  "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
}