Update an Incident Tag Definition

Update an incident tag definition by ID.

🚧

Authentication

All BigPanda APIs require Bearer Token Authorization in the call headers.

This API uses the User API Key type of Authorization token.

Sample Call

curl --request PUT \
     --url https://api.bigpanda.io/resources/v2.0/incidents/tags/definitions/<ID> \
     --header 'Authorization: Bearer <User API Key>' \
     --header 'Content-type: application/json' \
     --data '{
    "name": "Priority",
    "description": "Priority for prioritizing incidents",
    "type": "Priority",
    "active": true,
    "canManualInput": true,
    "config": {
      "ordered_list": [
        {
          "display_name": "P1",
          "description": "Critical",
          "order_id": 1000,
          "active": true
        },
        {
          "display_name": "P2",
          "description": "Warning",
          "order_id": 900,
          "active": true
        },
        {
          "display_name": "P3",
          "description": "Info",
          "order_id": 800,
          "active": true
        },
        {
          "display_name": "P4",
          "description": "Info",
          "order_id": 700,
          "active": true
        },
        {
          "display_name": "P5",
          "description": "Info",
          "order_id": 600,
          "active": true
        }
      ]
    },
    "enrichment_config": {
      "items": [
        {
          "value": "1000",
          "condition": "priority = \"p0\"",
          "id": "d9e7a648-48b2-4d28-a42d-398a7b0da237"
        },
        {
          "value": "900",
          "condition": "priority = \"p1\"",
          "id": "08019f7f-11fd-4dac-9931-d35659a9ed29"
        },
        {
          "value": "800",
          "condition": "priority = \"p2\"",
          "id": "1d3889ce-6529-40e6-8d03-2159054ebc33"
        },
        {
          "value": "700",
          "condition": "priority not in [\"p0\",\"p1\",\"p2\"] and actionable = true",
          "id": "aa0a67a4-b1a5-4846-80bc-15cd2d956243"
        },
        {
          "value": "600",
          "condition": "priority not in [\"p0\",\"p1\",\"p2\"] and actionable = false",
          "id": "8f719f46-08da-4e4d-8385-5a3023f8edc6"
        }
      ]
    }
  }'
curl --request PUT \
     --url https://eu-api.bigpanda.io/resources/v2.0/incidents/tags/definitions/<ID> \
     --header 'Authorization: Bearer <User API Key>' \
     --header 'Content-type: application/json' \
     --data '{
    "name": "Priority",
    "description": "Priority for prioritizing incidents",
    "type": "Priority",
    "active": true,
    "canManualInput": true,
    "config": {
      "ordered_list": [
        {
          "display_name": "P1",
          "description": "Critical",
          "order_id": 1000,
          "active": true
        },
        {
          "display_name": "P2",
          "description": "Warning",
          "order_id": 900,
          "active": true
        },
        {
          "display_name": "P3",
          "description": "Info",
          "order_id": 800,
          "active": true
        },
        {
          "display_name": "P4",
          "description": "Info",
          "order_id": 700,
          "active": true
        },
        {
          "display_name": "P5",
          "description": "Info",
          "order_id": 600,
          "active": true
        }
      ]
    },
    "enrichment_config": {
      "items": [
        {
          "value": "1000",
          "condition": "priority = \"p0\"",
          "id": "d9e7a648-48b2-4d28-a42d-398a7b0da237"
        },
        {
          "value": "900",
          "condition": "priority = \"p1\"",
          "id": "08019f7f-11fd-4dac-9931-d35659a9ed29"
        },
        {
          "value": "800",
          "condition": "priority = \"p2\"",
          "id": "1d3889ce-6529-40e6-8d03-2159054ebc33"
        },
        {
          "value": "700",
          "condition": "priority not in [\"p0\",\"p1\",\"p2\"] and actionable = true",
          "id": "aa0a67a4-b1a5-4846-80bc-15cd2d956243"
        },
        {
          "value": "600",
          "condition": "priority not in [\"p0\",\"p1\",\"p2\"] and actionable = false",
          "id": "8f719f46-08da-4e4d-8385-5a3023f8edc6"
        }
      ]
    }
  }'
Language