Batch Update Offices
put
/api/restapi/office/batch
Send a request to this endpoint to update one or more offices.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : List<ApiEntityOfficeInput>
Type:
arrayTitle:
Show Source
List<ApiEntityOfficeInput>-
Array of:
object ApiEntityOfficeInput
Title:
ApiEntityOfficeInputThis entity represents a Office object, a unique Office object can be identified by the following combinations of the fields.- officeId
- officeName,companyId
- officeName,companyName,postalCode,countryCode
Nested Schema : ApiEntityOfficeInput
Type:
objectTitle:
ApiEntityOfficeInputThis entity represents a Office object, a unique Office object can be identified by the following combinations of the fields.
Show Source
- officeId
- officeName,companyId
- officeName,companyName,postalCode,countryCode
-
addressLine1: string
Maximum Length:
200The first line of the address of a location.
This might be the building number and street address. -
addressLine2: string
Maximum Length:
200The second line of the address of a location.
This might be a neighborhood or town. -
cityName(required): string
Maximum Length:
200The name of the city for a location. -
companyId(required): integer
(int64)
The unique identifier for the company.The company object can also be identified by its unique criteria.
-
companyName: string
Minimum Length:
1Maximum Length:255The name of the company. -
countryCode: string
Minimum Length:
0Maximum Length:3The country for a location. -
distance: number
(double)
The distance the company is willing to travel for the project from this office.
-
distanceMetric: string
Allowed Values:
[ "KILOMETERS", "MILES" ]The distance measure to be used. Valid options include kilometer and mile. -
fax: string
Maximum Length:
32The fax number for the office. -
isCorporateOffice: boolean
Indicates if the office is the headquarters of the company.
-
latitude: number
(double)
Minimum Value:
-90Maximum Value:90The geographical coordinate for the latitude of the location.
The default format for latitude is decimal degrees, but the format you need to use will depend on your geolocation service. -
longitude: number
(double)
Minimum Value:
-180Maximum Value:180The geographical coordinate for the longitude of the location.
The default format for longitude is decimal degrees, but the format you need to use will depend on your geolocation service. -
officeCountryCode(required): string
Minimum Length:
0Maximum Length:200The country for a location. -
officeId: integer
(int64)
The unique identifier of an office.
-
officeName(required): string
Minimum Length:
1Maximum Length:255The name of the office. -
officePostalCode(required): string
Minimum Length:
0Maximum Length:200The postal code, post code, or zip code of a location. -
orgOfficeId: integer
(int64)
The unique identifier of the organization of the office.
-
phone: string
Maximum Length:
32The phone number for the office. -
postalCode: string
Minimum Length:
0Maximum Length:20The postal code, post code, or zip code of a location. -
stateName(required): string
Maximum Length:
200The state, region, or province of a location.
Examples
Back to Top
Response
200 Response
A collection of object IDs mapped to a canonical link of the object. For example - {"links":{"1":"https://[host]:[port]/api/restapi/[object]/1","2":"https://[host]:[port]/api/restapi/[object]/2"}}
204 Response
Successful operation with no content.
400 Response
Invalid Input.