Skip to main content
PATCH
/
gateway
/
{gateway_topic}
Update a gateway
curl --request PATCH \
  --url https://api.quiva.ai/gateway/{gateway_topic} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Updated Gateway Name",
  "description": "Updated description for my gateway",
  "active": true,
  "timeout": 60000,
  "limit": {
    "request": 5000,
    "time": 1000
  }
}
'
{
  "message": "success"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

gateway_topic
string
required

Unique topic identifier of the gateway

Body

application/json
name
string

Updated name of the gateway

Example:

"Updated Gateway Name"

description
string

Updated description of the gateway

Example:

"Updated description for my gateway"

active
boolean

Whether the gateway is active

Example:

true

middleware
object[]

Updated list of middleware to be applied to the gateway

limit
object
timeout
integer

Updated timeout in milliseconds for gateway requests

Example:

60000

Response

Gateway updated successfully

message
string
Example:

"success"