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": "so8GAOQ72q",
"discord": "NBXdsDaKrXJ3Mygv56i",
"first_name": "NOLo0ti0bsNGk3rmqg",
"github": "vK1WQdG9L",
"image": "https://YdDwwD.HUC.com/gDfw/Q5Rf3Qej",
"last_name": "XqqOrmAOJOJwKgUd",
"phone": "+1-876-211-7591"
}'
200 OK
Response{
"block": "payment_method_failed",
"can_train_on_data": true,
"company": "ts7N1HqwqzD",
"created_at": "2024-12-19T17:50:21.104Z",
"discord": "KiA4ZpD9Kkzwk255",
"email": "0tTEF@AkSx4KW.com",
"email_verified": "2024-12-19T17:50:21.104Z",
"first_name": "wZS0aoOOt0ZyZkSL47o2tTuLeP3wK",
"github": "3NT",
"id": "1458b95d-59a6-4654-9345-2ed3d68db198",
"image": "https://D6wklyqrW.3Lexo0.com/DKvJLJJ2X5/lnTajf3mD4",
"is_service_account": false,
"last_name": "ky43dMqdqlgjs1W",
"name": "nI8ul7",
"phone": "+1-508-253-5398",
"updated_at": "2024-12-19T17:50:21.104Z"
}