Update a Location

put

/api/restapi/location

Send a request to this endpoint to update a location. An application object with an ID value that matches the ID value provided in the JSON object in the request body will be updated to reflect the JSON contents.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : ApiEntityLocationInput
Type: object
Title: ApiEntityLocationInput
This entity represents a Location object, a unique Location object can be identified by the following combinations of the fields.
  • locationId
  • locationCode,workspaceId
  • locationCode,workspaceCode
Show Source
  • Minimum Length: 0
    Maximum Length: 200
    The first line of the address of a location.
    This might be the building number and street address.
  • Minimum Length: 0
    Maximum Length: 200
    The second line of the address of a location.
    This might be a neighborhood or town.
  • Read Only: true
    Allowed Values: [ "OWNED", "INHERITED" ]
    Deprecated. As of 24.4.
    The type of association in the relationship between the location and the workspace. Possible values are Owned and Inherited.
  • Minimum Length: 0
    Maximum Length: 200
    The city name for a location.
  • Minimum Length: 0
    Maximum Length: 3
    The country for a location. The value is expressed as a three letter code.
  • Minimum Length: 0
    Maximum Length: 4000
    Additional details about the location.
  • Minimum Value: -90
    Maximum Value: 90
    The geographical coordinate for the latitude of the location.
    The default format for latitude is decimal degrees format, but the format you need to use will depend on your geolocation service.
  • Minimum Length: 1
    Maximum Length: 60
    The user-specified unique identifier of the location.
  • The unique identifier for the location.
  • Minimum Length: 1
    Maximum Length: 255
    A name for the location that your users will understand and recognize.
  • Minimum Value: -180
    Maximum Value: 180
    The geographical coordinate for the longitude of the location.
    The default format for longitude is decimal degrees format, but the format you need to use will depend on your geolocation service.
  • Minimum Length: 0
    Maximum Length: 20
    The postal code, post code, or zip code of a location.
  • Allowed Values: [ "MANUAL", "AUTOMATIC" ]
    The push down type of the location.
  • Minimum Length: 0
    Maximum Length: 2
    A unique identifier for the state or province.
  • Minimum Length: 0
    Maximum Length: 200
    The state, region, or province of a location.
  • Read Only: true
    Deprecated. As of 24.4.
    Date when the record was last updated.
  • Minimum Length: 0
    Maximum Length: 60
    The user-specified identifier of a workspace.
  • The unique identifier for the workspace.The workspace object can also be identified by its unique criteria.
Examples

Back to Top

Response

204 Response

Successful operation with no content.

400 Response

Invalid input for the Location service. Verify the request contains valid data, then resubmit the request.
Back to Top