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": "DSbhPMvgX@MyOibMsA.com",
"domain": "is9DcSg",
"image": "https://KF.q.com//HwiRENkUd",
"name": "RibplPqNu56",
"phone": "+1-924-831-7735"
}'
200 OK
Response{
"allow_users_in_domain_to_auto_join": false,
"billing_email": "lv@D.com",
"billing_email_verified": "2024-05-07T19:30:46.987Z",
"block": "payment_method_failed",
"can_train_on_data": false,
"created_at": "2024-05-07T19:30:46.987Z",
"domain": "3N5CI7idtmKG6Nn6IbAaONLh3AeGb",
"id": "36c0f318-760b-49cb-bd34-de5e87100d60",
"image": "https://s2.csPffk.com/3/VHaTuLuaAmea",
"name": "dYfVKLwkdNVtPe7K",
"phone": "+1-134-233-1782",
"stripe_id": "WBQ11KjdkNpjf",
"updated_at": "2024-05-07T19:30:46.987Z"
}