Skip to main content
PATCH
/
gateway
/
{gateway_topic}
/
mapping
/
details
Update a mapping
curl --request PATCH \
  --url https://api.quiva.ai/gateway/{gateway_topic}/mapping/details \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "path": "/api/users/v2",
  "is_public": false,
  "timeout": 60000,
  "limit": {
    "request": 1000,
    "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

Query Parameters

method
enum<string>
required

HTTP method for the mapping in uppercase

Available options:
GET,
POST,
PUT,
DELETE,
PATCH,
OPTIONS,
HEAD
path
string
required

URL path for the mapping including the leading slash

Body

application/json
path
string

Updated URL path for the mapping

Example:

"/api/users/v2"

is_public
boolean

Whether the mapping is publicly accessible

Example:

false

limit
object
timeout
integer

Updated timeout in milliseconds for mapping requests

Example:

60000

traffic_distribution
object

Updated traffic distribution configuration for A/B testing

Example:
{ "1": 80, "2": 20 }

Response

Mapping updated successfully

message
string
Example:

"success"