Update API key
curl --request PATCH \
--url https://api.omnirelay.ai/v1/manage/keys/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme production",
"defaultTags": {
"client": "acme"
}
}
'import requests
url = "https://api.omnirelay.ai/v1/manage/keys/{id}"
payload = {
"name": "Acme production",
"defaultTags": { "client": "acme" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Acme production', defaultTags: {client: 'acme'}})
};
fetch('https://api.omnirelay.ai/v1/manage/keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ok": true
}{
"error": {
"code": "model_unavailable",
"message": "The model does not exist or is disabled.",
"type": "not_found_error",
"param": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "model_unavailable",
"message": "The model does not exist or is disabled.",
"type": "not_found_error",
"param": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "model_unavailable",
"message": "The model does not exist or is disabled.",
"type": "not_found_error",
"param": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "model_unavailable",
"message": "The model does not exist or is disabled.",
"type": "not_found_error",
"param": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "model_unavailable",
"message": "The model does not exist or is disabled.",
"type": "not_found_error",
"param": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "model_unavailable",
"message": "The model does not exist or is disabled.",
"type": "not_found_error",
"param": "<string>"
},
"request_id": "<string>"
}Management
Update API key
Updates supplied fields on an owner key. Omitted fields are preserved. Use the budget endpoint for spending controls.
PATCH
/
v1
/
manage
/
keys
/
{id}
Update API key
curl --request PATCH \
--url https://api.omnirelay.ai/v1/manage/keys/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme production",
"defaultTags": {
"client": "acme"
}
}
'import requests
url = "https://api.omnirelay.ai/v1/manage/keys/{id}"
payload = {
"name": "Acme production",
"defaultTags": { "client": "acme" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Acme production', defaultTags: {client: 'acme'}})
};
fetch('https://api.omnirelay.ai/v1/manage/keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ok": true
}{
"error": {
"code": "model_unavailable",
"message": "The model does not exist or is disabled.",
"type": "not_found_error",
"param": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "model_unavailable",
"message": "The model does not exist or is disabled.",
"type": "not_found_error",
"param": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "model_unavailable",
"message": "The model does not exist or is disabled.",
"type": "not_found_error",
"param": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "model_unavailable",
"message": "The model does not exist or is disabled.",
"type": "not_found_error",
"param": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "model_unavailable",
"message": "The model does not exist or is disabled.",
"type": "not_found_error",
"param": "<string>"
},
"request_id": "<string>"
}{
"error": {
"code": "model_unavailable",
"message": "The model does not exist or is disabled.",
"type": "not_found_error",
"param": "<string>"
},
"request_id": "<string>"
}Authorizations
Management key created in the console. read scope reads; write scope also changes API keys. Inference API keys are not accepted.
Path Parameters
Pattern:
^[A-Za-z0-9-]{1,80}$Body
application/json
Required string length:
1 - 60Maximum string length:
80Maximum string length:
200Future Unix timestamp in milliseconds; null clears expiry.
Exact model IDs or provider/* rules; null allows all enabled workspace models. An empty array is invalid.
Required array length:
1 - 50 elementsResponse
Successful response.