Send Message To Sessions

Send Message To Sessions

Sends the message to user sessions

Request
URI
POST
https://{api_host}//localhost/rest/inventory/v1/sessions/action/send-message
COPY
Request Body

Message information object to be sent to sessions.

SessionSendMessageSpec of type(s) application/json
Required
{
    "message": "Sample Info Message",
    "message_type": "INFO",
    "session_ids": [
        "7cdd624f-37d1-46c1-ab96-695a5d13956f"
    ]
}
string
message
Required

Message to be sent to session(s).

string
message_type
Required

Type of message to be sent to session(s).

  • ERROR: Message is of error type.
  • WARNING: Message is of warning type.
  • INFO: Message is of information type.
Possible values are : ERROR, WARNING, INFO,
array of string
session_ids
Required

List of session ids to which message is to be sent

Authentication
This operation uses the following authentication methods.
Responses
200

OK

[
    {
        "error_messages": [
            "Entity does not exists.",
            "Property is mandatory."
        ],
        "id": "6f85b3a5-e7d0-4ad6-a1e3-37168dd1ed51",
        "status_code": 200,
        "timestamp": 1561939200000
    }
]

400

Bad Request

Operation doesn't return any data structure

401

User is not authenticated

Operation doesn't return any data structure