Update the Statuspage account

PATCH https://api.ap1.datadoghq.com/api/v2/integration/statuspage/accounthttps://api.ap2.datadoghq.com/api/v2/integration/statuspage/accounthttps://api.datadoghq.eu/api/v2/integration/statuspage/accounthttps://api.ddog-gov.com/api/v2/integration/statuspage/accounthttps://api.us2.ddog-gov.com/api/v2/integration/statuspage/accounthttps://api.datadoghq.com/api/v2/integration/statuspage/accounthttps://api.us3.datadoghq.com/api/v2/integration/statuspage/accounthttps://api.us5.datadoghq.com/api/v2/integration/statuspage/account

Overview

Update the Statuspage account configured for your organization. This endpoint requires the manage_integrations permission.

Request

Body Data (required)

Statuspage account payload.

Expand All

Field

Type

Description

data [required]

object

Statuspage account data for an update request.

attributes [required]

object

The Statuspage account attributes for an update request.

api_key

string

The Statuspage API key for your Statuspage account.

type [required]

enum

Statuspage account resource type. Allowed enum values: statuspage-account

default: statuspage-account

{
  "data": {
    "attributes": {
      "api_key": "00000000-0000-0000-0000-000000000000"
    },
    "type": "statuspage-account"
  }
}

Response

OK

Response containing a Statuspage account.

Expand All

Field

Type

Description

data [required]

object

Statuspage account data from a response.

attributes [required]

object

The attributes from a Statuspage account response.

api_key

string

The Statuspage API key for your Statuspage account. The value is always returned masked.

type [required]

enum

Statuspage account resource type. Allowed enum values: statuspage-account

default: statuspage-account

{
  "data": {
    "attributes": {
      "api_key": "*****"
    },
    "type": "statuspage-account"
  }
}

Bad Request

API error response.

Expand All

Field

Type

Description

errors [required]

[string]

A list of errors.

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

Forbidden

API error response.

Expand All

Field

Type

Description

errors [required]

[string]

A list of errors.

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

Not Found

API error response.

Expand All

Field

Type

Description

errors [required]

[string]

A list of errors.

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

Too many requests

API error response.

Expand All

Field

Type

Description

errors [required]

[string]

A list of errors.

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

Code Example

                  ## default
# 

# Curl command
curl -X PATCH "https://api.ap1.datadoghq.com"https://api.ap2.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.us2.ddog-gov.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/integration/statuspage/account" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "DD-API-KEY: ${DD_API_KEY}" \ -H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \ -d @- << EOF { "data": { "attributes": { "api_key": "00000000-0000-0000-0000-000000000000" }, "type": "statuspage-account" } } EOF