Copiar Values de una Variable

Este endpoint copia uno o más Values de una Variable a otra Variable especificada y existente.

Solicitud HTTP

Para copiar uno o más Values de una Variable, haz una petición POST a la siguiente URL:

Endpoint

HTTP MethodURL
POSThttps://api.netux.com/api/v2.0/variables/_/migrate_values/

Parámetros de consulta

ParameterTypeUseDescription
tokenStringAuthenticationAuthentication Token can optionally be sent as a query parameter.

Parámetros de cuerpo

ParameterTypeRequired?Default ValueDescription
variablesArrayYesN/AArray of Objects containing to and from fields. See example below.
startDateNumberNoStart date from which Values are copied. If not provided, copy starts from first Value.
endDateNumberNoEnd date to which Values are copied. If not provided, copy continues until last Value.

Atención
Ten en cuenta que ambas Variables tienen que existir y que el token de autentificación tiene que tener permisos para ver y editar las Variables.

variables Array en el Cuerpo
Mira un ejemplo válido del array variables en el cuerpo a la derecha:

// variables body attribute
// Please note that "device" key is optional if Variable is an ID, otherwise it's required

"variables": [
  {
    "from": { "variable": "originVariable1ID" },
    "to": { "device": "~targetDevice1", "variable": "~targetVariable1" }
  },
  {
    "from": { "variable": "originVariable2ID" },
    "to": { "device": "~targetDevice2", "variable": "~targetVariable2" }
  },
  {
    "from": { "variable": "originVariableNID" },
    "to": { "device": "~targetDeviceN", "variable": "~targetVariableN" }
  }
]