/
Message field - REST

Message field - REST

You can use the rest service to update the field settings and global plugin settings.

GET Global Configs

settings from {baseUrl}/secure/jibrokMessageFieldsConfig!default.jspa

Get settings

  • URL: /rest/message-field/1.0/config/messageFieldsConfig

  • METHOD: GET

  • RESULT:

{ "timeout": 1000, "showDefaultMessage": true, "whenRunJavaScript": "AFTER_DEFAULT_MESSAGE" }

timeout: time in milliseconds

showDefaultMessage: true or false

whenRunJavaScript: "AFTER_DEFAULT_MESSAGE" or "AFTER_SCRIPTRUNNER_OR_TIMEOUT"

 

UPDATE Global Configs

settings from {baseUrl}/secure/jibrokMessageFieldsConfig!default.jspa

Set settings

  • URL: /rest/message-field/1.0/config/messageFieldsConfig

  • METHOD: GET

  • BODY:

{ "timeout": 1000, "showDefaultMessage": true, "whenRunJavaScript": "AFTER_DEFAULT_MESSAGE" }

timeout: time in milliseconds

showDefaultMessage: true or false

whenRunJavaScript: "AFTER_DEFAULT_MESSAGE" or "AFTER_SCRIPTRUNNER_OR_TIMEOUT"

 

GET Field Settings by field config id

How to get field config id?