{"info":{"_postman_id":"ed20a5ae-a9f7-4496-bca9-14fcb2ca289c","name":"HBC Play - APIs Doc","description":"<html><head></head><body><p>Está documentação exemplifica a utilização das APIs da Plataforma HBC Play.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"15285974","collectionId":"ed20a5ae-a9f7-4496-bca9-14fcb2ca289c","publishedId":"TzJx8bzQ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"030D28","highlight":"4B61B8"},"publishDate":"2021-04-23T18:20:01.000Z"},"item":[{"name":"API de Autenticação","item":[{"name":"Criar Token","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","","pm.environment.set(\"access_token\", jsonData.access_token);","","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});"],"type":"text/javascript","id":"64606bc3-3877-4cbd-a074-84a2cb533974"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"0b1a5b29-5d0d-4e94-a326-12c6466f9261"}}],"id":"3b9d1f75-b94d-48b2-8629-c94abcc1f863","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","description":"<p>Formato do conteúdo no corpo (body) da requisição</p>\n","type":"text"},{"key":"Authorization","value":"Basic {{basicAuthorization}}","description":"<p>O valor deste prametro deve estar em formato Base64 na seguinte formatação <code>clinte_id:client_secret</code>.</p>\n<p>Exemplo com nodejs:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>const basicAuthorization = new Buffer.from(client_id + ':' + client_secret).toString('base64');\n</code></pre>","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"client_credentials","description":"<p>Tipo de autorização a recursos protegidos com base em uma autorização previamente combinada com o servidor de autorização.</p>\n","type":"text"}]},"url":"{{host}}/v1/auth/token","description":"<p>Geração do Token de Autorização.</p>\n<p>Observações:</p>\n<ul>\n<li>Este endpoint implementa da especiação Grant Type Client Credentials do OAuth2 (<a href=\"https://oauth.net/2/grant-types/client-credentials\">https://oauth.net/2/grant-types/client-credentials</a>).</li>\n<li>Na resposta da requisição, propriedade <code>expires_in</code> representa o tempo em segundos para a expiração do token.</li>\n</ul>\n","urlObject":{"path":["v1","auth","token"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"6ce86a32-1468-4695-9e8b-93db68bea1ff","name":"Sucesso","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","description":"Formato do conteúdo no corpo (body) da requisição","type":"text"},{"key":"Authorization","value":"Basic {{basicAuthorization}}","description":"O valor deste prametro deve estar em formato Base64 na seguinte formatação `clinte_id:client_secret`.\n\nExemplo com nodejs:\n```\nconst basicAuthorization = new Buffer.from(client_id + ':' + client_secret).toString('base64');\n```","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"client_credentials","description":"Tipo de autorização a recursos protegidos com base em uma autorização previamente combinada com o servidor de autorização.","type":"text"}]},"url":"{{host}}/v1/auth/token"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJraWQiOiJ3SlF...\",\n    \"token_type\": \"Bearer\",\n    \"expires_in\": 3600\n}"}],"_postman_id":"3b9d1f75-b94d-48b2-8629-c94abcc1f863"},{"name":"Obter Token","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"0908f378-180b-4289-9f41-61fce9ece760"}}],"id":"a64f9024-f555-43e9-848d-877c8d1d9913","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"<p>Token gerado no endpoint <code>Criar Token</code>.</p>\n","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{host}}/v1/auth/token","description":"<p>Obtém as informações do Token de Autorização gerado</p>\n","urlObject":{"path":["v1","auth","token"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"afe66cd0-c71e-4b86-bd53-19dbc58e6b17","name":"Sucesso","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v1/auth/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJraWQiOiJ3SlF...\",\n    \"token_type\": \"Bearer\",\n    \"expires_in\": 3600\n}"}],"_postman_id":"a64f9024-f555-43e9-848d-877c8d1d9913"}],"id":"0fac7965-8eb5-4429-b512-7fa192233f2c","description":"<p>Para obter acesso as APIs da Plataforma HBC Play é preciso enviar dois parâmetros nas requisições das APIs. Sendo um parâmetro de Token de Autorização (<code>Authorization Bearer</code>) e outro parâmetro de Plano de Acesso (<code>x-api-key</code>).</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-text\">  +---------+                                  +---------------+\n  |         |                                  |               |\n  |         |&gt;--(A)- Client Authentication ---&gt;| Authorization |\n  | Client  |                                  |     Server    |\n  |         |&lt;--(B)---- Access Token ---------&lt;|               |\n  |         |                                  |               |\n  +---------+                                  +---------------+\n</code></pre>\n","_postman_id":"0fac7965-8eb5-4429-b512-7fa192233f2c"},{"name":"API de Conteúdos","item":[{"name":"Categorias","item":[{"name":"Listar","id":"98286c41-1a0f-4668-8d1c-86f36e3bb2e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"<p>Token gerado no endpoint <code>Criar Token</code>.</p>\n","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"<p>API Key do plano de uso. Deve ser usado como valor o <code>client_id</code>.</p>\n","type":"text"}],"url":"{{host}}/v1/contents/categories","description":"<p>Obtém a listagem das Categorias</p>\n","urlObject":{"path":["v1","contents","categories"],"host":["{{host}}"],"query":[{"disabled":true,"description":{"content":"<p>Opcional - Exemplo: filters[title][ilike]=exemplo</p>\n","type":"text/plain"},"key":"filters[atributo][simbolo]","value":"valor"},{"disabled":true,"description":{"content":"<p>Opcional - Limite de dados retornado na listagem de Categorias.</p>\n","type":"text/plain"},"key":"limit","value":"20"},{"disabled":true,"description":{"content":"<p>Opcional - Posição do iníco da listagem de Categorias.</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"disabled":true,"description":{"content":"<p>Opcional - Ordenar por qualquer atributo</p>\n","type":"text/plain"},"key":"sort","value":"title"},{"disabled":true,"description":{"content":"<p>Opcional - ASC ou DESC</p>\n","type":"text/plain"},"key":"order","value":"ASC"},{"disabled":true,"description":{"content":"<p>Opcional - Número informando o nível das categorias desejadas</p>\n","type":"text/plain"},"key":"categoryLevel","value":"1"}],"variable":[]}},"response":[{"id":"4e28a5bd-011a-4a16-9779-4c3da423047a","name":"Sucesso","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"Token gerado no endpoint `Create Token`","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"API Key do plano de uso. Deve ser usado como valor o `client_id`","type":"text"}],"url":"{{host}}/v1/contents/categories"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"categories\": [\n        {\n            \"id\": 1,\n            \"title\": \"Category Sample One\",\n            \"description\": null,\n            \"externalId\": \"external_id_1\",\n            \"tenantId\": \"tenant_id_1\",\n            \"parentId\": null,\n            \"isActive\": true,\n            \"startsAt\": null,\n            \"endsAt\": null,\n            \"createdAt\": \"2021-03-25T12:53:05.344Z\",\n            \"updatedAt\": \"2021-05-24T16:51:10.226Z\",\n            \"categoryLevel\": {\n                \"id\": 1,\n                \"title\": \"Nível 1\",\n                \"level\": 0,\n                \"description\": null,\n                \"createdAt\": \"2021-05-18T19:02:40.968Z\",\n                \"updatedAt\": \"2021-05-18T19:02:40.968Z\"\n            }\n        },\n        {\n            \"id\": 2,\n            \"title\": \"Category Sample Two\",\n            \"description\": null,\n            \"externalId\": \"external_id_2\",\n            \"tenantId\": \"tenant_id_1\",\n            \"parentId\": 1,\n            \"isActive\": true,\n            \"startsAt\": null,\n            \"endsAt\": null,\n            \"createdAt\": \"2021-03-25T12:53:05.344Z\",\n            \"updatedAt\": \"2021-05-24T16:51:10.226Z\",\n            \"categoryLevel\": {\n                \"id\": 2,\n                \"title\": \"Nível 2\",\n                \"level\": 1,\n                \"description\": null,\n                \"createdAt\": \"2021-05-18T19:02:40.968Z\",\n                \"updatedAt\": \"2021-05-18T19:02:40.968Z\"\n            }\n        }\n    ],\n    \"limit\": 20,\n    \"total\": 2,\n    \"offset\": 0\n}"}],"_postman_id":"98286c41-1a0f-4668-8d1c-86f36e3bb2e8"},{"name":"Listar Categorias Filhas","id":"3b65f6b7-0740-4c48-aeae-a6474ee80301","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"<p>Token gerado no endpoint <code>Criar Token</code>.</p>\n","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"<p>API Key do plano de uso. Deve ser usado como valor o <code>client_id</code>.</p>\n","type":"text"}],"url":"{{host}}/v1/contents/categories/:category-id/children","description":"<p>Obtém o detalhe de uma Categoria pelo atributo <code>id</code> da Categoria</p>\n","urlObject":{"path":["v1","contents","categories",":category-id","children"],"host":["{{host}}"],"query":[{"disabled":true,"description":{"content":"<p>Opcional - Ordenar por qualquer atributo</p>\n","type":"text/plain"},"key":"sort","value":null},{"disabled":true,"description":{"content":"<p>Opcional - ASC ou DESC</p>\n","type":"text/plain"},"key":"order","value":null},{"disabled":true,"description":{"content":"<p>Opcional - Exemplo: filters[title][ilike]=exemplo</p>\n","type":"text/plain"},"key":"filters[atributo][simbolo]","value":"valor"},{"disabled":true,"description":{"content":"<p>Opcional - Limite de dados retornado na listagem de Categorias.</p>\n","type":"text/plain"},"key":"limit","value":"20"},{"disabled":true,"description":{"content":"<p>Opcional - Posição do iníco da listagem de Categorias.</p>\n","type":"text/plain"},"key":"offset","value":"0"}],"variable":[{"id":"2f2d492a-9729-44fa-a74c-b5047329ff50","description":{"content":"<p>Atributo <code>id</code> da Categoria.</p>\n","type":"text/plain"},"type":"any","value":"{{category-id}}","key":"category-id"}]}},"response":[{"id":"ac6ea991-f00e-4d9c-aede-24544cdf4033","name":"Sucesso","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"Token gerado no endpoint `Criar Token`.","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"API Key do plano de uso. Deve ser usado como valor o `client_id`.","type":"text"}],"url":"{{host}}/v1/contents/categories/1/children"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"categories\": [\n        {\n            \"id\": 2,\n            \"title\": \"Category Sample Two\",\n            \"description\": null,\n            \"externalId\": \"external_id_2\",\n            \"tenantId\": \"tenant_id_1\",\n            \"parentId\": 1,\n            \"isActive\": true,\n            \"startsAt\": null,\n            \"endsAt\": null,\n            \"createdAt\": \"2021-03-25T12:53:05.344Z\",\n            \"updatedAt\": \"2021-05-24T16:51:10.226Z\",\n            \"categoryLevel\": {\n                \"id\": 2,\n                \"title\": \"Nível 2\",\n                \"level\": 1,\n                \"description\": null,\n                \"createdAt\": \"2021-05-18T19:02:40.968Z\",\n                \"updatedAt\": \"2021-05-18T19:02:40.968Z\"\n            }\n        }\n    ],\n    \"limit\": 20,\n    \"total\": 1,\n    \"offset\": 0\n}"}],"_postman_id":"3b65f6b7-0740-4c48-aeae-a6474ee80301"},{"name":"Obter Arvore","id":"86ac46e5-2dea-4e6d-88cf-8e2b29179631","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"<p>Token gerado no endpoint <code>Criar Token</code>.</p>\n","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"<p>API Key do plano de uso. Deve ser usado como valor o <code>client_id</code>.</p>\n","type":"text"}],"url":"{{host}}/v1/contents/categories/tree","description":"<p>Obtém as categorias no formato de arvore. Encadeando as relações de Categoria Pai e Categoria Filha</p>\n","urlObject":{"path":["v1","contents","categories","tree"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"71f130f2-8a35-4add-bbe7-05d857761b29","name":"Sucesso","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"Token gerado no endpoint `Create Token`","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"API Key do plano de uso. Deve ser usado como valor o `client_id`","type":"text"}],"url":"{{host}}/v1/contents/categories/tree"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"title\": \"Category Sample One\",\n        \"externalId\": \"external-id\",\n        \"numberOfAncestors\": 0,\n        \"ancestry\": [],\n        \"parentId\": null,\n        \"startOfAncestry\": 135\n    },\n    {\n        \"id\": 2,\n        \"title\": \"Category Sample Two\",\n        \"externalId\": \"external-id-two\",\n        \"numberOfAncestors\": 0,\n        \"ancestry\": [],\n        \"parentId\": null,\n        \"startOfAncestry\": 0,\n        \"children\": [\n            {\n                \"id\": 3,\n                \"title\": \"Category Sample Three\",\n                \"numberOfAncestors\": 1,\n                \"ancestry\": [\n                    3\n                ]\n            }\n        ]\n    }\n]"}],"_postman_id":"86ac46e5-2dea-4e6d-88cf-8e2b29179631"},{"name":"Detalhar","id":"773898f1-141c-4f13-aa92-2b9af9f78c23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"<p>Token gerado no endpoint <code>Criar Token</code>.</p>\n","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"<p>API Key do plano de uso. Deve ser usado como valor o <code>client_id</code>.</p>\n","type":"text"}],"url":"{{host}}/v1/contents/categories/:category-id","description":"<p>Obtém o detalhe de uma Categoria pelo atributo <code>id</code> da Categoria</p>\n","urlObject":{"path":["v1","contents","categories",":category-id"],"host":["{{host}}"],"query":[],"variable":[{"id":"2f2d492a-9729-44fa-a74c-b5047329ff50","description":{"content":"<p>Atributo <code>id</code> da Categoria.</p>\n","type":"text/plain"},"type":"any","value":"{{category-id}}","key":"category-id"}]}},"response":[{"id":"68f55ace-38fe-46f1-90cc-3b2157fc9bc5","name":"Sucesso","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"Token gerado no endpoint `Criar Token`.","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"API Key do plano de uso. Deve ser usado como valor o `client_id`.","type":"text"}],"url":{"raw":"{{host}}/v1/contents/categories/:category-id","host":["{{host}}"],"path":["v1","contents","categories",":category-id"],"variable":[{"key":"category-id","value":"1","description":"Atributo `id` da Categoria."}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"title\": \"Category Sample One\",\n    \"description\": null,\n    \"externalId\": \"external_id_1\",\n    \"parentId\": null,\n    \"createdAt\": \"2021-03-25T12:34:43.249Z\",\n    \"updatedAt\": \"2021-03-25T12:34:43.249Z\",\n    \"createdBy\": \"9cbf3f54-3e15-44ce-ada6-a2499c727052\",\n    \"updatedBy\": null,\n    \"categoryLevel\": {\n        \"id\": 1,\n        \"title\": \"Primeiro Nível\",\n        \"level\": 0,\n        \"description\": \"\",\n        \"createdAt\": \"2021-05-18T19:02:36.183Z\",\n        \"updatedAt\": \"2021-05-24T16:33:45.912Z\"\n    }\n}"}],"_postman_id":"773898f1-141c-4f13-aa92-2b9af9f78c23"},{"name":"Detalhar  - Id Externo","id":"efec204d-3094-450c-aea9-c78fd7133913","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"<p>Token gerado no endpoint <code>Criar Token</code>.</p>\n","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"<p>API Key do plano de uso. Deve ser usado como valor o <code>client_id</code>.</p>\n","type":"text"}],"url":"{{host}}/v1/contents/categories/external-id/:external-id","description":"<p>Uma Categoria pode possuir um atributo que representa o identificador desta Categoria para um sistema externo. Este endpoint possibilita obter uma Categoria por este atributo, <code>externalId</code>.</p>\n","urlObject":{"path":["v1","contents","categories","external-id",":external-id"],"host":["{{host}}"],"query":[],"variable":[{"id":"7de9a266-9951-47a7-8c8d-4114f4fa37bf","description":{"content":"<p>Atributo <code>externalId</code> da Categoria.</p>\n","type":"text/plain"},"type":"any","value":"{{external-id}}","key":"external-id"}]}},"response":[{"id":"d337f669-541d-4286-be12-6981da529dab","name":"Sucesso","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"Token gerado no endpoint `Criar Token`.","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"API Key do plano de uso. Deve ser usado como valor o `client_id`.","type":"text"}],"url":{"raw":"{{host}}/v1/contents/categories/external-id/:external-id","host":["{{host}}"],"path":["v1","contents","categories","external-id",":external-id"],"variable":[{"key":"external-id","value":"external_id_1","description":"Atributo `externalId` da Categoria."}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"title\": \"Category Sample One\",\n    \"description\": null,\n    \"externalId\": \"external_id_1\",\n    \"parentId\": null,\n    \"createdAt\": \"2021-03-25T12:34:43.249Z\",\n    \"updatedAt\": \"2021-03-25T12:34:43.249Z\",\n    \"createdBy\": \"9cbf3f54-3e15-44ce-ada6-a2499c727052\",\n    \"updatedBy\": null,\n    \"categoryLevel\": {\n        \"id\": 1,\n        \"title\": \"Primeiro Nível\",\n        \"level\": 0,\n        \"description\": \"\",\n        \"createdAt\": \"2021-05-18T19:02:36.183Z\",\n        \"updatedAt\": \"2021-05-24T16:33:45.912Z\"\n    }\n}"}],"_postman_id":"efec204d-3094-450c-aea9-c78fd7133913"},{"name":"Detalhar - Lista Id Externo","id":"9d2d08f9-134d-4449-95cb-8186d7607463","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"<p>Token gerado no endpoint <code>Criar Token</code>.</p>\n","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"<p>API Key do plano de uso. Deve ser usado como valor o <code>client_id</code>.</p>\n","type":"text"}],"url":"{{host}}/v1/contents/categories/external-ids/:external-ids","description":"<p>Obtém uma Lista de Categorias filtrando pela lista de atributos <code>externalId</code> separados por <code>,</code>.\nObservação:</p>\n<ul>\n<li>Se uma Categoria não existir para um <code>externalId</code>, o valor retornado será <code>null</code>.</li>\n</ul>\n","urlObject":{"path":["v1","contents","categories","external-ids",":external-ids"],"host":["{{host}}"],"query":[],"variable":[{"id":"3f69d44e-5bb6-44ca-a1b6-6d94d956d495","description":{"content":"<p>Lista do atributo <code>externalId</code> da Categoria separado por <code>,</code>.</p>\n","type":"text/plain"},"type":"any","value":"{{external-ids}}","key":"external-ids"}]}},"response":[{"id":"7514a7da-77fb-4cf8-af18-34bbb55ca10a","name":"Sucesso","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"Token gerado no endpoint `Criar Token`.","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"API Key do plano de uso. Deve ser usado como valor o `client_id`.","type":"text"}],"url":{"raw":"{{host}}/v1/contents/categories/external-id/:external-id","host":["{{host}}"],"path":["v1","contents","categories","external-id",":external-id"],"variable":[{"key":"external-id","value":"external_id_1,external_id_2,external_id_3","description":"Lista de valores do atributo `externalId` das categoria seprado por `,`."}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"title\": \"Category Sample One\",\n        \"description\": null,\n        \"externalId\": \"external_id_1\",\n        \"tenantId\": \"tenant_id_1\",\n        \"parentId\": null,\n        \"isActive\": true,\n        \"startsAt\": null,\n        \"endsAt\": null,\n        \"createdAt\": \"2021-03-25T12:53:05.344Z\",\n        \"updatedAt\": \"2021-05-24T16:51:10.226Z\",\n        \"categoryLevel\": {\n            \"id\": 1,\n            \"title\": \"Nível 1\",\n            \"level\": 0,\n            \"description\": null,\n            \"createdAt\": \"2021-05-18T19:02:40.968Z\",\n            \"updatedAt\": \"2021-05-18T19:02:40.968Z\"\n        }\n    },\n    {\n        \"id\": 2,\n        \"title\": \"Category Sample Two\",\n        \"description\": null,\n        \"externalId\": \"external_id_2\",\n        \"tenantId\": \"tenant_id_1\",\n        \"parentId\": 1,\n        \"isActive\": true,\n        \"startsAt\": null,\n        \"endsAt\": null,\n        \"createdAt\": \"2021-03-25T12:53:05.344Z\",\n        \"updatedAt\": \"2021-05-24T16:51:10.226Z\",\n        \"categoryLevel\": {\n            \"id\": 2,\n            \"title\": \"Nível 2\",\n            \"level\": 1,\n            \"description\": null,\n            \"createdAt\": \"2021-05-18T19:02:40.968Z\",\n            \"updatedAt\": \"2021-05-18T19:02:40.968Z\"\n        }\n    },\n    null\n]"}],"_postman_id":"9d2d08f9-134d-4449-95cb-8186d7607463"}],"id":"e9cc2837-5a66-4230-9fe1-e499bd71a609","description":"<p>Entidade utilizada para categorizar os conteúdos de Vídeos.</p>\n","_postman_id":"e9cc2837-5a66-4230-9fe1-e499bd71a609"},{"name":"Níveis de Categoria","item":[{"name":"Listar","id":"5c2e66f9-3615-40d9-830b-7da7ac6bec4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"<p>Token gerado no endpoint <code>Criar Token</code>.</p>\n","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"<p>API Key do plano de uso. Deve ser usado como valor o <code>client_id</code>.</p>\n","type":"text"}],"url":"{{host}}/v1/contents/category-levels","description":"<p>Obtém a listagem dos níveis das categorias</p>\n","urlObject":{"path":["v1","contents","category-levels"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"34d2b810-5406-4a89-9cbc-8a03c9626700","name":"Sucesso","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"Token gerado no endpoint `Create Token`","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"API Key do plano de uso. Deve ser usado como valor o `client_id`","type":"text"}],"url":"{{host}}/v1/contents/category-levels"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"title\": \"Nível 1\",\n        \"level\": 0,\n        \"description\": \"Descrição do nível\",\n        \"createdAt\": \"2021-05-18T19:02:36.183Z\",\n        \"updatedAt\": \"2021-05-24T16:33:45.912Z\"\n    }\n]"}],"_postman_id":"5c2e66f9-3615-40d9-830b-7da7ac6bec4c"}],"id":"bd007eb6-4c1c-4e3d-849a-28048509c6a9","description":"<p>Entidade utilizada para gerenciar os níveis das categorias</p>\n","_postman_id":"bd007eb6-4c1c-4e3d-849a-28048509c6a9"},{"name":"Vídeos","item":[{"name":"Listar","id":"4b25c572-9af5-4e5a-8f50-82d9d45f1b1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"<p>Token gerado no endpoint <code>Criar Token</code>.</p>\n","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"<p>API Key do plano de uso. Deve ser usado como valor o <code>client_id</code>.</p>\n","type":"text"}],"url":"{{host}}/v1/contents/videos","description":"<p>Obtém a listagem dos Vídeos.</p>\n","urlObject":{"path":["v1","contents","videos"],"host":["{{host}}"],"query":[{"disabled":true,"description":{"content":"<p>Opcional - Limite de dados retornado na listagem de Vídeos.</p>\n","type":"text/plain"},"key":"limit","value":"20"},{"disabled":true,"description":{"content":"<p>Opcional - Posição do início da listagem de Vídeos.</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"disabled":true,"description":{"content":"<p>Exemplo: filters[title][eq]=exemplo\nOpcional - Opções de filtro sendo elas: </p>\n<ul>\n<li><code>filters[type][eq]=vod</code> ou <code>filters[type][eq]=live_remote | live_event | live_channel</code></li>\n<li><code>filters[status][eq]=published</code>, os possíveis valores para o status são:<ul>\n<li><code>published</code> - Vídeo Publicado.</li>\n<li><code>disabled</code> - Vídeo Despublicado.</li>\n<li><code>uploading</code> - Upload do vídeo executando.</li>\n<li><code>pending</code> - Processamento do vídeo pendente.</li>\n<li><code>preprocessing</code> - Processamento do vídeo sendo inicializado.</li>\n<li><code>running</code> - Processamento do vídeo executando.</li>\n<li><code>postprocessing</code> - Processamento do vídeo sendo finalizado.</li>\n<li><code>completed</code> - Processamento do vídeo finalizado.</li>\n<li><code>error</code> - Processamento do vídeo com erro.</li>\n</ul>\n</li>\n<li><code>filters[starts_at][gte]=YYYY-MM-DDTHH:mm:ss</code> - Valor da data em ISO 8601</li>\n<li><code>filters[ends_at:YYYY][lte]=YYYY-MM-DDTHH:mm:ss</code> - Valor da data em ISO 8601</li>\n<li><code>filters[status][in]=published,completed</code></li>\n</ul>\n","type":"text/plain"},"key":"filters[atributo][simbolo]","value":"valor"},{"disabled":true,"description":{"content":"<p>Opcional - Ordenar por qualquer atributo</p>\n","type":"text/plain"},"key":"sort","value":"title"},{"disabled":true,"description":{"content":"<p>Opcional - ASC ou DESC</p>\n","type":"text/plain"},"key":"order","value":"ASC"}],"variable":[]}},"response":[{"id":"28fbe4c8-1e80-49d0-a5e5-d9fa948427d1","name":"Listar","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"Token gerado no endpoint `Criar Token`.","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"API Key do plano de uso. Deve ser usado como valor o `client_id`.","type":"text"}],"url":"{{host}}/v1/contents/videos"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"videos\": [\n        {\n            \"id\": \"d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"title\": \"Sample Content d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"description\": \"Sample Content d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"imgThumbnail\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/thumbnail/sample_content_1.jpeg\",\n            \"imgPoster\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/poster/sample_content_1.jpeg\",\n            \"customAttributes\": {\n                \"sample\": \"1\"\n            },\n            \"mediaHls\": null,\n            \"mediaDash\": null,\n            \"mediaSmoothStreaming\": null,\n            \"duration\": null,\n            \"startsAt\": \"2021-03-24T03:00:00.000Z\",\n            \"endsAt\": \"2021-04-02T02:50:00.000Z\",\n            \"type\": \"vod\",\n            \"status\": \"published\",\n            \"isRemote\": true,\n            \"externalId\": null,\n            \"createdAt\": \"2021-03-25T19:27:22.492Z\",\n            \"updatedAt\": \"2021-04-06T12:25:58.506Z\",\n            \"createdBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"updatedBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"subtitles\": [\n                {\n                    \"id\": 1,\n                    \"version\": 1,\n                    \"language\": \"pt-BR\",\n                    \"webVtt\": \"file.vtt\",\n                    \"status\": \"awaiting_publish\",\n                    \"videoId\": \"d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n                    \"createdAt\": \"2021-07-08T17:01:54.955Z\",\n                    \"updatedAt\": \"2021-07-08T17:01:54.955Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"e008f48b-2f15-474f-8e38-5f9619751b27\",\n            \"title\": \"Sample Content e008f48b-2f15-474f-8e38-5f9619751b27\",\n            \"description\": \"Sample Content e008f48b-2f15-474f-8e38-5f9619751b27\",\n            \"imgThumbnail\": \"https://vod.d1play.com.br/vodenc/sample_content/thumbnail.jpg\",\n            \"imgPoster\": \"https://vod.d1play.com.br/vodenc/sample_content/thumbnail.jpg\",\n            \"customAttributes\": {\n                \"sample\": \"2\"\n            },\n            \"mediaHls\": null,\n            \"mediaDash\": null,\n            \"mediaSmoothStreaming\": null,\n            \"duration\": null,\n            \"startsAt\": \"2021-01-27T00:00:00.000Z\",\n            \"endsAt\": \"2021-03-29T23:59:00.000Z\",\n            \"type\": \"vod\",\n            \"status\": \"disabled\",\n            \"isRemote\": false,\n            \"externalId\": \"210127378\",\n            \"createdAt\": \"2021-03-26T20:44:05.316Z\",\n            \"updatedAt\": \"2021-03-30T17:43:06.057Z\",\n            \"createdBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"updatedBy\": \"9cbf3f54-3e15-44ce-ada6-a2499c727052\",\n            \"subtitles\": [\n                {\n                    \"id\": 2,\n                    \"version\": 1,\n                    \"language\": \"pt-BR\",\n                    \"webVtt\": \"file.vtt\",\n                    \"status\": \"awaiting_publish\",\n                    \"videoId\": \"e008f48b-2f15-474f-8e38-5f9619751b27\",\n                    \"createdAt\": \"2021-07-08T17:01:54.955Z\",\n                    \"updatedAt\": \"2021-07-08T17:01:54.955Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"d1b527b6-c4fa-4ab3-8a4f-4dad2sdd1ef37\",\n            \"title\": \"Sample Content 2 d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"description\": \"Sample Content 2 d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"imgThumbnail\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/thumbnail/sample_content_1.jpeg\",\n            \"imgPoster\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/poster/sample_content_1.jpeg\",\n            \"customAttributes\": {\n                \"sample\": \"1\"\n            },\n            \"duration\": null,\n            \"startsAt\": \"2021-03-24T03:00:00.000Z\",\n            \"endsAt\": \"2021-04-02T02:50:00.000Z\",\n            \"type\": \"live_event\",\n            \"status\": \"published\",\n            \"isRemote\": true,\n            \"externalId\": null,\n            \"createdAt\": \"2021-03-25T19:27:22.492Z\",\n            \"updatedAt\": \"2021-04-06T12:25:58.506Z\",\n            \"createdBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"updatedBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"channel\": {\n            \"id\": 1,\n            \"name\": \"Channel 1\",\n            \"urlMain\": \"\",\n            \"urlBkp\": \"\",\n            \"type\": \"fixed\",\n            \"playbacks\": [\n                {\n                \"id\": 1,\n                \"device\": \"default\",\n                \"type\": \"hls\",\n                \"url\": \"https://...\"\n                },\n                {\n                \"id\": 2,\n                \"device\": \"mobile\",\n                \"type\": \"dash\",\n                \"url\": \"https://...\"\n                }\n            ]\n            }\n        },\n        {\n            \"id\": \"d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"title\": \"Sample Content 3 d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"description\": \"Sample Content 3 d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"imgThumbnail\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/thumbnail/sample_content_1.jpeg\",\n            \"imgPoster\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/poster/sample_content_1.jpeg\",\n            \"customAttributes\": {\n                \"sample\": \"1\"\n            },\n            \"duration\": null,\n            \"startsAt\": \"2021-03-24T03:00:00.000Z\",\n            \"endsAt\": \"2021-04-02T02:50:00.000Z\",\n            \"type\": \"live_remote\",\n            \"status\": \"published\",\n            \"isRemote\": true,\n            \"externalId\": null,\n            \"createdAt\": \"2021-03-25T19:27:22.492Z\",\n            \"updatedAt\": \"2021-04-06T12:25:58.506Z\",\n            \"createdBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"updatedBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"playbacks\": [\n            {\n                \"id\": 1,\n                \"device\": \"default\",\n                \"type\": \"hls\",\n                \"url\": \"https://...\"\n            },\n            {\n                \"id\": 2,\n                \"device\": \"mobile\",\n                \"type\": \"dash\",\n                \"url\": \"https://...\"\n            }\n            ]\n        }\n    ],\n    \"limit\": 20,\n    \"total\": 2,\n    \"offset\": 0\n}"},{"id":"68f835fd-2d73-4d16-92e5-07206ca73453","name":"Listar com Filtros","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"Token gerado no endpoint `Criar Token`.","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"API Key do plano de uso. Deve ser usado como valor o `client_id`.","type":"text"}],"url":{"raw":"{{host}}/v1/contents/videos?limit=20&offset=0&filters[type][eq]=vod&filters[status][eq]=published","host":["{{host}}"],"path":["v1","contents","videos"],"query":[{"key":"limit","value":"20"},{"key":"offset","value":"0"},{"key":"filters[type][eq]","value":"vod"},{"key":"filters[status][eq]","value":"published"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"videos\": [\n        {\n            \"id\": \"d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"title\": \"Sample Content d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"description\": \"Sample Content d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"imgThumbnail\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/thumbnail/sample_content_1.jpeg\",\n            \"imgPoster\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/poster/sample_content_1.jpeg\",\n            \"customAttributes\": {\n                \"sample\": \"1\"\n            },\n            \"mediaHls\": null,\n            \"mediaDash\": null,\n            \"mediaSmoothStreaming\": null,\n            \"duration\": null,\n            \"startsAt\": \"2021-03-24T03:00:00.000Z\",\n            \"endsAt\": \"2021-04-02T02:50:00.000Z\",\n            \"type\": \"vod\",\n            \"status\": \"published\",\n            \"isRemote\": true,\n            \"externalId\": null,\n            \"createdAt\": \"2021-03-25T19:27:22.492Z\",\n            \"updatedAt\": \"2021-04-06T12:25:58.506Z\",\n            \"createdBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"updatedBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\"\n        },\n        {\n            \"id\": \"d1b527b6-c4fa-4ab3-8a4f-4dad2sdd1ef37\",\n            \"title\": \"Sample Content 2 d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"description\": \"Sample Content 2 d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"imgThumbnail\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/thumbnail/sample_content_1.jpeg\",\n            \"imgPoster\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/poster/sample_content_1.jpeg\",\n            \"customAttributes\": {\n                \"sample\": \"1\"\n            },\n            \"duration\": null,\n            \"startsAt\": \"2021-03-24T03:00:00.000Z\",\n            \"endsAt\": \"2021-04-02T02:50:00.000Z\",\n            \"type\": \"live_event\",\n            \"status\": \"published\",\n            \"isRemote\": true,\n            \"externalId\": null,\n            \"createdAt\": \"2021-03-25T19:27:22.492Z\",\n            \"updatedAt\": \"2021-04-06T12:25:58.506Z\",\n            \"createdBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"updatedBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"channel\": {\n            \"id\": 1,\n            \"name\": \"Channel 1\",\n            \"urlMain\": \"\",\n            \"urlBkp\": \"\",\n            \"type\": \"fixed\",\n            \"playbacks\": [\n                {\n                \"id\": 1,\n                \"device\": \"default\",\n                \"type\": \"hls\",\n                \"url\": \"https://...\"\n                },\n                {\n                \"id\": 2,\n                \"device\": \"mobile\",\n                \"type\": \"dash\",\n                \"url\": \"https://...\"\n                }\n            ]\n            }\n        },\n        {\n            \"id\": \"d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"title\": \"Sample Content 3 d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"description\": \"Sample Content 3 d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"imgThumbnail\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/thumbnail/sample_content_1.jpeg\",\n            \"imgPoster\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/poster/sample_content_1.jpeg\",\n            \"customAttributes\": {\n                \"sample\": \"1\"\n            },\n            \"duration\": null,\n            \"startsAt\": \"2021-03-24T03:00:00.000Z\",\n            \"endsAt\": \"2021-04-02T02:50:00.000Z\",\n            \"type\": \"live_remote\",\n            \"status\": \"published\",\n            \"isRemote\": true,\n            \"externalId\": null,\n            \"createdAt\": \"2021-03-25T19:27:22.492Z\",\n            \"updatedAt\": \"2021-04-06T12:25:58.506Z\",\n            \"createdBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"updatedBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"playbacks\": [\n            {\n                \"id\": 1,\n                \"device\": \"default\",\n                \"type\": \"hls\",\n                \"url\": \"https://...\"\n            },\n            {\n                \"id\": 2,\n                \"device\": \"mobile\",\n                \"type\": \"dash\",\n                \"url\": \"https://...\"\n            }\n            ]\n        }\n    ],\n    \"limit\": 20,\n    \"total\": 1,\n    \"offset\": 0\n}"}],"_postman_id":"4b25c572-9af5-4e5a-8f50-82d9d45f1b1f"},{"name":"Listar pela Categoria","id":"98eb399f-c495-4361-9f6f-52593c826ff0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"<p>Token gerado no endpoint <code>Criar Token</code>.</p>\n","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"<p>API Key do plano de uso. Deve ser usado como valor o <code>client_id</code>.</p>\n","type":"text"}],"url":"{{host}}/v1/contents/videos/category/:category-id","description":"<p>Obtém a listagem dos Vídeos de uma determinada Categoria.</p>\n","urlObject":{"path":["v1","contents","videos","category",":category-id"],"host":["{{host}}"],"query":[{"disabled":true,"description":{"content":"<p>Opcional - Limite de dados retornado na listagem de Vídeos.</p>\n","type":"text/plain"},"key":"limit","value":"20"},{"disabled":true,"description":{"content":"<p>Opcional - Posição do iníco da listagem de Vídeos.</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"disabled":true,"description":{"content":"<p>Opcional - Exemplo: filters[title][ilike]=exemplo</p>\n","type":"text/plain"},"key":"filters[atributo][simbolo]","value":"valor"},{"disabled":true,"description":{"content":"<p>Opcional - Ordenar por qualquer atributo</p>\n","type":"text/plain"},"key":"sort","value":"title"},{"disabled":true,"description":{"content":"<p>Opcional - ASC ou DESC</p>\n","type":"text/plain"},"key":"order","value":"ASC"}],"variable":[{"id":"b6ae8a73-6ee2-4737-9c84-80714cbf8344","description":{"content":"<p>Atributo <code>id</code> da Categoria.</p>\n","type":"text/plain"},"type":"any","value":"{{category-id}}","key":"category-id"}]}},"response":[{"id":"c413a7c3-338a-4384-b674-128718039949","name":"Listar - Categoria","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"Token gerado no endpoint `Criar Token`.","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"API Key do plano de uso. Deve ser usado como valor o `client_id`.","type":"text"}],"url":{"raw":"{{host}}/v1/contents/videos/category/:category-id","host":["{{host}}"],"path":["v1","contents","videos","category",":category-id"],"variable":[{"key":"category-id","value":"1","description":"Atributo `id` da Categoria."}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"videos\": [\n        {\n            \"id\": \"d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"title\": \"Sample Content d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"description\": \"Sample Content d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"imgThumbnail\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/thumbnail/sample_content_1.jpeg\",\n            \"imgPoster\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/poster/sample_content_1.jpeg\",\n            \"customAttributes\": {\n                \"sample\": \"1\"\n            },\n            \"mediaHls\": null,\n            \"mediaDash\": null,\n            \"mediaSmoothStreaming\": null,\n            \"duration\": null,\n            \"startsAt\": \"2021-03-24T03:00:00.000Z\",\n            \"endsAt\": \"2021-04-02T02:50:00.000Z\",\n            \"type\": \"vod\",\n            \"status\": \"published\",\n            \"isRemote\": true,\n            \"externalId\": null,\n            \"createdAt\": \"2021-03-25T19:27:22.492Z\",\n            \"updatedAt\": \"2021-04-06T12:25:58.506Z\",\n            \"createdBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"updatedBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"subtitles\": [\n                {\n                    \"id\": 1,\n                    \"version\": 1,\n                    \"language\": \"pt-BR\",\n                    \"webVtt\": \"file.vtt\",\n                    \"status\": \"awaiting_publish\",\n                    \"videoId\": \"d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n                    \"createdAt\": \"2021-07-08T17:01:54.955Z\",\n                    \"updatedAt\": \"2021-07-08T17:01:54.955Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"e008f48b-2f15-474f-8e38-5f9619751b27\",\n            \"title\": \"Sample Content e008f48b-2f15-474f-8e38-5f9619751b27\",\n            \"description\": \"Sample Content e008f48b-2f15-474f-8e38-5f9619751b27\",\n            \"imgThumbnail\": \"https://vod.d1play.com.br/vodenc/sample_content/thumbnail.jpg\",\n            \"imgPoster\": \"https://vod.d1play.com.br/vodenc/sample_content/thumbnail.jpg\",\n            \"customAttributes\": {\n                \"sample\": \"2\"\n            },\n            \"mediaHls\": null,\n            \"mediaDash\": null,\n            \"mediaSmoothStreaming\": null,\n            \"duration\": null,\n            \"startsAt\": \"2021-01-27T00:00:00.000Z\",\n            \"endsAt\": \"2021-03-29T23:59:00.000Z\",\n            \"type\": \"vod\",\n            \"status\": \"disabled\",\n            \"isRemote\": false,\n            \"externalId\": \"210127378\",\n            \"createdAt\": \"2021-03-26T20:44:05.316Z\",\n            \"updatedAt\": \"2021-03-30T17:43:06.057Z\",\n            \"createdBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"updatedBy\": \"9cbf3f54-3e15-44ce-ada6-a2499c727052\",\n            \"subtitles\": [\n                {\n                    \"id\": 2,\n                    \"version\": 1,\n                    \"language\": \"pt-BR\",\n                    \"webVtt\": \"file.vtt\",\n                    \"status\": \"awaiting_publish\",\n                    \"videoId\": \"e008f48b-2f15-474f-8e38-5f9619751b27\",\n                    \"createdAt\": \"2021-07-08T17:01:54.955Z\",\n                    \"updatedAt\": \"2021-07-08T17:01:54.955Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"d1b527b6-c4fa-4ab3-8a4f-4dad2sdd1ef37\",\n            \"title\": \"Sample Content 2 d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"description\": \"Sample Content 2 d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"imgThumbnail\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/thumbnail/sample_content_1.jpeg\",\n            \"imgPoster\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/poster/sample_content_1.jpeg\",\n            \"customAttributes\": {\n                \"sample\": \"1\"\n            },\n            \"duration\": null,\n            \"startsAt\": \"2021-03-24T03:00:00.000Z\",\n            \"endsAt\": \"2021-04-02T02:50:00.000Z\",\n            \"type\": \"live_event\",\n            \"status\": \"published\",\n            \"isRemote\": true,\n            \"externalId\": null,\n            \"createdAt\": \"2021-03-25T19:27:22.492Z\",\n            \"updatedAt\": \"2021-04-06T12:25:58.506Z\",\n            \"createdBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"updatedBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"channel\": {\n            \"id\": 1,\n            \"name\": \"Channel 1\",\n            \"urlMain\": \"\",\n            \"urlBkp\": \"\",\n            \"type\": \"fixed\",\n            \"playbacks\": [\n                {\n                \"id\": 1,\n                \"device\": \"default\",\n                \"type\": \"hls\",\n                \"url\": \"https://...\"\n                },\n                {\n                \"id\": 2,\n                \"device\": \"mobile\",\n                \"type\": \"dash\",\n                \"url\": \"https://...\"\n                }\n            ]\n            }\n        },\n        {\n            \"id\": \"d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"title\": \"Sample Content 3 d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"description\": \"Sample Content 3 d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"imgThumbnail\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/thumbnail/sample_content_1.jpeg\",\n            \"imgPoster\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/poster/sample_content_1.jpeg\",\n            \"customAttributes\": {\n                \"sample\": \"1\"\n            },\n            \"duration\": null,\n            \"startsAt\": \"2021-03-24T03:00:00.000Z\",\n            \"endsAt\": \"2021-04-02T02:50:00.000Z\",\n            \"type\": \"live_remote\",\n            \"status\": \"published\",\n            \"isRemote\": true,\n            \"externalId\": null,\n            \"createdAt\": \"2021-03-25T19:27:22.492Z\",\n            \"updatedAt\": \"2021-04-06T12:25:58.506Z\",\n            \"createdBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"updatedBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"playbacks\": [\n            {\n                \"id\": 1,\n                \"device\": \"default\",\n                \"type\": \"hls\",\n                \"url\": \"https://...\"\n            },\n            {\n                \"id\": 2,\n                \"device\": \"mobile\",\n                \"type\": \"dash\",\n                \"url\": \"https://...\"\n            }\n            ]\n        }\n    ],\n    \"limit\": 20,\n    \"total\": 2,\n    \"offset\": 0\n}"},{"id":"88ffedde-9b48-4dc6-857d-c105e12acd99","name":"Listar - Categoria com Filtros","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"Token gerado no endpoint `Criar Token`.","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"API Key do plano de uso. Deve ser usado como valor o `client_id`.","type":"text"}],"url":{"raw":"{{host}}/v1/contents/videos/category/:category-id?limit=20&offset=0&filters[type][eq]=vod","host":["{{host}}"],"path":["v1","contents","videos","category",":category-id"],"query":[{"key":"limit","value":"20"},{"key":"offset","value":"0"},{"key":"filters[type][eq]","value":"vod"}],"variable":[{"key":"category-id","value":"1","description":"Atributo `id` da Categoria."}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"videos\": [\n        {\n            \"id\": \"d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"title\": \"Sample Content d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"description\": \"Sample Content d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"imgThumbnail\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/thumbnail/sample_content_1.jpeg\",\n            \"imgPoster\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/poster/sample_content_1.jpeg\",\n            \"customAttributes\": {\n                \"sample\": \"1\"\n            },\n            \"mediaHls\": null,\n            \"mediaDash\": null,\n            \"mediaSmoothStreaming\": null,\n            \"duration\": null,\n            \"startsAt\": \"2021-03-24T03:00:00.000Z\",\n            \"endsAt\": \"2021-04-02T02:50:00.000Z\",\n            \"type\": \"VOD\",\n            \"status\": \"published\",\n            \"isRemote\": true,\n            \"externalId\": null,\n            \"createdAt\": \"2021-03-25T19:27:22.492Z\",\n            \"updatedAt\": \"2021-04-06T12:25:58.506Z\",\n            \"createdBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"updatedBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n            \"subtitles\": [\n                {\n                    \"id\": 1,\n                    \"version\": 1,\n                    \"language\": \"pt-BR\",\n                    \"webVtt\": \"file.vtt\",\n                    \"status\": \"awaiting_publish\",\n                    \"videoId\": \"d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n                    \"createdAt\": \"2021-07-08T17:01:54.955Z\",\n                    \"updatedAt\": \"2021-07-08T17:01:54.955Z\"\n                }\n            ]\n        }\n    ],\n    \"limit\": 20,\n    \"total\": 2,\n    \"offset\": 0\n}"}],"_postman_id":"98eb399f-c495-4361-9f6f-52593c826ff0"},{"name":"Detalhar","id":"3713e98b-b29d-433d-b4b1-b6bb12378255","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"<p>Token gerado no endpoint <code>Criar Token</code>.</p>\n","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"<p>API Key do plano de uso. Deve ser usado como valor o <code>client_id</code>.</p>\n","type":"text"}],"url":"{{host}}/v1/contents/videos/:video-id","description":"<p>Obtém o detalhe de um Vídeo pelo atributo <code>id</code> ou <code>external-id</code> do Vídeo</p>\n","urlObject":{"path":["v1","contents","videos",":video-id"],"host":["{{host}}"],"query":[],"variable":[{"id":"3bbba21f-79a7-4810-ae32-17f8e8ed66fa","description":{"content":"<p>Atributo <code>id</code> do Vídeo.</p>\n","type":"text/plain"},"type":"any","value":"{{video-id}}","key":"video-id"}]}},"response":[{"id":"7d2bf214-95cc-4d55-9c1b-638bb4a2b260","name":"Detalhar","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"Token gerado no endpoint `Criar Token`.","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"API Key do plano de uso. Deve ser usado como valor o `client_id`.","type":"text"}],"url":{"raw":"{{host}}/v1/contents/videos/:video-id","host":["{{host}}"],"path":["v1","contents","videos",":video-id"],"variable":[{"key":"video-id","value":"{{video-id}}","description":"Atributo `id` do Vídeo."}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n    \"title\": \"Sample Content d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n    \"description\": \"Sample Contentd1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n    \"imgThumbnail\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/thumbnail/sample_content_1.jpeg\",\n    \"imgPoster\": \"https://statics-dev.hbcplay.hbcmultimidia.com.br/images/2/videos/poster/sample_content_1.jpeg\",\n    \"customAttributes\": {\n        \"sample\": \"1\"\n    },\n    \"mediaHls\": null,\n    \"mediaDash\": null,\n    \"mediaSmoothStreaming\": null,\n    \"duration\": 300,\n    \"startsAt\": \"2021-03-24T03:00:00.000Z\",\n    \"endsAt\": \"2021-04-02T02:50:00.000Z\",\n    \"type\": \"vod\",\n    \"status\": \"published\",\n    \"isRemote\": true,\n    \"externalId\": \"12341234\",\n    \"createdAt\": \"2021-03-25T19:27:22.492Z\",\n    \"updatedAt\": \"2021-04-06T12:25:58.506Z\",\n    \"createdBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n    \"updatedBy\": \"ce004ce0-c217-4148-8aad-6543461967b2\",\n    \"keywords\": [\n        {\n            \"id\": 1,\n            \"keyword\": \"Keyqord\",\n            \"videoId\": \"d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\"\n        }\n    ],\n    \"categories\": [\n        {\n            \"id\": 1,\n            \"title\": \"Category Sample One\",\n            \"description\": null,\n            \"externalId\": \"1\",\n            \"parentId\": null,\n            \"createdAt\": \"2021-03-25T12:34:43.249Z\",\n            \"updatedAt\": \"2021-03-25T12:34:43.249Z\",\n            \"createdBy\": \"9cbf3f54-3e15-44ce-ada6-a2499c727052\",\n            \"updatedBy\": null\n        },\n        {\n            \"id\": 2,\n            \"title\": \"Category Sample Two\",\n            \"description\": null,\n            \"externalId\": \"3\",\n            \"parentId\": null,\n            \"createdAt\": \"2021-03-25T12:36:31.148Z\",\n            \"updatedAt\": \"2021-03-25T12:36:31.148Z\",\n            \"createdBy\": \"9cbf3f54-3e15-44ce-ada6-a2499c727052\",\n            \"updatedBy\": null\n        }\n    ],\n    \"subtitles\": [\n        {\n            \"id\": 1,\n            \"version\": 1,\n            \"language\": \"pt-BR\",\n            \"webVtt\": \"file.vtt\",\n            \"status\": \"awaiting_publish\",\n            \"videoId\": \"d1b527b6-c4fa-4ab3-8a4f-4dad29b1ef37\",\n            \"createdAt\": \"2021-07-08T17:01:54.955Z\",\n            \"updatedAt\": \"2021-07-08T17:01:54.955Z\"\n        }\n    ]\n}"}],"_postman_id":"3713e98b-b29d-433d-b4b1-b6bb12378255"},{"name":"Editar","id":"02019efd-2418-40f4-831a-0d2e5fc9aa33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"<p>Token gerado no endpoint <code>Criar Token</code>.</p>\n","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"<p>API Key do plano de uso. Deve ser usado como valor o <code>client_id</code>.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Test change title\",\n    \"description\": \"Test change description\",\n    \"categories\": [\n        {\n            \"id\": 3\n        }\n    ],\n    \"customAttributes\": {\n        \"sequence\": 1\n    },\n    \"endsAt\": \"2020-11-13T20:20:39+00:00\",\n    \"startsAt\": \"2018-11-13T20:20:39+00:00\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/contents/videos/:video-id","description":"<p>Edita as informações básicas de um Vídeo pelo atributo <code>id</code> ou <code>external-id</code> do Vídeo</p>\n","urlObject":{"path":["v1","contents","videos",":video-id"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>Atributo <code>id</code> do Vídeo.</p>\n","type":"text/plain"},"type":"any","value":"{{video-id}}","key":"video-id"}]}},"response":[{"id":"154886f7-0ab1-4c23-851c-3999edea50fb","name":"Editar","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{access_token}}","description":"Token gerado no endpoint `Criar Token`.","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","description":"API Key do plano de uso. Deve ser usado como valor o `client_id`.","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Test change title\",\n    \"description\": \"Test change description\",\n    \"categories\": [\n        {\n            \"id\": 3\n        }\n    ],\n    \"customAttributes\": {\n        \"sequence\": 1\n    },\n    \"endsAt\": \"2020-11-13T20:20:39+00:00\",\n    \"startsAt\": \"2018-11-13T20:20:39+00:00\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v1/contents/videos/:video-id","host":["{{host}}"],"path":["v1","contents","videos",":video-id"],"variable":[{"key":"video-id","value":"{{video-id}}","description":"Atributo `id` do Vídeo."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"439"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 26 Apr 2021 18:33:16 GMT"},{"key":"x-amzn-RequestId","value":"a3e5136c-0273-44a9-9edf-e613c59ab0bf"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-headers","value":"Content-Type, Authorization, Content-Length, X-Requested-With"},{"key":"x-amz-apigw-id","value":"eZ4Y2GBHIAMFuHQ="},{"key":"cache-control","value":"no-cache, no-store, must-revalidate"},{"key":"access-control-allow-methods","value":"GET, PUT, POST, DELETE, OPTIONS"},{"key":"X-Amzn-Trace-Id","value":"Root=1-6087076b-09211a802e44abb651e62309"},{"key":"Via","value":"1.1 4d62f3e4306e9233a7b51d4552716583.cloudfront.net (CloudFront), 1.1 c57d29d79962af7729faa9665c9ff819.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"GRU3-C2"},{"key":"X-Amz-Cf-Pop","value":"GRU1-C1"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"X-Amz-Cf-Id","value":"XDpsJZV36EqX02fULKXihYohBfltPRff2ZHVtmqmDoDSerUKy6j12w=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2e5b3302-a68f-11eb-b8b4-cd74df7bdd0a\",\n    \"title\": \"Test change title\",\n    \"description\": \"Test change description\",\n    \"imgThumbnail\": null,\n    \"imgPoster\": null,\n    \"customAttributes\": {\n        \"sequence\": 1\n    },\n    \"mediaHls\": null,\n    \"mediaDash\": null,\n    \"mediaSmoothStreaming\": null,\n    \"duration\": null,\n    \"startsAt\": \"2018-11-13T20:20:39+00:00\",\n    \"endsAt\": \"2020-11-13T20:20:39+00:00\",\n    \"type\": \"VOD\",\n    \"tenantId\": \"bzsdf0knowkgwl\",\n    \"status\": \"pending\",\n    \"externalId\": null,\n    \"categories\": [\n        {\n            \"id\": 3\n        }\n    ]\n}"}],"_postman_id":"02019efd-2418-40f4-831a-0d2e5fc9aa33"}],"id":"cc43d29e-728e-4254-a387-68d67476e882","_postman_id":"cc43d29e-728e-4254-a387-68d67476e882","description":""}],"id":"ea59375a-b0b3-4e3b-9500-9d631d211522","description":"<p>Esta API disponibiliza endpoints para acesso as Categorias e aos Vídeos da conta.</p>\n","_postman_id":"ea59375a-b0b3-4e3b-9500-9d631d211522"}]}