Skip to main content
PATCH
/
users
/
{user}
Update administrative user fields
curl --request PATCH \
  --url https://demo.dezerx.com/api/application/users/{user} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "email": "jsmith@example.com",
  "role": "<string>",
  "avatar": "<string>",
  "banner": "<string>",
  "footer_message": "<string>",
  "contact_info": {},
  "customer_pin": "<string>",
  "loyalty_points": 1,
  "subscribed_to_emails": true,
  "email_verified": true,
  "phone_verified": true,
  "google2fa_enabled": true,
  "discord_id": "<string>",
  "google_id": "<string>",
  "github_id": "<string>",
  "ip": "<string>",
  "supported_creator_code": "<string>",
  "creator_code_locked": true,
  "stripe_id": "<string>",
  "pm_type": "<string>",
  "pm_last_four": "<string>",
  "pm_notes": "<string>"
}
'
{
  "data": "<unknown>",
  "meta": {},
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

user
integer
required

Body

application/json
name
string
Maximum string length: 255
email
string<email>
role
string
avatar
string | null
banner
string | null
contact_info
object
customer_pin
string | null
loyalty_points
integer
Required range: x >= 0
subscribed_to_emails
boolean
email_verified
boolean
phone_verified
boolean
google2fa_enabled
boolean
discord_id
string | null
google_id
string | null
github_id
string | null
ip
string<ip> | null
supported_creator_code
string | null
creator_code_locked
boolean
stripe_id
string | null
pm_type
string | null
pm_last_four
string | null
Maximum string length: 4
pm_notes
string | null

Response

Successful response

data
any
required
meta
object
required
message
string