The REST API provides the following methods to retrieve various parts of a message:
The message retrieval REST API methods expose Protected Health Information (PHI) data. It is the responsibility of the Rhapsody administrator to ensure that access rights for these methods are granted to the appropriate users. It is the responsibility of the users to ensure these methods are implemented securely when dealing with PHI.
GET /api/message/<id>/meta
URI |
|
---|---|
Description |
Retrieves the message metadata for a specified message (primarily, but not exclusively, the message properties). |
Request Header |
|
Accept: application/vnd.orchestral.rhapsody.6_0+json |
|
Request Body |
Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
The response body has the following data object structure:
Currently, the method returns null (indicating the default system encoding) if no character encoding has been explicitly set. |
Access Rights |
'View message metadata REST API'. |
GET /api/message/<id>/path
URI |
|
---|---|
Description |
Retrieves the message path for a specified message and all the events associated with the message. |
Request Header |
|
Accept: application/vnd.orchestral.rhapsody.6_0+json |
|
Request Body |
Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
A tree structure of path objects with the root path objects returned at the data object level:
|
Access Rights |
'View message metadata REST API'. |
GET /api/message/<id>/body
URI |
|
---|---|
Description |
Retrieves the message body for the specified message. The message itself is returned as binary, but a parameter on the response If you attempt to retrieve a message body that was stored in the Secondary Body Store and deleted, then you will encounter the HTTP error |
Request Header |
|
Accept: application/vnd.orchestral.rhapsody.6_0+octet-stream |
|
Request Body |
Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
If the body is requested as Currently, the method returns the default system encoding if no character encoding has been explicitly set. |
Access Rights |
'View message body REST API'. |
GET /api/message/<id>
URI |
|
---|---|
Description |
Retrieves a multi-part response containing both the message metadata and body for a specified message. Access Rights govern whether the message metadata or body or both are returned. If you attempt to retrieve a message whose body was stored in the Secondary Body Store and deleted, then the message body is not returned. Refer to Message Store for details on the Secondary Body Store. |
Request Header |
|
Accept: multipart/vnd.orchestral.rhapsody.6_0+mixed |
|
Request Body |
Empty. |
Response Status | 200 OK - operation successful. |
Response Body |
Up to three MIME body parts are included in a valid multi-part response: |
Access Rights |
'View message metadata REST API' (for the metadata and path). |
POST /api/message
URI |
|
---|---|
Description |
Retrieves a number of messages in a single request using a list of message identifiers. If you attempt to retrieve a message whose body was stored in the Secondary Body Store and deleted, then the message body is not returned. Refer to Message Store for details on the Secondary Body Store. The maximum number of messages you can retrieve is 1000. If you attempt to retrieve more than 1000 messages, you will encounter an error response. |
Request Header |
Accept: multipart/mixed Content-type: application/json |
|
|
Request Body |
An array of strings which are message identifiers, for example: {"messageIdentifiers":["1.8064.31","1.3712.14"]} |
Response Status | 200 OK - operation successful. |
Response Body |
A MIME multi-part response which is equivalent to calling GET /api/message/<id> for each requested message. A response body is returned even if only some of the messages are found (an error is returned if no messages are requested, or none are found, or if any message identifiers are syntactically invalid). |
Access Rights |
'View message metadata REST API'. |
DELETE /api/message/<id>
URI |
|
---|---|
Description |
Deletes the current message from the Error Queue or Hold Queue. |
Request Header |
Content-Type: application/json CSRF Protection Enabled |
|
|
Request Body |
{"messageTable":"ERROR"} |
Response Status |
|
Response Body | Empty. |
Access Rights |
'Delete message REST API'. |
PUT /api/message/<id>
URI |
|
---|---|
Description |
Releases the current message from the Error Queue or Hold Queue. |
Request Header |
|
Content-Type: application/vnd.orchestral.rhapsody.6_1+json CSRF Protection Enabled
|
|
Request Body |
{"messageTable":"ERROR"} |
Response Status |
|
Response Body | Empty. |
Access Rights |
'Release message REST API'. |