Request a limit increase
import requests
url = "https://platform.ankra.app/api/v1/org/billing/limit-request"
payload = {
"requested_value": 123,
"justification": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({requested_value: 123, justification: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/billing/limit-request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/billing/limit-request \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requested_value": 123,
"justification": "<string>"
}
'{
"id": "<string>",
"limit_kind": "playground_memory",
"requested_value": 123,
"justification": "<string>",
"status": "<string>",
"requested_at": "2023-11-07T05:31:56Z",
"reviewed_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Billing
Request a limit increase
Submits a justified request to raise a limit the organisation cannot raise itself; staff review it. One request per kind may be pending. Requires billing.manage.
POST
/
api
/
v1
/
org
/
billing
/
limit-request
Request a limit increase
import requests
url = "https://platform.ankra.app/api/v1/org/billing/limit-request"
payload = {
"requested_value": 123,
"justification": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({requested_value: 123, justification: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/billing/limit-request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/billing/limit-request \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requested_value": 123,
"justification": "<string>"
}
'{
"id": "<string>",
"limit_kind": "playground_memory",
"requested_value": 123,
"justification": "<string>",
"status": "<string>",
"requested_at": "2023-11-07T05:31:56Z",
"reviewed_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
The submitted request