Table of Contents

Search

  1. Preface
  2. Introduction to Business Entity Services
  3. EJB Business Entity Service Calls
  4. REST Business Entity Service Calls
  5. REST APIs for Data Director
  6. SOAP Business Entity Service Calls
  7. Cross-reference Records and BVT Calculations Services
  8. Supporting Corporate Linkage Service
  9. External Calls to Cleanse, Analyze, and Transform Data
  10. Appendix A: Using REST APIs to Add Records
  11. Appendix B: Using REST APIs to Upload Files
  12. Appendix C: Using REST APIs to Manage Reports

Update Variables

Update Variables

The Update Variables REST API updates the current color properties of Data Director. Use the JSON format to send data in the request body.
The API uses the POST method.
The API request might not update the color properties consistently across the application. For example, after you submit the request to update the color properties of buttons and menus, the Save button might differ on different screens and some menus might change only their background color.
Request URL
The Update Variables URL has the following format:
http://<host>:<port>/<context>/<path>
Make the following HTTP POST request to the Update Variables URL:
POST http://<host>:<port>/cmx/ui/theme/variables
Sample API Requests
The following request updates all the color properties of the Data Director application:
POST http://localhost:8080/cmx/ui/theme/variables { "variables": { "menu_text_color": "#FFF", "button_default_selected_border_color": "orange", "button_success_text_color": "white", "login_form_text_color": "red", "button_danger_text_color": "black", "menu_hover_bg_color": "#00349D", "button_default_border_color": "yellow", "dropdown_menu_item_text_color": "white", "button_danger_bg_color": "pink", "button_default_bg_color": "yellow", "button_success_border_color": "olive", "dropdown_menu_text_color": "white", "dropdown_menu_bg_color": "olive", "primary_button_text_color": "white", "button_default_selected_bg_color": "orange", "primary_button_bg_color": "green", "entity_view_label_font_wight": "normal", "primary_button_selected_bg_color": "silver", "primary_button_selected_border_color": "black", "header_text_color": "#444444", "button_danger_selected_text_color": "black", "primary_button_border_color": "green", "menu_sel_bg_color": "#001E60", "button_success_selected_border_color": "black", "login_form_background_color": "#E5EDF8", "header_background_color": "#ffd900", "button_success_selected_bg_color": "silver", "button_danger_border_color": "pink", "button_default_text_color": "black", "button_success_bg_color": "olive", "button_danger_selected_bg_color": "orange", "button_danger_selected_border_color": "red", "primary_button_selected_text_color": "black", "workspace_bg": "#E5EDF8", "button_default_selected_text_color": "black", "dropdown_menu_item_hover_bg_color": "navy", "menu_background_color": "#004fb6", "button_success_selected_text_color": "black" } }
The following request updates the color properties of the primary buttons in the Data Director application.
{ "variables":{ "primary_button_text_color": "white", "primary_button_bg_color": "green", "primary_button_border_color": "white", "primary_button_selected_bg_color": "pink", "primary_button_selected_border_color": "red", "primary_button_selected_text_color": "red" } }
Sample API Response
The API returns a 200 OK response code after successfully updating the specified color properties. The response body is empty.

0 COMMENTS

We’d like to hear from you!