API → Users → Update your user
Parameters
Name
Type
Req.
Returns
- 200 OK
successful operation
Name
Type
Req.
body
objectoptionalObject Properties
Possible values
missing_payment_method
: The user is missing a payment method and has exceeded their free API call credits for the month.payment_method_failed
: The users payment method has failed.
put
/user$ curl -X PUT "https://api.zoo.dev/user" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '{
"company": "qZ1HFRXIfEABYH0LdWHyKtd13I5ZRW",
"discord": "F8MLggL5u82H1M2e6iCfzmsZAA",
"first_name": "1dxs2",
"github": "Z9KIlZPtrcN",
"image": "https://xrkDzQAxY.D.com/YP/uix81SuU",
"last_name": "6yqwQm9s3rAMqOdlDiKNeRno0",
"phone": "+1-571-831-1652"
}'
200 OK
Response{
"block": "payment_method_failed",
"can_train_on_data": true,
"company": "5aArmu0cwdnXPX9RHJWKouH0qUI",
"created_at": "2025-01-07T17:18:17.236Z",
"discord": "ZdmT9hGwG0mKYxMG0u1X",
"email": "oOv3Aagt2@5WD.com",
"email_verified": "2025-01-07T17:18:17.236Z",
"first_name": "",
"github": "V0nkCF3RnjuVq9",
"id": "16985a7f-4eb8-4311-91c5-5f5a02e3ffce",
"image": "https://4JhX11hnwLp..com/JWzaHIc/JuyEVmYwWj",
"is_service_account": false,
"last_name": "G",
"name": "G5v",
"phone": "+1-931-753-7447",
"updated_at": "2025-01-07T17:18:17.236Z"
}