For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ko/api/latest/forms/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}/publishhttps://api.us3.datadoghq.com/api/v2/forms/{form_id}/publishhttps://api.us5.datadoghq.com/api/v2/forms/{form_id}/publishhttps://api.datadoghq.eu/api/v2/forms/{form_id}/publishhttps://api.ap1.datadoghq.com/api/v2/forms/{form_id}/publishhttps://api.ap2.datadoghq.com/api/v2/forms/{form_id}/publishhttps://api.uk1.datadoghq.com/api/v2/forms/{form_id}/publishhttps://api.ddog-gov.com/api/v2/forms/{form_id}/publishhttps://api.us2.ddog-gov.com/api/v2/forms/{form_id}/publish

개요

양식의 특정 버전을 게시하여 제출할 수 있도록 합니다.

인수

경로 파라미터

이름
유형
설명
form_id [required]
string

The ID of the form.

요청

Body Data (required)

항목
유형
설명
data [required]
object

양식 버전 게시 요청입니다.

응답

OK

A response containing a single form publication.

항목
유형
설명
data [required]
object

A form publication resource object.

코드 예시

Publish a form version returns "OK" response
# 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}/publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "version": 1
    },
    "type": "form_publications"
  }
}
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}/publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "version": 1
    },
    "type": "form_publications"
  }
}
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}/publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "version": 1
    },
    "type": "form_publications"
  }
}
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}/publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "version": 1
    },
    "type": "form_publications"
  }
}
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}/publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "version": 1
    },
    "type": "form_publications"
  }
}
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}/publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "version": 1
    },
    "type": "form_publications"
  }
}
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}/publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "version": 1
    },
    "type": "form_publications"
  }
}
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}/publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "version": 1
    },
    "type": "form_publications"
  }
}
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}/publish" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "version": 1
    },
    "type": "form_publications"
  }
}
EOF