Ledger Enterprise
API Documentation V2
API Documentation V2
  • Introduction
    • Getting Started
    • Overview
  • Guides
    • Authentication
    • Balance Reporting Bot
      • 1. Project setup
      • 2. Connect to revault-api
      • 3. Fetch accounts balances
      • 4. Conclusion
  • reference
    • API reference
      • Users
      • Accounts
        • Transactions
      • Groups
      • Whitelists
      • Policies
      • Entities
      • Requests
        • Generate registration challenge
        • Confirm registration challenge
        • Challenge
        • Approve
        • Reject
      • Auth
        • Token
          • Refresh
      • Permissions
        • Allowed actions
        • Resources
      • Assets
        • Currencies
        • Tokens
      • Tradelink
        • Network
          • Blueprint
    • Specification
Powered by GitBook
On this page
  1. reference
  2. API reference
  3. Requests

Approve

PreviousChallengeNextReject

Approve a request from the current user

post
Path parameters
idstringRequired

ID of the request to approve

Body
dataany ofRequired

Response to the challenge

or
Responses
200
Successful response
application/json
Responseany of
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
default
Error response
application/json
post
POST /rest/requests/{id}/approve HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 51

{
  "data": {
    "signature": "text",
    "challengeType": "PSD"
  }
}
{
  "type": "UPDATE_QUORUM",
  "data": {
    "quorum": 1
  },
  "id": "text",
  "legacyId": 1,
  "state": "INITIAL",
  "reviewSteps": [
    {
      "stageName": "text",
      "quorum": 1
    }
  ],
  "currentStepIndex": 1,
  "expiredAt": "2025-05-30T22:36:52.335Z",
  "targetId": "text",
  "reviews": [
    {
      "stepIndex": 1,
      "userId": "text",
      "status": "PENDING",
      "createdAt": "2025-05-30T22:36:52.335Z",
      "updatedAt": "2025-05-30T22:36:52.335Z"
    }
  ],
  "createdAt": "2025-05-30T22:36:52.335Z",
  "updatedAt": "2025-05-30T22:36:52.335Z"
}