Skip to main content
PATCH
/
projects
/
{projectIdOrName}
/
notifications
/
topics
/
{topicId}
Update a notification topic
curl --request PATCH \
  --url https://api.withampersand.com/v1/projects/{projectIdOrName}/notifications/topics/{topicId} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "label": "Updated System Alerts"
}'
{
  "id": "<string>",
  "label": "System Alerts",
  "projectId": "<string>",
  "createTime": "2023-11-07T05:31:56Z",
  "updateTime": "2023-11-07T05:31:56Z"
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

projectIdOrName
string
required

The Ampersand project ID or project name.

topicId
string
required

The notification topic ID.

Body

application/json
label
string
required

A human-readable label for the notification topic.

Example:

"Updated System Alerts"

Response

Updated

id
string
required

The notification topic ID.

label
string
required

A human-readable label for the notification topic.

Example:

"System Alerts"

projectId
string
required

The Ampersand project ID.

createTime
string<date-time>
required

The time when the notification topic was created.

updateTime
string<date-time>

The time when the notification topic was last updated.

I