Skip to main content
PUT/global-variables/:id/

Update global variable

You can update a global variable.

AttributesTypeRequiredDescription
idintegeryesA unique identifier for the global variable which is given by User.com automatically.
authorintegernoA unique identifier of an agent who created a global variable. A visible author.
integer_contentintegernoAn integer value of a global variable.
namestringnoA global variable name.
text_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 '{
"text_content": "February Promotions"
}' "https://<your_app_subdomain>.user.com/api/public/global-variables/:id/"