Update view
Replaces the aplQuery and description of a view, identified by its name. Axiom ignores name and datasets in the body and derives datasets from the new query.
Parameters
| Property | Type | Location | Description |
|---|---|---|---|
id | stringRequired | path | Name of the view |
Body
application/json| Property | Type | Description |
|---|---|---|
apl | stringRequired | APL query that defines the view |
datasets | string[] | Datasets the view queries. Axiom derives this from aplQuery and ignores it in requests. |
description | string | |
name | stringRequired | Name of the view. Use it as the view ID and to query the view like a dataset. |
shared | string | ID of the org that shared this resource, if it's shared |
shared | string | The name of the org that shared this resource, if it's shared |
Request
Try itRun this request against your Axiom organization
Credentials stay in this browser tab and are only sent to Axiom when you run the request.
Response
200Updated view.403You don't have query access to the view's current or new datasets.404View not found.| Property | Type | Description |
|---|---|---|
apl | stringRequired | APL query that defines the view |
datasets | string[] | Datasets the view queries. Axiom derives this from aplQuery and ignores it in requests. |
description | string | |
name | stringRequired | Name of the view. Use it as the view ID and to query the view like a dataset. |
shared | string | ID of the org that shared this resource, if it's shared |
shared | string | The name of the org that shared this resource, if it's shared |