manual:api:reference:valuemap:create

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manual:api:reference:valuemap:create [2016/09/28 07:26]
127.0.0.1 external edit
manual:api:reference:valuemap:create [2021/01/27 20:27] (current)
Line 5: Line 5:
  
 This method allows to create new value maps. This method allows to create new value maps.
 +
 +<​note>​This method is only available to //Super admin// user type. Permissions to call the method can be revoked in user role settings. See [[:​manual/​web_interface/​frontend_sections/​administration/​user_roles|User roles]] for more information.</​note>​
  
 ==== Parameters ==== ==== Parameters ====
 +
 ''​(object/​array)''​ Value maps to create. ''​(object/​array)''​ Value maps to create.
  
-The method accepts value maps with with the [[object#​value_map|standard value map properties]].+The method accepts value maps with the [[object#​value_map|standard value map properties]].
  
 ==== Return values ==== ==== Return values ====
Line 20: Line 23:
  
 Request: Request:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 43: Line 46:
  
 Response: Response:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 57: Line 60:
 ==== Source ==== ==== Source ====
  
-CValueMap::​create() in //frontends/​php/​include/​classes/​api/​services/​CValueMap.php//​.+CValueMap::​create() in //ui/​include/​classes/​api/​services/​CValueMap.php//​.