Update a policy
PUT/v1/policies/:id
Update the details of a policy with information neccessary for claims
Request
Path Parameters
id integerrequired
ID of the policy
- application/json
Body
policy_number stringrequired
Policy number of the policy
expiry_date daterequired
Expiry date of the policy
policy_doc stringrequired
URL of the policy document
Responses
- 200
- 400
- 422
OK
- application/json
- Schema
- Example (from schema)
Schema
id integer
ID of the policy
full_name string
Full name of the user
start_date string
Start date of the policy
policy_type string
Possible values: [third_party
, comprehensive
]
Type of the policy
purchase_date string
Date of purchase of the policy
end_date string
End date of the policy
status string
Status of the policy
product string
Name of the product
premium string
Premium of the policy
policy_document string
URL of the policy document
policy_number string
Number of the policy
{
"id": 0,
"full_name": "string",
"start_date": "string",
"policy_type": "third_party",
"purchase_date": "string",
"end_date": "string",
"status": "string",
"product": "string",
"premium": "string",
"policy_document": "string",
"policy_number": "string"
}
Bad request.
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "400 Bad Request (Client Error)"
}
Unprocessable Content
- application/json
- Schema
- Example (from schema)
Schema
message string
errors object
{
"message": "The given data was invalid",
"errors": {}
}
Loading...