editIncidentComment
Edit an incident comment (author only).
Examples
mutation EditIncidentComment($commentId: String!, $text: String!) {
editIncidentComment(commentId: $commentId, text: $text) {
id
incidentId
text
authorId
authorName
authorEmail
edited
createdAt
updatedAt
}
}Variables
This is an example input showing all available input fields. Only fields marked as required in the schema are mandatory.
{
"commentId": "example",
"text": "example"
}curl -X POST \
https://api.cloud.ox.security/api/apollo-gateway \
-H 'Content-Type: application/json' \
-H 'Authorization: YOUR_API_TOKEN' \
-d '{
"query": "mutation EditIncidentComment($commentId: String!, $text: String!) { editIncidentComment(commentId: $commentId, text: $text) { id incidentId text authorId authorName authorEmail edited createdAt updatedAt } }",
"variables": {
"commentId": "example",
"text": "example"
}
}'Arguments
You can use the following argument(s) to customize your editIncidentComment mutation.
Argument
Description
Supported fields
commentId String! required
text String! required
Fields
Return type: IncidentComment!
You can use the following field(s) to specify what information your editIncidentComment mutation will return. Please note that some fields may have their own subfields.
Field
Description
Supported fields
id String!
incidentId String!
text String!
authorId String!
authorName String
authorEmail String
edited Boolean!
createdAt DateTime!
updatedAt DateTime
Last updated