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": "I7BxGu@ipH.com",
"domain": "HuJUBjPLzldv",
"image": "https://k4k5hxOgi.Ym.com/LOU8Qn/0CS",
"name": "HEUjeMF",
"phone": "+1-886-641-3655"
}'
200 OK
Response{
"allow_users_in_domain_to_auto_join": false,
"billing_email": "Dwb5@.com",
"billing_email_verified": "2024-11-06T08:38:01.127Z",
"block": "missing_payment_method",
"can_train_on_data": true,
"created_at": "2024-11-06T08:38:01.128Z",
"domain": "z9CAFXr1pFdLwaqzb1iM1HHrvOD",
"id": "21998af3-6673-48a0-9a9a-b7c26116aa35",
"image": "https://MJ0.ImmetFQdud.com/g7YEQ4A/2TD08OYImTze",
"name": "zPjCrmT",
"phone": "+1-569-572-7041",
"stripe_id": "1zh5GcaekuFaFNFO",
"updated_at": "2024-11-06T08:38:01.128Z"
}