Replace the participant list of a folder
curl --request PUT \
--url https://clientapi.woku.app/v1/folders/{id}/participants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "Ana Pérez, ana@acme.cl, +56 9 1234 5678\nbo@acme.cl"
}
'import requests
url = "https://clientapi.woku.app/v1/folders/{id}/participants"
payload = { "text": "Ana Pérez, ana@acme.cl, +56 9 1234 5678
bo@acme.cl" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({text: 'Ana Pérez, ana@acme.cl, +56 9 1234 5678\nbo@acme.cl'})
};
fetch('https://clientapi.woku.app/v1/folders/{id}/participants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://clientapi.woku.app/v1/folders/{id}/participants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'text' => 'Ana Pérez, ana@acme.cl, +56 9 1234 5678
bo@acme.cl'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://clientapi.woku.app/v1/folders/{id}/participants"
payload := strings.NewReader("{\n \"text\": \"Ana Pérez, ana@acme.cl, +56 9 1234 5678\\nbo@acme.cl\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://clientapi.woku.app/v1/folders/{id}/participants")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"Ana Pérez, ana@acme.cl, +56 9 1234 5678\\nbo@acme.cl\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://clientapi.woku.app/v1/folders/{id}/participants")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"Ana Pérez, ana@acme.cl, +56 9 1234 5678\\nbo@acme.cl\"\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 400,
"message": [
"email must be a valid email",
"password must be at least 8 characters"
],
"error": "Bad Request"
}v1 - folder participants
Replace the participant list of a folder
One person per line: a name, an email and/or a phone with its country code, separated by commas, semicolons or tabs (a CSV as is; a header row is skipped). Up to 500 people. The contacts are stored encrypted.
PUT
/
v1
/
folders
/
{id}
/
participants
Replace the participant list of a folder
curl --request PUT \
--url https://clientapi.woku.app/v1/folders/{id}/participants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "Ana Pérez, ana@acme.cl, +56 9 1234 5678\nbo@acme.cl"
}
'import requests
url = "https://clientapi.woku.app/v1/folders/{id}/participants"
payload = { "text": "Ana Pérez, ana@acme.cl, +56 9 1234 5678
bo@acme.cl" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({text: 'Ana Pérez, ana@acme.cl, +56 9 1234 5678\nbo@acme.cl'})
};
fetch('https://clientapi.woku.app/v1/folders/{id}/participants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://clientapi.woku.app/v1/folders/{id}/participants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'text' => 'Ana Pérez, ana@acme.cl, +56 9 1234 5678
bo@acme.cl'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://clientapi.woku.app/v1/folders/{id}/participants"
payload := strings.NewReader("{\n \"text\": \"Ana Pérez, ana@acme.cl, +56 9 1234 5678\\nbo@acme.cl\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://clientapi.woku.app/v1/folders/{id}/participants")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"Ana Pérez, ana@acme.cl, +56 9 1234 5678\\nbo@acme.cl\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://clientapi.woku.app/v1/folders/{id}/participants")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"Ana Pérez, ana@acme.cl, +56 9 1234 5678\\nbo@acme.cl\"\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 400,
"message": [
"email must be a valid email",
"password must be at least 8 characters"
],
"error": "Bad Request"
}Authorizations
Company secret API key.
Path Parameters
Folder id
Body
application/json
One person per line: a name, an email and/or a phone (with country code), separated by commas, semicolons or tabs. A CSV pastes as is; a header row is skipped. Replaces the list; up to 500 people.
Example:
"Ana Pérez, ana@acme.cl, +56 9 1234 5678\nbo@acme.cl"
Response
People saved, invalid lines and duplicates