Get My Entities
Retrieve all possible entities for the current logged-in user and active profile.Endpoint
Headers
Must be
application/jsonSession token provided by the
initSession endpointAuthorization string provided by the GLPI API configuration
Query Parameters
Also display sub-entities of the active entity
Response
Array of all user entities
Example
Get Active Entities
Retrieve the active entities of the current logged-in user.Endpoint
Headers
Must be
application/jsonSession token provided by the
initSession endpointAuthorization string provided by the GLPI API configuration
Response
Current active entity information
Example
Change Active Entities
Change the active entity and optionally enable recursive mode.Endpoint
Headers
Must be
application/jsonSession token provided by the
initSession endpointAuthorization string provided by the GLPI API configuration
JSON Payload
ID of the new active entity. Use
"all" to load all possible entities. Use getMyEntities to get available entity IDs.Also display sub-entities of the active entity
Response
Returns an empty response body on success.Example
Status Codes
200 OK- Entity changed successfully400 Bad Request- Error in input parameters
Notes
- This endpoint has write access to the session
- Only entities returned by
getMyEntitiescan be set as active - The
is_recursiveparameter determines whether sub-entities are included in the active scope - Setting
entities_idto"all"activates all available entities - Changing the active entity affects which resources are accessible in subsequent API calls