v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Incidents

Update an existing incident integration metadata

Update an existing incident integration metadata.

patch/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}

Path parameters

incident_idstring required

The UUID of the incident.

integration_metadata_idstring required

The UUID of the incident integration metadata.

Request body

Example request

{
  "data": {
    "attributes": {
      "incident_id": "00000000-aaaa-0000-0000-000000000000",
      "integration_type": 1,
      "metadata": {
        "channels": []
      }
    },
    "type": "incident_integrations"
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "incident_id": "00000000-aaaa-0000-0000-000000000000",
      "integration_type": 1,
      "metadata": {
        "channels": []
      }
    },
    "id": "00000000-0000-0000-1234-000000000000",
    "relationships": {
      "created_by_user": {
        "data": {
          "id": "00000000-0000-0000-2345-000000000000",
          "type": "users"
        }
      },
      "last_modified_by_user": {
        "data": {
          "id": "00000000-0000-0000-2345-000000000000",
          "type": "users"
        }
      }
    },
    "type": "incident_integrations"
  },
  "included": [
    {
      "relationships": {
        "org": {
          "data": {
            "id": "00000000-0000-beef-0000-000000000000",
            "type": "orgs"
          }
        },
        "other_orgs": {
          "data": []
        },
        "other_users": {
          "data": []
        },
        "roles": {
          "data": [
            {
              "id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
              "type": "roles"
            }
          ]
        }
      },
      "type": "users"
    }
  ]
}