Creates a new quota
Creates a new quota
Path Parameters
- instanceId string required
- application/json
- application/grpc
- application/grpc-web+proto
Request Body required
- unit the unit a quota should be imposed on
Possible values: [
UNIT_UNIMPLEMENTED
,UNIT_REQUESTS_ALL_AUTHENTICATED
,UNIT_ACTIONS_ALL_RUN_SECONDS
]Default value:
UNIT_UNIMPLEMENTED
the unit a quota should be imposed on
- from date-time
the starting time from which the current quota period is calculated from. This is relevant for querying the current usage.
- resetInterval the quota periods duration
the quota periods duration
- amount uint64
the quota amount of units
- limit whether ZITADEL should block further usage when the configured amount is used
whether ZITADEL should block further usage when the configured amount is used
notifications object[]
the handlers, ZITADEL executes when certain quota percentages are reached
Array [percent int64The percentage relative to the quotas amount on which the call_url should be called.
repeat booleanIf true, the call_url is called each time a factor of percentage is reached.
callUrl stringThe URL, which is called with HTTP method POST and a JSON payload with the properties "unit", "id" (notification id), "callURL", "periodStart", "threshold" and "usage".
]
Request Body required
- unit the unit a quota should be imposed on
Possible values: [
UNIT_UNIMPLEMENTED
,UNIT_REQUESTS_ALL_AUTHENTICATED
,UNIT_ACTIONS_ALL_RUN_SECONDS
]Default value:
UNIT_UNIMPLEMENTED
the unit a quota should be imposed on
- from date-time
the starting time from which the current quota period is calculated from. This is relevant for querying the current usage.
- resetInterval the quota periods duration
the quota periods duration
- amount uint64
the quota amount of units
- limit whether ZITADEL should block further usage when the configured amount is used
whether ZITADEL should block further usage when the configured amount is used
notifications object[]
the handlers, ZITADEL executes when certain quota percentages are reached
Array [percent int64The percentage relative to the quotas amount on which the call_url should be called.
repeat booleanIf true, the call_url is called each time a factor of percentage is reached.
callUrl stringThe URL, which is called with HTTP method POST and a JSON payload with the properties "unit", "id" (notification id), "callURL", "periodStart", "threshold" and "usage".
]
Request Body required
- unit the unit a quota should be imposed on
Possible values: [
UNIT_UNIMPLEMENTED
,UNIT_REQUESTS_ALL_AUTHENTICATED
,UNIT_ACTIONS_ALL_RUN_SECONDS
]Default value:
UNIT_UNIMPLEMENTED
the unit a quota should be imposed on
- from date-time
the starting time from which the current quota period is calculated from. This is relevant for querying the current usage.
- resetInterval the quota periods duration
the quota periods duration
- amount uint64
the quota amount of units
- limit whether ZITADEL should block further usage when the configured amount is used
whether ZITADEL should block further usage when the configured amount is used
notifications object[]
the handlers, ZITADEL executes when certain quota percentages are reached
Array [percent int64The percentage relative to the quotas amount on which the call_url should be called.
repeat booleanIf true, the call_url is called each time a factor of percentage is reached.
callUrl stringThe URL, which is called with HTTP method POST and a JSON payload with the properties "unit", "id" (notification id), "callURL", "periodStart", "threshold" and "usage".
]
- 200
- 403
- 404
- default
A successful response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details object
sequence uint64on read: the sequence of the last event reduced by the projection
on manipulation: the timestamp of the event(s) added by the manipulation
creationDate date-timeon read: the timestamp of the first event of the object
on create: the timestamp of the event(s) added by the manipulation
changeDate date-timeon read: the timestamp of the last event reduced by the projection
on manipulation: the
resourceOwner resource_owner is the organization an object belongs to
{
"details": {
"sequence": "2",
"creationDate": "2023-05-12",
"changeDate": "2023-05-12",
"resourceOwner": "69629023906488334"
}
}
- Schema
- Example (from schema)
Schema
details object
sequence uint64on read: the sequence of the last event reduced by the projection
on manipulation: the timestamp of the event(s) added by the manipulation
creationDate date-timeon read: the timestamp of the first event of the object
on create: the timestamp of the event(s) added by the manipulation
changeDate date-timeon read: the timestamp of the last event reduced by the projection
on manipulation: the
resourceOwner resource_owner is the organization an object belongs to
{
"details": {
"sequence": "2",
"creationDate": "2023-05-12",
"changeDate": "2023-05-12",
"resourceOwner": "69629023906488334"
}
}
- Schema
- Example (from schema)
Schema
details object
sequence uint64on read: the sequence of the last event reduced by the projection
on manipulation: the timestamp of the event(s) added by the manipulation
creationDate date-timeon read: the timestamp of the first event of the object
on create: the timestamp of the event(s) added by the manipulation
changeDate date-timeon read: the timestamp of the last event reduced by the projection
on manipulation: the
resourceOwner resource_owner is the organization an object belongs to
{
"details": {
"sequence": "2",
"creationDate": "2023-05-12",
"changeDate": "2023-05-12",
"resourceOwner": "69629023906488334"
}
}
Returned when the user does not have permission to access the resource.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- code int32
- message string
details object[]
Array [@type string]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}