URL:
https://{{wolkvox_server}}/server/API/v2/custom/updateMany.php
Description:
The insert API allows us to update multiple records in the configured modules of our CRM by sending parameters.
¿How it works?
This API operates through a ‘raw‘ type body and a PUT request, which requires the following fields for its proper functioning:
– The request headers require:
– In the request body, it is required
How to determine the CRM server?
Important Notice: Access Route Update
Starting September 1, 2024, new URLs will be implemented to access the wolkvox CRM platform. The current URLs will coexist with the new ones until November 30, 2024, after which they will be disabled.
New URLs:
From “https://sv0001.crmvox.com” to “https://crm0001.wolkvox.com“
From “https://sv0000.crmvox.com” to “https://crm0000.wolkvox.com“
Please ensure you update your integrations and automations before November 30, 2024, to avoid service interruptions.
KEY | DESCRIPTION | EXAMPLE |
---|---|---|
Wolkvox-Token | It is the token configured by the client on the CRM page. | A8K3J7F2 |
operation | It is the name of the CRM operation. | “operation”: “testmodule” |
module | Name of the module where the records for updating are located. | “module”: “contacts” |
fields | This is the field we will use to update the entire form of our CRM. It must be used under the structure of an object. | “fields”: [
{
“namecontact”: “value”,
“telephonecontact”: “value”,
“idcontact”: “value”,
“Customer Type”: “value”,
“Customer Type”: “value”,
“Email”: “value”
},
{
“namecontact”: “value”,
“telephonecontact”: “value”,
“idcontact”: “value”,
“Customer Type”: “value”,
“Customer Type”: “value”,
“Email”: “value”
}
] |
fields | Some field types require defining the ‘type’. These include: Address, Search, Relationship, and Table. | “fields”: {
“Category”: “Arepas”,
“Product”: “Arepas should have butter”,
“Price”: 5500,
“Address”: {
“type”: “address”,
“value”: “145a Street #12-60”
},
“Favorite Products”: {
“type”: “table”,
“value”: [{“Clothing”: “T-Shirts”}, {“Meat”: “Fish”}, {“Other options”: “Solid Gold”}]
}
} |
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://{{wolkvox_server}}/server/API/v2/custom/updateMany.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 => 'PUT',
CURLOPT_POSTFIELDS =>'{
"operation": "",
"module": "",
"fields": [{}]
}',
CURLOPT_HTTPHEADER => array(
'Wolkvox-Token: {{Wolkvox-Token}}',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
curl --location --request PUT 'https://{{wolkvox_server}}/server/API/v2/custom/updateMany.php' \
--header 'Wolkvox-Token: {{Wolkvox-Token}}' \
--header 'Content-Type: application/json' \
--data '{
"operation": "",
"module": "",
"fields": [{}]
}'
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n \"operation\": \"\",\r\n \"module\": \"\",\r\n \"fields\": []\r\n}");
Request request = new Request.Builder()
.url("https://{{wolkvox_server}}/server/API/v2/custom/updateMany.php")
.method("PUT", body)
.addHeader("Wolkvox-Token", "{{Wolkvox-Token}}")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
import requests
import json
url = "https://{{wolkvox_server}}/server/API/v2/custom/updateMany.php"
payload = json.dumps({
"operation": "",
"module": "",
"fields": [{}]
})
headers = {
'Wolkvox-Token': '{{Wolkvox-Token}}',
'Content-Type': 'application/json'
}
response = requests.request("PUT", url, headers=headers, data=payload)
print(response.text)
KEY | DESCRIPTION | EXAMPLES |
---|---|---|
code | Indicate the response status code. | “code”: 200 |
error | Provides details about the error that occurred during the request. | “error”: “null” |
msg | Displays a descriptive message about the request’s outcome. | “msg”: “Succesfully edit record” |
data | It is the set of information obtained as a result of making the request. |
{
"code": 200,
"error": "null",
"msg": "Succesfully edit record x",
"data": []
}
Medellín +57 (604) 322 98 80
Bogotá +57 (601) 381 90 40
Cali +57 (602) 891 28 46
Barranquilla +57 (605) 316 10 34
Goiânia +55 (62) 99328 6605
Santiago de Chile +56 (2) 240 533 89
Atlanta +1 (678) 496 7474
Ciudad de Guatemala +502 (2) 314 1344
Ciudad de México +52 (55) 8526 36 34
Copyright © 2022 MICROSYSLABS S.A.S. Cra 30 # 4A-45 Of. 205 Ed. FOREVER W&L, Medellín, Colombia
COLOMBIA
Medellín +57 (4) 322 98 80
Bogotá +57 (1) 381 90 40
Cali +57 (2) 891 28 46
Barranquilla +57 (5) 316 10 34
ARGENTINA
Buenos Aires +54 (11) 5217 5933
SPAIN
Madrid +34 (910) 601 691
MEXICO
Ciudad de México +52 (55) 8526 36 34
BRASIL
Brasilia +55 (61) 9836 4127
São Paulo +55 (12) 9811 155 83
UNITED STATES
New York +1 (914) 373 71 36
DOMINICAN REPUBLIC
Santo Domingo +1 (829) 249 69 68
CHILE
Santiago de Chile +56 (2) 240 533 89
GUATEMALA
Ciudad de Guatemala +502 (2) 314 1344
PERU
Lima +51 (1) 644 91 39
Copyright © 2022 MICROSYSLABS S.A.S.
Cra 30 # 4A – 45 Of. 205 Ed. FOREVER W&L, Medellín, Colombia
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