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": "<any>",
"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": "<any>",
"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)
successful operation
Rule that controls how a deployment is made and served (e.g. location restrictions)
Was this page helpful?
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": "<any>",
"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": "<any>",
"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": "<any>",
"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": "<any>",
"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)
successful operation
Rule that controls how a deployment is made and served (e.g. location restrictions)
Was this page helpful?
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": "<any>",
"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": "<any>",
"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>"
}
}