Create an Office
post
/api/restapi/office
Send a request to this endpoint to create an office.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root 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
Supported Media Types
- application/json
201 Response
The object was successfully created.
Root Schema : ApiEntityOffice
Type:
objectTitle:
Show Source
ApiEntityOffice-
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: string
Maximum Length:
200The name of the city for a location. -
companyId: 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. -
link: string
(url)
The self-link to the object. This field is populated only in the responses generated by the batch create APIs.
-
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: string
Minimum Length:
0Maximum Length:200The country for a location. -
officeId: integer
(int64)
The unique identifier of an office.
-
officeName: string
Minimum Length:
1Maximum Length:255The name of the office. -
officePostalCode: 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: string
Maximum Length:
200The state, region, or province of a location. -
updateDate: string
(date-time)
Date when the record was last updated.
400 Response
Invalid Input.