- URL:
- https://<root>/services/types/customdataproviders/update
- Methods:
POST- Version Introduced:
- 11.1
Access requirements
Required privileges
The Sever Administrator API requires privilege-based access. An administrator must be assigned a specific user privilege, or role, to access any given endpoint. Listed below are the user privileges or roles an administrator can be assigned that provides access to this endpoint. If multiple privileges are listed, only one needs to be assigned to gain access.
Note that administrators assigned a custom role must also have the administrative View all content privilege assigned to them to access the API directory as an administrator. Additonally, any custom roles that include a webhook-related privilege must also include the general Publish server-based layers content privilege.
Tokens
This API requires token-based authentication. A token is automatically generated for administrators who sign in to the ArcGIS Server Administrator API directory's HTML interface. Tokens generated in this way are stored for the entirety of the session.
Those accessing the API directory outside of the HTML interface will need to acquire a session token from the ArcGIS Server Administrator API generate operation. For security reasons, all POST requests made to the ArcGIS Server Administrator API must include a token in the request body.
Description
The update operation updates a registered custom data provider by using a new, updated .cdpk file that has been uploaded to ArcGIS Server.
Before performing this operation, the new .cdpk file needs to be uploaded to the server. The item returned after uploading the file is used as the value for the id parameter.
Request parameters
| Parameter | Description |
|---|---|
| The upload item ID of the new .cdpk file. The file name of the new file must match the original .cdpk file name. Example |
| The response format. The default response format is Values: |
Example usage
The following is a sample POST request for the update operation:
POST /<context>/admin/services/types/customdataproviders/update HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
id=i03a2b59db-e60d-48ce-8b0e-2fd3cff73b1a&f=pjsonJSON Response example
The following is a sample success response for the update operation, indicating that the data provider was successfully updated:
{
"status": "success"
}