4XX - Item management
400 - Items list
Returns the items list. Requieres authentication.
In
Out
401 - Item creation
Inserts or updates an item with the provided data.name, data.description and the maximum quantity allowed to collect (data.max). Requieres administration privileges.
In
Out
402 - User item management
Adds or removes (in case of negative number) the quantity of data.qty of the data.name item to the authenticated user. Requieres authentication.
In
Out
403 - User inventory
Returns the inventory of the currently authenticated user. If the command is sent by an administrator and data.user is provided, the inventory of that user will be returned. Requieres authentication or administration privileges.
In
Out
410 - Currencies list
Returns the currencies list. Requieres authentication.
In
Out
411 - Currency creation
Inserts or updates (in case it exists) a currency with the provided data.name, data.description and maximum allowed quanitity (data.max). Requieres administration privileges.
In
Out
412 - User currencies management
Adds the specified data.qty of the currency data.name to the authenticated user. If the command is by an administrator and data.user is provided, will be added to that user. Requieres authentication or administration privileges.
In
Out
413 - User currencies list
Returns the list of currencies owned by the authenticated user with quantities. If the command is by an administrator and data.user is provided, data from that user will be returned. Requieres authentication or administration privileges.
In
Out
Last updated
Was this helpful?