Skip to main content
POST
/
projects
/
{projectIdOrName}
/
topic-destination-routes
Create a topic destination route
curl --request POST \
  --url https://api.withampersand.com/v1/projects/{projectIdOrName}/topic-destination-routes \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "topicId": "1234567890abcdef",
  "destinationId": "abcdef1234567890"
}'
{
  "id": "<string>",
  "topicId": "<string>",
  "destinationId": "<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 topic.

destinationId
string
required

The ID of the destination.

Response

Created

id
string
required

The topic destination route ID.

topicId
string
required

The ID of the topic.

destinationId
string
required

The ID of the destination.

projectId
string
required

The Ampersand project ID.

createTime
string<date-time>
required

The time when the topic destination route was created.