Send a custom notification
POST
CoderSessionTokenheader
Coder-Session-Token<token>Provide a non-empty title or message
application/json- body
content?No Content
The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X POST \ "$CODER_URL/api/v2/notifications/custom" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "content": { "message": "string", "title": "string" }}'Example Response
Empty