Skip to main content
PUT/global-variables/bulk_update/

Bulk endpoint for global variables update

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

AttributesTypeRequiredDescription
namestringnoA global variable name.
contentstringnoA text value of a global variable. Can be used to store HTML code, string, or JSON.

Request​

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/"