For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/ko/api/latest/forms/upsert-and-publish-a-form-version.md. A documentation index is available at /llms.txt.
Language
Datadog site

폼 버전 업서트 및 게시

경고Note: This endpoint is in preview and is subject to change. If you have any feedback, contact Datadog support.
POSThttps://api.datadoghq.com/api/v2/forms/{form_id}/versions/upsert_and_publishhttps://api.us3.datadoghq.com/api/v2/forms/{form_id}/versions/upsert_and_publishhttps://api.us5.datadoghq.com/api/v2/forms/{form_id}/versions/upsert_and_publishhttps://api.datadoghq.eu/api/v2/forms/{form_id}/versions/upsert_and_publishhttps://api.ap1.datadoghq.com/api/v2/forms/{form_id}/versions/upsert_and_publishhttps://api.ap2.datadoghq.com/api/v2/forms/{form_id}/versions/upsert_and_publishhttps://api.uk1.datadoghq.com/api/v2/forms/{form_id}/versions/upsert_and_publishhttps://api.ddog-gov.com/api/v2/forms/{form_id}/versions/upsert_and_publishhttps://api.us2.ddog-gov.com/api/v2/forms/{form_id}/versions/upsert_and_publish

개요

최신 양식 버전을 업서트하고 단일 원자적 트랜잭션으로 게시합니다.

인수

경로 파라미터

이름
유형
설명
form_id [required]
string

The ID of the form.

요청

Body Data (required)

항목
유형
설명
data [required]
object

단일 트랜잭션으로 폼 버전을 업서트하고 게시하도록 요청합니다.

응답

OK

A response containing a single form.

항목
유형
설명
data [required]
object

A form resource object.

코드 예시

# Path parameters
export form_id="22f6006a-2302-4926-9396-d2dfcf7b0b34"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/forms/${form_id}/versions/upsert_and_publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "data_definition": {},
      "ui_definition": {},
      "upsert_params": {
        "etag": "b51f08b698d88d8027a935d9db649774949f5fb41a0c559bfee6a9a13225c72d"
      }
    },
    "type": "form_versions"
  }
}
EOF
# Path parameters
export form_id="22f6006a-2302-4926-9396-d2dfcf7b0b34"

# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/forms/${form_id}/versions/upsert_and_publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "data_definition": {},
      "ui_definition": {},
      "upsert_params": {
        "etag": "b51f08b698d88d8027a935d9db649774949f5fb41a0c559bfee6a9a13225c72d"
      }
    },
    "type": "form_versions"
  }
}
EOF
# Path parameters
export form_id="22f6006a-2302-4926-9396-d2dfcf7b0b34"

# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/forms/${form_id}/versions/upsert_and_publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "data_definition": {},
      "ui_definition": {},
      "upsert_params": {
        "etag": "b51f08b698d88d8027a935d9db649774949f5fb41a0c559bfee6a9a13225c72d"
      }
    },
    "type": "form_versions"
  }
}
EOF
# Path parameters
export form_id="22f6006a-2302-4926-9396-d2dfcf7b0b34"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/forms/${form_id}/versions/upsert_and_publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "data_definition": {},
      "ui_definition": {},
      "upsert_params": {
        "etag": "b51f08b698d88d8027a935d9db649774949f5fb41a0c559bfee6a9a13225c72d"
      }
    },
    "type": "form_versions"
  }
}
EOF
# Path parameters
export form_id="22f6006a-2302-4926-9396-d2dfcf7b0b34"

# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/forms/${form_id}/versions/upsert_and_publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "data_definition": {},
      "ui_definition": {},
      "upsert_params": {
        "etag": "b51f08b698d88d8027a935d9db649774949f5fb41a0c559bfee6a9a13225c72d"
      }
    },
    "type": "form_versions"
  }
}
EOF
# Path parameters
export form_id="22f6006a-2302-4926-9396-d2dfcf7b0b34"

# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/forms/${form_id}/versions/upsert_and_publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "data_definition": {},
      "ui_definition": {},
      "upsert_params": {
        "etag": "b51f08b698d88d8027a935d9db649774949f5fb41a0c559bfee6a9a13225c72d"
      }
    },
    "type": "form_versions"
  }
}
EOF
# Path parameters
export form_id="22f6006a-2302-4926-9396-d2dfcf7b0b34"

# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/forms/${form_id}/versions/upsert_and_publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "data_definition": {},
      "ui_definition": {},
      "upsert_params": {
        "etag": "b51f08b698d88d8027a935d9db649774949f5fb41a0c559bfee6a9a13225c72d"
      }
    },
    "type": "form_versions"
  }
}
EOF
# Path parameters
export form_id="22f6006a-2302-4926-9396-d2dfcf7b0b34"

# Set your Datadog site and credentials
export DD_SITE="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 POST "https://api.${DD_SITE}/api/v2/forms/${form_id}/versions/upsert_and_publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "data_definition": {},
      "ui_definition": {},
      "upsert_params": {
        "etag": "b51f08b698d88d8027a935d9db649774949f5fb41a0c559bfee6a9a13225c72d"
      }
    },
    "type": "form_versions"
  }
}
EOF
# Path parameters
export form_id="22f6006a-2302-4926-9396-d2dfcf7b0b34"

# Set your Datadog site and credentials
export DD_SITE="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 POST "https://api.${DD_SITE}/api/v2/forms/${form_id}/versions/upsert_and_publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "data_definition": {},
      "ui_definition": {},
      "upsert_params": {
        "etag": "b51f08b698d88d8027a935d9db649774949f5fb41a0c559bfee6a9a13225c72d"
      }
    },
    "type": "form_versions"
  }
}
EOF