Update a consumer
Updates an existing consumer. The optional registries and auths fields each replace the whole association set of that kind in the same atomic request, so an identity change and the auths it needs travel together.
A valid request URL is required to generate request examples{
"active": true,
"auth_binding": {
"allowed_certificate_subjects": [
"<string>"
],
"allowed_client_ids": [
"<string>"
]
},
"auth_ids": [
"<string>"
],
"created_at": "<string>",
"fail_mode": "<string>",
"fallback": {
"budget": {
"max_attempts": 123,
"max_total_latency_ms": 123
},
"chain": [
"<string>"
],
"enabled": true,
"triggers": [
"<string>"
]
},
"gateway_id": "<string>",
"headers": {},
"id": "<string>",
"identity": {
"acts_for_users": true,
"end_user_header": true,
"source": "<string>"
},
"lb_config": {
"algorithm": "<string>",
"embedding_config": {
"auth": {
"api_key": "<string>",
"header_name": "<string>",
"header_value": "<string>",
"param_location": "<string>",
"param_name": "<string>",
"param_value": "<string>"
},
"model": "<string>",
"provider": "<string>"
},
"enabled": true,
"members": [
{
"model": "<string>",
"models": [
"<string>"
],
"registry_id": "<string>",
"weight": 123
}
],
"pool_alias": "<string>",
"smart_routing": {
"tiers": [
{
"min_score": 123,
"model": "<string>",
"registry_id": "<string>"
}
]
}
},
"model_policies": [
{
"allowed": [
"<string>"
],
"default": "<string>",
"registry_id": "<string>"
}
],
"name": "<string>",
"registry_ids": [
"<string>"
],
"registry_weights": [
{
"registry_id": "<string>",
"weight": 123
}
],
"slug": "<string>",
"toolkit": [
{
"expose_as": "<string>",
"prompt": "<string>",
"registry_id": "<string>",
"resource": "<string>",
"tool": "<string>"
}
],
"type": "<string>",
"updated_at": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
Body
Consumer fields to update
AuthBinding replaces the whole binding. Omit to keep it; send empty lists to clear it.
Show child attributes
Show child attributes
Auths replaces the whole auth association set with the listed auth ids: auths absent from the list are detached. Omit the field to leave the associations as they are; send an empty list to detach every auth.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Identity replaces who the consumer acts for. Omit to keep it as it is.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Registries replaces the whole registry association set: registries absent from the list are detached. Omit the field to leave the associations as they are; send an empty list to detach every registry.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
OK
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
A valid request URL is required to generate request examples{
"active": true,
"auth_binding": {
"allowed_certificate_subjects": [
"<string>"
],
"allowed_client_ids": [
"<string>"
]
},
"auth_ids": [
"<string>"
],
"created_at": "<string>",
"fail_mode": "<string>",
"fallback": {
"budget": {
"max_attempts": 123,
"max_total_latency_ms": 123
},
"chain": [
"<string>"
],
"enabled": true,
"triggers": [
"<string>"
]
},
"gateway_id": "<string>",
"headers": {},
"id": "<string>",
"identity": {
"acts_for_users": true,
"end_user_header": true,
"source": "<string>"
},
"lb_config": {
"algorithm": "<string>",
"embedding_config": {
"auth": {
"api_key": "<string>",
"header_name": "<string>",
"header_value": "<string>",
"param_location": "<string>",
"param_name": "<string>",
"param_value": "<string>"
},
"model": "<string>",
"provider": "<string>"
},
"enabled": true,
"members": [
{
"model": "<string>",
"models": [
"<string>"
],
"registry_id": "<string>",
"weight": 123
}
],
"pool_alias": "<string>",
"smart_routing": {
"tiers": [
{
"min_score": 123,
"model": "<string>",
"registry_id": "<string>"
}
]
}
},
"model_policies": [
{
"allowed": [
"<string>"
],
"default": "<string>",
"registry_id": "<string>"
}
],
"name": "<string>",
"registry_ids": [
"<string>"
],
"registry_weights": [
{
"registry_id": "<string>",
"weight": 123
}
],
"slug": "<string>",
"toolkit": [
{
"expose_as": "<string>",
"prompt": "<string>",
"registry_id": "<string>",
"resource": "<string>",
"tool": "<string>"
}
],
"type": "<string>",
"updated_at": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}