Registry
This section handles registry messages. You can create messages in the registry.
POST /registry
This method creates a new registry message. The user must have the registry role.
Request parameters:
- company [mandatory]: The company name or id.
- session [mandatory]: the Id of the active session.
- responsible: responsible or addressee of the message.
- datetime: date and time of the event that gnerates the message.
- level [mandatory]: one of the event codes from the event list.
- process: process affected by the message.
- message: message content.
- checked: indicates if the message has been viewed.
- link: link to the record related with this message.
- popup: indicates if this message triggers a popup window.
Response:
- status: Returns "0" on success, and an error code in any other case.
- data: empty on success, or an error information in case of error.
- message: "Success" or a descriptive information of the error in any other case.
Example:
Request: { "company": "demo01", "session": "cJvqHJcEssmpGukxrZF73migL5M4LVUZniyesQHBatOvTkrbpkYgrHKvfVpP", "responsible": "esdemo", "datetime": "20190606131125", "level": "1", "process": "A0L1", "message": "Fallo en la etiquetadora", "checked": "0", "link": "TSTU20190606131125ADFCENTRAL", "popup": "0", } Response: { "status": 0, "data": "", "message": "Success" } |