Overview
Inference API
agents
configurations
functions
integrations
- GETList integrations connections
- GETList integrations connections
- POSTCreate integration
- GETGet integration
- PUTUpdate integration connection
- DELDelete integration
- GETGet integration connection model endpoint configurations
- GETList integration connection models
- GETGet integration model endpoint configurations
knowledgebases
locations
API Reference
models
privateclusters
invitations
service_accounts
store
workspaces
- GETList users in workspace
- POSTInvite user to workspace
- PUTUpdate user role in workspace
- DELRemove user from workspace or revoke invitation
- GETList workspaces
- POSTCreate worspace
- GETGet workspace
- PUTUpdate workspace
- DELDelete workspace
- POSTDecline invitation to workspace
- POSTAccept invitation to workspace
- DELLeave workspace
Update policy
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>",
"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>",
"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>"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Name of the policy
Body
Rule that controls how a deployment is made and served (e.g. location restrictions)
Metadata
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
Workspace name
Policy specification
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
Response
Rule that controls how a deployment is made and served (e.g. location restrictions)
Metadata
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
Workspace name
Policy specification
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
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>",
"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>",
"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>"
}
}