Skip to content

Announcement

Examples

List announcements

announcements = pm.announcement.list()

Get a single announcement

# Get a announcement by ID
announcement_id = 11
announcement = pm.announcement.get(announcement_id)

Create a announcement

announcement = pm.announcement.create(
  name="My announcement",
  description="Demonstration announcement",
  service=service.id,
  scope=scope.id,
  level="medium",
)

Updating a announcement

announcement = announcement.update(
  description="Updated announcement",
  level="low",
)

Deleting a announcement

announcement.delete()

Last update: February 5, 2023
Created: February 5, 2023