Create an action plan group
curl --request POST \
--url https://clientapi.woku.app/v1/action-plan-groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Atención en tienda",
"description": "Reclamos y sugerencias sobre la experiencia en tienda física.",
"conditions": [
{
"trackerId": "507f1f77bcf86cd799439011",
"operator": "any"
}
],
"members": [
{
"userId": "507f1f77bcf86cd799439013",
"role": "admin"
},
{
"userId": "507f1f77bcf86cd799439014",
"role": "assignee"
}
],
"threshold": 300
}
'import requests
url = "https://clientapi.woku.app/v1/action-plan-groups"
payload = {
"name": "Atención en tienda",
"description": "Reclamos y sugerencias sobre la experiencia en tienda física.",
"conditions": [
{
"trackerId": "507f1f77bcf86cd799439011",
"operator": "any"
}
],
"members": [
{
"userId": "507f1f77bcf86cd799439013",
"role": "admin"
},
{
"userId": "507f1f77bcf86cd799439014",
"role": "assignee"
}
],
"threshold": 300
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Atención en tienda',
description: 'Reclamos y sugerencias sobre la experiencia en tienda física.',
conditions: [{trackerId: '507f1f77bcf86cd799439011', operator: 'any'}],
members: [
{userId: '507f1f77bcf86cd799439013', role: 'admin'},
{userId: '507f1f77bcf86cd799439014', role: 'assignee'}
],
threshold: 300
})
};
fetch('https://clientapi.woku.app/v1/action-plan-groups', 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/action-plan-groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Atención en tienda',
'description' => 'Reclamos y sugerencias sobre la experiencia en tienda física.',
'conditions' => [
[
'trackerId' => '507f1f77bcf86cd799439011',
'operator' => 'any'
]
],
'members' => [
[
'userId' => '507f1f77bcf86cd799439013',
'role' => 'admin'
],
[
'userId' => '507f1f77bcf86cd799439014',
'role' => 'assignee'
]
],
'threshold' => 300
]),
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/action-plan-groups"
payload := strings.NewReader("{\n \"name\": \"Atención en tienda\",\n \"description\": \"Reclamos y sugerencias sobre la experiencia en tienda física.\",\n \"conditions\": [\n {\n \"trackerId\": \"507f1f77bcf86cd799439011\",\n \"operator\": \"any\"\n }\n ],\n \"members\": [\n {\n \"userId\": \"507f1f77bcf86cd799439013\",\n \"role\": \"admin\"\n },\n {\n \"userId\": \"507f1f77bcf86cd799439014\",\n \"role\": \"assignee\"\n }\n ],\n \"threshold\": 300\n}")
req, _ := http.NewRequest("POST", 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.post("https://clientapi.woku.app/v1/action-plan-groups")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Atención en tienda\",\n \"description\": \"Reclamos y sugerencias sobre la experiencia en tienda física.\",\n \"conditions\": [\n {\n \"trackerId\": \"507f1f77bcf86cd799439011\",\n \"operator\": \"any\"\n }\n ],\n \"members\": [\n {\n \"userId\": \"507f1f77bcf86cd799439013\",\n \"role\": \"admin\"\n },\n {\n \"userId\": \"507f1f77bcf86cd799439014\",\n \"role\": \"assignee\"\n }\n ],\n \"threshold\": 300\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://clientapi.woku.app/v1/action-plan-groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Atención en tienda\",\n \"description\": \"Reclamos y sugerencias sobre la experiencia en tienda física.\",\n \"conditions\": [\n {\n \"trackerId\": \"507f1f77bcf86cd799439011\",\n \"operator\": \"any\"\n }\n ],\n \"members\": [\n {\n \"userId\": \"507f1f77bcf86cd799439013\",\n \"role\": \"admin\"\n },\n {\n \"userId\": \"507f1f77bcf86cd799439014\",\n \"role\": \"assignee\"\n }\n ],\n \"threshold\": 300\n}"
response = http.request(request)
puts response.read_body{
"_id": "507f1f77bcf86cd799439031",
"companyId": "<string>",
"name": "<string>",
"description": "<string>",
"conditions": [
{
"trackerId": "507f1f77bcf86cd799439011",
"operator": "equals",
"value": "<string>"
}
],
"members": [
{
"userId": "507f1f77bcf86cd799439013"
}
],
"threshold": 300,
"enabled": true,
"counterSince": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"statusCode": 400,
"message": "<string>",
"error": "Bad Request"
}{
"statusCode": 403,
"message": "Authentication required",
"error": "Forbidden"
}Action Plan Groups
Create an action plan group
POST
/
v1
/
action-plan-groups
Create an action plan group
curl --request POST \
--url https://clientapi.woku.app/v1/action-plan-groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Atención en tienda",
"description": "Reclamos y sugerencias sobre la experiencia en tienda física.",
"conditions": [
{
"trackerId": "507f1f77bcf86cd799439011",
"operator": "any"
}
],
"members": [
{
"userId": "507f1f77bcf86cd799439013",
"role": "admin"
},
{
"userId": "507f1f77bcf86cd799439014",
"role": "assignee"
}
],
"threshold": 300
}
'import requests
url = "https://clientapi.woku.app/v1/action-plan-groups"
payload = {
"name": "Atención en tienda",
"description": "Reclamos y sugerencias sobre la experiencia en tienda física.",
"conditions": [
{
"trackerId": "507f1f77bcf86cd799439011",
"operator": "any"
}
],
"members": [
{
"userId": "507f1f77bcf86cd799439013",
"role": "admin"
},
{
"userId": "507f1f77bcf86cd799439014",
"role": "assignee"
}
],
"threshold": 300
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Atención en tienda',
description: 'Reclamos y sugerencias sobre la experiencia en tienda física.',
conditions: [{trackerId: '507f1f77bcf86cd799439011', operator: 'any'}],
members: [
{userId: '507f1f77bcf86cd799439013', role: 'admin'},
{userId: '507f1f77bcf86cd799439014', role: 'assignee'}
],
threshold: 300
})
};
fetch('https://clientapi.woku.app/v1/action-plan-groups', 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/action-plan-groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Atención en tienda',
'description' => 'Reclamos y sugerencias sobre la experiencia en tienda física.',
'conditions' => [
[
'trackerId' => '507f1f77bcf86cd799439011',
'operator' => 'any'
]
],
'members' => [
[
'userId' => '507f1f77bcf86cd799439013',
'role' => 'admin'
],
[
'userId' => '507f1f77bcf86cd799439014',
'role' => 'assignee'
]
],
'threshold' => 300
]),
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/action-plan-groups"
payload := strings.NewReader("{\n \"name\": \"Atención en tienda\",\n \"description\": \"Reclamos y sugerencias sobre la experiencia en tienda física.\",\n \"conditions\": [\n {\n \"trackerId\": \"507f1f77bcf86cd799439011\",\n \"operator\": \"any\"\n }\n ],\n \"members\": [\n {\n \"userId\": \"507f1f77bcf86cd799439013\",\n \"role\": \"admin\"\n },\n {\n \"userId\": \"507f1f77bcf86cd799439014\",\n \"role\": \"assignee\"\n }\n ],\n \"threshold\": 300\n}")
req, _ := http.NewRequest("POST", 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.post("https://clientapi.woku.app/v1/action-plan-groups")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Atención en tienda\",\n \"description\": \"Reclamos y sugerencias sobre la experiencia en tienda física.\",\n \"conditions\": [\n {\n \"trackerId\": \"507f1f77bcf86cd799439011\",\n \"operator\": \"any\"\n }\n ],\n \"members\": [\n {\n \"userId\": \"507f1f77bcf86cd799439013\",\n \"role\": \"admin\"\n },\n {\n \"userId\": \"507f1f77bcf86cd799439014\",\n \"role\": \"assignee\"\n }\n ],\n \"threshold\": 300\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://clientapi.woku.app/v1/action-plan-groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Atención en tienda\",\n \"description\": \"Reclamos y sugerencias sobre la experiencia en tienda física.\",\n \"conditions\": [\n {\n \"trackerId\": \"507f1f77bcf86cd799439011\",\n \"operator\": \"any\"\n }\n ],\n \"members\": [\n {\n \"userId\": \"507f1f77bcf86cd799439013\",\n \"role\": \"admin\"\n },\n {\n \"userId\": \"507f1f77bcf86cd799439014\",\n \"role\": \"assignee\"\n }\n ],\n \"threshold\": 300\n}"
response = http.request(request)
puts response.read_body{
"_id": "507f1f77bcf86cd799439031",
"companyId": "<string>",
"name": "<string>",
"description": "<string>",
"conditions": [
{
"trackerId": "507f1f77bcf86cd799439011",
"operator": "equals",
"value": "<string>"
}
],
"members": [
{
"userId": "507f1f77bcf86cd799439013"
}
],
"threshold": 300,
"enabled": true,
"counterSince": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"statusCode": 400,
"message": "<string>",
"error": "Bad Request"
}{
"statusCode": 403,
"message": "Authentication required",
"error": "Forbidden"
}Authorizations
Company API key. Obtain this from your Woku dashboard under Settings > API Keys. The same key used for the v0 endpoints.
Body
application/json
Maximum string length:
120Example:
"Atención en tienda"
Tracker conditions; at least one row is required.
Required array length:
1 - 20 elementsShow child attributes
Show child attributes
Group team; at least one admin and one assignee.
Minimum array length:
1Show child attributes
Show child attributes
Maximum string length:
500New improvement comments that trigger a plan draft.
Required range:
x >= 1Response
Group created
Example:
"507f1f77bcf86cd799439031"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Example:
300
A disabled group stops counting feedback and generating drafts, but keeps its history and stats visible.
Base date of the negatives counter: only feedback created after it counts toward threshold.
⌘I