Replace the full route table
PUT
https://emails.routeon.io/api/v1/senders/routes
Replaces every route at once. A source_type absent from routes falls back to the tenant's default profile.
Request body
{
"routes": [
{
"source_type": "blast",
"sender_profile_id": "00000000-0000-0000-0000-000000000000"
}
]
}
Responses
200
OK
422
Body validation failure, or a `sender_profile_id` the tenant does not own — the latter is 422 VALIDATION_ERROR with meta.details.code `sender_not_found`. An unknown profile is never 404: the route table itself exists, only the body is wrong.
Example response · 200
{
"status": "success",
"http_code": 0,
"payload": [
{
"source_type": "blast",
"sender_profile_id": "00000000-0000-0000-0000-000000000000"
}
],
"meta": []
}
Example response · 422
{
"status": "error",
"http_code": 0,
"payload": [],
"meta": {
"reason": "VALIDATION_ERROR",
"validation_error": [
{
"field": "string",
"message": "string"
}
],
"details": []
}
}