Request parameters

  • tenant (mandatory)
  • dictionary_name (mandatory) - name of the dictionary
  • action (mandatory) - what to be done: create, update or delete dictionary values. Valid values are: [ "create", "update", "delete" ]
  • attributes (mandatory) - array of dictionary values 
    • oid (mandatory for update and delete actions) - unique identification number of dictionary value
    • value (mandatory for create and update actions) - value that will be used for creation or update of a dictionary position
    • description (optional) - description

Example of request

{
	"tenant": "zegoal",
	"action": "create",
	"dictionary_name": "curr_codes",
	"attributes": [
		{
			"value": "new_value3",
			"description": "desc"	
		},
		{
			"value": "new_value2",
			"description": "desc"	
		}
	]	
}
CODE

Example of response

         "tenant": "zegoal",
         "dictionary_name": "curr_codes",
         "dictionary":          [
                        {
               "value": "BYN",
               "type_of_data": "initial_data",
               "oid": 93,
               "description": "BYN",
               "category": "curr_codes"
            },
                        {
               "value": "new_value",
               "type_of_data": null,
               "oid": 135,
               "description": "desc",
               "category": "curr_codes"
            },
                        {
               "value": "new_value3",
               "type_of_data": "additional_data",
               "oid": 140,
               "description": "desc",
               "category": "curr_codes"
            },
                        {
               "value": "new_value2",
               "type_of_data": "additional_data",
               "oid": 141,
               "description": "desc",
               "category": "curr_codes"
            }
         ],
         "action": "create",
         "TZ": "Europe/Minsk"
      }
CODE