---
title: "Set Alert Timestamp Format policy."
method: PUT
path: "/v1/policies/timestampFormat"
tags: ["policiesManagement"]
---

# Set Alert Timestamp Format policy.

`PUT /v1/policies/timestampFormat`

Set the Alert Timestamp Format policy. This policy controls the date/time format used in alert and recovery notification payloads across all connections and monitor types. When set to ISO, timestamps use the format yyyy-MM-dd HH:mm:ss z. When set to LEGACY, timestamps use the format MM/dd/yyyy hh:mm:ss a z.

## Request body

- TimestampFormatPolicy — Alert Timestamp Format policy.
  - `timestampFormat` string, required — The timestamp format used in alert notification payloads. Valid values: `ISO`, `LEGACY`. ISO format: yyyy-MM-dd HH:mm:ss z. LEGACY format: MM/dd/yyyy hh:mm:ss a z.

## Response `200`

Alert Timestamp Format policy was set successfully.

- TimestampFormatPolicy — Alert Timestamp Format policy.
  - `timestampFormat` string, required — The timestamp format used in alert notification payloads. Valid values: `ISO`, `LEGACY`. ISO format: yyyy-MM-dd HH:mm:ss z. LEGACY format: MM/dd/yyyy hh:mm:ss a z.

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/revisions/e4e4c7554890/schema)
