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": "UK6sHoPkigK80Ka",
"discord": "JvZx3i8Ovc",
"first_name": "X3Qtuf2kn",
"github": "YsZtmwjVN1QPhVHaoaz1KxT",
"image": "https://gtSvV.h.com/0Vfr8LV9020L/O7",
"last_name": "0drCtOhssGze",
"phone": "+1-439-453-6511"
}'
200 OK
Response{
"block": "payment_method_failed",
"can_train_on_data": true,
"company": "COnSfQb",
"created_at": "2024-10-29T16:18:32.983Z",
"discord": "YAnXE2NxfD3OxE3nA5WoQhrOn98YhY",
"email": "RvnPVtr@5ui6kV.com",
"email_verified": "2024-10-29T16:18:32.983Z",
"first_name": "p6XQOKimRDZDifE7phVQtSz",
"github": "MP",
"id": "361b4150-58c7-4c5a-b02f-f3ce8e55fd9b",
"image": "https://k..com/UoFV8pSBR46/",
"is_service_account": true,
"last_name": "tp1LVD7gftPkgXelEpjMDQSnpy",
"name": "cc5aReyTjqEEOhpW91HUBpR",
"phone": "+1-990-645-5592",
"updated_at": "2024-10-29T16:18:32.983Z"
}