Create Custom Endpoint
POST/v1/sandbox/:sandbox_id/custom-endpoint
Create Custom Endpoint, requires sandbox:config:edit permission
Request
Path Parameters
Sandbox ID
- application/json
Body
required
Possible values: non-empty and <= 125 characters
Name of the resource
Possible values: <= 250 characters
Description of the resource
Unique identifier for this custom endpoint
Possible values: non-empty
The customer defined identifier for this endpoint
Possible values: non-empty
User friendly identifier of setting type
Possible values: [GET, POST, PUT, DELETE, HEAD, PATCH]
An enumeration.
custom_headers
object
Custom headers to be passed to the endpoint
Responses
- 201
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Account ID of the user who last modified the resource
Timestamp of when the resource was last modified
Timestamp of when the resource was created
ID of the Sandbox
Possible values: non-empty and <= 125 characters
Name of the resource
Possible values: <= 250 characters
Description of the resource
Unique identifier for this custom endpoint
Possible values: non-empty
The customer defined identifier for this endpoint
Possible values: non-empty
User friendly identifier of setting type
Possible values: [GET, POST, PUT, DELETE, HEAD, PATCH]
An enumeration.
custom_headers
object
Custom headers to be passed to the endpoint
{
"last_modified_account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_modified_timestamp": "2024-07-29T15:51:28.071Z",
"created_timestamp": "2024-07-29T15:51:28.071Z",
"sandbox_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"description": "string",
"custom_endpoint_unique_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"endpoint_id": "string",
"url": "string",
"http_verb": "GET",
"custom_headers": {}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}