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": "IBabujhh@mxN.com",
"domain": "on4ClKMsVy98lD",
"image": "https://W8uKprdzt.vDTMzdfbH.com/GNIkhP/RcwDeQSa",
"name": "b2vT6OEBRu5qgAbCALJwHjvIx",
"phone": "+1-496-693-4574"
}'
200 OK
Response{
"allow_users_in_domain_to_auto_join": false,
"billing_email": "btGsz1OeUp@GI1MTZ3kB.com",
"billing_email_verified": "2024-12-19T17:49:00.989Z",
"block": "missing_payment_method",
"can_train_on_data": false,
"created_at": "2024-12-19T17:49:00.989Z",
"domain": "x",
"id": "6679848a-4bed-4293-bcac-f4babc5cb4ac",
"image": "https://jQdpmBPPtaA.mcF1VhShA9.com/GkUvEHraUr6/VcRcB",
"name": "BGMuwqa",
"phone": "+1-993-292-6008",
"stripe_id": "eXCNtGwgxn52WJAX",
"updated_at": "2024-12-19T17:49:00.989Z"
}