PUT
/
base
/
user
/
token
/
{token_id}
Update a token by its ID.
curl --request PUT \
  --url https://api.coinfer.ai/base/user/token/{token_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "desc": "<string>",
  "expire": "2023-11-07T05:31:56Z"
}'
{
  "status": "<string>",
  "data": {
    "id": 123,
    "token": "<string>",
    "token_name": "<string>",
    "token_desc": "<string>",
    "token_expire": "2025-02-11T23:56:09.473Z"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

token_id
string
required

Body

application/json
name
string | null
desc
string | null
expire
string<date-time> | null

Response

OK

status
string
required
Allowed value: "ok"
data
object
required