Update Data Element

PUT /ws/rest/service/v1/ds/data-elements

Version: 20.10

Purpose:

To update custom data elements

Input:

All parameters should be URL encoded.

Both input & output in JSON format in the body

Update Data Element input JSON

{

"data": [

{

"data_element": "sampleDE",

"data_definition": "SYS Rich Text",

"form_label": "Sample Rich Text Element",

"description": "Test DE",

"height": "50"

},

{

"data_element": "sampleImgDE",

"data_definition": "Image Picker",

"form_label": "Sample Image Picker",

"description": "Test Image DE",

"tooltip": "Test Image DE"

}

]

}

Input JSON field description:

data_definition

Required Field Name (Existing values will be used if there are no values in the request body)

Image Picker

height (required)

SYS Rich Text

height (required)

textarea (as data_source)

no_of_lines (required)

Decimal Amount

decimal_format (not required - default value is '8')

SYS Numeric Query Based

hide_currency_symbol (not required - valid values are Yes/No - default value will be No)

Notes:

Output:

JSON object containing 'status', 'data', 'message'

Update Data Element ouptut JSON

{

"data": [

{

"data_element": "sampleDE",

"data_definition": "SYS Rich Text",

"form_label": "Sample Rich Text Element",

"description": "Test DE",

"tooltip": null,

"height": "50" ,

"Pre-Defined Category": null

}

],

"message": [

{

"data_element": "sampleDE",

"message": "success"

},

{

"data_element": "sampleImgDE",

"message": "sampleImgDE does not exists",

"status": 505

}

],

"status": 3000

}

Status codes are:

1> 200, for success

2> 3000, for partial create.

3> 3002, for invalid JSON input

4> 1101, for Empty or Invalid JSON data



Legal Notices | Your Privacy Rights
Copyright © 1998, 2022

Last Published Tuesday, February 8, 2022