curl --request PUT \
--url https://api.blaxel.ai/v0/policies/{policyName} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"displayName": "<string>",
"labels": {},
"name": "<string>",
"plan": "<unknown>",
"url": "<string>",
"workspace": "<string>"
},
"spec": {
"flavors": [
{
"name": "<string>",
"type": "<string>"
}
],
"locations": [
{
"name": "<string>",
"type": "<string>"
}
],
"maxTokens": {
"granularity": "<string>",
"input": 123,
"output": 123,
"ratioInputOverOutput": 123,
"step": 123,
"total": 123
},
"resourceTypes": [
"<string>"
],
"sandbox": true,
"type": "<string>"
}
}
'{
"metadata": {
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"displayName": "<string>",
"labels": {},
"name": "<string>",
"plan": "<unknown>",
"url": "<string>",
"workspace": "<string>"
},
"spec": {
"flavors": [
{
"name": "<string>",
"type": "<string>"
}
],
"locations": [
{
"name": "<string>",
"type": "<string>"
}
],
"maxTokens": {
"granularity": "<string>",
"input": 123,
"output": 123,
"ratioInputOverOutput": 123,
"step": 123,
"total": 123
},
"resourceTypes": [
"<string>"
],
"sandbox": true,
"type": "<string>"
}
}Updates a policy.
curl --request PUT \
--url https://api.blaxel.ai/v0/policies/{policyName} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"displayName": "<string>",
"labels": {},
"name": "<string>",
"plan": "<unknown>",
"url": "<string>",
"workspace": "<string>"
},
"spec": {
"flavors": [
{
"name": "<string>",
"type": "<string>"
}
],
"locations": [
{
"name": "<string>",
"type": "<string>"
}
],
"maxTokens": {
"granularity": "<string>",
"input": 123,
"output": 123,
"ratioInputOverOutput": 123,
"step": 123,
"total": 123
},
"resourceTypes": [
"<string>"
],
"sandbox": true,
"type": "<string>"
}
}
'{
"metadata": {
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"displayName": "<string>",
"labels": {},
"name": "<string>",
"plan": "<unknown>",
"url": "<string>",
"workspace": "<string>"
},
"spec": {
"flavors": [
{
"name": "<string>",
"type": "<string>"
}
],
"locations": [
{
"name": "<string>",
"type": "<string>"
}
],
"maxTokens": {
"granularity": "<string>",
"input": 123,
"output": 123,
"ratioInputOverOutput": 123,
"step": 123,
"total": 123
},
"resourceTypes": [
"<string>"
],
"sandbox": true,
"type": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Name of the policy
Rule that controls how a deployment is made and served (e.g. location restrictions)
Metadata Time fields for Persistance Owner fields for Persistance
Show child attributes
The date and time when the resource was created
The date and time when the resource was updated
The user or service account who created the resource
The user or service account who updated the resource
Model display name
Model name
Plan
URL
Workspace name
Policy specification
Show child attributes
Max token allowed by the policy. If not set, no max token is allowed.
ResourceTypes where the policy is applied. If not set, the policy is applied to all resource types.
PolicyResourceType is a type of resource, e.g. model, function, etc.
Sandbox mode
Policy type, can be location or flavor
successful operation
Rule that controls how a deployment is made and served (e.g. location restrictions)
Metadata Time fields for Persistance Owner fields for Persistance
Show child attributes
The date and time when the resource was created
The date and time when the resource was updated
The user or service account who created the resource
The user or service account who updated the resource
Model display name
Model name
Plan
URL
Workspace name
Policy specification
Show child attributes
Max token allowed by the policy. If not set, no max token is allowed.
ResourceTypes where the policy is applied. If not set, the policy is applied to all resource types.
PolicyResourceType is a type of resource, e.g. model, function, etc.
Sandbox mode
Policy type, can be location or flavor
Was this page helpful?