Skip to main content
POST
Create a new mapping for a gateway

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
path
string
required

URL path for the mapping

Example:

"/api/users"

method
enum<string>
default:POST

HTTP method for the mapping

Available options:
GET,
POST,
PUT,
DELETE,
PATCH,
OPTIONS,
HEAD
Example:

"GET"

is_public
boolean
default:false

Whether the mapping is publicly accessible

Example:

true

limit
object
timeout
integer
default:30000

Timeout in milliseconds for mapping requests

Example:

30000

traffic_distribution
object

Traffic distribution configuration for A/B testing

Example:

Response

Mapping created successfully

body
object
metadata
object