openapi: 3.1.0 info: title: IBM MQ Administration REST Channels Topic Messaging API description: REST API for administering and monitoring IBM MQ queue managers, queues, topics, subscriptions, and channels. Provides programmatic access to manage MQ objects and retrieve status information. version: '2.0' contact: name: IBM Support url: https://www.ibm.com/mysupport email: support@ibm.com license: name: IBM License url: https://www.ibm.com/terms servers: - url: https://{host}:{port}/ibmmq/rest/v2 description: IBM MQ REST API v2 variables: host: default: localhost description: Hostname of the MQ web server port: default: '9443' description: HTTPS port of the MQ web server security: - basicAuth: [] - tokenAuth: [] tags: - name: Topic Messaging description: Publish messages to topics paths: /messaging/qmgr/{qmgrName}/topic/{topicString}/message: post: operationId: publishMessageToTopic summary: IBM MQ Publish a message to a topic description: Publish a message to the specified topic string. All active subscribers to the topic will receive the message. tags: - Topic Messaging parameters: - $ref: '#/components/parameters/qmgrName' - name: topicString in: path required: true description: The topic string to publish to (URL-encoded) schema: type: string - $ref: '#/components/parameters/ibmMqRestCsrfToken' - name: ibm-mq-md-correlationId in: header description: Correlation ID for the message schema: type: string - name: ibm-mq-md-expiry in: header description: Message expiry time in tenths of a second schema: type: integer - name: ibm-mq-md-persistence in: header description: Message persistence schema: type: string enum: - persistent - nonPersistent requestBody: required: true content: text/plain: schema: type: string application/json: schema: type: object application/xml: schema: type: string application/octet-stream: schema: type: string format: binary responses: '201': description: Message published successfully headers: ibm-mq-md-messageId: description: Message ID of the published message schema: type: string '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '404': description: Queue manager not found components: responses: Unauthorized: description: Authentication required or credentials invalid content: application/json: schema: $ref: '#/components/schemas/Error' BadRequest: description: Invalid request parameters or body content: application/json: schema: $ref: '#/components/schemas/Error' parameters: ibmMqRestCsrfToken: name: ibm-mq-rest-csrf-token in: header required: false description: CSRF token required for state-changing operations schema: type: string qmgrName: name: qmgrName in: path required: true description: Name of the queue manager schema: type: string schemas: Error: type: object properties: error: type: array items: type: object properties: type: type: string description: Error type msgId: type: string description: Message identifier explanation: type: string description: Explanation of the error action: type: string description: Suggested action securitySchemes: basicAuth: type: http scheme: basic description: HTTP Basic authentication with MQ user credentials tokenAuth: type: apiKey in: cookie name: LtpaToken2 description: LTPA token-based authentication via login endpoint externalDocs: description: IBM MQ REST API Documentation url: https://www.ibm.com/docs/en/ibm-mq/latest?topic=api-rest