Alexander Salas Bastidas
Coder with good taste, workaholic and ubergeek 👨🏻💻
Description: Request a session token to uses other api endpoints.
Method: GET
Parameters: (Headers)
Error Messages
JSON response
ERROR_LOGIN_PARAMETERS_MISSING
parameter(s) login, password or user_token are missing
ERROR_GLPI_LOGIN_USER_TOKEN
parameter user_token seems invalid
ERROR
API disabled
ERROR_NOT_ALLOWED_IP
There isn't an active api client matching your ip adress in the configuration (127.0.0.1)
TXT response
HTML response
Response
{
"session_token": "ohmrb93vgb9dps9sgmnp1bg9h0"
}
Description: Destroy a session identified by a session token.
Method: GET
Parameters: (Headers)
Error Messages
JSON response
ERROR_SESSION_TOKEN_INVALID
session_token seems invalid
ERROR_SESSION_TOKEN_MISSING
parameter session_token is missing or empty
ERROR
API disabled
ERROR_NOT_ALLOWED_IP
There isn't an active api client matching your ip adress in the configuration (127.0.0.1)
TXT response
HTML response
Description: Sends a notification to the user to reset his password.
Method: PUT
Parameters: (Headers)
Error Messages
JSON response
ERROR
Email address not found.
A session is active
email parameter missing
Only HTTP verb PUT is allowed
Email notifications are disabled
TXT response
HTML response
Response
[
"An email has been sent to your email address. The email contains information for reset your password."
]
Description: Sends a notification to the user to reset his password.
Method: PUT
Parameters: (Headers)
Error Messages
JSON response
ERROR
Email address not found.
Your password reset request has expired or is invalid.
Please renew it.
email parameter missing
Only HTTP verb PUT is allowed
Email notifications are disabled
TXT response
HTML response
Response
[
"Reset password successful."
]
Description: Return all the profiles associated to logged user.
Method: GET
Parameters: (Headers)
Description: Return the current active profile.
Method: GET
Parameters: (Headers)
Description: Change active profile to the profiles_id one.
Method: POST
Parameters: (Headers)
Description: Return all the possible entities of the current logged user (and for current active profile).
Method: GET
Parameters: (Headers)
Description: Return active entities of current logged user.
Method: GET
Parameters: (Headers)
Description: Change active entity to the entities_id one.
Method: POST
Parameters: (Headers)
Description: Return the current php $_SESSION.
Method: GET
Parameters: (Headers)
Description: Return the current $CFG_GLPI.
Method: GET
Parameters: (Headers)
Description: Return the instance fields of itemtype identified by id.
Method: GET
Parameters: (Headers)
Description: Return a collection of rows of the itemtype.
Method: GET
Parameters: (Headers)
Description: Return a collection of rows of the sub_itemtype for the identified item.
Method: GET
Parameters: (Headers)
Description: Virtually call Get an item for each line in input. So, you can have a ticket, an user in the same query.
Method: GET
Parameters: (Headers)
Description: List the searchoptions of provided itemtype. To use with Search items.
Method: GET
Parameters: (Headers)
Description: Expose the GLPI searchEngine and combine criteria to retrieve a list of elements of specified itemtype.
Method: GET
Parameters: (Headers)
Description: Add an object (or multiple objects) into GLPI.
Method: POST
Parameters: (Headers)
Description: Update an object (or multiple objects).
Method: PUT
Parameters: (Headers)
Description: Delete an object existing in GLPI.
Method: DELETE
Parameters: (Headers)
Description: See Add item(s) and apply specific instructions below.
Method: POST
Parameters: (Headers)
Description: Download a document.
Method: GET
Parameters: (Headers)
By Alexander Salas Bastidas
Workshop