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": "9OwE@y7pS.com",
"domain": "mehL9M35cMjyWNQvng9x",
"image": "https://bjfruu.8VjrxncXTcv4.com//ZtdUtv4o6am",
"name": "UCZY02y9NoMad",
"phone": "+1-369-321-3387"
}'
200 OK
Response{
"allow_users_in_domain_to_auto_join": false,
"billing_email": "z83Lp@KMgpOFL6p.com",
"billing_email_verified": "2025-02-11T16:12:23.448Z",
"block": "missing_payment_method",
"can_train_on_data": true,
"created_at": "2025-02-11T16:12:23.448Z",
"domain": "y1Bvt6W",
"id": "bf131c50-ecf2-4ad9-bf40-f3922ccb6b85",
"image": "https://j1.s4nSEqP.com/ICgtoZF/jmkub",
"name": "ZT3HucUjc2cvrVaYo",
"phone": "+1-346-427-6242",
"stripe_id": "u4",
"updated_at": "2025-02-11T16:12:23.448Z"
}