To call the Location endpoint, use one of the URLs from the following table:
URL |
GET |
PUT |
POST |
DELETE |
https://api.mypcorp.com/location |
✔ |
|
|
|
https://api.mypcorp.com/location/{LocationGuid} |
✔ |
|
|
|
GET
The following table illustrates which fields can be included when receiving a GET response.
Location
Field Name |
Description |
LocationGuid Guid (Identifier) |
The Location id. |
Name string |
The name of the Location. |
ArchiveDate datetime |
Date and time when this Location was archived, if it has been archived. |
Example JSON response:
{
"@odata.context": "https://api.mypcorp.com/$metadata#Location",
"value": [
{
"LocationGuid": "a0a3b249-6d66-43bf-a03b-119dbd9e3e82",
"Name": "Brisbane CBD Head Office",
"ArchiveDate": null
}
]
}