{
"data": {
"attributes": {
"columns_config": {
"columns": [
{
"sort": {
"ascending": false,
"priority": "integer"
},
"sort_field": "string",
"type": "string"
}
]
},
"enabled_custom_case_types": [],
"key": "CASEM",
"name": "Security Investigation",
"restricted": false,
"settings": {
"auto_close_inactive_cases": {
"enabled": false,
"max_inactive_time_in_secs": "integer"
},
"auto_transition_assigned_cases": {
"auto_transition_assigned_cases_on_self_assigned": false
},
"integration_incident": {
"auto_escalation_query": "string",
"default_incident_commander": "string",
"enabled": false,
"field_mappings": [
{
"case_field": "string",
"incident_user_defined_field_id": "string"
}
],
"incident_type": "string",
"severity_config": {
"priority_mapping": {
"<any-key>": "string"
}
}
},
"integration_jira": {
"auto_creation": {
"enabled": false
},
"enabled": false,
"metadata": {
"account_id": "string",
"issue_type_id": "string",
"project_id": "string"
},
"sync": {
"enabled": false,
"properties": {
"assignee": {
"sync_type": "string"
},
"comments": {
"sync_type": "string"
},
"custom_fields": {
"<any-key>": {
"sync_type": "string",
"value": {
"description": "undefined",
"type": "undefined"
}
}
},
"description": {
"sync_type": "string"
},
"due_date": {
"jira_field_id": "string",
"sync_type": "string"
},
"priority": {
"mapping": {
"<any-key>": "string"
},
"name_mapping": {
"<any-key>": "string"
},
"sync_type": "string"
},
"status": {
"mapping": {
"<any-key>": "string"
},
"name_mapping": {
"<any-key>": "string"
},
"sync_type": "string"
},
"title": {
"sync_type": "string"
}
}
}
},
"integration_monitor": {
"auto_resolve_enabled": false,
"case_type_id": "string",
"enabled": false,
"handle": "string"
},
"integration_on_call": {
"auto_assign_on_call": false,
"enabled": false,
"escalation_queries": [
{
"enabled": false,
"id": "string",
"query": "string",
"target": {
"dynamic_team_paging": false,
"team_id": "string",
"user_id": "string"
}
}
]
},
"integration_service_now": {
"assignment_group": "string",
"auto_creation": {
"enabled": false
},
"enabled": false,
"instance_name": "string",
"sync_config": {
"enabled": false,
"properties": {
"comments": {
"sync_type": "string"
},
"priority": {
"impact_mapping": {
"<any-key>": "string"
},
"sync_type": "string",
"urgency_mapping": {
"<any-key>": "string"
}
},
"status": {
"mapping": {
"<any-key>": "string"
},
"name_mapping": {
"<any-key>": "string"
},
"sync_type": "string"
}
}
}
},
"notification": {
"destinations": [],
"enabled": false,
"notify_on_case_assignment": false,
"notify_on_case_closed": false,
"notify_on_case_comment": false,
"notify_on_case_comment_mention": false,
"notify_on_case_priority_change": false,
"notify_on_case_status_change": false,
"notify_on_case_unassignment": false
}
}
},
"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001",
"relationships": {
"member_team": {
"data": [
{
"id": "f9bb8444-af7f-11ec-ac2c-da7ad0900001",
"type": "team_links"
}
],
"links": {
"related": "/api/v2/team/c75a4a8e-20c7-11ee-a3a5-da7ad0900002/links"
}
},
"member_user": {
"data": [
{
"id": "00000000-0000-0000-0000-000000000000",
"type": "user"
}
]
}
},
"type": "project"
}
}
POST https://api.ap1.datadoghq.com/api/v2/cases/{case_id}/commenthttps://api.ap2.datadoghq.com/api/v2/cases/{case_id}/commenthttps://api.datadoghq.eu/api/v2/cases/{case_id}/commenthttps://api.ddog-gov.com/api/v2/cases/{case_id}/commenthttps://api.us2.ddog-gov.com/api/v2/cases/{case_id}/commenthttps://api.datadoghq.com/api/v2/cases/{case_id}/commenthttps://api.us3.datadoghq.com/api/v2/cases/{case_id}/commenthttps://api.us5.datadoghq.com/api/v2/cases/{case_id}/comment
Información general
Comment case
Argumentos
Parámetros de ruta
Nombre
Tipo
Descripción
case_id [required]
string
Case’s UUID or key
Solicitud
Body Data (required)
Case comment payload
Expand All
Campo
Tipo
Descripción
data [required]
object
Case comment
attributes [required]
object
Case comment attributes
comment [required]
string
The
CaseCommentAttributesmessage.type [required]
enum
JSON:API resource type for cases. Allowed enum values:
casedefault:
caseRespuesta
OK
Response containing the chronological list of timeline cells for a case.
Expand All
Campo
Tipo
Descripción
data
[object]
The
TimelineResponsedata.attributes [required]
object
Attributes of a timeline cell, representing a single event in a case's chronological activity log (for example, a comment, status change, or assignment update).
author
<oneOf>
The author of the timeline cell. Currently only user authors are supported.
Option 1
object
A user who authored a timeline cell.
content
object
Profile information for the user who authored the timeline cell.
email
string
The email address of the user.
handle
string
The Datadog handle of the user.
id
string
The UUID of the user.
name
string
The display name of the user.
type
enum
The type of timeline cell author. Currently only
USERis supported. Allowed enum values:USERcell_content
<oneOf>
The content payload of a timeline cell, varying by cell type.
Option 1
object
The content of a comment timeline cell.
message
string
The text content of the comment. Supports Markdown formatting.
created_at
date-time
Timestamp of when the cell was created
deleted_at
date-time
Timestamp of when the cell was deleted
modified_at
date-time
Timestamp of when the cell was last modified
type
enum
The type of content in the timeline cell. Currently only
COMMENTis supported in this endpoint. Allowed enum values:COMMENTid [required]
string
Timeline cell's identifier
type [required]
enum
JSON:API resource type for timeline cells. Allowed enum values:
timeline_celldefault:
timeline_cellBad Request
API error response.
Expand All
Campo
Tipo
Descripción
errors [required]
[string]
A list of errors.
Unauthorized
API error response.
Expand All
Campo
Tipo
Descripción
errors [required]
[string]
A list of errors.
Forbidden
API error response.
Expand All
Campo
Tipo
Descripción
errors [required]
[string]
A list of errors.
Not Found
API error response.
Expand All
Campo
Tipo
Descripción
errors [required]
[string]
A list of errors.
Too many requests
API error response.
Expand All
Campo
Tipo
Descripción
errors [required]
[string]
A list of errors.
Ejemplo de código
## default #
# Path parameters
export case_id="f98a5a5b-e0ff-45d4-b2f5-afe6e74de504"
# Curl command
curl -X POST "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/cases/${case_id}/comment" \ -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": { "comment": "This is my comment !" }, "type": "case" } } EOF
Instructions
First install the library and its dependencies and then save the example to
main.goand run following commands:Instructions
First install the library and its dependencies and then save the example to
Example.javaand run following commands:Instructions
First install the library and its dependencies and then save the example to
example.pyand run following commands:Instructions
First install the library and its dependencies and then save the example to
example.rband run following commands:Instructions
First install the library and its dependencies and then save the example to
src/main.rsand run following commands:Instructions
First install the library and its dependencies and then save the example to
example.tsand run following commands: