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": "bdkgK86l4klwwnc4GRrqNV3",
"discord": "vQu8mBt89puk",
"first_name": "s3",
"github": "1",
"image": "https://42GJ.8AGAIESSq.com/se7/FK2l",
"last_name": "Nn5joqcJootVI",
"phone": "+1-932-196-5789"
}'
200 OK
Response{
"block": "missing_payment_method",
"can_train_on_data": false,
"company": "kO9Bh0jn9awptV5",
"created_at": "2024-09-19T16:12:39.870Z",
"discord": "xo1QUw6",
"email": "b4RP3NN@xnFO4M.com",
"email_verified": "2024-09-19T16:12:39.870Z",
"first_name": "Fxjvv3F9JOwAjkQ4NHqp",
"github": "0X4e",
"id": "1e1d9bf3-aec3-46e8-b81a-3e9ce565f69c",
"image": "https://mYGUTd00nI.AX.com/3h/iTlb3",
"is_service_account": true,
"last_name": "lu0SqFLgFijnNnqnzDM",
"name": "oPSaX6I",
"phone": "+1-139-607-5267",
"updated_at": "2024-09-19T16:12:39.870Z"
}