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": "lHIN@njuhg.com",
"domain": "Ff0JVHfTZn",
"image": "https://TTRVYggy.ThZa62hi6MvW.com/kB/IPTYyFC5pcs",
"name": "kG3hVOBRE779Dp4",
"phone": "+1-336-744-5856"
}'
200 OK
Response{
"allow_users_in_domain_to_auto_join": false,
"billing_email": "TDNb@.com",
"billing_email_verified": "2025-02-21T16:37:26.553Z",
"block": "missing_payment_method",
"can_train_on_data": true,
"created_at": "2025-02-21T16:37:26.553Z",
"domain": "0nGmCW6XG",
"id": "d97fe115-3eae-4a2d-bd9c-62335e7efe18",
"image": "https://s0er.V.com/U8V/CvRDcz",
"name": "DlvKJG8ldjWiJh17",
"phone": "+1-231-844-2014",
"stripe_id": "nQ7F392t7gVkACPUwb6blLuYf",
"updated_at": "2025-02-21T16:37:26.553Z"
}