---
title: Update an incident timestamp override
description: Update a timestamp override for an incident.
breadcrumbs: ドキュメント > API > Update an incident timestamp override
---

> For the complete documentation index, see [llms.txt](https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/llms.txt).

# Update an incident timestamp override

## v2 (latest)

{% alert level="warning" %}
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help.md).
{% /alert %}

| Datadog site      | API endpoint                                                                                |
| ----------------- | ------------------------------------------------------------------------------------------- |
| app.datadoghq.com | PATCH https://api.datadoghq.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id}     |
| us3.datadoghq.com | PATCH https://api.us3.datadoghq.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id} |
| us5.datadoghq.com | PATCH https://api.us5.datadoghq.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id} |
| app.datadoghq.eu  | PATCH https://api.datadoghq.eu/api/v2/incidents/{incident_id}/timestamp-overrides/{id}      |
| ap1.datadoghq.com | PATCH https://api.ap1.datadoghq.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id} |
| ap2.datadoghq.com | PATCH https://api.ap2.datadoghq.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id} |
| uk1.datadoghq.com | PATCH https://api.uk1.datadoghq.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id} |
| app.ddog-gov.com  | PATCH https://api.ddog-gov.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id}      |
| us2.ddog-gov.com  | PATCH https://api.us2.ddog-gov.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id}  |

### Overview

Update a timestamp override for an incident.

This endpoint requires the `incident_write` permission.

OAuth apps require the `incident_write` authorization [scope](https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/ja/api/latest/scopes.md#incidents) to access this endpoint.

### Arguments

#### Path Parameters

| Field                    | Type   | Description                         |
| ------------------------ | ------ | ----------------------------------- |
| incident_id [*required*] | string | The UUID of the incident.           |
| id [*required*]          | string | The UUID of the timestamp override. |

### Request

#### Body Data (required)

Timestamp override patch payload.

{% tabs %}
{% tab label="Model" %}
| Parent field | Field                        | Type      | Description                                                                                      |
| ------------ | ---------------------------- | --------- | ------------------------------------------------------------------------------------------------ |
|              | data [*required*]            | object    | Timestamp override data in a patch request.                                                      |
| data         | attributes                   | object    | Attributes for patching a timestamp override.                                                    |
| attributes   | timestamp_value [*required*] | date-time | The overridden timestamp value.                                                                  |
| data         | id [*required*]              | uuid      | The timestamp override identifier.                                                               |
| data         | type [*required*]            | enum      | Incident timestamp override resource type. Allowed enum values: `incidents_timestamp_overrides`. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "data": {
    "attributes": {
      "timestamp_value": "2024-01-01T10:00:00.000Z"
    },
    "id": "00000000-0000-0000-0000-000000000000",
    "type": "incidents_timestamp_overrides"
  }
}
```
{% /tab %}
{% /tabs %}

### Response

{% tabs %}
{% tab label="200" %}
OK

{% tabs %}
{% tab label="Model" %}
Response with a single timestamp override.

| Parent field          | Field                        | Type      | Description                                                                                      |
| --------------------- | ---------------------------- | --------- | ------------------------------------------------------------------------------------------------ |
|                       | data [*required*]            | object    | Timestamp override data in a response.                                                           |
| data                  | attributes [*required*]      | object    | Attributes of a timestamp override in a response.                                                |
| attributes            | created_at [*required*]      | date-time | Timestamp when the override was created.                                                         |
| attributes            | deleted_at                   | date-time | Timestamp when the override was deleted.                                                         |
| attributes            | incident_id [*required*]     | string    | The incident identifier.                                                                         |
| attributes            | modified_at [*required*]     | date-time | Timestamp when the override was last modified.                                                   |
| attributes            | timestamp_type [*required*]  | enum      | The type of timestamp to override. Allowed enum values: `detected`, `resolved`, `declared`.      |
| attributes            | timestamp_value [*required*] | date-time | The overridden timestamp value.                                                                  |
| data                  | id [*required*]              | uuid      | The timestamp override identifier.                                                               |
| data                  | relationships                | object    | Relationships for a timestamp override.                                                          |
| relationships         | created_by_user              | object    | Relationship to user.                                                                            |
| created_by_user       | data [*required*]            | object    | Relationship to user object.                                                                     |
| data                  | id [*required*]              | string    | A unique identifier that represents the user.                                                    |
| data                  | type [*required*]            | enum      | Users resource type. Allowed enum values: `users`. Default: `users`.                             |
| relationships         | last_modified_by_user        | object    | Relationship to user.                                                                            |
| last_modified_by_user | data [*required*]            | object    | Relationship to user object.                                                                     |
| data                  | id [*required*]              | string    | A unique identifier that represents the user.                                                    |
| data                  | type [*required*]            | enum      | Users resource type. Allowed enum values: `users`. Default: `users`.                             |
| data                  | type [*required*]            | enum      | Incident timestamp override resource type. Allowed enum values: `incidents_timestamp_overrides`. |
|                       | included                     | [object]  | Included related resources. Read-only.                                                           |
| included              | attributes                   | object    | Attributes of user object returned by the API.                                                   |
| attributes            | email                        | string    | Email of the user.                                                                               |
| attributes            | handle                       | string    | Handle of the user.                                                                              |
| attributes            | icon                         | string    | URL of the user's icon.                                                                          |
| attributes            | name                         | string    | Name of the user.                                                                                |
| attributes            | uuid                         | string    | UUID of the user.                                                                                |
| included              | id                           | string    | ID of the user.                                                                                  |
| included              | type                         | enum      | Users resource type. Allowed enum values: `users`. Default: `users`.                             |
{% /tab %}

{% tab label="Example" %}
```json
{
  "data": {
    "attributes": {
      "created_at": "2024-01-01T00:00:00.000Z",
      "deleted_at": null,
      "incident_id": "00000000-0000-0000-0000-000000000000",
      "modified_at": "2024-01-01T00:00:00.000Z",
      "timestamp_type": "detected",
      "timestamp_value": "2024-01-01T10:00:00.000Z"
    },
    "id": "00000000-0000-0000-0000-000000000000",
    "relationships": {
      "created_by_user": {
        "data": {
          "id": "00000000-0000-0000-2345-000000000000",
          "type": "users"
        }
      },
      "last_modified_by_user": {
        "data": {
          "id": "00000000-0000-0000-2345-000000000000",
          "type": "users"
        }
      }
    },
    "type": "incidents_timestamp_overrides"
  },
  "included": [
    {
      "attributes": {
        "email": "string",
        "handle": "string",
        "icon": "string",
        "name": "string",
        "uuid": "string"
      },
      "id": "string",
      "type": "users"
    }
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="400" %}
Bad Request

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="401" %}
Unauthorized

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="403" %}
Forbidden

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="404" %}
Not Found

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="429" %}
Too many requests

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}
{% /tabs %}

### Code Example

{% tabs %}
{% tab label="Curl" %}
```bash
# Path parameters
export incident_id="CHANGE_ME"
export id="CHANGE_ME"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.com" # Or us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com, uk1.datadoghq.com, ddog-gov.com, us2.ddog-gov.com
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X PATCH "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/timestamp-overrides/${id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "timestamp_value": "2024-01-01T11:00:00.000Z"
    },
    "id": "00000000-0000-0000-0000-000000000001",
    "type": "incidents_timestamp_overrides"
  }
}
EOF
```
{% /tab %}
{% /tabs %}
