---
title: Refresh experiment results for org
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > API Reference > Experiments
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}

{% /callout %}

# Refresh experiment results for org{% #refresh-experiment-results-for-org %}
Copy pageCopied
{% tab title="v2" %}

| Datadog site      | API endpoint                                                          |
| ----------------- | --------------------------------------------------------------------- |
| ap1.datadoghq.com | POST https://api.ap1.datadoghq.com/api/v2/experiments/results/refresh |
| ap2.datadoghq.com | POST https://api.ap2.datadoghq.com/api/v2/experiments/results/refresh |
| app.datadoghq.eu  | POST https://api.datadoghq.eu/api/v2/experiments/results/refresh      |
| app.ddog-gov.com  | POST https://api.ddog-gov.com/api/v2/experiments/results/refresh      |
| us2.ddog-gov.com  | POST https://api.us2.ddog-gov.com/api/v2/experiments/results/refresh  |
| uk1.datadoghq.com | POST https://api.uk1.datadoghq.com/api/v2/experiments/results/refresh |
| app.datadoghq.com | POST https://api.datadoghq.com/api/v2/experiments/results/refresh     |
| us3.datadoghq.com | POST https://api.us3.datadoghq.com/api/v2/experiments/results/refresh |
| us5.datadoghq.com | POST https://api.us5.datadoghq.com/api/v2/experiments/results/refresh |

### Overview

Trigger a results refresh across the organization's active experiments. Returns the count of experiments whose refresh was triggered (meta.experiments_updated) plus a per-experiment breakdown of what happened to each (meta.results). This endpoint requires the `product_analytics_experiments_write` permission.

OAuth apps require the `product_analytics_experiments_write` authorization [scope](https://docs.datadoghq.com/api/latest/scopes.md#experiments) to access this endpoint.



### Arguments

#### Query Strings

| Name         | Type    | Description                                                     |
| ------------ | ------- | --------------------------------------------------------------- |
| full_refresh | boolean | Force a full warehouse rebuild. Defaults to false when omitted. |

### Response

{% tab title="202" %}
Accepted
{% tab title="Model" %}
List of experiment refresh result resources.

| Parent field | Field                  | Type     | Description                                                                                                                                                   |
| ------------ | ---------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|              | data [*required*] | [object] | Resources returned in this response.                                                                                                                          |
| data         | attributes             | object   | Details of the experiment refresh result.                                                                                                                     |
| attributes   | success                | boolean  | Whether the refresh request succeeded.                                                                                                                        |
| data         | id [*required*]   | uuid     | ID of the experiment whose results were refreshed.                                                                                                            |
| data         | type [*required*] | enum     | Experiment results refresh resource type. Allowed enum values: `experiment-results-refresh`                                                                   |
|              | meta                   | object   | Summary of refresh outcomes across the organization's experiments.                                                                                            |
| meta         | experiments_updated    | int64    | Number of experiments updated by the refresh request.                                                                                                         |
| meta         | results                | [object] | Refresh outcome reported for each experiment.                                                                                                                 |
| results      | experiment_id          | string   | ID of the experiment associated with this result.                                                                                                             |
| results      | outcome                | enum     | Outcome of attempting to refresh one experiment. Allowed enum values: `TRIGGERED,SKIPPED_ALREADY_RUNNING,SKIPPED_NOT_EDITABLE,SKIPPED_ORG_AT_CAPACITY,FAILED` |

{% /tab %}

{% tab title="Example" %}

```json
{
  "data": [
    {
      "attributes": {
        "success": false
      },
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "type": "experiment-results-refresh"
    }
  ],
  "meta": {
    "experiments_updated": "integer",
    "results": [
      {
        "experiment_id": "string",
        "outcome": "string"
      }
    ]
  }
}
```

{% /tab %}

{% /tab %}

{% tab title="400" %}
The full_refresh query parameter is not a valid boolean.
{% tab title="Model" %}
API error response.

| Parent field | Field                    | Type     | Description                                                                     |
| ------------ | ------------------------ | -------- | ------------------------------------------------------------------------------- |
|              | errors [*required*] | [object] | A list of errors.                                                               |
| errors       | detail                   | string   | A human-readable explanation specific to this occurrence of the error.          |
| errors       | meta                     | object   | Non-standard meta-information about the error                                   |
| errors       | source                   | object   | References to the source of the error.                                          |
| source       | header                   | string   | A string indicating the name of a single request header which caused the error. |
| source       | parameter                | string   | A string indicating which URI query parameter caused the error.                 |
| source       | pointer                  | string   | A JSON pointer to the value in the request document that caused the error.      |
| errors       | status                   | string   | Status code of the response.                                                    |
| errors       | title                    | string   | Short human-readable summary of the error.                                      |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    {
      "detail": "Missing required attribute in body",
      "meta": {},
      "source": {
        "header": "Authorization",
        "parameter": "limit",
        "pointer": "/data/attributes/title"
      },
      "status": "400",
      "title": "Bad Request"
    }
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="401" %}
Missing or invalid authentication.
{% tab title="Model" %}
API error response.

| Parent field | Field                    | Type     | Description                                                                     |
| ------------ | ------------------------ | -------- | ------------------------------------------------------------------------------- |
|              | errors [*required*] | [object] | A list of errors.                                                               |
| errors       | detail                   | string   | A human-readable explanation specific to this occurrence of the error.          |
| errors       | meta                     | object   | Non-standard meta-information about the error                                   |
| errors       | source                   | object   | References to the source of the error.                                          |
| source       | header                   | string   | A string indicating the name of a single request header which caused the error. |
| source       | parameter                | string   | A string indicating which URI query parameter caused the error.                 |
| source       | pointer                  | string   | A JSON pointer to the value in the request document that caused the error.      |
| errors       | status                   | string   | Status code of the response.                                                    |
| errors       | title                    | string   | Short human-readable summary of the error.                                      |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    {
      "detail": "Missing required attribute in body",
      "meta": {},
      "source": {
        "header": "Authorization",
        "parameter": "limit",
        "pointer": "/data/attributes/title"
      },
      "status": "400",
      "title": "Bad Request"
    }
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="403" %}
Authenticated caller lacks the product_analytics_experiments_write permission.
{% tab title="Model" %}
API error response.

| Parent field | Field                    | Type     | Description                                                                     |
| ------------ | ------------------------ | -------- | ------------------------------------------------------------------------------- |
|              | errors [*required*] | [object] | A list of errors.                                                               |
| errors       | detail                   | string   | A human-readable explanation specific to this occurrence of the error.          |
| errors       | meta                     | object   | Non-standard meta-information about the error                                   |
| errors       | source                   | object   | References to the source of the error.                                          |
| source       | header                   | string   | A string indicating the name of a single request header which caused the error. |
| source       | parameter                | string   | A string indicating which URI query parameter caused the error.                 |
| source       | pointer                  | string   | A JSON pointer to the value in the request document that caused the error.      |
| errors       | status                   | string   | Status code of the response.                                                    |
| errors       | title                    | string   | Short human-readable summary of the error.                                      |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    {
      "detail": "Missing required attribute in body",
      "meta": {},
      "source": {
        "header": "Authorization",
        "parameter": "limit",
        "pointer": "/data/attributes/title"
      },
      "status": "400",
      "title": "Bad Request"
    }
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="429" %}
Too many requests
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

### Code Example

##### 
                  \# Use a Personal Access Token or Service Access Token export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"  \# Curl command curl -X POST "https://api.datadoghq.com/api/v2/experiments/results/refresh" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" 
                
{% /tab %}
