Updates a Relay
Changed onUpdates a Relay. Any properties not provided are left unchanged.
Request
- Base URLhttps://api.evervault.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The id of the Relay to be updated.
Request body
Example request
{
"routes": [
{
"method": "POST",
"path": "/**",
"request": [
{
"action": "encrypt",
"selections": [
{
"type": "json",
"role": "pci",
"selector": "$.cardNumber"
}
]
}
],
"response": [
{
"action": "encrypt",
"selections": [
{
"type": "json",
"role": "pci",
"selector": "$.cardNumber"
}
]
}
]
}
],
"encryptEmptyStrings": true
}Response
The Relay has been updated
Example response
{
"id": "relay_destination_d4ja57js9lnh",
"destinationDomain": "example.com",
"evervaultDomain": "example-com.app-12345.relay.evervault.app",
"encryptEmptyStrings": true,
"authentication": null,
"routes": [
{
"method": "POST",
"path": "/checkout",
"request": [
{
"action": "encrypt",
"selections": [
{
"type": "json",
"role": "pci",
"selector": "$.cardNumber"
}
]
}
],
"response": [
{
"action": "decrypt",
"selections": [
{
"type": "json",
"selector": "$..*"
}
]
}
]
}
],
"app": "app_cc7fcd533649",
"createdAt": 1692972623233,
"updatedAt": 1692972623234
}Changes
- info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status
- info
- breaking
request property
was restricted to a list of enum values - breaking
request property
list-of-types was narrowed by removing typesnullfrom media typeapplication/json - info
the request property
became nullable - info
added the new
api-keyenum value to the request property - info
added the new
undefinedenum value to the request property
- breaking