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
compute
- GETList Sandboxes
- POSTCreate Sandbox
- GETGet Sandbox
- PUTUpdate Sandbox
- DELDelete Sandbox
- GETList Sandboxes
- POSTCreate Sandbox Preview
- GETGet Sandbox Preview
- PUTUpdate Sandbox Preview
- DELDelete Sandbox Preview
- GETGet tokens for Sandbox Preview
- POSTCreate token for Sandbox Preview
- DELDelete token for Sandbox Preview
- PUTStart Sandbox
- PUTStop Sandbox
service_accounts
templates
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
- POSTCheck workspace availability
policies
Update policy
Updates a policy.
PUT
/
policies
/
{policyName}
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>"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Name of the policy
Body
application/json
Rule that controls how a deployment is made and served (e.g. location restrictions)
Response
200 - application/json
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>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.