For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/fr/api/latest/agent-observability/update-an-agent-observability-prompt-version.md. A documentation index is available at /llms.txt.
Language
Datadog site

Update an Agent Observability prompt version

WARNINGNote: This endpoint is in preview and is subject to change. If you have any feedback, contact Datadog support.
PATCHhttps://api.datadoghq.com/api/v2/llm-obs/v1/prompts/{prompt_id}/versions/{version}https://api.us3.datadoghq.com/api/v2/llm-obs/v1/prompts/{prompt_id}/versions/{version}https://api.us5.datadoghq.com/api/v2/llm-obs/v1/prompts/{prompt_id}/versions/{version}https://api.datadoghq.eu/api/v2/llm-obs/v1/prompts/{prompt_id}/versions/{version}https://api.ap1.datadoghq.com/api/v2/llm-obs/v1/prompts/{prompt_id}/versions/{version}https://api.ap2.datadoghq.com/api/v2/llm-obs/v1/prompts/{prompt_id}/versions/{version}https://api.uk1.datadoghq.com/api/v2/llm-obs/v1/prompts/{prompt_id}/versions/{version}https://api.ddog-gov.com/api/v2/llm-obs/v1/prompts/{prompt_id}/versions/{version}https://api.us2.ddog-gov.com/api/v2/llm-obs/v1/prompts/{prompt_id}/versions/{version}

Présentation

Update the description, the feature-flag environments, or both, for a specific version of an Agent Observability prompt.

This endpoint requires all of the following permissions:

  • llm_observability_read
  • llm_observability_write
  • feature_flag_config_read
  • feature_flag_config_write
  • feature_flag_environment_config_read

Arguments

Paramètres du chemin

Name
Type
Description
prompt_id [required]
string

The customer-provided identifier of the Agent Observability prompt.

version [required]
integer

The version number of the Agent Observability prompt.

Requête

Body Data (required)

Update prompt version payload.

Champ
Type
Description
data [required]
object

Data object for updating an Agent Observability prompt version.

Réponse

OK

Response containing a specific version of an Agent Observability prompt.

Champ
Type
Description
data [required]
object

Data object for a specific version of an Agent Observability prompt.

Exemple de code

# Path parameters
export prompt_id="customer-support-assistant"
export version="1"

# 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 PATCH "https://api.${DD_SITE}/api/v2/llm-obs/v1/prompts/${prompt_id}/versions/${version}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "Give concise answers and cite relevant help-center articles."
    },
    "type": "prompt-template-versions"
  }
}
EOF
# Path parameters
export prompt_id="customer-support-assistant"
export version="1"

# 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 PATCH "https://api.${DD_SITE}/api/v2/llm-obs/v1/prompts/${prompt_id}/versions/${version}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "Give concise answers and cite relevant help-center articles."
    },
    "type": "prompt-template-versions"
  }
}
EOF
# Path parameters
export prompt_id="customer-support-assistant"
export version="1"

# 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 PATCH "https://api.${DD_SITE}/api/v2/llm-obs/v1/prompts/${prompt_id}/versions/${version}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "Give concise answers and cite relevant help-center articles."
    },
    "type": "prompt-template-versions"
  }
}
EOF
# Path parameters
export prompt_id="customer-support-assistant"
export version="1"

# 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 PATCH "https://api.${DD_SITE}/api/v2/llm-obs/v1/prompts/${prompt_id}/versions/${version}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "Give concise answers and cite relevant help-center articles."
    },
    "type": "prompt-template-versions"
  }
}
EOF
# Path parameters
export prompt_id="customer-support-assistant"
export version="1"

# 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 PATCH "https://api.${DD_SITE}/api/v2/llm-obs/v1/prompts/${prompt_id}/versions/${version}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "Give concise answers and cite relevant help-center articles."
    },
    "type": "prompt-template-versions"
  }
}
EOF
# Path parameters
export prompt_id="customer-support-assistant"
export version="1"

# 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 PATCH "https://api.${DD_SITE}/api/v2/llm-obs/v1/prompts/${prompt_id}/versions/${version}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "Give concise answers and cite relevant help-center articles."
    },
    "type": "prompt-template-versions"
  }
}
EOF
# Path parameters
export prompt_id="customer-support-assistant"
export version="1"

# 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 PATCH "https://api.${DD_SITE}/api/v2/llm-obs/v1/prompts/${prompt_id}/versions/${version}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "Give concise answers and cite relevant help-center articles."
    },
    "type": "prompt-template-versions"
  }
}
EOF
# Path parameters
export prompt_id="customer-support-assistant"
export version="1"

# 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 PATCH "https://api.${DD_SITE}/api/v2/llm-obs/v1/prompts/${prompt_id}/versions/${version}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "Give concise answers and cite relevant help-center articles."
    },
    "type": "prompt-template-versions"
  }
}
EOF
# Path parameters
export prompt_id="customer-support-assistant"
export version="1"

# 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 PATCH "https://api.${DD_SITE}/api/v2/llm-obs/v1/prompts/${prompt_id}/versions/${version}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "description": "Give concise answers and cite relevant help-center articles."
    },
    "type": "prompt-template-versions"
  }
}
EOF