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 tempusertempuser_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 | Required |
---|
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: - "start" = valid from date, format YYYY-MM-DD HH:SS
- "end" = valid to date, format YYYY-MM-DD HH:SS
- "firstname" = firstname of new user
- "lastname" = lastname of new user
- "email" = email address of new user
| 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: Bereich | Parameter | mögliche Portalrechte |
---|
Address Management | address_manager | | Orders & Messages | message_manager | | Maintenance Database | wdb | | Time recording | zef | | Logbook | logbook | | Personnel Information | personalinfo | | Forms research | customdialog | | Research Pictures
| picture_search | | RDL files of deleted vehicles | see_deleted_rdl | | Digitacho Download/Archive
| digitacho | - no
- see
- add_other_activities
- edit
| Expenses
| travelcosts | | View searches | view_searches | | View positions | view_positions | | Inventory
| inventory | - no
- see
- edit
- edit_and_profile_changes
| Inventory history
| inventory_history | | Sublicense Management
| sublicense_management | |
Note: If a portal right is not specified in the JSON object, the default portal right for this area automatically applies. The standard portal rights are indicated in bold in the table above. | no |
ReturnIf successful, "OK" will be returned.. If there are missing or incorrect entries, an "ERROR:Beschreibung" is returned. Examples Code Block |
---|
title | Create a new temporary user with standard portal rights and one vehicle assignment |
---|
| http://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"] |
Code Block |
---|
title | Create a new temporary user with portal rights for positions, addresses, orders and messages and multiple vehicle assignments |
---|
| http://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"} |
|