Creates a new temporary user.
Note: Due to the amount of data transferred, it is advisable to address this RTI function via POST instead of GET.
Description
POST tempuser_create.php?company=RTI_COMPANYKEY&import=RTI_IMPORTKEY&user=USER_JSON_OBJECT&vehicles=VEHICLES_RTICODES_JSON_ARRAY&portal_rights=PORTAL_RIGHTS_JSON_OBJECT
Parameters
Parameter | Description | Type | Note | Mandatory | |||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
company | RTI company key | STRING | yes | ||||||||||||||||||||||||||||||||||||||||||||||||||||
import | RTI import key | STRING | yes | ||||||||||||||||||||||||||||||||||||||||||||||||||||
user | data for new user | JSON OBJECT STRING | JSON object must contain the following parameters:
| yes | |||||||||||||||||||||||||||||||||||||||||||||||||||
vehicles | assigned vehicles of the new user | JSON ARRAY STRING | JSON array mit RTI vehicle keys | no | |||||||||||||||||||||||||||||||||||||||||||||||||||
portal_rights | portal rights of the new user | JSON OBJECT STRING | JSON object with portal rights. The following portal rights can be assigned:
Note: If a portal right is not specified in the JSON object, the default portal right for this area automatically applies. | no |
Return
If successful, "OK" will be returned..
If there are missing or incorrect entries, an "ERROR:Beschreibung" is returned.
Examples
https://map.yellowfox.de/rti/tempuser_create.php?company=RTI_COMPANYKEY&import=RTI_IMPORTKEY&user={"start":"2018-11-01 00:00:00","end":"2018-12-01 00:00:00","lastname":"Mustermann","firstname":"Max","email": "m.mustermann@example.com"}&vehicles=["RTI_VEHICLEKEY"]
https://map.yellowfox.de/rti/tempuser_create.php?company=RTI_COMPANYKEY&import=RTI_IMPORTKEY&user={"start":"2018-11-01 00:00:00","end":"2018-12-01 00:00:00","lastname":"Mustermann","firstname":"Max","email": "m.mustermann@example.com"}&vehicles=["RTI_VEHICLEKEY","RTI_VEHICLEKEY","RTI_VEHICLEKEY"]&portal_rights={"view_positions":"yes","address_manager":"edit","message_manager":"edit"}