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": "nA6uturC0Ujy",
"discord": "Mlxi4DHU",
"first_name": "k",
"github": "2EVxXIULbzjaWgBmKV96rTKdt973x",
"image": "https://0Wy.Ko8956yL5QVW.com/edonAW/Qx",
"last_name": "SV0d9E0FMQCjwuJFX2AzW",
"phone": "+1-653-489-1214"
}'
200 OK
Response{
"block": "missing_payment_method",
"can_train_on_data": false,
"company": "s82Y7W1Rz5Lw2NQ",
"created_at": "2024-07-27T01:16:23.485Z",
"discord": "WiTBRBIQ",
"email": "@WPmcDB.com",
"email_verified": "2024-07-27T01:16:23.485Z",
"first_name": "Tgiphd1DVtDbMYlPrZ3aTrpHwz4Tj",
"github": "3YEMY5JTTosLaNVfWaeTZvaNiz",
"id": "7d7265ed-eba2-4bd4-89a7-98b253771079",
"image": "https://.KVfosAy.com/EMM/Xn00Wzg",
"is_service_account": false,
"last_name": "Kt1ZLn1OjdnHMYc7pJx9aT",
"name": "LmX0shgHwhJKfI",
"phone": "+1-380-169-1294",
"updated_at": "2024-07-27T01:16:23.485Z"
}