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": "@BvdIhyB.com",
"domain": "",
"image": "https://T4TDzA9.1RLhFCw.com/IcGra5TJ9Hn/NW4X",
"name": "N3spGAX1yvK6fUrjgTobvB",
"phone": "+1-257-438-4639"
}'
200 OK
Response{
"allow_users_in_domain_to_auto_join": true,
"billing_email": "BFMG9pS@g.com",
"billing_email_verified": "2025-01-07T20:43:41.403Z",
"block": "missing_payment_method",
"can_train_on_data": true,
"created_at": "2025-01-07T20:43:41.403Z",
"domain": "em7VrLpf",
"id": "3c9207fd-eca4-49df-838c-f28f9812cd00",
"image": "https://rzupa6CfmT.CTFzdPszzGp.com/Hzp8H/th",
"name": "ENHUwSqDdPqPgLS2M9BS",
"phone": "+1-675-436-4360",
"stripe_id": "w",
"updated_at": "2025-01-07T20:43:41.403Z"
}