Update Variable Endpoint PATCH
Updates the users' variables by providing a generated token.
Basic Authentication Endpoint
PATCH
/var/update
content_copy
Authorization Header
This endpoint uses Basic Authentication for username and password for the variable updating.
Parameter
Description
username
The registered username of the account.
password
The registered password of the account.
Bearer Token Authentication Endpoint
PATCH
/var/update-viatoken
content_copy
Authorization Header
This endpoint uses Bearer Authentication for the variable updating.
Parameter
Description
Bearer
A user's generated token
Request Body Parameters
Parameter
Description
variable_name
The name of their saved variable
value
The initial value of the variable
Response
Successful Variable Updating
- Status Code: 200 Ok
- Response Body:
json
{
"message"
:
"Variable is updated."
,
"variable"
:
"[variable]."
,
}