Skip to main content
PUT
/
api
/
v1
/
missions
/
{missionId}
/
notifications
Update mission notifications
curl --request PUT \
  --url http://localhost:3000/api/v1/missions/{missionId}/notifications \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "notifications": {
    "rules": [
      {
        "id": "<string>",
        "name": "<string>",
        "events": [
          "<string>"
        ],
        "channels": [
          "<string>"
        ],
        "condition": null,
        "severity": "info",
        "template": "<string>",
        "cooldownMs": 1,
        "includeOutcomes": true,
        "outcomeFilter": [
          "file"
        ],
        "maxAttachmentSize": 1
      }
    ],
    "inherit": true
  }
}
'
{
  "ok": true,
  "data": null
}

Authorizations

Authorization
string
header
required

API key passed as a Bearer token. Configure via the apiKeys field in polpo.json or the POLPO_API_KEY environment variable.

Path Parameters

missionId
string
required

Body

application/json
notifications
object
required

Response

Updated mission

ok
boolean
required
data
unknown