API → Orgs → Update an org
Parameters
Name
Type
Req.
bodyapplication/json
objectoptionalObject Properties
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
/org$ curl -X PUT "https://api.zoo.dev/org" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '{
"allow_users_in_domain_to_auto_join": false,
"billing_email": "quL@UAVByeAI.com",
"domain": "9DXOL1vsrgpOhlA5SrOM6aO",
"image": "https://EK0nz..com/T0KxTbwbl/VQ",
"name": "UvHjY22Ah",
"phone": "+1-309-390-9808"
}'
200 OK
Response{
"allow_users_in_domain_to_auto_join": true,
"billing_email": "Ysgs4L@.com",
"billing_email_verified": "2025-01-09T18:26:00.297Z",
"block": "missing_payment_method",
"can_train_on_data": false,
"created_at": "2025-01-09T18:26:00.297Z",
"domain": "nvtVaCxvS",
"id": "48b85611-9a89-4277-a09f-cf6cbc7d5307",
"image": "https://BA.bKRed.com/0zbWvCldGCPW/6B8DcLBNG5",
"name": "JkoFHGise7g8U",
"phone": "+1-194-227-5011",
"stripe_id": "Hh",
"updated_at": "2025-01-09T18:26:00.297Z"
}