API → UsersUpdate a subscription for a userhidden
hidden
Parameters
Name
Type
Req.
bodyapplication/json
objectoptionalObject Properties
Possible values
free
: The free tier.pro
: The pro tier.
Returns
- 200 OK
successful operation
Name
Type
Req.
body
objectoptionalObject Properties
modeling_app
objectoptionalObject Properties
Possible values
free
: The free tier.pro
: The pro tier.team
: The team tier.enterprise
: The enterprise tier.
price
oneOfoptionalOne of
enterprise
objectoptionalObject Properties
Possible values
enterprise
Possible values
community
: Community support.standard_email
: Standard email support.priority_email
: Priority email support.premium
: Premium support.
Possible values
always
: The data is always used for training and cannot be turned off.default_on
: The data is used for training by default, but can be turned off.default_off
: The data is not used for training by default, but can be turned on.
type
oneOfoptionalOne of
individual
objectoptionalObject Properties
Possible values
individual
organization
objectoptional
put
/users/{id}/payment/subscriptions$ curl -X PUT "https://api.zoo.dev/users/{id}/payment/subscriptions" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '{
"modeling_app": "free",
"pay_annually": true
}'
200 OK
Response{
"modeling_app": {
"annual_discount": 4,
"description": "GPshvbhjaiuLbzU82ESzoglvdA4W",
"endpoints_included": [
"modeling"
],
"features": [
{
"info": "Sf12jUnKZ6kn3YLOXcFPmXHqpeK2reWPK1Rr2a5u8aT0FZIoM2MbnBeXJEIxMLsYZx"
}
],
"monthly_pay_as_you_go_api_credits": 24,
"monthly_pay_as_you_go_api_credits_monetary_value": "21.06",
"name": "free",
"pay_as_you_go_api_credit_price": "38.23",
"price": {
"interval": "month",
"price": "8.89",
"type": "flat"
},
"share_links": [
"organization_only"
],
"support_tier": "community",
"training_data_behavior": "always",
"type": {
"type": "individual"
},
"zoo_tools_included": [
"modeling_app"
]
}
}