Update a policy
Policies can be switched on and off using the is_active flag. Use this functionality if you don't have preset policy start and end times.
Path parameters
-
The ID of the desired policy (e.g.,
pl_WzFRszJhoY
).
PUT /api/v1/policies/{policy_id}
curl \
-X PUT https://api.1099policy.com/api/v1/policies/{policy_id} \
-H "Content-Type: application/json" \
-d '{"is_active":false}'
Request example
{
"is_active": false
}
Response examples (200)
{
"certificates": {
"gl_coi_pdf_url": "/bound-policies/prod/gl_coi_pl_wv23Q3lMc1_1691450123.pdf",
"wc_coi_pdf_url": "/bound-policies/prod/wc_coi_pl_wv23Q3lMc1_1691420903.pdf"
},
"created": 1646818364,
"effective_date": 1646818364,
"expiration_date": 1678334737,
"id": "pl_WzFRszJhoY",
"pdf_url": "http://ten99policy.s3.amazonaws.com/1099policy-coi-sample.pdf",
"quote": "qt_5DciVga8Kt",
"status": "active"
}