Update dashboard
Update a dashboard by UID.
PUT
/v2/dashboards/uid/{uid}Features
Send the token in the Authorization: Bearer API_TOKEN header. See Tokens for which token types this endpoint accepts.
Input6
Sent from your browser straight to the API — never to Docsbook, never stored.
(path)
Show child attributes12
User ID of the dashboard owner. Use
X-AXIOM-EVERYONE to make the dashboard accessible to all users in the organization.One of:
15, 60, 300.One of:
2.Relative time comparison offset. Compares the current time window against a previous period offset by this duration. Mutually exclusive with
againstTimestamp — setting one clears the other. Use an empty string or omit to disable comparison. One of: -1h, -3h, -6h, -12h, -1d, -3d, -7d, -1w, -2w, -3w, -30d, -60d, -90d.Absolute or relative timestamp to compare against. Mutually exclusive with
against — setting one clears the other. Accepts ISO 8601, now-{duration} (e.g. now-1h), or epoch milliseconds as a string.Start of the dashboard time range. Use
qr-now-{duration} for a quick range relative to now, where duration is a number followed by s (seconds), m (minutes), h (hours), d (days), or w (weeks). Examples: qr-now-5m, qr-now-1h, qr-now-7d. Alternatively, use a Unix epoch millisecond timestamp as a string (e.g. 1704067200000).End of the dashboard time range. Use
qr-now for a rolling window that tracks the current time (pair with a qr-now-{duration} start), or a Unix epoch millisecond timestamp as a string (e.g. 1704153600000).Optional dashboard UID. Must contain only letters, numbers, underscores, or hyphens, with length 1-128 when provided.
Required for updates when overwrite is false.
Output3
Show child attributes12
User ID of the dashboard owner. Use
X-AXIOM-EVERYONE to make the dashboard accessible to all users in the organization.One of:
15, 60, 300.One of:
2.Relative time comparison offset. Compares the current time window against a previous period offset by this duration. Mutually exclusive with
againstTimestamp — setting one clears the other. Use an empty string or omit to disable comparison. One of: -1h, -3h, -6h, -12h, -1d, -3d, -7d, -1w, -2w, -3w, -30d, -60d, -90d.Absolute or relative timestamp to compare against. Mutually exclusive with
against — setting one clears the other. Accepts ISO 8601, now-{duration} (e.g. now-1h), or epoch milliseconds as a string.Start of the dashboard time range. Use
qr-now-{duration} for a quick range relative to now, where duration is a number followed by s (seconds), m (minutes), h (hours), d (days), or w (weeks). Examples: qr-now-5m, qr-now-1h, qr-now-7d. Alternatively, use a Unix epoch millisecond timestamp as a string (e.g. 1704067200000).End of the dashboard time range. Use
qr-now for a rolling window that tracks the current time (pair with a qr-now-{duration} start), or a Unix epoch millisecond timestamp as a string (e.g. 1704153600000).Optional dashboard UID. Must contain only letters, numbers, underscores, or hyphens, with length 1-128 when provided.
One of:
created, updated.Responses
200Updated dashboard
201Created dashboard
400Invalid dashboard payload
409Dashboard already exists
412Version conflict
Example input
curl -X PUT 'https://api.axiom.co/v2/dashboards/uid/{uid}' \
-H 'Authorization: Bearer API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"dashboard": {
"name": "string",
"owner": "string",
"description": "string",
"charts": [
{
"id": "string",
"type": "TimeSeries",
"name": "string",
"query": {
"apl": null,
"queryOptions": null
}
}
],
"layout": [
{
"i": "string",
"x": 0,
"y": 0,
"w": 0,
"h": 0,
"minW": 0,
"minH": 0,
"maxW": 0,
"maxH": 0,
"static": false
}
],
"refreshTime": 15,
"schemaVersion": 2,
"against": "-1h",
"againstTimestamp": "string",
"timeWindowStart": "string",
"timeWindowEnd": "string",
"uid": "string"
}
}'Example output
{
"dashboard": {
"createdAt": "2024-01-01T00:00:00Z",
"createdBy": "string",
"dashboard": {
"name": "string",
"owner": "string",
"description": "string",
"charts": [
{
"id": null,
"type": "TimeSeries",
"name": null,
"query": null
}
],
"layout": [
{
"i": null,
"x": null,
"y": null,
"w": null,
"h": null,
"minW": null,
"minH": null,
"maxW": null,
"maxH": null,
"static": null
}
],
"refreshTime": 15,
"schemaVersion": 2,
"against": "-1h",
"againstTimestamp": "string",
"timeWindowStart": "string",
"timeWindowEnd": "string",
"uid": "string"
},
"id": "string",
"uid": "string",
"updatedAt": "2024-01-01T00:00:00Z",
"updatedBy": "string",
"version": 0
},
"overwritten": false,
"status": "created"
}