Update Organisation Key
This work similar to Keys API except that Key ID is always equals Organisation ID
For Gateway v2.6.0 onwards, you can now set rate limits at the organisation level by using the following fields - allowance and rate. These are the number of allowed requests for the specified per value, and need to be set to the same value. If you don't want to have organisation level rate limiting, set rate or per to zero, or don't add them to your request.
Path parameters
The Key ID
Query parameters
Adding the reset_quota parameter and setting it to 1, will cause Tyk reset the organisations quota in the live quota manager, it is recommended to use this mechanism to reset organisation-level access if a monthly subscription is in place.
Request body
Example request
{
"alias": "portal-developer@example.org",
"allowance": 1000,
"apply_policies": [
"641c15dd0fffb800010197bf"
],
"apply_policy_id": "641c15dd0fffb800010197bf",
"date_created": "2024-03-13T03:56:46.568042549Z",
"enable_detailed_recording": true,
"expires": 1712895619,
"last_updated": "1710302206",
"max_query_depth": -1,
"meta_data": {
"tyk_developer_id": "62b3fb9a1d5e4f00017226f5"
},
"monitor": {
"trigger_limits": [
80,
60,
50
]
},
"org_id": "5e9d9544a1dcd60001d0ed20",
"per": 5,
"post_expiry_action": "delete",
"quota_max": 20000,
"quota_remaining": 20000,
"quota_renewal_rate": 31556952,
"quota_renews": 1710302205,
"rate": 1,
"tags": [
"edge",
"edge-eu"
],
"throttle_interval": 10,
"throttle_retry_limit": 1000
}Response
OK
Example response
{
"action": "modified",
"key": "b13d928b9972bd18",
"status": "ok"
}Changes
Changed in 6 of the 52 revisions of this API.221962
- ○
added the new optional request property
post_expiry_actionnew-optional-request-property
- ○
added the new optional request property
post_expiry_grace_periodnew-optional-request-property
- ○
- ○
the request property
access_rights/additionalProperties/endpoints/items/methods/items/limit/smoothingbecame nullablerequest-property-became-nullable
- ○
the request property
access_rights/additionalProperties/limit/smoothingbecame nullablerequest-property-became-nullable
- ○
the request property
smoothingbecame nullablerequest-property-became-nullable
- ○
- ▲
added the new path request parameter
keyIDnew-request-path-parameter
- ▲
the
meta_data/additionalProperties/request property type/format changed fromobject/to/request-property-type-changed
- ●
removed the request property
access_rights/additionalProperties/limit/set_by_policyrequest-property-removed
- ○
added the new optional request property
access_rights/additionalProperties/allowance_scopenew-optional-request-property
- ○
added the new optional request property
access_rights/additionalProperties/allowed_typesnew-optional-request-property
- ○
added the new optional request property
access_rights/additionalProperties/disable_introspectionnew-optional-request-property
- ○
added the new optional request property
access_rights/additionalProperties/field_access_rightsnew-optional-request-property
- ○
added the new optional request property
access_rights/additionalProperties/limit/max_query_depthnew-optional-request-property
- ○
added the new optional request property
access_rights/additionalProperties/limit/smoothingnew-optional-request-property
- ○
added the new optional request property
access_rights/additionalProperties/restricted_typesnew-optional-request-property
- ○
added the new optional request property
date_creatednew-optional-request-property
- ○
added the new optional request property
enable_detailed_recordingnew-optional-request-property
- ○
added the new optional request property
enable_http_signature_validationnew-optional-request-property
- ○
added the new optional request property
max_query_depthnew-optional-request-property
- ○
added the new optional request property
rsa_certificate_idnew-optional-request-property
- ○
the request property
access_rightsbecame nullablerequest-property-became-nullable
- ○
the request property
access_rights/additionalProperties/allowed_urlsbecame nullablerequest-property-became-nullable
- ○
the request property
access_rights/additionalProperties/allowed_urls/items/methodsbecame nullablerequest-property-became-nullable
- ○
the request property
access_rights/additionalProperties/versionsbecame nullablerequest-property-became-nullable
- ○
the request property
apply_policiesbecame nullablerequest-property-became-nullable
- ○
the request property
meta_databecame nullablerequest-property-became-nullable
- ○
the request property
monitor/trigger_limitsbecame nullablerequest-property-became-nullable
- ○
the request property
oauth_keysbecame nullablerequest-property-became-nullable
- ○
the request property
tagsbecame nullablerequest-property-became-nullable
- ○
request property
apply_policy_iddeprecatedrequest-property-deprecated
- ○
request property
enable_detail_recordingdeprecatedrequest-property-deprecated
- ○
the
access_rights/additionalProperties/endpoints/items/methods/items/limit/perrequest property type/format was generalized fromnumber/doubletonumber/request-property-type-generalized
- ○
the
access_rights/additionalProperties/endpoints/items/methods/items/limit/raterequest property type/format was generalized fromnumber/doubletonumber/request-property-type-generalized
- ○
the
access_rights/additionalProperties/endpoints/items/methods/items/limit/smoothing/delayrequest property type/format was generalized frominteger/int64tointeger/request-property-type-generalized
- ○
the
access_rights/additionalProperties/endpoints/items/methods/items/limit/smoothing/steprequest property type/format was generalized frominteger/int64tointeger/request-property-type-generalized
- ○
the
access_rights/additionalProperties/endpoints/items/methods/items/limit/smoothing/thresholdrequest property type/format was generalized frominteger/int64tointeger/request-property-type-generalized
- ○
the
access_rights/additionalProperties/endpoints/items/methods/items/limit/smoothing/triggerrequest property type/format was generalized fromnumber/doubletonumber/request-property-type-generalized
- ○
the
access_rights/additionalProperties/limit/perrequest property type/format was generalized fromnumber/doubletonumber/request-property-type-generalized
- ○
the
access_rights/additionalProperties/limit/quota_maxrequest property type/format was generalized frominteger/int64tointeger/request-property-type-generalized
- ○
the
access_rights/additionalProperties/limit/quota_remainingrequest property type/format was generalized frominteger/int64tointeger/request-property-type-generalized
- ○
the
access_rights/additionalProperties/limit/quota_renewal_raterequest property type/format was generalized frominteger/int64tointeger/request-property-type-generalized
- ○
the
access_rights/additionalProperties/limit/quota_renewsrequest property type/format was generalized frominteger/int64tointeger/request-property-type-generalized
- ○
the
access_rights/additionalProperties/limit/raterequest property type/format was generalized fromnumber/doubletonumber/request-property-type-generalized
- ○
the
access_rights/additionalProperties/limit/throttle_intervalrequest property type/format was generalized fromnumber/doubletonumber/request-property-type-generalized
- ○
the
access_rights/additionalProperties/limit/throttle_retry_limitrequest property type/format was generalized frominteger/int64tointeger/request-property-type-generalized
- ○
the
monitor/trigger_limits/items/request property type/format was generalized fromnumber/doubletonumber/request-property-type-generalized
- ○
the
smoothing/delayrequest property type/format was generalized frominteger/int64tointeger/request-property-type-generalized
- ○
the
smoothing/steprequest property type/format was generalized frominteger/int64tointeger/request-property-type-generalized
- ○
the
smoothing/thresholdrequest property type/format was generalized frominteger/int64tointeger/request-property-type-generalized
- ○
the
smoothing/triggerrequest property type/format was generalized fromnumber/doubletonumber/request-property-type-generalized
- ○
the
throttle_retry_limitrequest property type/format was generalized frominteger/int64tointeger/request-property-type-generalized
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
added the non-success response with the status
403response-non-success-status-added
- ○
added the non-success response with the status
404response-non-success-status-added
- ○
added the non-success response with the status
500response-non-success-status-added
This revision also has 28 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ●
removed the request property
access_rights/additionalProperties/limit/smoothingrequest-property-removed
- ○
added the new optional request property
access_rights/additionalProperties/endpointsnew-optional-request-property
- ●
- ○
added the new optional request property
access_rights/additionalProperties/limit/smoothingnew-optional-request-property
- ○
added the new optional request property
smoothingnew-optional-request-property
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
the request property
access_rightsbecame not nullablerequest-property-became-not-nullable
- ▲
the request property
access_rights/additionalProperties/allowed_urlsbecame not nullablerequest-property-became-not-nullable
- ▲
the request property
access_rights/additionalProperties/allowed_urls/items/methodsbecame not nullablerequest-property-became-not-nullable
- ▲
the request property
access_rights/additionalProperties/versionsbecame not nullablerequest-property-became-not-nullable
- ▲
the request property
apply_policiesbecame not nullablerequest-property-became-not-nullable
- ▲
the request property
meta_databecame not nullablerequest-property-became-not-nullable
- ▲
the request property
monitor/trigger_limitsbecame not nullablerequest-property-became-not-nullable
- ▲
the request property
oauth_keysbecame not nullablerequest-property-became-not-nullable
- ▲
the request property
tagsbecame not nullablerequest-property-became-not-nullable
- ▲
the
access_rights/additionalProperties/limit/perrequest property type/format changed fromnumber/tonumber/doublerequest-property-type-changed
- ▲
the
access_rights/additionalProperties/limit/quota_maxrequest property type/format changed frominteger/tointeger/int64request-property-type-changed
- ▲
the
access_rights/additionalProperties/limit/quota_remainingrequest property type/format changed frominteger/tointeger/int64request-property-type-changed
- ▲
the
access_rights/additionalProperties/limit/quota_renewal_raterequest property type/format changed frominteger/tointeger/int64request-property-type-changed
- ▲
the
access_rights/additionalProperties/limit/quota_renewsrequest property type/format changed frominteger/tointeger/int64request-property-type-changed
- ▲
the
access_rights/additionalProperties/limit/raterequest property type/format changed fromnumber/tonumber/doublerequest-property-type-changed
- ▲
the
access_rights/additionalProperties/limit/throttle_intervalrequest property type/format changed fromnumber/tonumber/doublerequest-property-type-changed
- ▲
the
access_rights/additionalProperties/limit/throttle_retry_limitrequest property type/format changed frominteger/tointeger/int64request-property-type-changed
- ▲
the
meta_data/additionalProperties/request property type/format changed from/toobject/request-property-type-changed
- ▲
the
monitor/trigger_limits/items/request property type/format changed fromnumber/tonumber/doublerequest-property-type-changed
- ▲
the
throttle_retry_limitrequest property type/format changed frominteger/tointeger/int64request-property-type-changed
- ●
deleted the
pathrequest parameterkeyIDrequest-parameter-removed
- ●
removed the request property
access_rights/additionalProperties/allowance_scoperequest-property-removed
- ●
removed the request property
access_rights/additionalProperties/allowed_typesrequest-property-removed
- ●
removed the request property
access_rights/additionalProperties/disable_introspectionrequest-property-removed
- ●
removed the request property
access_rights/additionalProperties/endpointsrequest-property-removed
- ●
removed the request property
access_rights/additionalProperties/field_access_rightsrequest-property-removed
- ●
removed the request property
access_rights/additionalProperties/limit/max_query_depthrequest-property-removed
- ●
removed the request property
access_rights/additionalProperties/limit/smoothingrequest-property-removed
- ●
removed the request property
access_rights/additionalProperties/restricted_typesrequest-property-removed
- ●
removed the request property
date_createdrequest-property-removed
- ●
removed the request property
enable_detailed_recordingrequest-property-removed
- ●
removed the request property
enable_http_signature_validationrequest-property-removed
- ●
removed the request property
max_query_depthrequest-property-removed
- ●
removed the request property
post_expiry_actionrequest-property-removed
- ●
removed the request property
post_expiry_grace_periodrequest-property-removed
- ●
removed the request property
rsa_certificate_idrequest-property-removed
- ●
removed the request property
smoothingrequest-property-removed
- ○
added the new optional request property
access_rights/additionalProperties/limit/set_by_policynew-optional-request-property
- ○
request property
apply_policy_idreactivatedrequest-property-reactivated
- ○
request property
enable_detail_recordingreactivatedrequest-property-reactivated
- ○
removed the non-success response with the status
400response-non-success-status-removed
- ○
removed the non-success response with the status
403response-non-success-status-removed
- ○
removed the non-success response with the status
404response-non-success-status-removed
- ○
removed the non-success response with the status
500response-non-success-status-removed
This revision also has 155 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲