Assign alert ownership
documentedAssign an owner/handler to the alert.
POST /v2/alerts/{identifier}/assignAlertsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.opsgenie.com/v2/alerts/{{$identifier}}/assign?identifierType={{$identifierType}}" \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: GenieKey {{OPSGENIE_API_KEY}}" \
-d '{"owner": {"id": "{{$owner_id}}"}, "user": "{{$user}}", "source": "{{$source}}", "note": "{{$note}}"}'