Update a session
Updates the success_url and cancel_url of a specified session. If either parameters is not provided it will be left unchanged.
Path parameters
-
The ID of the desired session (e.g.,
ias_01FVCHXE7PNQHA1T3S2AXL2QZE
).
Body
-
cancel_url string
The URL the contractor will be directed to if they are ineligible or decide to abandon the insurance application and return to your website.
-
success_url string
The URL to which 1099Policy should direct independent contractors when a contractor successfully procures insurance coverage.
PUT /api/v1/apply/sessions/{session_id}
curl \
-X PUT https://api.1099policy.com/api/v1/apply/sessions/{session_id} \
-H "Content-Type: application/json" \
-d '{"cancel_url":"https://example.com/cancel","success_url":"https://example.com/success"}'
Request example
{
"cancel_url": "https://example.com/cancel",
"success_url": "https://example.com/success"
}
Response examples (200)
{
"cancel_url": "https://1099jobcloud.com/1099policy/cancel",
"created": 1646818364,
"expired": false,
"id": "ias_01FVCHXE7PNQHA1T3S2AXL2QZE",
"quote": "qt_5DciVga8Kt",
"step": "final_review",
"success_url": "https://1099jobcloud.com/1099policy/success",
"url": "http://apply.1099policy.com/..."
}