View Hierarchy of a Given Location Object
This API allows you to view the hierarchy of given location object.
Request
-
HTTP Method: GET
-
URL: Application_URL/services/api/v1/location({id})/components
-
Query Parameter: Status, Immediate, Version
Version: verion of the location
Status Description: Use the URL with status 1, 2, or 3; where 1 gets the Unpublished version, 2 gets the Published version and 3 gets the In Revision version.
Immediate: Flag to indicate whether to fetch immediate component or all components of the location object. Possible values are "true" or "false".
-
Authorization: You must have the roles FUNCTIONAL_LOCATION_EDIT, FUNCTIONAL_LOCATION_READ or FUNCTIONAL_LOCATION_DELETE or DOCUMENT_READ assigned to your user ID in the SAP Cloud Platform account.
Response
If one or more attachments are assigned to the location with the given location ID, system returns an array of attachment details. Otherwise, system returns a blank array.
For more information, see https://help.sap.com/doc/8e4a4828fc76493483b6c9fc1b8828b9/1902/en-US/location.html#location__id___components_get.