Editing an Automatic Import
The EditAutoImport function is used to edit an existing auto import.
GET/Remote/EditAutoImport
REQUEST PARAMETERS
Parameter | Type | Description | Required |
---|---|---|---|
mluser | string | Username - always in email form. | |
mltoken -or- mlpass | string | MapLarge generated auth token -or- the password for the mluser account. | |
id | long | ID of the autoimport to edit. | |
account | string | Change the account that will own the tables created by the import. | |
importName | alpha-numeric string | Change the import name assigned to the auto import. | |
tableName | alpha-numeric string | Change the existing table name. New imports will use updated table name. | |
updateFrequency | int | Change the frequency to run auto import for the table. Value is in minutes, and must be a minimum of 5. Import runs every x minutes based on last time auto import ran. | |
remoteUrl | string | Change the remote URL that includes file name and location. | |
description | string | Change the description of the table. | |
versionsToKeep | int | Change the number of previous versions of the table to keep. Defaults to 0 if not provided and will keep all versions. | |
authUrl | string | Change the URL of where authentication requests are sent before files are downloaded from a remote URL. | |
authPostData | string | Data that will be sent with the authentication request. Data will be sent as a POST request. |
EXAMPLE REQUEST
https://my.maplarge.com/Remote/EditAutoImport?mluser=your_username&mltoken=token&id=7&account=test&importname=modifiedimport4506&tablename=Icons2&updatefrequency=70&remoteurl=http://www.google.com
*Either a token or password can be used in any request where authentication is required.
RETURNS
{ "id": "1f7d767c6ed24f039356018b50ae9c98", "hash": null, "success": true, "isCached": false, "authorized": true, "errors": [], "timestamp": 1420568625, "data": null, "autoimportid": 7 }
ACTION SPECIFIC RESPONSE PARAMETERS
Parameter | Type | Description |
---|---|---|
autoimportid | long | ID of the modified auto import. |