`POST /v1/orgs/{org}/notification-channels/{channel_id}/test`.
POST
/v1/orgs/{org}/notification-channels/{channel_id}/test
const url = 'https://api.updawg.net/v1/orgs/example/notification-channels/example/test';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.updawg.net/v1/orgs/example/notification-channels/example/testParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Organization slug.
channel_id
required
string
The nch_… id.
Responses
Section titled “Responses”Tried, and whether it arrived. Recorded in the channel’s delivery log either way.
Media typeapplication/json
How a test send went. A channel that did not accept the message is an answer, not an error: the request to try worked.
object
delivered
required
boolean
error
Why not, in the other side’s words where there were any. Never the destination.
string | null
Examplegenerated
{ "delivered": true, "error": "example"}No session.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Not permitted for this role.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No such channel here.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Over the organization’s request limit. Retry-After says when to try again; RateLimit-Limit is the burst.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}This deployment cannot decrypt channel credentials.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}