curl --request PUT \
--url http://localhost/api/v1/model_policy/{model_policy_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"display_name": "<string>",
"policy": {
"strategy": {
"mode": "loadbalance",
"on_status_codes": [
123
]
},
"cache": {
"mode": "<string>"
},
"retry": {
"attempts": 123,
"on_status_codes": [
123
]
},
"targets": [
{
"model_name": "<string>",
"weight": 123
}
]
},
"description": "<string>"
}'
"<any>"
curl --request PUT \
--url http://localhost/api/v1/model_policy/{model_policy_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"display_name": "<string>",
"policy": {
"strategy": {
"mode": "loadbalance",
"on_status_codes": [
123
]
},
"cache": {
"mode": "<string>"
},
"retry": {
"attempts": 123,
"on_status_codes": [
123
]
},
"targets": [
{
"model_name": "<string>",
"weight": 123
}
]
},
"description": "<string>"
}'
"<any>"
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Successful Response
The response is of type any
.