You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Global messages can be created, obtained, or deleted by using the {productname} API.
6
+
Use the following procedure to create, obtain, or delete a global message.
7
+
8
+
.Prerequisites
9
+
10
+
* You have created an OAuth 2 access token.
11
+
12
+
.Procedure
13
+
14
+
. Create a message by using the link:https://docs.redhat.com/en/documentation/red_hat_quay/{producty}/html-single/red_hat_quay_api_guide/index#createglobalmessage[`POST /api/v1/message] endpoint:
15
+
+
16
+
[source,terminal]
17
+
----
18
+
$ curl -X POST "https://quay-server.example.com/api/v1/messages" \
. Use the link:https://docs.redhat.com/en/documentation/red_hat_quay/{productname}/html-single/red_hat_quay_api_guide/index#getglobalmessages[`GET /api/v1/messages`] command to return the list of global messages:
33
+
+
34
+
[source,terminal]
35
+
----
36
+
$ curl -X GET "https://<quay-server.example.com>/api/v1/messages" \
. Delete the global message by using the link:https://docs.redhat.com/en/documentation/red_hat_quay/{productname}/html-single/red_hat_quay_api_guide/index#deleteglobalmessage[`DELETE /api/v1/message/{uuid}`] endpoint:
0 commit comments