Crear expediente
Crear expediente
POST https://api.test.fandit.es/api/v2/forms/
Petición crear un nuevo expediente.
Cabeceras
| Authorization string | |
|---|---|
| Token de experto (Obligatorio). |
Parámetros de consulta (body)
Respuesta
Object
workflow_id number
exist_applicant boolean
uuid string
curl--request POST \--url 'https://api.test.fandit.es/api/v2/forms/' \ import requests
url = "https://api.test.fandit.es/api/v2/forms/"
response = requests.post(url)
print(response.status_code)
print(response.json())
const url = "https://api.test.fandit.es/api/v2/forms/";
const options = {
method: "POST",
headers: {
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
const url: string = "https://api.test.fandit.es/api/v2/forms/";
const options: RequestInit = {
method: "POST",
headers: {
}
};
const response = await fetch(url, options);
const data: any = await response.json();
console.log(data);
<?php
$url = "https://api.test.fandit.es/api/v2/forms/";
$curl = curl_init($url);
curl_setopt_array($curl, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
]
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import java.io.IOException;
import okhttp3.*;
public class FanditApiExample {
public static void main(String[] args) throws IOException {
OkHttpClient client = new OkHttpClient();
String url = "https://api.test.fandit.es/api/v2/forms/";
Request request = new Request.Builder()
.url(url)
.post()
.build();
try (Response response = client.newCall(request).execute()) {
System.out.println(response.body().string());
}
}
}
Respuesta Ejemplo de respuesta
{
"workflow_id": 4837,
"exist_applicant": true,
"uuid": "f3a1b2c4-6d7e-4f8a-9b0c-1d2e3f4a5b6c"
}