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": true,
"billing_email": "@k.com",
"domain": "WdvO",
"image": "https://uA61AqdEOd5.WMHwhr0H.com/G0KWH5mqlp5/V4yUN3E",
"name": "B",
"phone": "+1-302-749-5205"
}'
200 OK
Response{
"allow_users_in_domain_to_auto_join": true,
"billing_email": "F1Y@.com",
"billing_email_verified": "2025-03-12T01:36:35.566Z",
"block": "payment_method_failed",
"can_train_on_data": true,
"created_at": "2025-03-12T01:36:35.566Z",
"domain": "ODUqYbcpt5Ct",
"id": "22056b3d-8907-4f97-a1ca-458c44b31c38",
"image": "https://n3iy0tU.5keU6JuNkYCr.com/LqCeTzigEufH/",
"name": "M2wK9GEJ",
"phone": "+1-614-487-8970",
"stripe_id": "6iy3EOyZc6dHvdC1qtOy1XZmH",
"updated_at": "2025-03-12T01:36:35.566Z"
}