URI

<myData_uri>/update[.<format>]

Supported Methods

POST

Parent Resource

mydata

Description

The dataUpdate resource is used to update a data file specified by the data item ID. The data file used for updating must have the same format as the data file to be updated.

Supported Methods:

  • POST: Update the data file specified by the data item ID.

Supported output formats: RJSON, JSON, HTML, XML.

Resource hierarchy

HTTP Request Methods

Perform HTTP requests on the following URI. The rjson output format is used as an example, where supermapiportal is the server name.

http://supermapiportal:8190/iportal/web/mycontent/datas/{id}/update.rjson

POST Request

Update the data file specified by the data item ID. The request body is the text data stream corresponding to the new data file.

Request Parameters

When sending a request, the following parameters can be passed in the URL:

Name Type Description
dataMetaInfo DataMetaInfo [Optional] The metadata of the data.
coordType DataCoordType [Optional] The coordinate type of the data.

Response Structure

Perform a POST request on the dataUpdate resource to update the data file specified by the data item ID. The returned resource representation structure is as follows:

Field Type Description
childID String The ID of the child resource, i.e., the data item ID.
childContent Object The content of the child resource.
childUrl String The URI of the child resource.
customResult Object Custom result.
isAsynchronizedReturn boolean Whether the result is returned asynchronously. For this resource, the value of isAsynchronizedReturn is always false.

Response Example

Perform a POST request on the dataUpdate resource: http://localhost:8190/iportal/web/mycontent/datas/1191135124/update.rjson. The rjson format response is:

{

  "childContent": null,

  "childID": "1191135124",

  "childUrl": null,

  "customResult": null,

  "isAsynchronizedReturn": false

}

See