Create a variable

POST {{baseUrl}}/contact_center/variables

Create a new variable.

Scopes: contact_center_variable:write:admin

Rate Limit Label : LIGHT

Request Body

{"data_type"=>"currency", "variable_group_id"=>"<string>", "variable_name"=>"<string>", "variable_type"=>"address_book_variable", "variable_description"=>"<string>", "address_book_ids"=>["<string>", "<string>"], "use_in_reporting"=>false, "mask_variable_data"=>false, "use_as_routing_profile_parameters"=>false, "value_category"=>"<string>", "values"=>["<string>", "<string>"], "linked_value_lock"=>false, "default_value"=>"<string>", "use_in_external_url_parameters"=>"<boolean>", "client_show_in_client_profile_section"=>"<boolean>", "client_show_in_client_engagement_section"=>"<boolean>", "client_show_in_inbound_call_notifications"=>"<boolean>"}

HEADERS

| Key | Datatype | Required | Description | | Content-Type | string | | | | Accept | string | | |

RESPONSES

status: Created

{"variable_id":"\u003cstring\u003e","variable_group_id":"\u003cstring\u003e","variable_name":"\u003cstring\u003e","variable_description":"\u003cstring\u003e","variable_type":"global_variable","address_books":[{"address_book_id":"\u003cstring\u003e","address_book_name":"\u003cstring\u003e","unit_id":"\u003cstring\u003e","unit_name":"\u003cstring\u003e","total_contacts":"\u003cinteger\u003e"},{"address_book_id":"\u003cstring\u003e","address_book_name":"\u003cstring\u003e","unit_id":"\u003cstring\u003e","unit_name":"\u003cstring\u003e","total_contacts":"\u003cinteger\u003e"}],"use_in_reporting":false,"mask_variable_data":false,"use_as_routing_profile_parameters":false,"data_type":"boolean","value_category":"\u003cstring\u003e","values":["\u003cstring\u003e","\u003cstring\u003e"],"linked_value_lock":false,"default_value":"\u003cstring\u003e","use_in_external_url_parameters":"\u003cboolean\u003e","client_show_in_client_profile_section":"\u003cboolean\u003e","client_show_in_client_engagement_section":"\u003cboolean\u003e","client_show_in_inbound_call_notifications":"\u003cboolean\u003e"}