fbpx

< / >

Update

Update

URL:

https://wv{{wolkvox_server}}.wolkvox.com/API/v2/custom/update.php

Description

The update API allows us to update records in the parameterized modules of our CRM by sending parameters.

How does it work?:

This API works through a POST request, which requires the following fields for its correct operation: – in the header: “Wolkvox-Token“, In the body of the request it is required: “operation“, “module“, “wolkvox-id“, “field” .

REQUEST

FIELD
DESCRIPTION
operation
It is the operation in which the client has configured the token and the module in which the record is updated.
wolkvox-token
It is the token configured by the client on the CRM page, which is located in the headers.
module
It is the module that the client will consult.
Wolkvox-id
It is the id obtained after the creation of the case.
fields
The parameters of our search are the fields that the client has configured in his module.

RESPONSE

Field

RESPONSE

				
					"Campo": true
				
			

Currency

RESPONSE

				
					"Moneda": "123"
				
			

Date

RESPONSE

				
					"Fecha": "2022-01-03 00:00:00"
				
			

Date and Time

RESPONSE

				
					 "F y H": "2022-01-21 00:04:00"
				
			

Description

RESPONSE

				
					 "Desc": "text"
				
			

Mail

RESPONSE

				
					"Correo": "prueba@operacion.com"
				
			

List

RESPONSE

				
					 "Lista": "A"
				
			

Number

RESPONSE

				
					 "Numero":1
				
			

Radio

RESPONSE

				
					"Radio":"A"
				
			

Ramdon

RESPONSE

				
					"Ramdon":"f64z284534xffc61"
				
			

Switch

RESPONSE

				
					"Interruptor":"true"
				
			

Phone

RESPONSE

				
					 "Texto":"Prueba"
				
			

Time

RESPONSE

				
					"Hora":"14:56:25"
				
			

URL

RESPONSE

				
					  "url":"https://www.wolkvox.com/documentation-apis/agent"
				
			

Calculate

RESPONSE

				
					"Calcular":5
				
			

Dependent list

RESPONSE

				
					"Lista Dependiente":"amarillo"
				
			

Currency

RESPONSE

				
					
"Moneda": { "type": "currency", "value": "25", "symbol": "", "convert": 25 },
				
			

Phone

RESPONSE

				
					"Phone": { "type": "telephone", "value": "11111111", "country": "Andorra", "code": "376" },
				
			

Direction

RESPONSE

				
					
"Interruptor": false, "Direccion": { "type": "address", "value": "52 sad sas" } } }
				
			

Tabl

RESPONSE

				
					"tabl"": { ""type"": ""table"", ""value"":[{ ""op1"": ""hola "", ""op2"": ""hola"" }, { ""op1"": ""we"", ""op2"": ""ro"" }] }
				
			
				
					<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://{{wolkvox_server}}/server/API/v2/custom/update.php',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_SSL_VERIFYPEER => false,
  CURLOPT_POSTFIELDS =>'{
    "operation":"modulotest01",
    "module":"MesaDeAyuda",
    "wolkvox-id":"{wolkvox-id}",
    "fields":{
        "Telefono":"3104457199"
    }
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Wolkvox-Token: wolkvox-token'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
				
			
Possible error codes

Usamos cookies, se continuar a navegar assumimos que concorda. Pode ler mais sobre a utilização de cookies nas nossas políticas de privacidade e tratamento de dados pessoais

We use cookies, if you continue browsing we will assume that you agree. You can read more about the use of cookies in our privacy policies and treatment of personal data