provider-models
Set Blocked
Set or remove one organization- or project-scoped provider model deny rule.
PUT
/
api
/
provider-models
/
{provider}
Set Blocked
curl --request PUT \
--url https://api.aixy-gateway.com/api/provider-models/{provider} \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"model_id": "<string>",
"blocked": true
}
'import requests
url = "https://api.aixy-gateway.com/api/provider-models/{provider}"
payload = {
"model_id": "<string>",
"blocked": True
}
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({model_id: '<string>', blocked: true})
};
fetch('https://api.aixy-gateway.com/api/provider-models/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}⌘I
Set Blocked
curl --request PUT \
--url https://api.aixy-gateway.com/api/provider-models/{provider} \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"model_id": "<string>",
"blocked": true
}
'import requests
url = "https://api.aixy-gateway.com/api/provider-models/{provider}"
payload = {
"model_id": "<string>",
"blocked": True
}
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({model_id: '<string>', blocked: true})
};
fetch('https://api.aixy-gateway.com/api/provider-models/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}