Update an entity Run in API Explorer
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
-
entity
string Required The ID of the desired entity (e.g.,
en_Ah3tqYn
).
Body
-
address
object The contracting entity's address.
Additional properties are allowed.
-
coverage_limit
object The contracting entity's minimum required coverage limits.
Additional properties are allowed.
-
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 \
--request PUT 'https://api.1099policy.com/api/v1/entities/{entity_id}' \
--header "Content-Type: application/json" \
--data '{"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"
]
}