- URL:
- https://<notebookserveradmin>/services/serviceName.GPServer/edit
- Methods:
POST
- Required Capability:
- Create and Edit and Publish Web Tools
- Version Introduced:
- 11.0
Description
ArcGIS Notebook Server supports overwriting a geoprocessing service previously published from a notebook.
The edit
operation overwrites a service when an updated JSON representation of the service is submitted to it. A new snapshot of the notebook is automatically created for the web tool when the service is overwritten.
Read and input the service
of the service to be edited into the edit
operation.
You must either be a user with administrative privileges or the owner of the notebook and web tool being edited.
Request parameters
Parameter | Details |
---|---|
| The JSON representation of the service being created. Example
|
| The response format. The default response format is Values: |
Example usage
serviceProperties={
"extensions": [],
"provider": "notebooks",
"jsonProperties": {
"snapshotId": "execute-notebook-snapshot-7b5b9f746db14bf983fcd0112cbad96e.json",
"notebookId": "8182aa0f33324e1a9184889e13c36a4b",
"title": "webtoolTitle",
"tasks": [
{
"name": "taskName",
"type": "notebook"
}
]
},
"description": "Description of task",
"datasets": [],
"serviceName": "13187da5eedd412d871a224072fca07d",
"type": "GPServer",
"frameworkProperties": {},
"portalProperties": {
"isHosted": false,
"portalItems": [
{
"itemID": "13187da5eedd412d871a224072fca07d",
"type": "GPServer"
}
]
}
}
JSON Response syntax
{"status": "<success|failure>"}
JSON Response example
{"status": "success"}