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.

Attributes

Optional unless marked required

namestring
A global variable name.
contentstring
A text value of a global variable. Can be used to store HTML code, string, or JSON.

Request​

curl -X PUT "https://<your_app_subdomain>.user.com/api/public/global-variables/bulk_update/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2" \
-H "Content-Type: application/json" \
-d '[
{
"name": "Promo banner text",
"content": "Free shipping on all orders."
}
]'

Response examples​

[
{
"name": "Promo banner text",
"content": "Free shipping on all orders."
}
]

Response fields​

The 200 OK response body is an array. Each item has these fields.

namestring
A global variable name.
contentstring
A text value of a global variable. Can be used to store HTML code, string, or JSON.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.