Skip to main content
POST
/
projects
/
{projectIdOrName}
/
notifications
/
topic-target-routes
Create a notification topic-target route that maps notification topics to targets for delivery.
curl --request POST \
  --url https://api.withampersand.com/v1/projects/{projectIdOrName}/notifications/topic-target-routes \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "topicId": "<string>",
  "targetId": "<string>"
}'
{
  "id": "<string>",
  "topicId": "<string>",
  "targetId": "<string>",
  "projectId": "<string>",
  "createTime": "2023-11-07T05:31:56Z"
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

projectIdOrName
string
required

The Ampersand project ID or project name.

Body

application/json
topicId
string
required

The ID of the notification topic.

targetId
string
required

The ID of the notification target.

Response

Created

id
string
required

The topic-target route ID.

topicId
string
required

The ID of the notification topic.

targetId
string
required

The ID of the notification target.

projectId
string
required

The Ampersand project ID.

createTime
string<date-time>
required

The time when the topic-target route was created.

I