inventory/get_groups.php
Last modified by YellowFox_RD on 2025/03/04 16:26
Table of Contents
This function return a list of item groups, consisting of group name and uuid. Item groups are used in this context especially to limit the resultset of items.
Description
GET/inventory/get_groups.php?company=RTI_COMPANYKEY&import=IMPORTKEY
Parameter
Parameter | Description | Type | Hint | Mandatory |
---|---|---|---|---|
company | RTI company key | string | yes | |
import | RTI import key | string | yes | |
offset | int | The resultset contains up to 1000 entries per request. If more than 1000 results available, use the offset parameter to get additional results. | no | |
profiles[] | Profiles UUID | [] string | optional limitation to items, having one of the given profiles | no |
objects[] | Objects UUID | [] string | optional limitation to a list of items | no |
groups[] | proup UUID | [] string | optional limitiation to items, having one of the given object groups | no |
Rückgabe
On success you will receive the result as json. On missing parameters or errors you will receive "ERROR:description".
Possible error values
Error | Description |
---|---|
MISSING_COMPANY | Company key is missing. |
INVALID_COMPANY | Company not found. Company key or import key might be faulty. |
ERROR_MAINTENANCE | Your company is under maintenance, no RTI request are possible at the moment. |
MISSING_IMPORT | Import key is missing. |
INVENTORY_NOT_ACTIVATED | Inventory management is not activated for your company. |
INVALID_FORMAT_OFFSET | Faults offset value. |
You can access the specification as a JSON Schema file here.
Output example
{
"_date": "2025-02-26T10:22:37+01:00",
"_links": {
"next": {
"href": null
}
},
"groups": [
{
"uuid": "66ff7431-e455-7d1c-7a20-0ec6c464c80a",
"name": "Container Sachsen"
},
{
"uuid": "c1f91a2d-e867-f18d-f573-9219d66b8330",
"name": "Container NRW"
},
{
"uuid": "7d69b118-2174-df57-9ab2-574c251f5c8d",
"name": "Container Bayern"
}
]
}
"_date": "2025-02-26T10:22:37+01:00",
"_links": {
"next": {
"href": null
}
},
"groups": [
{
"uuid": "66ff7431-e455-7d1c-7a20-0ec6c464c80a",
"name": "Container Sachsen"
},
{
"uuid": "c1f91a2d-e867-f18d-f573-9219d66b8330",
"name": "Container NRW"
},
{
"uuid": "7d69b118-2174-df57-9ab2-574c251f5c8d",
"name": "Container Bayern"
}
]
}
Example calls
https://map.yellowfox.de/rti/inventory/get_groups.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY