Update an entity
PUT
/api/v1/entities/{entity_id}
Updates the specified entity by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
This request accepts mostly the same arguments as the eneity creation call.
Body
-
address object
-
coverage_limit object
The contracting entity's minimum required coverage limits.
-
id string
-
name string
The contracting entity's legal name.
-
required_coverage array[string]
An array of coverage types that can include one or more of the following insurance coverage values:
general
,professional
andworkers-comp
.Values are
general
,professional
, orworkers-comp
.
PUT /api/v1/entities/{entity_id}
curl \
-X PUT https://api.1099policy.com/api/v1/entities/{entity_id} \
-H "Content-Type: application/json" \
-d '{"address":{"line1":"One Apple Park Way","locality":"Cupertino","postalcode":95014,"region":"CA"},"coverage_limit":{"aggregate_limit":200000000,"occurrence_limit":100000000},"name":"Apple, Inc","required_coverage":["general","workers-comp"]}'
Request example
{
"address": {
"line1": "One Apple Park Way",
"locality": "Cupertino",
"postalcode": 95014,
"region": "CA"
},
"coverage_limit": {
"aggregate_limit": 200000000,
"occurrence_limit": 100000000
},
"name": "Apple, Inc",
"required_coverage": [
"general",
"workers-comp"
]
}
Response examples (200)
{
"address": {
"line1": "One Apple Park Way",
"locality": "Cupertino",
"postalcode": 95014,
"region": "CA"
},
"coverage_limit": {
"aggregate_limit": 200000000,
"occurrence_limit": 100000000
},
"name": "Apple, Inc",
"required_coverage": [
"general",
"workers-comp"
]
}