fbpx

< / >

Cases Update

Cases Update

URL:

https://{{wolkvox_server}}/server/API/v2/cases/update.php

Description:

“The update cases API allows us to search for records exclusively within the configured module by sending parameters.”

How does it work?:

“This API works through a ‘form-data’ type body and a POST request, which requires the following fields for its proper functioning:”

The request headers required are:

  • Wolkvox-Token 

 

– In the body of the request, the following fields are required:

  • operation
  • wolkvox-id
  • case-type
  • responsible
  • status
  • priority
  • form
  • file

REQUEST

KEY
DESCRIPTION
EXAMPLE
Wolkvox-Token
Es el token configurado por el cliente en la página de CRM.
{token}
Wolkvox-id
It is the ID of the record.
6074xxx0801374xxxxx781025xxx7d3
operation
It is the name of the CRM operation.
{operation_name}
case-type
It is the case type.
Request
responsible
It is the case owner.
{user@operation}
solution
It is the solution provided for the case.
Case solved.
status
It is the case status.
open
priority
It is the case priority.
low
form
These are the custom fields that we have configured in our CRM.
{“name_field”: “value_field”}
file
These are the attachments.

RESPONSE

				
					<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://{{wolkvox_server}}/server/API/v2/cases/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_POSTFIELDS => array('operation' => '{operation}','wolkvox-id' => '{wolkvox-id}','responsible' => '{responsible}','status' => '{status}','solution' => '{solution}','form' => '{}','files'=> new CURLFILE('/path/to/file')),
  CURLOPT_HTTPHEADER => array(
    'Wolkvox-Token: {Wolkvox-Token}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

				
			
Posibles códigos de error

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