- URL:
- https://<notebookserveradmin>/services/analyzeNotebook
- Methods:
POST- Required Capability:
- Administrator or Create and Edit
- Version Introduced:
- 11.0
Description
The analyze operation validates sources in a saved notebook using the input and output parameters for publishing the notebook as a web tool.
Request parameters
| Parameter | Details |
|---|---|
(Required) | The portal item ID of the notebook to analyze. |
| The response format. The default response format is Values: |
Example usage
POST /arcgis/admin/services/analyzeNotebook HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
itemId=5dbacb22922d4ead9b8b065f3ea448b8&f=json&token=<ACCESS_TOKEN>JSON Response syntax
{
"errors": [<errors>],
"warnings": [<warnings>],
"messages": [<messages>],
"status": "success"
}errors represent conditions that prevent successful web tool validation, such as an unsupported runtime.
warnings represent detected issues or conditions that may require attention.
messages contain informational analyzer output.
status indicates that the analysis operation completed and returned a result. It does not indicate that the notebook passed validation. Inspect the errors and warnings arrays for analysis findings.
JSON Response example when no itemID is provided
{
"errors": ["An empty Notebook ItemID is not allowed for this operation."],
"warnings": [],
"messages": [],
"status": "success"
}JSON Response example with a missing input parameter and an invalid output parameter
{
"errors": [],
"warnings": [
"Unable to find webtool input parameter 'I2' in the Notebook.",
"Invalid webtool output parameter."
],
"messages": [],
"status": "success"
}