# Bulk endpoint for global variables update

You can update global variables within one request. It won't create new ones.

PUT /global-variables/bulk_update/

Attributes Type Required Description
name string no A global variable name.
content string no A text value of a global variable. Can be used to store HTML code, string, or JSON.

# Request

  • CURL
  • JavaScript
  • PHP
  • Python
curl -X PUT -H "Authorization: Token <your_64_char_api_key>"
     -H "Accept: */*; version=2" -H "Content-Type: application/json" -d '[
            {"name": "global variable test", "content": "new value"},
            {"name": "global_int_1", "content": 1002}
]' "https://<your_app_subdomain>.user.com/api/public/global-variables/bulk_update/"