Skip to main content
POST
/
v1
/
gateways
/
{gateway_id}
/
consumers
/
{id}
/
registries
/
{registry_id}
Attach a registry to a consumer
curl --request POST \
  --url https://agentgateway-admin.dev.neuraltrust.ai/v1/gateways/{gateway_id}/consumers/{id}/registries/{registry_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "weight": 1
}'
{
  "error": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Path Parameters

gateway_id
string<uuid>
required

Gateway id

id
string<uuid>
required

Consumer id

registry_id
string<uuid>
required

Registry id

Body

application/json

Optional registry weight

weight
integer

Weight is the relative weighted-round-robin share on a 1..100 scale.

Required range: 1 <= x <= 100
Example:

1

Response

No Content