Application Settings - Append to Variable

Append to Variable

Append/overwrite data to a existing list/array variable
Parameter NameDefault ValueRequiredDescription
application_idNULLTrueThe ID of the Application
secret_keyNULLTrueThe Application's Secret Key
access_tokenNULLFalseThe Access Token for the authenticated user
nameNULLTrueThe name of the variable to delete
valueNULLTrueThe value to append
keyNULLFalseThe key of the value to append, only applicable to arrays
include_metafalseFalseThe return results will return the metadata of the variable

Example Success Response

{
  "success": true,
  "response_code": 200,
  "results": [
    "foo",
    "bar",
    "bar",
    "bar",
    "bar",
    "bar",
    "bar",
    "bar"
  ]
}

Example Success Response with Metadata

If you have include_meta set to true, then the return results will include more information about the variable including it's value
{
  "success": true,
  "response_code": 200,
  "results": {
    "type": "list",
    "value": [
      "foo",
      "bar",
      "bar",
      "bar",
      "bar",
      "bar",
      "bar",
      "bar",
      "bar"
    ],
    "created_timestamp": 1608243116,
    "last_updated_timestamp": 1608243116,
    "size": 55
  }
}

Metadata Results Structure

NameTypeDescription
typestringThe type of the variable
valuemixedThe value of the variable, the type for this can differ depending on the variable type
created_timestampintegerThe Unix Timestamp for when this variable was created
last_updated_timestampintegerThe Unix Timestamp for when this variable was last updated
sizeintegerThe size that this variable takes up (including it's metadata) in bytes