curl --request POST \
  --url https://{domain}-be.glean.com/rest/api/v1/unpublishannouncement \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 123
}'
{
  "draftId": 342
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Scio-Actas
string

Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens).

X-Glean-Auth-Type
string

Auth type being used to access the endpoint (should be non-empty only for global tokens).

Body

application/json
Unpublish announcement content.
id
integer
required

The opaque id of the announcement to be unpublished.

Response

200
application/json
OK
id
integer

The opaque id of the announcement.

author
object
Example:
{
  "name": "George Clooney",
  "obfuscatedId": "abc123"
}
createTimestamp
integer

Server Unix timestamp of the creation time (in seconds since epoch UTC).

lastUpdateTimestamp
integer

Server Unix timestamp of the last update time (in seconds since epoch UTC).

updatedBy
object
Example:
{
  "name": "George Clooney",
  "obfuscatedId": "abc123"
}
viewerInfo
object
sourceDocument
object

The source document if the announcement is created from one.