Skip to main content
POST
/
v1
/
incident_memberships
Create
curl --request POST \
  --url https://api.incident.io/v1/incident_memberships \
  --header 'Content-Type: application/json' \
  --data '
{
  "incident_id": "01ET65M7ZADYFCKD4K1AE2QNMC",
  "user_id": "01FCQSP07Z74QMMYPDDGQB9FTG"
}
'
{
  "incident_membership": {
    "created_at": "2021-08-17T13:28:57.801578Z",
    "id": "01FCNDV6P870EA6S7TK1DSYD5H",
    "incident_id": "01FCNDV6P870EA6S7TK1DSYD5H",
    "updated_at": "2021-08-17T13:28:57.801578Z",
    "user": {
      "email": "lisa@incident.io",
      "id": "01FCNDV6P870EA6S7TK1DSYDG0",
      "name": "Lisa Karlin Curtis",
      "role": "viewer",
      "slack_user_id": "U02AYNF2XJM"
    }
  }
}

Body

application/json
incident_id
string
required
Example:

"01ET65M7ZADYFCKD4K1AE2QNMC"

user_id
string
required
Example:

"01FCQSP07Z74QMMYPDDGQB9FTG"

Response

201 - application/json

Created response.

incident_membership
object
required
Example:
{
"created_at": "2021-08-17T13:28:57.801578Z",
"id": "01FCNDV6P870EA6S7TK1DSYD5H",
"incident_id": "01FCNDV6P870EA6S7TK1DSYD5H",
"updated_at": "2021-08-17T13:28:57.801578Z",
"user": {
"email": "lisa@incident.io",
"id": "01FCNDV6P870EA6S7TK1DSYDG0",
"name": "Lisa Karlin Curtis",
"role": "viewer",
"slack_user_id": "U02AYNF2XJM"
}
}