tempuser_create.php
Table of Contents
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:
The standard portal rights are indicated in bold in the table above. | no |
Return
If successful, "OK" will be returned..
If there are missing or incorrect entries, an "ERROR:Beschreibung" is returned.
Examples
Create a new temporary user with standard portal rights and one vehicle assignment
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"]
Create a new temporary user with portal rights for positions, addresses, orders and messages and multiple vehicle assignments
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"}