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 eneity creation call.
Body
The Entity
object represents the contracting entity responsible for defining the job descriptions and for hiring contractors.
The API allows you to create, delete, and update entities. You can retrieve individual entities as well as a list of all entities.
-
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 '{"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"
]
}