Skip to main content
Adds or updates supplementary installation information for an existing vehicle record. This includes door aperture wiring, power supply cable details, and any important installation notes. Images are uploaded as base64 data URLs. Endpoint: WRITE service Action: addSupplementaryInfo

Request

action
string
required
Must be "addSupplementaryInfo".
payload.vehicleId
number
required
The ID of the vehicle record to update.
payload.apertura
string
required
Description of the door aperture/unlock wiring (color, connector location).
payload.cableAlimen
string
required
Description of the power supply cable (color, location, connector).
payload.notaImportante
string
required
Any important installation notes or warnings for this vehicle.
payload.imgApertura
string | null
Base64 data URL of a photo showing the aperture wiring location. Pass null to skip.
payload.imgCableAlimen
string | null
Base64 data URL of a photo showing the power cable location. Pass null to skip.

Response

status
string
required
Always "success" on success.

Example

const WRITE_ENDPOINT = 'https://script.google.com/macros/s/AKfycbyzP3RwEAqxJN8xzrqxjlsChx4xDgRuvpW-ygWM9teMHM0hWl0DDx91gR3TTR832BWakQ/exec';

const response = await fetch(WRITE_ENDPOINT, {
  method: 'POST',
  headers: { 'Content-Type': 'text/plain' },
  body: JSON.stringify({
    action: 'addSupplementaryInfo',
    payload: {
      vehicleId: 42,
      apertura: 'Cable verde, conector de 8 pines debajo del volante',
      cableAlimen: 'Cable rojo grueso junto al fusible principal',
      notaImportante: 'Desconectar batería antes de intervenir el sistema de airbags',
      imgApertura: 'data:image/jpeg;base64,/9j/4AAQ...',
      imgCableAlimen: null
    }
  }),
  redirect: 'follow'
});

const result = await response.json();
if (result.status === 'success') {
  console.log('Supplementary info saved for vehicle 42');
}

Build docs developers (and LLMs) love