Grants

Revert Grant Termination

Reverts a terminated grant to accepted and restores its vestings and unsettled lockups. Needs the Token Grants module. A grant that is missing or not terminated returns HTTP 200 with success false.

POSThttps://app.toku.com/api/tokuApi/v1/revertGrantTermination

This is the v1 (legacy) API. The current API is in the API reference.

curl --request POST \
  --url 'https://app.toku.com/api/tokuApi/v1/revertGrantTermination' \
  --header 'Authorization: Bearer <token>' \
  --header 'x-role-type: CLIENT_ORG_ADMIN' \
  --header 'Content-Type: application/json' \
  --data '{
  "grantID": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
200 response
{
  "data": {
    "success": true,
    "errorMessage": "string"
  },
  "error": null
}

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your API token.

Headers

x-role-typestringrequired

Seat role the token acts as. The token's creator must hold this role in the token's org; TOKU_ADMIN and unknown values are refused with 401. This operation accepts CLIENT_ORG_ADMIN only; other roles get 403.

Available options: CLIENT_ORG_ADMIN

Body

application/json

grantIDstring<uuid>required

Response

200Grant termination reverted
dataobjectrequired
Show child attributes
successboolean
errorMessagestring

Set when success is false: 'Grant not found', 'Grant not terminated' or 'Grant has no termination date'.

errorobject | nullrequired

Always null on success

401The token is missing, invalid or expired
errorstringrequired

What went wrong

403The token's seat doesn't have the permission this operation needs
errorobjectrequired
Show child attributes
messagestringrequired
429Too many requests from this address or token. Wait for the number of seconds in the Retry-After header, then retry.
errorstringrequired

What went wrong

500The operation failed. This includes input that doesn't match what the operation accepts; error.message says what was wrong.
errorobjectrequired
Show child attributes
messagestringrequired
Was this page helpful? Suggest edits