Skip to content

Files

Latest commit

 

History

History
54 lines (40 loc) · 1.06 KB

api-globalmessages-createGlobalMessage.adoc

File metadata and controls

54 lines (40 loc) · 1.06 KB

createGlobalMessage

POST /api/v1/messages

Authorizations: oauth2_implicit (super:user)

Request body schema (application/json)

Create a new message

Name Description Schema

message
required

A single message

object

Responses

HTTP Code Description Schema

201

Successful creation

400

Bad Request

401

Session required

403

Unauthorized access

404

Not found

Example command

$ curl -X POST "https://<quay-server.example.com>/api/v1/messages" \
    -H "Authorization: Bearer <access_token>" \
    -H "Content-Type: application/json" \
    -d '{
        "message": {
            "content": "Hi",
            "media_type": "text/plain",
            "severity": "info"
        }
    }'