Cascades
Update a Cascade
Update an existing Cascade by its ID
post/cascades/{id}
Path parameters
idstring required
Request body
Example request
{
"name": "My Cascade",
"algorithm": "weightedRoundRobin",
"gateways": [
{
"profile": "gwp_2QUGPTQo8As1cNIvgKlSFDxjJDd",
"position": 1,
"weight": 80,
"transactionLimit": 100,
"transactionLimitPeriod": "day",
"transactionCap": 10000,
"transactionCapPeriod": "day"
}
]
}Response
OK
Example response
{
"createdAt": "2024-02-18T12:00:00Z",
"updatedAt": "2024-02-21T12:15:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"name": "My Cascade",
"description": "Simple cascade",
"active": true,
"algorithm": "weightedRoundRobin",
"gateways": [
{
"createdAt": "2024-02-18T12:00:00Z",
"updatedAt": "2024-02-21T12:15:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"profile": {
"createdAt": "2024-02-18T12:00:00Z",
"updatedAt": "2024-02-21T12:15:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"id": "gwp_2QC7PqoUeOxQEWscJJt6B3PkvyL",
"active": true,
"title": "Profile #1",
"integration": "stripe",
"environment": "test"
},
"position": 1,
"weight": 80,
"transactionLimit": 100,
"transactionLimitPeriod": "day",
"transactionCap": 10000,
"transactionCapPeriod": "month"
}
],
"lastAttempted": {
"createdAt": "2024-02-18T12:00:00Z",
"updatedAt": "2024-02-21T12:15:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
}
},
"lastBilled": {
"createdAt": "2024-02-18T12:00:00Z",
"updatedAt": "2024-02-21T12:15:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
}
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.