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": "MbVl4gm@U0yd.com",
"domain": "lv1jssunkMSNnxWuW1SIYP",
"image": "https://vAOi0Zg1.8POuOCj2.com/KAtMC/ePJpz1",
"name": "NbJVhJ",
"phone": "+1-488-747-6963"
}'
200 OK
Response{
"allow_users_in_domain_to_auto_join": true,
"billing_email": "TIAdMqGQA@3V9TWQ5GEm.com",
"billing_email_verified": "2024-09-19T16:12:02.789Z",
"block": "payment_method_failed",
"can_train_on_data": false,
"created_at": "2024-09-19T16:12:02.789Z",
"domain": "m2vVT58voNiBX70k",
"id": "780ca55b-9096-493a-9088-34763ddff096",
"image": "https://.nPa7u.com/KHnNiEs/t3a",
"name": "m09MWoAd8ghxtrbYyhYih7",
"phone": "+1-836-423-1336",
"stripe_id": "iW8893e2nVGy",
"updated_at": "2024-09-19T16:12:02.789Z"
}