POST
/
api
/
incidents
/
v1
CreateIncident
curl --request POST \
  --url https://developer.synq.io/api/incidents/v1 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "issueIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "name": "<string>",
  "actor": {
    "email": {
      "userEmail": "jsmith@example.com"
    },
    "name": "<string>"
  },
  "at": "1s",
  "groupIds": [
    "<string>"
  ]
}'
{
  "incident": {
    "id": "<string>",
    "index": 123,
    "name": "<string>",
    "issueIds": [
      "<string>"
    ],
    "createdBy": {
      "email": {
        "userEmail": "jsmith@example.com"
      },
      "name": "<string>"
    },
    "createdAt": "1s",
    "updatedBy": {
      "email": {
        "userEmail": "jsmith@example.com"
      },
      "name": "<string>"
    },
    "updatedAt": "1s",
    "state": "STATE_UNSPECIFIED",
    "comments": [
      {
        "id": "<string>",
        "message": "<string>",
        "createdAt": "1s",
        "actor": {
          "email": {
            "userEmail": "jsmith@example.com"
          },
          "name": "<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

Success

The response is of type object.