POST
/
api
/
incidents
/
v1
curl --request POST \
  --url https://developer.synq.io/api/incidents/v1 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "issueIds": [
    "<string>"
  ],
  "name": "<string>",
  "actor": {
    "name": "<string>",
    "slack": {
      "userId": "<string>"
    },
    "email": {
      "userEmail": "<string>"
    },
    "pagerduty": {
      "userId": "<string>"
    }
  },
  "at": "2023-11-07T05:31:56Z",
  "groupIds": [
    "<string>"
  ]
}'
{
  "incident": {
    "id": "<string>",
    "index": 123,
    "name": "<string>",
    "issueIds": [
      "<string>"
    ],
    "createdBy": {
      "name": "<string>",
      "slack": {
        "userId": "<string>"
      },
      "email": {
        "userEmail": "<string>"
      },
      "pagerduty": {
        "userId": "<string>"
      }
    },
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedBy": {
      "name": "<string>",
      "slack": {
        "userId": "<string>"
      },
      "email": {
        "userEmail": "<string>"
      },
      "pagerduty": {
        "userId": "<string>"
      }
    },
    "updatedAt": "2023-11-07T05:31:56Z",
    "state": 123,
    "comments": [
      {
        "id": "<string>",
        "message": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "actor": {
          "name": "<string>",
          "slack": {
            "userId": "<string>"
          },
          "email": {
            "userEmail": "<string>"
          },
          "pagerduty": {
            "userId": "<string>"
          }
        }
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

OK

The response is of type object.