What are the organisation parameters for Gateway REST API?


#1

Hi,

I guess the documentation might be wrong, as it provides no description what to put in the body of the request for creating or modifying organization keys and data:

https://tyk.io/docs/tyk-api-gateway-v-2-0/tyk-gateway-rest-api/organisation-quotas/

The relevant part of the sample request looks like this:
{{% content link=”/v1.9/object_examples/org_session/” view=”fragment” %}}

Could you provide me with information on how to create and manage organizations with quotas for its keys?

Gergely


#2

You’re right - we need to put that document back in!

The answer is:


{
    "quota_max": 60,
    "quota_renews": 1406121006,
    "quota_remaining": 0,
    "quota_renewal_rate": 60,
    "org_id": "53ac07777cbb8c2d53000002"
}


#3

Thanks a lot!

Could you also help me understand what these parameters exactly set?

(I have the same question with other parts of the API documentation, like I have no idea what the “allowance” stands for in token creation/update.)


#4

Found it! Sorry, somehow I missed it:
https://tyk.io/docs/tyk-api-gateway-v-2-0/quotas-rate-limits-and-security/understanding-tyk-token-session-objects/