Skip to main content
PATCH
/
api
/
v1
/
user
/
{uuid}
Update user
curl --request PATCH \
  --url https://api.paylora.org/api/v1/user/{uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "customer",
  "status": "verified"
}
'
{
  "success": true,
  "data": {
    "user_uuid": "<string>",
    "email": "<string>",
    "telegram_id": "<string>",
    "tg_name": "<string>",
    "status": "<string>",
    "created_on": "2023-11-07T05:31:56Z",
    "role": "<string>",
    "wallet": "0xDeF456...",
    "signer_address": "0xDeF456..."
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

uuid
string
required

Body

application/json
role
enum<string>
required
Available options:
customer,
admin
Example:

"customer"

status
enum<string>
Available options:
created,
purged,
verified,
whitelisted_pending,
whitelisted
Example:

"verified"

Response

Resource model

success
boolean
required

Indicates if the request was successful

Example:

true

data
object
required

The data returned by the API