Create Draft Policy

Create a draft routing policy for testing in the simulator.

Draft policies are temporary and expire after 1 hour. Use the returned draft_id as routing_policy_id in requests to test it.

Request

This endpoint expects an object.
namestringRequired
Name for the policy
strategystringRequired

Routing strategy (e.g., ‘cost_optimized’, ‘single’)

providerslist of objectsRequired
List of providers to route between
descriptionstring or nullOptional
Optional description

Response

Successful Response
draft_idstring
namestring
strategystring
providerslist of maps from strings to any
expires_in_secondsinteger
messagestring

Errors