Announcements

Update an announcement

Update an existing announcement. Requires bearer token authentication.

patch/v5/announcements/{id}

Path parameters

idinteger nullable required

Announcement ID.

Example:1

Announcement ID.

Request body

authorstring
titlestring required
contentstring
tagsstring[] required
created_atstring date-time nullable

UTC timestamp.

archived_atstring date-time nullable

UTC timestamp.

levelinteger

Example request

{
  "author": "ReVanced",
  "title": "Welcome",
  "content": "Some content",
  "tags": [
    "Important"
  ],
  "created_at": "1970-01-01T00:00:00.000Z"
}

Response

The updated announcement.

idinteger required
authorstring nullable required
titlestring required
contentstring nullable required
tagsstring[] required
created_atstring date-time required
archived_atstring date-time nullable required
levelinteger required

Example response

{
  "id": 1,
  "author": "ReVanced",
  "title": "Welcome",
  "content": "Some content",
  "tags": [
    "Important"
  ],
  "created_at": "1970-01-01T00:00:00.000Z"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.