{"info":{"_postman_id":"491cd74a-157e-4d74-a405-2b8c382b91b2","name":"Kiamo API v3","description":"<html><head></head><body><h2 id=\"overview\">Overview</h2>\n<p>Next generation of Kiamo APIs, delivered in seperate packages, totally independent from Kiamo.</p>\n<h2 id=\"api-tokens\">API Tokens</h2>\n<p>For authentication purposes, the Kiamo APIs use an API token which must be transmitted when making each call so that the call is accepted by the system. This provides greater control over the use of Kiamo services.</p>\n<p><em>Note</em>: The API token is string of 40 hexadecimal characters generated previously by Kiamo.</p>\n<p><strong>Token example</strong></p>\n<p><code>68d27ac06e53fef962c49a4b0d18691019c3a31a</code></p>\n<p><strong>Obtaining a token</strong></p>\n<p>You can obtain an API token via the token generation page in the Kiamo administration interface (in the Development &gt; API tokens menu).</p>\n<p>From this interface, you can:</p>\n<ul>\n<li>generate a token for one or more APIs: Activity planning, Agent, Contact Manager, Interaction and/or Supervision.</li>\n<li>manage the existing tokens, modify their labels or disable them .</li>\n<li>manage the various rights provided by the token. These rights concern request types (GET, POST, PUT and DELETE).</li>\n</ul>\n<p>By allowing retrieval (GET) on an Interaction API token, for example, you can execute all the get requests of the associated API, but receive an error message 403 (Forbidden) if other verbs are used (PUT for a modification for example).</p>\n<p><strong>Using a token</strong></p>\n<p>To use an API token, you have to send it in the request headers when making the request, in format :</p>\n<p><strong><code>Kiamo-Api-Token:[API_token]</code></strong></p>\n<p><em>Example</em>:</p>\n<p><code>Kiamo-Api-Token:68d27ac06e53fef962c49a4b0d18691019c3a31a</code></p>\n<p>If the API token is not sent, the Web Service will return an error 401 \"The authentication token is not valid\". This error will also occur if a token is not recognized by the API (invalid, not active, etc.) or if a token does not the rights required.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"8283488","collectionId":"491cd74a-157e-4d74-a405-2b8c382b91b2","publishedId":"TzefB3oo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6633"},"publishDate":"2025-03-19T13:54:44.000Z"},"item":[{"name":"activities","item":[{"name":"planning","item":[{"name":"Create Activity Planning","id":"c3823875-bba0-45e9-ba66-c5f062434b65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Kiamo-Api-Token","type":"text","value":"{{apiToken}}"}],"body":{"mode":"raw","raw":"{\r\n    \"periods\": [ \r\n        {\r\n            \"startTime\": \"2020-11-19T10:00:00Z\",\r\n            \"endTime\": \"2020-11-19T11:00:00Z\"\r\n        }\r\n    ],\r\n    \"activities\": [ 2, 3 ],\r\n    \"agents\": [ 1, 4 ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{kiamoUrl}}/api/{{apiVersion}}/activities/planning","description":"<h2 id=\"activity-planning\">Activity Planning</h2>\n<p>The body of an activity planning contains:</p>\n<ul>\n<li>a non-empty list of planning periods,</li>\n<li>a non-empty list of activities to be planned during this period,</li>\n<li>a non-empty list of agents.</li>\n</ul>\n<h4 id=\"query-body\">Query body</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">{\n    \"periods\": [\n        (...)\n    ],\n    \"activities\": [ \n        ,\n        (...)\n    ],\n    \"agents\": [\n        ,\n        (...)\n    ]\n}\n\n</code></pre>\n<p><strong>periods</strong> is a non-empty (mandatory) array of activity periods,</p>\n<p>A period is described as a dictionary of 2 dates where:</p>\n<ul>\n<li><p>dates are ISO 8601 standard UTC date strings (\"YYYY-MM-DDTHH:MM:SSZ\"),</p>\n</li>\n<li><p>minutes for these dates can only be:'00', '15', '30' ou '45',</p>\n</li>\n<li><p>seconds are ignored,</p>\n</li>\n<li><p>the <strong>startTime</strong> field indicates the quarter of an hour used to start,</p>\n</li>\n<li><p>the <strong>endTime</strong> indicates the last minute of the period,</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">  {\n    \"startTime\": \"YYYY-MM-DDTHH:MM:SSZ\",\n    \"endTime\": \"YYYY-MM-DDTHH:MM:SSZ\"\n  }\n\n</code></pre>\n</li>\n<li><p><em><strong>Example</strong></em> : period of 60 minutes, from 10:00 to 11:00 UTC :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">    {\n        \"startTime\": \"2020-11-19T10:00:00Z\",\n        \"endTime\": \"2020-11-19T11:00:00Z\"\n    }\n\n</code></pre>\n</li>\n</ul>\n<p><strong>activities</strong> is a non-empty (mandatory) array of activity IDs,</p>\n<p><strong>agents</strong> is a non-empty (mandatory) array of agent IDs.</p>\n<h4 id=\"response\">Response</h4>\n<p>If the query is successful, the list of plannings created, period by period, activity by activity, agent by agent, is returned.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">[\n    {\n        \"period\": {\n            \"startTime\": \"YYYY-MM-DDTHH:MM:SSZ\",\n            \"endTime\": \"YYYY-MM-DDTHH:MM:SSZ\"\n        },\n        \"activity\": , \n        \"agent\": \n    },\n    (...)\n]\n\n</code></pre>\n<h4 id=\"error-codes\">Error codes</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Http</th>\n<th>Code</th>\n<th>Info</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1010</td>\n<td>Json attributes are missing <em>periods</em></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods</em> array empty</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1010</td>\n<td>Json attributes are missing: *\"periods\" array item \"startTime\"*</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1010</td>\n<td>Json attributes are missing: *\"periods\" array item \"endTime\"*</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1010</td>\n<td>Json attributes are missing: <em>activities</em></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>activities</em> array empty</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1010</td>\n<td>Json attributes are missing: <em>agents</em></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>agents</em> array empty</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods</em>: <strong>array</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid; <em>periods array item startTime</em>: <strong>string</strong> format ISO 8601 UTC</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid <em>periods array item endTime</em>: <strong>string</strong> format ISO 8601 UTC</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>activities</em>: <strong>array</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>activities</em> array item: <strong>int</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1020</td>\n<td>Arguments are invalid: <em>activities</em> array item: no match</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>agents</em>: <strong>array</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>agents</em> array item: <strong>int</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1020</td>\n<td>Arguments are invalid: <em>agents</em> array item: no match</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods array item startTime</em>: <strong>string</strong> format not a quarter</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods array item endTime</em>: <strong>string</strong> format not a quarter</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>info is returned with no formatting (bold, italics...)</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">{\n    \"code\": \"ERR_1010\",\n    \"info\": \"Json attributes are missing periods\"\n}\n\n</code></pre>\n","urlObject":{"path":["api","{{apiVersion}}","activities","planning"],"host":["{{kiamoUrl}}"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"99a5dce5-d6b5-4381-9a59-f5c1a70c6a8e","name":"Create activity planning","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Kiamo-Api-Token","value":"{{apiToken}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"periods\": [\r\n        {\r\n            \"startTime\": \"2020-11-19T10:00:00Z\",\r\n            \"endTime\": \"2020-11-19T11:00:00Z\"\r\n        }\r\n    ],\r\n    \"activities\": [ 2, 3 ],\r\n    \"agents\": [ 1, 4 ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{kiamoUrl}}/api/{{apiVersion}}/activities/planning"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"data\" : [\n        {\n            \"period\": {\n                \"startTime\": \"2020-11-19T10:00:00Z\",\n                \"endTime\": \"2020-11-19T11:00:00Z\"\n            },\n            \"activity\": 2,\n            \"agent\": 1\n        },\n        {\n            \"period\": {\n                \"startTime\": \"2020-11-19T10:00:00Z\",\n                \"endTime\": \"2020-11-19T11:00:00Z\"\n            },\n            \"activity\": 2,\n            \"agent\": 4\n        },\n        {\n            \"period\": {\n                \"startTime\": \"2020-11-19T10:00:00Z\",\n                \"endTime\": \"2020-11-19T11:00:00Z\"\n            },\n            \"activity\": 3,\n            \"agent\": 1\n        },\n        {\n            \"period\": {\n                \"startTime\": \"2020-11-19T10:00:00Z\",\n                \"endTime\": \"2020-11-19T11:00:00Z\"\n            },\n            \"activity\": 3,\n            \"agent\": 4\n        }\n    ],\n    \"meta\" : {}\n}"}],"_postman_id":"c3823875-bba0-45e9-ba66-c5f062434b65"},{"name":"Get Activity Planning","id":"be39b34c-fbd8-4294-a1d6-ef03bdebc25c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Kiamo-Api-Token","type":"text","value":"{{apiToken}}"}],"body":{"mode":"raw","raw":"{\r\n    \"periods\": [\r\n        {\r\n            \"startTime\": \"2020-11-19T09:00:00Z\",\r\n            \"endTime\": \"2020-11-19T18:00:00Z\"\r\n        }\r\n    ]\r\n    \"activities\": [],\r\n    \"team\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{kiamoUrl}}/api/{{apiVersion}}/activities/planning","description":"<h2 id=\"get-planned-activities\">Get planned activities</h2>\n<p>You can read the planned activities for a list of agents, a team or a group.</p>\n<h4 id=\"query-body\">Query body</h4>\n<p>An activity planning reading is described as:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">{\n    \"periods\": [ (...) ],\n    \"activities\": [ , (...) ],\n    \"agents\": [ , (...) ]\n}\n\n</code></pre>\n<p>or</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">{\n    \"periods\": [ (...) ],\n    \"activities\": [ , (...) ],\n    \"team\": \n}\n\n</code></pre>\n<p>or</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">{\n    \"periods\": [ (...) ],\n    \"activities\": [ , (...) ],\n    \"group\": \n}\n\n</code></pre>\n<p><strong>periods</strong> is a non-empty (mandatory) array of activity periods,</p>\n<p>A period is described as a dictionary of two dates where:</p>\n<ul>\n<li>dates are ISO 8601 standard UTC date strings (\"YYYY-MM-DDTHH:MM:SSZ\"),</li>\n<li>minutes for these dates can only be: '00', '15', '30' ou '45',</li>\n<li>seconds are ignored,</li>\n<li>the <strong>startTime</strong> field indicates the quarter of hour to start,</li>\n<li>{ \"startTime\": \"YYYY-MM-DDTHH:MM:SSZ\", \"endTime\": \"YYYY-MM-DDTHH:MM:SSZ\" }</li>\n</ul>\n<p><strong>activities</strong> is an array that can be empty (if so, all activities matching the reading criteria will be returned),</p>\n<p>the target can be a list of agents, a team or a group with:</p>\n<ul>\n<li><strong>agents</strong>, a non-empty (mandatory) array of agent IDs.</li>\n<li><strong>team</strong>, a team ID.</li>\n<li><strong>group</strong>, a group ID.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>If the query is successful, the list of all activity plannings matching the search criteria, period by period, activity by activity, agent by agent, is returned (empty list if no match).</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">[\n    {\n        \"period\": {\n            \"startTime\": \"YYYY-MM-DDTHH:MM:SSZ\",\n            \"endTime\": \"YYYY-MM-DDTHH:MM:SSZ\"\n        },\n        \"activity\": , \n        \"agent\": \n    },\n    (...)\n]\n\n</code></pre>\n<h4 id=\"error-codes\">Error codes</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Http</th>\n<th>Code</th>\n<th>Info</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1010</td>\n<td>Json attributes are missing: <em>periods</em></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods</em> array empty</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1010</td>\n<td>Json attributes are missing: *\"periods\" array item \"startTime\"*</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1010</td>\n<td>Json attributes are missing: *\"periods\" array item \"endTime\"*</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1010</td>\n<td>Json attributes are missing: <em>activities</em></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>agents</em> array empty</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods</em>: <strong>array</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods array item startTime</em>: <strong>string</strong> format ISO 8601 UTC</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods array item endTime</em>: <strong>string</strong> format ISO 8601 UTC</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>activities</em>: <strong>array</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>activities</em> array item: <strong>int</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1020</td>\n<td>Arguments are invalid: <em>activities</em> array item: no match</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>agents</em>: <strong>array</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>agents</em> array item: <strong>int</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1020</td>\n<td>Arguments are invalid: <em>agents</em> array item: no match</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>team</em>: <strong>int</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1020</td>\n<td>Arguments are invalid: <em>team</em>: no match</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>group</em> : <strong>int</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1020</td>\n<td>Arguments are invalid: <em>group</em>: no match</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods array item startTime</em>: <strong>string</strong> format not a quarter</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods array item endTime</em>: <strong>string</strong> format not a quarter</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1010</td>\n<td>Json attributes are missing: <em>agents or team or group</em></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1020</td>\n<td>Arguments are invalid: <em>only one of agents or team or group</em></td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>info is returned with no formatting (bold, italics...)</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">{\n    \"code\": \"ERR_1010\",\n    \"info\": \"Json attributes are missing periods\"\n}\n\n</code></pre>\n","urlObject":{"path":["api","{{apiVersion}}","activities","planning"],"host":["{{kiamoUrl}}"],"query":[],"variable":[]}},"response":[{"id":"98aea1d1-6d4d-4ed8-9a05-3fa1c7bff7a8","name":"Get activity planning","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Kiamo-Api-Token","type":"text","value":"{{apiToken}}"}],"url":"{{kiamoUrl}}/api/{{apiVersion}}/activities/planning"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"data\" : [\n        {\n            \"period\": {\n                \"startTime\": \"2020-11-19T10:00:00Z\",\n                \"endTime\": \"2020-11-19T11:00:00Z\"\n            },\n            \"activity\": 2,\n            \"agent\": 1\n        },\n        {\n            \"period\": {\n                \"startTime\": \"2020-11-19T10:00:00Z\",\n                \"endTime\": \"2020-11-19T11:00:00Z\"\n            },\n            \"activity\": 2,\n            \"agent\": 4\n        },\n        {\n            \"period\": {\n                \"startTime\": \"2020-11-19T10:00:00Z\",\n                \"endTime\": \"2020-11-19T11:00:00Z\"\n            },\n            \"activity\": 3,\n            \"agent\": 1\n        },\n        {\n            \"period\": {\n                \"startTime\": \"2020-11-19T10:00:00Z\",\n                \"endTime\": \"2020-11-19T11:00:00Z\"\n            },\n            \"activity\": 3,\n            \"agent\": 4\n        }\n    ],\n    \"meta\" : {\n        \"cursor\": {\n            \"current\": \"5f1072f2afbf2727300067ca\",\n            \"prev\": null,\n            \"next\": null,\n            \"count\": 4\n        }\n    }\n}"}],"_postman_id":"be39b34c-fbd8-4294-a1d6-ef03bdebc25c"},{"name":"Delete Activity Planning","id":"c7176563-1ab9-4ae0-bc72-3dcd9d8d382a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Kiamo-Api-Token","type":"text","value":"{{apiToken}}"}],"body":{"mode":"raw","raw":"{\r\n    \"periods\": [\r\n        {\r\n            \"startTime\": \"2020-11-19T10:00:00Z\",\r\n            \"endTime\": \"2020-11-19T11:00:00Z\"\r\n        }\r\n    ],\r\n    \"activities\": [],\r\n    \"team\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{kiamoUrl}}/api/{{apiVersion}}/activities/planning","description":"<h2 id=\"delete-activity-planning\">Delete Activity Planning</h2>\n<p>You can delete planned activities for a list of agents, a team or a group.</p>\n<h4 id=\"query-body\">Query body</h4>\n<p>Deletion of a planned activity is described as:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">{\n    \"periods\": [ (...) ],\n    \"activities\": [ , (...) ],\n    \"agents\": [ , (...) ]\n}\n\n</code></pre>\n<p>or</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">{\n    \"periods\": [ (...) ],\n    \"activities\": [ , (...) ],\n    \"team\": \n}\n\n</code></pre>\n<p>or</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">{\n    \"periods\": [ (...) ],\n    \"activities\": [ , (...) ],\n    \"group\": \n}\n\n</code></pre>\n<p><strong>periods</strong> is a non-empty (mandatory) array of activity periods,</p>\n<p>a period is described as a dictionary of two dates where:</p>\n<ul>\n<li><p>dates are ISO 8601 standard UTC date strings (\"YYYY-MM-DDTHH:MM:SSZ\"),</p>\n</li>\n<li><p>minutes for these dates can only be:'00', '15', '30' ou '45',</p>\n</li>\n<li><p>seconds are ignored,</p>\n</li>\n<li><p>the <strong>startTime</strong> field indicates the quarter of hour to start,</p>\n</li>\n<li><p>the <strong>endTime</strong> indicates the last minute of the period,</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">    {\n      \"startTime\": \"YYYY-MM-DDTHH:MM:SSZ\",\n      \"endTime\": \"YYYY-MM-DDTHH:MM:SSZ\"\n    }\n\n</code></pre>\n</li>\n</ul>\n<p><strong>activities</strong> is an array that can be empty (if so, all activities matching the reading criteria will be returned),</p>\n<p>target can be a list of agents, a team or a group with:</p>\n<ul>\n<li><strong>agents</strong>, a non-empty (mandatory) array of agent IDs.</li>\n<li><strong>team</strong>, a team ID,</li>\n<li><strong>group</strong>, a group ID.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>If the query is successful, the return code is 204 - No Contents.</p>\n<h4 id=\"error-codes\">Error codes</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Http</th>\n<th>Code</th>\n<th>Info</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1010</td>\n<td>Json attributes are missing: <em>periods</em></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods</em> array empty</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1010</td>\n<td>Json attributes are missing: *\"periods\" array item \"startTime\"*</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1010</td>\n<td>Json attributes are missing: *\"periods\" array item \"endTime\"*</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1010</td>\n<td>Json attributes are missing: <em>activities</em></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>agents</em> array empty</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods</em>: <strong>array</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods array item startTime</em>: <strong>string</strong> format ISO 8601 UTC</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods array item endTime</em>: <strong>string</strong> format ISO 8601 UTC</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>activities</em>: <strong>array</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>activities</em> array item : <strong>int</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1020</td>\n<td>Arguments are invalid: <em>activities</em> array item: no match</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>agents</em>: <strong>array</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>agents</em> array item: <strong>int</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1020</td>\n<td>Arguments are invalid: <em>agents</em> array item: no match</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>team</em>: <strong>int</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1020</td>\n<td>Arguments are invalid: <em>team</em>: no match</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>group</em>: <strong>int</strong></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1020</td>\n<td>Arguments are invalid: <em>group</em>: no match</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods array item startTime</em>: <strong>string</strong> format not a quarter</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1000</td>\n<td>The json supplied is invalid: <em>periods array item endTime</em>: <strong>string</strong> format not a quarter</td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1010</td>\n<td>Json attributes are missing: <em>agents or team or group</em></td>\n</tr>\n<tr>\n<td>400</td>\n<td>ERR_1020</td>\n<td>Arguments are invalid: <em>only one of agents or team or group</em></td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>info is returned with no formatting (bold, italics...)</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">{\n    \"code\": \"ERR_1010\",\n    \"info\": \"Json attributes are missing periods\"\n}\n\n</code></pre>\n","urlObject":{"path":["api","{{apiVersion}}","activities","planning"],"host":["{{kiamoUrl}}"],"query":[],"variable":[]}},"response":[{"id":"72ac8aa1-d6e7-48db-b46b-476ca79a8150","name":"Delete activity planning","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Kiamo-Api-Token","type":"text","value":"{{apiToken}}"}],"body":{"mode":"raw","raw":"{\r\n    \"periods\": [\r\n        {\r\n            \"startTime\": \"2020-11-19T10:00:00Z\",\r\n            \"endTime\": \"2020-11-19T11:00:00Z\"\r\n        }\r\n    ],\r\n    \"activities\": [],\r\n    \"team\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{kiamoUrl}}/api/{{apiVersion}}/activities/planning"},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"c7176563-1ab9-4ae0-bc72-3dcd9d8d382a"}],"id":"b61e9c4e-37ab-4a77-8536-fbea34fd4954","description":"<p>Planning of agents' activities</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"ee2b965d-5202-4e80-b8d8-f1f6194ce4ea"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"18fbfeaa-c3fe-4d16-a389-7ad331bd148e"}}],"_postman_id":"b61e9c4e-37ab-4a77-8536-fbea34fd4954"}],"id":"9344ca1a-c458-40da-8f84-a41e0b595ae4","description":"<p>Management of agents' activities</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"7559c11c-1439-4c92-8a83-1ea362a3ad26"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"9d7e2ffd-e7bc-4adc-8eb6-e93398bd9bd0"}}],"_postman_id":"9344ca1a-c458-40da-8f84-a41e0b595ae4"},{"name":"load balancing","item":[{"name":"Get Host","id":"fcc28ba0-1917-4c57-beeb-8e2d714768a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{kiamoUrl}}/api/{{apiVersion}}/load-balancing/{{app}}","description":"<h1 id=\"get-host\">Get host</h1>\n<h2 id=\"mandatory-fields\">Mandatory fields:</h2>\n<p>* app: application for which you want to request a host (e.g.: \"kiwi\", \"supervision\", \"supervision-api'\" \"agent-api\")</p>\n<h2 id=\"response-codes\">Response codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Unknown error</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","{{apiVersion}}","load-balancing","{{app}}"],"host":["{{kiamoUrl}}"],"query":[],"variable":[]}},"response":[{"id":"71f42834-8824-4575-9186-1baec255f4be","name":"Get Host","originalRequest":{"method":"GET","header":[{"key":"","value":"","type":"text","disabled":true}],"url":"{{kiamoUrl}}/api/{{apiVersion}}/load-balancing/{{app}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 25 Apr 2023 14:32:17 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-Debug-Token","value":"c6ddd0"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"107"},{"key":"Keep-Alive","value":"timeout=5, max=500"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"success\",\n    \"frontal_server\": {\n        \"id\": 1,\n        \"host\": \"http://127.0.0.1\"\n    },\n    \"ports\": {\n        \"http\": 3015,\n        \"https\": 3016\n    }\n     },\n   \"session_servers\": [{\n        \"host\": \"sbc1.mykiamo.fr\",\n        \"port\": 123\n    },\n   {\n        \"host\": \"sbc2.mykiamo.fr\",\n        \"port\": 456\n    }] \n}"}],"_postman_id":"fcc28ba0-1917-4c57-beeb-8e2d714768a2"}],"id":"0da41416-8fd5-4e3f-8ee4-0ce2281e4913","_postman_id":"0da41416-8fd5-4e3f-8ee4-0ce2281e4913","description":""},{"name":"resources","item":[{"name":"agent","item":[{"name":"Read Agent","id":"22115129-7b10-4ef1-9c5d-9712cd13a0de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Kiamo-Api-Token","value":"{{apiToken}}","type":"text"}],"url":"{{kiamoUrl}}/api/{{apiVersion}}/agents/{{agentId}}","description":"<h1 id=\"get-an-agents-attributes\">Get an agent's attributes</h1>\n","urlObject":{"path":["api","{{apiVersion}}","agents","{{agentId}}"],"host":["{{kiamoUrl}}"],"query":[],"variable":[]}},"response":[{"id":"106380b0-7fab-4800-805e-0cbbe69fcbc4","name":"Get an agent's attributes","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0"},{"key":"Accept","value":"application/json, text/javascript, */*; q=0.01","disabled":true},{"key":"Accept-Language","value":"fr_FR, en_US","disabled":true},{"key":"Accept-Encoding","value":"gzip, deflate","disabled":true},{"key":"Kiamo-Api-Token","value":"{{apiToken}}"},{"key":"X-Requested-With","value":"XMLHttpRequest","disabled":true},{"key":"Connection","value":"keep-alive","disabled":true},{"key":"Referer","value":"http://pcdev031/kiwi/","disabled":true}],"url":"{{kiamoUrl}}/api/{{apiVersion}}/agents/{{agentId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 30,\n    \"first_name\": \"John\",\n    \"last_name\": \"Smith\",\n    \"login\": \"0005\",\n    \"email\": \"js@kiamo.com\",\n    \"language\": \"en_UK\",\n    \"timezone\": \"Europe/Paris\",\n    \"group\": {\n        \"id\": 2,\n        \"label\": \"Aftersales Group\"\n    },\n    \"team\": {\n        \"id\": \"\",\n        \"label\": \"\"\n    },\n    \"avatar\": {\n        \"color\": \"grey\",\n        \"url\": null\n    },\n    \"preferences\": []\n}"}],"_postman_id":"22115129-7b10-4ef1-9c5d-9712cd13a0de"},{"name":"Create Agent","event":[{"listen":"prerequest","script":{"id":"b7302630-d88e-4ae2-8c30-011176c3f66f","exec":[""],"type":"text/javascript"}}],"id":"e73cec7f-708a-403b-8efb-03775d4fd184","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Kiamo-Api-Token","value":"{{apiToken}}"}],"body":{"mode":"raw","raw":"{\r\n    \"last_name\": \"Kiamo-Name\",\r\n    \"password\": \"password\", \r\n    \"must_update_password\": \"true\", \r\n    \"email\": \"kiamo@kiamo.com\",\r\n    \"login\": \"KiamoLogin\",\r\n    \"group\": 1,\r\n    \"team\": 15,\r\n    \"language\": \"de_DE\",\r\n    \"timezone_type\": \"custom\",\r\n    \"timezone_code\": \"America/Costa_Rica\"    \r\n}"},"url":"{{kiamoUrl}}/api/{{apiVersion}}/agents","description":"<h1 id=\"create-an-agent\">Create an agent</h1>\n<h2 id=\"mandatory-fields\">Mandatory fields:</h2>\n<p>* agent's last name;<br />* agent's login: this login must be unique.<br />* agent's group: ID of a group that is available in Kiamo.</p>\n<h2 id=\"optional-fileds\">Optional fileds:</h2>\n<p>* password. It must be in clear text. It will be coded when saved.</p>\n<p>* must_update_password. It must be a boolean. False by default.</p>\n<p>* email address.</p>\n<p>* team: ID of a team that is available in Kiamo.</p>\n<p>*language. If it is not specified then the default language will be used.</p>\n<p>* timezone. If it is not specified then the default timezone will be used: it is the timezone of the agent's group.</p>\n<h2 id=\"responses\">Responses</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Response code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>201</td>\n<td>Successful creation.The Get verb response is sent.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>The query body contains an error.  <br />e.g.:  <br />Group ID has not been specified.  <br />The team ID provided is not available in Kiamo.</td>\n</tr>\n<tr>\n<td>403</td>\n<td>No permission</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Unknown error</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","{{apiVersion}}","agents"],"host":["{{kiamoUrl}}"],"query":[],"variable":[]}},"response":[{"id":"ffcede16-fc20-4fe6-89d1-8e3287f72cf6","name":"Create Agent","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Kiamo-Api-Token","value":"{{apiToken}}"}],"body":{"mode":"raw","raw":"{\r\n    \"last_name\": \"Name\",\r\n    \"password\": \"Paswword\", \r\n    \"must_update_password\": \"true\",\r\n    \"email\": \"kiamo@kiamo.com\",\r\n    \"login\": \"KiamoLogin\",\r\n    \"group\": 1,\r\n    \"language\": \"fr_FR\",\r\n    \"timezone_type\": \"custom\",\r\n    \"timezone_code\": \"Europe/Madrid\"\r\n}"},"url":{"raw":"{{kiamoUrl}}/api/{{apiVersion}}/agents","host":["{{kiamoUrl}}"],"path":["api","{{apiVersion}}","agents"],"query":[{"key":"per_page","value":"","disabled":true},{"key":"contact_phone","value":"","disabled":true},{"key":"contact_email","value":"","disabled":true},{"key":"contact_reference","value":"","disabled":true},{"key":"company_reference","value":"","disabled":true},{"key":"file_reference","value":"","disabled":true},{"key":"ticket_reference","value":"","disabled":true},{"key":"in_date_start","value":"","disabled":true},{"key":"in_date_end","value":"","disabled":true},{"key":"media","value":"","disabled":true},{"key":"next_id","value":"","disabled":true},{"key":"sort","value":"","disabled":true},{"key":"task_ref","value":"","disabled":true},{"key":"attached_ref","value":"","disabled":true},{"key":"reference","value":"","disabled":true},{"key":"states","value":"","disabled":true},{"key":"service_ids","value":"","disabled":true},{"key":"agent_ids","value":"","disabled":true},{"key":"include_drafts","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"first_name\": \"\",\n    \"last_name\": \"Name\",\n    \"avatar\": {\n        \"color\": \"yellow\",\n        \"url\": null\n    },\n    \"preferences\": [],\n    \"group\": 1,\n    \"team\": null,\n    \"localization\": {\n        \"language\": \"fr_FR\",\n        \"timezone\": \"Europe/Madrid\"\n    },\n    \"ids\": {\n        \"mail\": \"kiamo@kiamo.com\",\n        \"login\": \"KiamoLogin\"\n    }\n}"}],"_postman_id":"e73cec7f-708a-403b-8efb-03775d4fd184"},{"name":"Change Agent","event":[{"listen":"prerequest","script":{"id":"a297e33e-db73-426a-859a-0405c5e9ccc1","exec":[""],"type":"text/javascript"}}],"id":"8ebd160b-879a-47bc-a3b3-5cf90ec22f8f","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Kiamo-Api-Token","value":"{{apiToken}}"}],"body":{"mode":"raw","raw":"{\r\n    \"last_name\": \"Smith\",\r\n    \"password\": \"password\",  \r\n    \"email\": \"name@kiamo.com\",\r\n    \"login\": \"name@kiamo.com\",\r\n    \"group\": 2,\r\n    \"team\": 2,\r\n    \"language\": \"de_DE\",\r\n    \"timezone_type\": \"custom\",\r\n    \"timezone_code\": \"Europe/Madrid\"\r\n}"},"url":"{{kiamoUrl}}/api/{{apiVersion}}/agents/{{agentId}}","description":"<h1 id=\"change-an-agents-attributes\">Change an agent's attributes</h1>\n<p>This verb is used to change one or more of the following agent attributes:</p>\n<ul>\n<li>last name</li>\n<li>group</li>\n<li>login</li>\n<li>password</li>\n<li>email</li>\n<li>team</li>\n<li>language</li>\n<li>timezone</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>last_name</td>\n<td>Agent's last name.  <br />It must be a character string.</td>\n</tr>\n<tr>\n<td>group</td>\n<td>Group ID.  <br />It must be an integer.</td>\n</tr>\n<tr>\n<td>login</td>\n<td>Agent's login.  <br />It must be a character string.</td>\n</tr>\n<tr>\n<td>password</td>\n<td>Agent's password.  <br />It must be a character string.</td>\n</tr>\n<tr>\n<td>email</td>\n<td>Agent's email address.  <br />It must be a character string.</td>\n</tr>\n<tr>\n<td>team</td>\n<td>Team ID.  <br />It must be an integer.</td>\n</tr>\n<tr>\n<td>language</td>\n<td>Language code. It is the language code of one of the languages available in Kiamo.  <br />It must be a character string.  <br />e.g.:  <br />- de_DE  <br />- en_US</td>\n</tr>\n<tr>\n<td>timezone_type</td>\n<td>Agent's timezone type.  <br />Values: group, team, custom:  <br />- group: the agent will have the timezone defined for the group.  <br />- team: the agent will have the timezone defined for the team to which he/she belongs.  <br />- custom: the agent will have a specific timezone defined in timezone_code.</td>\n</tr>\n<tr>\n<td>timezone_code</td>\n<td>Timezone code. It must be defined in Kiamo and must be a character string.  <br />e.g.:  <br />- America/Havana,  <br />- Europe/Lisbon  <br />  <br />Timezone list: <a href=\"https://timezonedb.com/time-zonesResponse\">https://timezonedb.com/time-zones</a></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response\">Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad JSON format.  <br />For instance:  <br />- One of the fields does not have the right type;  <br />- The group ID does not match one of the groups available in Kiamo;  <br />- The team ID does not match one of the teams available in Kiamo;  <br />- The language code is unknown in Kiamo;  <br />- The timezone code is unknown in Kiamo.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>The agent does not exist.</td>\n</tr>\n<tr>\n<td>403</td>\n<td>Wrong access rights</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Unknown error</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","{{apiVersion}}","agents","{{agentId}}"],"host":["{{kiamoUrl}}"],"query":[],"variable":[]}},"response":[{"id":"a48528bb-31c3-4a00-b692-ac15a9e97ac4","name":"Change Agent","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Kiamo-Api-Token","value":"{{token_ap}}"}],"body":{"mode":"raw","raw":"{\r\n    \"last_name\": \"Name\",\r\n    \"password\": \"password\",  \r\n    \"email\": \"name@kiamo.com\",\r\n    \"login\": \"name@kiamo.com\",\r\n    \"group\": 2,\r\n    \"team\": 2,\r\n    \"language\": \"de_DE\",\r\n    \"timezone_type\": \"custom\",\r\n    \"timezone_code\": \"Europe/Madrid\"\r\n}"},"url":{"raw":"{{kiamoURL}}/api/{{apiVersion}}/agents/{{agentId}}","host":["{{kiamoURL}}"],"path":["api","{{apiVersion}}","agents","{{agentId}}"],"query":[{"key":"per_page","value":"","disabled":true},{"key":"contact_phone","value":"","disabled":true},{"key":"contact_email","value":"","disabled":true},{"key":"contact_reference","value":"","disabled":true},{"key":"company_reference","value":"","disabled":true},{"key":"file_reference","value":"","disabled":true},{"key":"ticket_reference","value":"","disabled":true},{"key":"in_date_start","value":"","disabled":true},{"key":"in_date_end","value":"","disabled":true},{"key":"media","value":"","disabled":true},{"key":"next_id","value":"","disabled":true},{"key":"sort","value":"","disabled":true},{"key":"task_ref","value":"","disabled":true},{"key":"attached_ref","value":"","disabled":true},{"key":"reference","value":"","disabled":true},{"key":"states","value":"","disabled":true},{"key":"service_ids","value":"","disabled":true},{"key":"agent_ids","value":"","disabled":true},{"key":"include_drafts","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 34,\n    \"first_name\": \"\",\n    \"last_name\": \"Name\",\n    \"login\": \"name@kiamo.com\",\n    \"email\": \"name@kiamo.com\",\n    \"language\": \"de_DE\",\n    \"timezone\": \"Europe/Madrid\",\n    \"group\": {\n        \"id\": 2,\n        \"label\": \"Aftersales group\"\n    },\n    \"team\": {\n        \"id\": 2,\n        \"label\": \"Team 1\"\n    },\n    \"avatar\": {\n        \"color\": \"yellow\",\n        \"url\": null\n    },\n    \"preferences\": []\n}"}],"_postman_id":"8ebd160b-879a-47bc-a3b3-5cf90ec22f8f"},{"name":"Delete Agent","event":[{"listen":"prerequest","script":{"id":"50cc6841-6316-4309-8869-c220d9783525","exec":[""],"type":"text/javascript"}}],"id":"48491dfb-9293-4da4-bb34-9764ab78fafc","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Kiamo-Api-Token","value":"{{token_api}}"}],"body":{"mode":"raw","raw":""},"url":"{{kiamoUrl}}/api/{{apiVersion}}/agents/{{agentId}}","description":"<h1 id=\"delete-an-agent\">Delete an agent</h1>\n<h2 id=\"response\">Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>201</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Unknown error</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","{{apiVersion}}","agents","{{agentId}}"],"host":["{{kiamoUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"48491dfb-9293-4da4-bb34-9764ab78fafc"}],"id":"872f2db5-0cdd-4705-9caa-065e6a934cc2","_postman_id":"872f2db5-0cdd-4705-9caa-065e6a934cc2","description":""}],"id":"95c9ff23-2351-4eb7-9422-5fa1a5529bc2","description":"<h2 id=\"agent\">agent</h2>\n<p>This API can be used starting with <strong>Kiamo 8.2.0</strong>.</p>\n<p>Agent creation, modification or deletion.</p>\n","_postman_id":"95c9ff23-2351-4eb7-9422-5fa1a5529bc2"}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"a0b828cb-d55b-4199-979c-47e277e4f739"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"abe25e26-a114-49cd-9110-c2d64c469889"}}]}