Update an entity
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 entity creation call.
Path parameters
-
The ID of the desired entity (e.g.,
en_Ah3tqYn
).
Body
-
address object
The contracting entity's address.
-
coverage_limit object
The contracting entity's minimum required coverage limits.
-
name string
The contracting entity's legal name.
-
required_coverage array
An array of coverage types that can include one or more of the following insurance coverage values:
general
,professional
andworkers-comp
.Values are
workers_comp
,general_liability
, orprofessional_liability
.
PUT /api/v1/entities/{entity_id}
curl \
-X PUT https://api.1099policy.com/api/v1/entities/{entity_id} \
-H "Content-Type: application/json" \
-d '{"name":"Apple, Inc","address":{"line1":"One Apple Park Way","region":"CA","locality":"Cupertino","postalcode":95014},"coverage_limit":{"aggregate_limit":200000000,"occurrence_limit":100000000},"required_coverage":["general","workers-comp"]}'
Request example
{
"name": "Apple, Inc",
"address": {
"line1": "One Apple Park Way",
"region": "CA",
"locality": "Cupertino",
"postalcode": 95014
},
"coverage_limit": {
"aggregate_limit": 200000000,
"occurrence_limit": 100000000
},
"required_coverage": [
"general",
"workers-comp"
]
}
Response examples (200)
{
"name": "Apple, Inc",
"address": {
"line1": "One Apple Park Way",
"region": "CA",
"locality": "Cupertino",
"postalcode": 95014
},
"coverage_limit": {
"aggregate_limit": 200000000,
"occurrence_limit": 100000000
},
"required_coverage": [
"general",
"workers-comp"
]
}