policies
Update governance policy
Updates a governance policy's restrictions. Changes take effect on the next deployment of resources using this policy.
put/policies/{policyName}
Request
- Base URLhttps://api.blaxel.ai/v0
- Auth
- OAuth 2Authorization code/oauth/authorizeClient credentialsToken URL/oauth/tokenScopespolicies:update
- or HTTP bearer
Request body
Example request
{
"metadata": {
"displayName": "My Resource",
"externalId": "my-session-123",
"name": "my-resource"
},
"spec": {
"flavors": [
{
"name": "t4",
"type": "cpu"
}
],
"locations": [
{
"name": "EU",
"type": "continent"
}
],
"maxTokens": {
"granularity": "minute",
"input": 10000,
"output": 5000,
"ratioInputOverOutput": 2,
"step": 1,
"total": 15000
},
"type": "location"
}
}Response
successful operation
Example response
{
"metadata": {
"displayName": "My Resource",
"externalId": "my-session-123",
"name": "my-resource"
},
"spec": {
"flavors": [
{
"name": "t4",
"type": "cpu"
}
],
"locations": [
{
"name": "EU",
"type": "continent"
}
],
"maxTokens": {
"granularity": "minute",
"input": 10000,
"output": 5000,
"ratioInputOverOutput": 2,
"step": 1,
"total": 15000
},
"type": "location"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.