{
"data": [
{
"attributes": {
"archived_at": "2019-09-19T10:00:00.000Z",
"attributes": {
"<any-key>": []
},
"closed_at": "2019-09-19T10:00:00.000Z",
"created_at": "2019-09-19T10:00:00.000Z",
"custom_attributes": {
"<any-key>": {
"is_multi": false,
"type": "NUMBER",
"value": {
"description": "undefined",
"type": "undefined"
}
}
},
"description": "string",
"jira_issue": {
"result": {
"issue_id": "string",
"issue_key": "string",
"issue_url": "string",
"project_key": "string"
},
"status": "COMPLETED"
},
"key": "CASEM-4523",
"modified_at": "2019-09-19T10:00:00.000Z",
"priority": "NOT_DEFINED",
"service_now_ticket": {
"result": {
"sys_target_link": "string"
},
"status": "COMPLETED"
},
"status": "OPEN",
"title": "Memory leak investigation on API",
"type": "STANDARD",
"type_id": "3b010bde-09ce-4449-b745-71dd5f861963"
},
"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001",
"relationships": {
"assignee": {
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "user"
}
},
"created_by": {
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "user"
}
},
"modified_by": {
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "user"
}
},
"project": {
"data": {
"id": "e555e290-ed65-49bd-ae18-8acbfcf18db7",
"type": "project"
}
}
},
"type": "case"
}
],
"meta": {
"page": {
"current": "integer",
"size": "integer",
"total": "integer"
}
}
}
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.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
Présentation
Comment case
Arguments
Paramètres du chemin
Nom
Type
Description
case_id [required]
string
Case’s UUID or key
Requête
Body Data (required)
Case comment payload
Expand All
Champ
Type
Description
data [required]
object
Case comment
attributes [required]
object
Case comment attributes
comment [required]
string
The
CaseCommentAttributes
message
.type [required]
enum
Case resource type Allowed enum values:
case
default:
case
Réponse
OK
Timeline response
Expand All
Champ
Type
Description
data
[object]
The
TimelineResponse
data
.attributes [required]
object
timeline cell
author
<oneOf>
author of the timeline cell
Option 1
object
timeline cell user author
content
object
user author content.
email
string
user email
handle
string
user handle
id
string
user UUID
name
string
user name
type
enum
user author type. Allowed enum values:
USER
cell_content
<oneOf>
timeline cell content
Option 1
object
comment content
message
string
comment message
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
Timeline cell content type Allowed enum values:
COMMENT
id [required]
string
Timeline cell's identifier
type [required]
enum
Timeline cell JSON:API resource type Allowed enum values:
timeline_cell
default:
timeline_cell
Bad Request
API error response.
Expand All
Champ
Type
Description
errors [required]
[string]
A list of errors.
Unauthorized
API error response.
Expand All
Champ
Type
Description
errors [required]
[string]
A list of errors.
Forbidden
API error response.
Expand All
Champ
Type
Description
errors [required]
[string]
A list of errors.
Not Found
API error response.
Expand All
Champ
Type
Description
errors [required]
[string]
A list of errors.
Too many requests
API error response.
Expand All
Champ
Type
Description
errors [required]
[string]
A list of errors.
Exemple de code