Vault Proxy Connections
Create a new version of a connection
Saves the connection version data and returns connection version with ID.
post/token/connections/{connectionId}/versions
Path parameters
connectionIdstring required
Parameter connectionId is required for which connection version is created.
Request body
Example request
{
"name": "Fetch reservations",
"description": "Get all reservations",
"httpMethods": [
"POST",
"PATCH"
],
"publicUrl": "/v1/reservations",
"anyOf": {
"proxyUrl": "https://merchant.com/v2/reservations",
"trustedDestinationHosts": [
"stripe.com",
"example.com"
]
},
"rules": [
{
"action": "tokenization",
"config": {
"targetRecordType": "networkToken",
"targetContentType": "xml",
"expiresIn": 5000,
"recordSelector": "/networkToken"
}
}
],
"status": "draft"
}Response
Success.
Example response
{
"name": "Fetch reservations",
"description": "Get all reservations",
"httpMethods": [
"POST",
"PATCH"
],
"publicUrl": "/v1/reservations",
"anyOf": {
"proxyUrl": "https://merchant.com/v2/reservations",
"trustedDestinationHosts": [
"stripe.com",
"example.com"
]
},
"rules": [
{
"action": "tokenization",
"config": {
"targetRecordType": "networkToken",
"targetContentType": "xml",
"expiresIn": 5000,
"recordSelector": "/networkToken"
}
}
],
"status": "draft"
}