# Create a Message wihtin a VBAGateway MessageThread Create a Message wihtin a VBAGateway MessageThread. This operation will insert the new message into the VBAGateway database that is paired with this VBASoftwre database. Endpoint: POST /vbagateway-message-threads/{MessageThread_Key}/messages Version: v1 Security: apiKeyAuth, bearerAuth ## Header parameters: - `vbasoftware-database` (string, required) Target database ## Path parameters: - `MessageThread_Key` (integer, required) MessageThread_Key ## Request fields (application/json): - `message_Key` (integer) The unique identifier for the message. On creation, set this to 0 as it will be auto-generated by the system. - `messageThread_Key` (integer, required) The unique identifier of the message thread this message belongs to. This value must be provided and should reference an existing message thread. - `message_Body` (string,null) The content or body of the message being created or updated. This can be any text relevant to the message thread. - `message_Create_Date` (string,null) The date and time when the message was created. This value may be null and, if not provided, the system may assign a timestamp automatically. - `message_Create_UserId` (string,null) The unique identifier (UUID) of the user who created the message. If null, it represents an Admin submission from the VBASoftware system. If provided, it should be the UUID from the Gateway system. This information should be retrieved externally if needed. - `message_Status` (string,null) The status of the message, limited to 32 characters in length. May represent states like "READ", "UNREAD". - `message_Type` (string,null) The type of the message, limited to 32 characters. May represent types "HIGH" or "STANDARD" ## Response 200 fields (text/plain): - `data` (object) - `data.message_Key` (integer) The unique identifier for the message. On creation, set this to 0 as it will be auto-generated by the system. - `data.messageThread_Key` (integer, required) The unique identifier of the message thread this message belongs to. This value must be provided and should reference an existing message thread. - `data.message_Body` (string,null) The content or body of the message being created or updated. This can be any text relevant to the message thread. - `data.message_Create_Date` (string,null) The date and time when the message was created. This value may be null and, if not provided, the system may assign a timestamp automatically. - `data.message_Create_UserId` (string,null) The unique identifier (UUID) of the user who created the message. If null, it represents an Admin submission from the VBASoftware system. If provided, it should be the UUID from the Gateway system. This information should be retrieved externally if needed. - `data.message_Status` (string,null) The status of the message, limited to 32 characters in length. May represent states like "READ", "UNREAD". - `data.message_Type` (string,null) The type of the message, limited to 32 characters. May represent types "HIGH" or "STANDARD" - `error` (object) - `error.detail` (string,null) A human-readable explanation specific to this occurrence of the problem. - `error.instance` (string,null) A URI reference that identifies the specific occurrence of the problem.It may or may not yield further information if dereferenced. - `error.status` (integer) The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem. - `error.title` (string,null) A short, human-readable summary of the problem type.It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization(e.g., using proactive content negotiation; see[RFC7231], Section 3.4). - `error.type` (string,null) A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank". - `debug` (object) - `debug.activityID` (string, required) ## Response 401 fields