- URL:https://<featurelayer-url>/metadata/update(POST only)
- Version Introduced:11.2
Description
The update operation updates the metadata for a hosted feature layer or table. When done, the operation returns a status URL that can be used to occasionally poll the status of the edits being made to the metadata. The status URL will return as COMPLETED once the edits have been made.
Request parameters
Parameter | Details |
---|---|
metadata | An XML object containing metadata for the layer. Syntax
Example
|
f | The response format. The default format is html. Values: html | json | pjson |
Example usage
The following is a sample POST request for the update operation:
POST /webadaptor/rest/services/SanFrancisco/311_Incidents/FeatureServer/0/metadata/update HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
metadata=<metadata xml:lang="en">
<Esri>
<CreaDate>20200118</CreaDate>
<CreaTime>15191300</CreaTime>
<ArcGISFormat>1.0</ArcGISFormat>
<SyncOnce>TRUE</SyncOnce>
</Esri>
<dataIdInfo>
<idCitation>
<resTitle>Cities</resTitle>
</idCitation>
<idAbs/>
<idCredit/>
</dataIdInfo>
</metadata>
&f=pjson
JSON Response example
{"statusUrl": "https://machine.domain.com/webadaptor/rest/services/Hosted/example/FeatureServer/jobs/jbd9bc06f-81d7-4512-bc1c-1add7e558419"}