Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download existing system workflow settings using below API:

    GET $APP_URL/rest/ng/config-settings/files?module=biospecimen&property=sys_workflows

    This will return JSON array with each element representing configuration for a workflow / feature.

  2. Prepare the locking fields configuration as illustrated in above section

  3. Upload edited system workflows file using HTTP POST multipart form data request as illustrated below

    POST $APP_URL/rest/ng/config-settings/files
    Content-Type: multipart/form-data

    Body:
    Multipart request containing file contents attached to variable "file"

    The API will return file ID like below for use in subsequent API

    4e0db682-ec8d-4ca6-be30-9239e78127e8_system-workflows-9.json


  4. Using the response of API in step #3, associate the uploaded file as system workflows setting using below API

    PUT $APP_URL/rest/ng/config-settings
    Content-Type: application/json
    Body:
    {
       "module": "biospecimen",
       "property": "sys_workflows",
       "value": "4e0db682-ec8d-4ca6-be30-9239e78127e8_system-workflows-9.json"
    }

You can refer to the sample json for locking fields