{"info":{"_postman_id":"4effa175-9d3e-4868-b041-3606c34bdb8c","name":"Gamifier","description":"<html><head></head><body><p>Gamifier helps gamify your applications to drive user engagement and more customer activity, and sales.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"5815935","collectionId":"4effa175-9d3e-4868-b041-3606c34bdb8c","publishedId":"2sAYJ4hfGk","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-12-23T14:30:07.000Z"},"item":[{"name":"Applications","item":[{"name":"List Applications","id":"019294b0-933a-4345-8aa3-3c34b94d18e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications","description":"<h3 id=\"response\">Response</h3>\n<p>The response for this request can be described using the following JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"data\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"name\": { \"type\": \"string\" },\n          \"activated_at\": { \"type\": [\"string\", \"null\"] },\n          \"created_at\": { \"type\": \"string\" },\n          \"updated_at\": { \"type\": \"string\" },\n          \"active\": { \"type\": \"boolean\" },\n          \"hash_id\": { \"type\": \"string\" },\n          \"can\": {\n            \"type\": \"object\",\n            \"properties\": {\n              \"view\": { \"type\": \"boolean\" },\n              \"update\": { \"type\": \"boolean\" },\n              \"delete\": { \"type\": \"boolean\" },\n              \"activate\": { \"type\": \"boolean\" },\n              \"pause\": { \"type\": \"boolean\" }\n            }\n          },\n          \"team\": {\n            \"type\": \"object\",\n            \"properties\": {\n              \"id\": { \"type\": \"integer\" },\n              \"user_id\": { \"type\": \"integer\" },\n              \"name\": { \"type\": \"string\" },\n              \"personal_team\": { \"type\": \"boolean\" },\n              \"created_at\": { \"type\": \"string\" },\n              \"updated_at\": { \"type\": \"string\" }\n            }\n          }\n        }\n      }\n    },\n    \"can\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"viewAny\": { \"type\": \"boolean\" },\n        \"create\": { \"type\": \"boolean\" }\n      }\n    },\n    \"links\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"first\": { \"type\": \"string\" },\n        \"last\": { \"type\": \"string\" },\n        \"prev\": { \"type\": [\"string\", \"null\"] },\n        \"next\": { \"type\": [\"string\", \"null\"] }\n      }\n    },\n    \"meta\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"current_page\": { \"type\": \"integer\" },\n        \"from\": { \"type\": \"integer\" },\n        \"last_page\": { \"type\": \"integer\" },\n        \"links\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"object\",\n            \"properties\": {\n              \"url\": { \"type\": [\"string\", \"null\"] },\n              \"label\": { \"type\": \"string\" },\n              \"active\": { \"type\": \"boolean\" }\n            }\n          }\n        },\n        \"path\": { \"type\": \"string\" },\n        \"per_page\": { \"type\": \"integer\" },\n        \"to\": { \"type\": \"integer\" },\n        \"total\": { \"type\": \"integer\" }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4effa175-9d3e-4868-b041-3606c34bdb8c","id":"4effa175-9d3e-4868-b041-3606c34bdb8c","name":"Gamifier","type":"collection"}},"urlObject":{"protocol":"{{Scheme}}","path":["api","v{{ApiVersion}}","applications"],"host":["{{Hostname}}"],"query":[],"variable":[]}},"response":[{"id":"dd4a757a-a756-4b1a-97dd-fba73ad6de9e","name":"Success","originalRequest":{"method":"GET","header":[],"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.1"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 05:20:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"applications\": {\n        \"data\": [\n            {\n                \"name\": \"Tesla Stats\",\n                \"activated_at\": null,\n                \"created_at\": \"2024-12-25T05:19:44.000000Z\",\n                \"updated_at\": \"2024-12-25T05:19:44.000000Z\",\n                \"active\": false,\n                \"hash_id\": \"y8or9LAzYM\",\n                \"can\": {\n                    \"view\": true,\n                    \"update\": true,\n                    \"delete\": true,\n                    \"activate\": true,\n                    \"pause\": true\n                },\n                \"team\": {\n                    \"id\": 1,\n                    \"user_id\": 1,\n                    \"name\": \"Mathew's Team\",\n                    \"personal_team\": true,\n                    \"created_at\": \"2024-12-14T09:20:48.000000Z\",\n                    \"updated_at\": \"2024-12-14T09:20:48.000000Z\"\n                }\n            }\n        ],\n        \"can\": {\n            \"viewAny\": true,\n            \"create\": true\n        },\n        \"links\": {\n            \"first\": \"http://localhost/api/v1/applications?page=1\",\n            \"last\": \"http://localhost/api/v1/applications?page=1\",\n            \"prev\": null,\n            \"next\": null\n        },\n        \"meta\": {\n            \"current_page\": 1,\n            \"from\": 1,\n            \"last_page\": 1,\n            \"links\": [\n                {\n                    \"url\": null,\n                    \"label\": \"&laquo; Previous\",\n                    \"active\": false\n                },\n                {\n                    \"url\": \"http://localhost/api/v1/applications?page=1\",\n                    \"label\": \"1\",\n                    \"active\": true\n                },\n                {\n                    \"url\": null,\n                    \"label\": \"Next &raquo;\",\n                    \"active\": false\n                }\n            ],\n            \"path\": \"http://localhost/api/v1/applications\",\n            \"per_page\": 15,\n            \"to\": 1,\n            \"total\": 1\n        }\n    }\n}"}],"_postman_id":"019294b0-933a-4345-8aa3-3c34b94d18e4"},{"name":"Get Application","id":"d076fbf5-1f4d-4d7c-b80a-2ebb38001be7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}","description":"<h3 id=\"retrieve-application-details\">Retrieve Application Details</h3>\n<p>This endpoint retrieves details of a specific application.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: {{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"team_id\": { \"type\": \"integer\" },\n        \"name\": { \"type\": \"string\" },\n        \"activated_at\": { \"type\": [\"string\", \"null\"] },\n        \"created_at\": { \"type\": \"string\" },\n        \"updated_at\": { \"type\": \"string\" },\n        \"active\": { \"type\": \"boolean\" },\n        \"hash_id\": { \"type\": \"string\" },\n        \"can\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"view\": { \"type\": \"boolean\" },\n                \"update\": { \"type\": \"boolean\" },\n                \"delete\": { \"type\": \"boolean\" },\n                \"activate\": { \"type\": \"boolean\" },\n                \"pause\": { \"type\": \"boolean\" }\n            }\n        }\n    }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4effa175-9d3e-4868-b041-3606c34bdb8c","id":"4effa175-9d3e-4868-b041-3606c34bdb8c","name":"Gamifier","type":"collection"}},"urlObject":{"protocol":"{{Scheme}}","path":["api","v{{ApiVersion}}","applications","{{ApplicationID}}"],"host":["{{Hostname}}"],"query":[],"variable":[]}},"response":[{"id":"69a1bd6a-f082-4b8a-878f-8452baa80681","name":"Success","originalRequest":{"method":"GET","header":[],"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.1"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 05:20:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"application\": {\n        \"name\": \"Tesla Stats\",\n        \"activated_at\": null,\n        \"created_at\": \"2024-12-25T05:19:44.000000Z\",\n        \"updated_at\": \"2024-12-25T05:19:44.000000Z\",\n        \"active\": false,\n        \"hash_id\": \"y8or9LAzYM\",\n        \"can\": {\n            \"view\": true,\n            \"update\": true,\n            \"delete\": true,\n            \"activate\": true,\n            \"pause\": true\n        }\n    }\n}"}],"_postman_id":"d076fbf5-1f4d-4d7c-b80a-2ebb38001be7"},{"name":"Create Application","id":"ae246d65-2ada-4f6d-afcb-b47ae2ca20dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Tesla Stats","type":"text"}]},"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications","description":"<h3 id=\"create-application\">Create Application</h3>\n<p>This endpoint allows you to create a new application.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><code>name</code> (text): The name of the application.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be in the form of a JSON object with the following properties:</p>\n<ul>\n<li><p><code>team_id</code> (number): The ID of the team associated with the application.</p>\n</li>\n<li><p><code>name</code> (string): The name of the application.</p>\n</li>\n<li><p><code>activated_at</code> (string, null): The date and time when the application was activated, or null if not activated.</p>\n</li>\n<li><p><code>created_at</code> (string): The date and time when the application was created.</p>\n</li>\n<li><p><code>updated_at</code> (string): The date and time when the application was last updated.</p>\n</li>\n<li><p><code>hash_id</code> (string): The unique hash ID of the application.</p>\n</li>\n<li><p><code>can</code> (object): An object containing boolean properties for various actions such as view, update, delete, activate, and pause.</p>\n</li>\n</ul>\n<h4 id=\"json-schema-for-response\">JSON Schema for Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"team_id\": { \"type\": \"number\" },\n        \"name\": { \"type\": \"string\" },\n        \"activated_at\": { \"type\": [\"string\", \"null\"] },\n        \"created_at\": { \"type\": \"string\" },\n        \"updated_at\": { \"type\": \"string\" },\n        \"hash_id\": { \"type\": \"string\" },\n        \"can\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"view\": { \"type\": \"boolean\" },\n                \"update\": { \"type\": \"boolean\" },\n                \"delete\": { \"type\": \"boolean\" },\n                \"activate\": { \"type\": \"boolean\" },\n                \"pause\": { \"type\": \"boolean\" }\n            }\n        }\n    }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4effa175-9d3e-4868-b041-3606c34bdb8c","id":"4effa175-9d3e-4868-b041-3606c34bdb8c","name":"Gamifier","type":"collection"}},"urlObject":{"protocol":"{{Scheme}}","path":["api","v{{ApiVersion}}","applications"],"host":["{{Hostname}}"],"query":[],"variable":[]}},"response":[{"id":"ca42daf5-1b4e-495e-82c0-405b638dd4c5","name":"Error","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Tesla Stats","type":"text"}]},"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.1"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 02:33:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The name has already been taken.\",\n    \"errors\": {\n        \"name\": [\n            \"The name has already been taken.\"\n        ]\n    }\n}"},{"id":"fb7aa356-cd14-4ce2-bba7-eb4941432ac2","name":"Succes","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text","disabled":true}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Tesla Stats","type":"text"}]},"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.1"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 05:19:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"application\": {\n        \"name\": \"Tesla Stats\",\n        \"updated_at\": \"2024-12-25T05:19:44.000000Z\",\n        \"created_at\": \"2024-12-25T05:19:44.000000Z\",\n        \"active\": false,\n        \"hash_id\": \"y8or9LAzYM\",\n        \"team\": {\n            \"id\": 1,\n            \"user_id\": 1,\n            \"name\": \"Mathew's Team\",\n            \"personal_team\": true,\n            \"created_at\": \"2024-12-14T09:20:48.000000Z\",\n            \"updated_at\": \"2024-12-14T09:20:48.000000Z\"\n        }\n    }\n}"}],"_postman_id":"ae246d65-2ada-4f6d-afcb-b47ae2ca20dc"},{"name":"Update Application","id":"6ab08313-d934-4934-a130-eccb24b154b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"FlashView.link\"\n}","options":{"raw":{"language":"json"}}},"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}","description":"<h3 id=\"update-application-details\">Update Application Details</h3>\n<p>This endpoint allows the client to update the details of a specific application.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>Type: JSON</p>\n</li>\n<li><p>{ \"name\": \"string\" // The new name of the application }</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response is a JSON object with the following properties:</p>\n<ul>\n<li><p><code>team_id</code> (number): The ID of the team associated with the application.</p>\n</li>\n<li><p><code>name</code> (string): The name of the application.</p>\n</li>\n<li><p><code>activated_at</code> (string or null): Timestamp of when the application was activated.</p>\n</li>\n<li><p><code>created_at</code> (string): Timestamp of when the application was created.</p>\n</li>\n<li><p><code>updated_at</code> (string): Timestamp of when the application was last updated.</p>\n</li>\n<li><p><code>active</code> (boolean): Indicates if the application is active.</p>\n</li>\n<li><p><code>hash_id</code> (string): Unique hash ID of the application.</p>\n</li>\n<li><p><code>can</code> (object): Object containing boolean properties for various actions such as view, update, delete, activate, and pause.</p>\n</li>\n</ul>\n<h4 id=\"json-schema-for-response\">JSON Schema for Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"team_id\": { \"type\": \"number\" },\n        \"name\": { \"type\": \"string\" },\n        \"activated_at\": { \"type\": [\"string\", \"null\"] },\n        \"created_at\": { \"type\": \"string\" },\n        \"updated_at\": { \"type\": \"string\" },\n        \"active\": { \"type\": \"boolean\" },\n        \"hash_id\": { \"type\": \"string\" },\n        \"can\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"view\": { \"type\": \"boolean\" },\n                \"update\": { \"type\": \"boolean\" },\n                \"delete\": { \"type\": \"boolean\" },\n                \"activate\": { \"type\": \"boolean\" },\n                \"pause\": { \"type\": \"boolean\" }\n            },\n            \"required\": [\"view\", \"update\", \"delete\", \"activate\", \"pause\"]\n        }\n    },\n    \"required\": [\"team_id\", \"name\", \"created_at\", \"updated_at\", \"active\", \"hash_id\", \"can\"]\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4effa175-9d3e-4868-b041-3606c34bdb8c","id":"4effa175-9d3e-4868-b041-3606c34bdb8c","name":"Gamifier","type":"collection"}},"urlObject":{"protocol":"{{Scheme}}","path":["api","v{{ApiVersion}}","applications","{{ApplicationID}}"],"host":["{{Hostname}}"],"query":[],"variable":[]}},"response":[{"id":"f7c89823-a836-4652-beff-adbb2a274049","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"FlashView.link\"\n}","options":{"raw":{"language":"json"}}},"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.1"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 05:21:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"FlashView.link\",\n    \"activated_at\": null,\n    \"created_at\": \"2024-12-25T05:19:44.000000Z\",\n    \"updated_at\": \"2024-12-25T05:21:06.000000Z\",\n    \"active\": false,\n    \"hash_id\": \"y8or9LAzYM\",\n    \"can\": {\n        \"view\": true,\n        \"update\": true,\n        \"delete\": true,\n        \"activate\": true,\n        \"pause\": true\n    }\n}"}],"_postman_id":"6ab08313-d934-4934-a130-eccb24b154b2"},{"name":"Activate Application","id":"9f6c8936-4a52-4a09-8498-c82f92cac53c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}/activate","description":"<h3 id=\"activate-application\">Activate Application</h3>\n<p>This endpoint is used to activate a specific application.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li>No request body is required for this endpoint.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"string\",\n    \"activated_at\": \"string\",\n    \"created_at\": \"string\",\n    \"updated_at\": \"string\",\n    \"active\": true,\n    \"hash_id\": \"string\",\n    \"can\": {\n        \"view\": true,\n        \"update\": true,\n        \"delete\": true,\n        \"activate\": true,\n        \"pause\": true\n    }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4effa175-9d3e-4868-b041-3606c34bdb8c","id":"4effa175-9d3e-4868-b041-3606c34bdb8c","name":"Gamifier","type":"collection"}},"urlObject":{"protocol":"{{Scheme}}","path":["api","v{{ApiVersion}}","applications","{{ApplicationID}}","activate"],"host":["{{Hostname}}"],"query":[],"variable":[]}},"response":[{"id":"026d9b6c-464d-4d7f-8461-633d34b01c58","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Accept","value":"application/json","type":"text","disabled":true}],"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}/activate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.1"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 05:21:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"FlashView.link\",\n    \"activated_at\": \"2024-12-25T05:21:32.361495Z\",\n    \"created_at\": \"2024-12-25T05:19:44.000000Z\",\n    \"updated_at\": \"2024-12-25T05:21:32.000000Z\",\n    \"active\": true,\n    \"hash_id\": \"y8or9LAzYM\",\n    \"can\": {\n        \"view\": true,\n        \"update\": true,\n        \"delete\": true,\n        \"activate\": true,\n        \"pause\": true\n    }\n}"}],"_postman_id":"9f6c8936-4a52-4a09-8498-c82f92cac53c"},{"name":"Pause Application","id":"4d118437-35d5-40a4-9d04-f746642868fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}/pause","description":"<h3 id=\"patch-apivapiversionapplicationsapplicationidpause\">PATCH /api/v{{ApiVersion}}/applications/{{ApplicationID}}/pause</h3>\n<p>This endpoint is used to pause a specific application.</p>\n<h4 id=\"request\">Request</h4>\n<p>The request body should contain the necessary parameters to pause the application.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"team_id\": 0,\n    \"name\": \"\",\n    \"activated_at\": null,\n    \"created_at\": \"\",\n    \"updated_at\": \"\",\n    \"active\": true,\n    \"hash_id\": \"\",\n    \"can\": {\n        \"view\": true,\n        \"update\": true,\n        \"delete\": true,\n        \"activate\": true,\n        \"pause\": true\n    }\n}\n\n</code></pre>\n<p>The response contains information about the application, including its activation status, creation and update timestamps, and permissions for various actions.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4effa175-9d3e-4868-b041-3606c34bdb8c","id":"4effa175-9d3e-4868-b041-3606c34bdb8c","name":"Gamifier","type":"collection"}},"urlObject":{"protocol":"{{Scheme}}","path":["api","v{{ApiVersion}}","applications","{{ApplicationID}}","pause"],"host":["{{Hostname}}"],"query":[],"variable":[]}},"response":[{"id":"d9c411cc-6853-4a2b-8c02-9bae91a1209e","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}/pause"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.1"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 05:21:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"FlashView.link\",\n    \"activated_at\": null,\n    \"created_at\": \"2024-12-25T05:19:44.000000Z\",\n    \"updated_at\": \"2024-12-25T05:21:52.000000Z\",\n    \"active\": false,\n    \"hash_id\": \"y8or9LAzYM\",\n    \"can\": {\n        \"view\": true,\n        \"update\": true,\n        \"delete\": true,\n        \"activate\": true,\n        \"pause\": true\n    }\n}"}],"_postman_id":"4d118437-35d5-40a4-9d04-f746642868fc"},{"name":"Delete Application","id":"ae261fed-1694-4c8c-b509-3a2b0517381a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}","description":"<p>This endpoint sends an HTTP DELETE request to delete a specific application identified by the ApplicationID in the URL.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response for this request is expected to be null.</p>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"null\"\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4effa175-9d3e-4868-b041-3606c34bdb8c","id":"4effa175-9d3e-4868-b041-3606c34bdb8c","name":"Gamifier","type":"collection"}},"urlObject":{"protocol":"{{Scheme}}","path":["api","v{{ApiVersion}}","applications","{{ApplicationID}}"],"host":["{{Hostname}}"],"query":[],"variable":[]}},"response":[{"id":"2534393a-a9e4-44bd-8be9-4bc8e8dd8687","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.1"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 05:22:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"ae261fed-1694-4c8c-b509-3a2b0517381a"}],"id":"1ef45089-ba9b-4dd8-a5b8-df6692f2c835","description":"<p>Applications represent your applicaiton within Gamify.</p>\n","_postman_id":"1ef45089-ba9b-4dd8-a5b8-df6692f2c835","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4effa175-9d3e-4868-b041-3606c34bdb8c","id":"4effa175-9d3e-4868-b041-3606c34bdb8c","name":"Gamifier","type":"collection"}}},{"name":"Actions","item":[{"name":"List Actions","id":"40de07a7-6103-48f6-a805-561ee0969947","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}/actions","description":"<h3 id=\"get-apivapiversionapplicationsapplicationidactions\">GET /api/v{{ApiVersion}}/applications/{{ApplicationID}}/actions</h3>\n<p>This endpoint retrieves the actions associated with a specific application.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this endpoint.</p>\n<ul>\n<li><p>Path Parameters</p>\n<ul>\n<li><p><code>ApiVersion</code> (number) - The version of the API.</p>\n</li>\n<li><p><code>ApplicationID</code> (string) - The unique identifier of the application.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON object representing the actions and application details. It includes the following properties:</p>\n<ul>\n<li><p><code>actions</code> (object) - An object containing the list of actions associated with the application, along with metadata.</p>\n<ul>\n<li><p><code>data</code> (array) - An array of objects representing individual actions, including their name, description, points, timestamps, and permissions.</p>\n</li>\n<li><p><code>can</code> (object) - An object indicating the user's permissions to view and create actions.</p>\n</li>\n<li><p><code>links</code> (object) - An object containing links to navigate through the list of actions.</p>\n</li>\n<li><p><code>meta</code> (object) - An object providing metadata about the actions, such as the current page, total count, and pagination links.</p>\n</li>\n</ul>\n</li>\n<li><p><code>application</code> (object) - An object representing the application details, including its name, timestamps, activation status, and permissions.</p>\n</li>\n</ul>\n<p>The JSON schema for the response can be referred to for detailed information about the structure of the response.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"actions\": {\n            \"type\": \"object\",\n            \"properties\": {\n                ...\n            }\n        },\n        \"application\": {\n            \"type\": \"object\",\n            \"properties\": {\n                ...\n            }\n        }\n    }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4effa175-9d3e-4868-b041-3606c34bdb8c","id":"4effa175-9d3e-4868-b041-3606c34bdb8c","name":"Gamifier","type":"collection"}},"urlObject":{"protocol":"{{Scheme}}","path":["api","v{{ApiVersion}}","applications","{{ApplicationID}}","actions"],"host":["{{Hostname}}"],"query":[],"variable":[]}},"response":[{"id":"757c9bf4-5e04-4ada-a2cc-592a51908aee","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text","disabled":true}],"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}/actions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.1"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 05:40:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"actions\": {\n        \"data\": [\n            {\n                \"name\": \"Send long expiry message\",\n                \"description\": null,\n                \"points\": 90,\n                \"created_at\": \"2024-12-25T05:39:22.000000Z\",\n                \"updated_at\": \"2024-12-25T05:39:22.000000Z\",\n                \"hash_id\": \"x6OzEPaVbM\",\n                \"can\": {\n                    \"view\": true,\n                    \"update\": true,\n                    \"delete\": true\n                },\n                \"application\": {\n                    \"name\": \"Tesla Stats\",\n                    \"activated_at\": null,\n                    \"created_at\": \"2024-12-25T05:26:15.000000Z\",\n                    \"updated_at\": \"2024-12-25T05:26:15.000000Z\",\n                    \"active\": false,\n                    \"hash_id\": \"vnAzO4mr7V\",\n                    \"can\": {\n                        \"view\": true,\n                        \"update\": true,\n                        \"delete\": true,\n                        \"activate\": true,\n                        \"pause\": true\n                    }\n                }\n            }\n        ],\n        \"can\": {\n            \"viewAny\": true,\n            \"create\": true\n        },\n        \"links\": {\n            \"first\": \"http://localhost/api/v1/applications/vnAzO4mr7V/actions?page=1\",\n            \"last\": \"http://localhost/api/v1/applications/vnAzO4mr7V/actions?page=1\",\n            \"prev\": null,\n            \"next\": null\n        },\n        \"meta\": {\n            \"current_page\": 1,\n            \"from\": 1,\n            \"last_page\": 1,\n            \"links\": [\n                {\n                    \"url\": null,\n                    \"label\": \"&laquo; Previous\",\n                    \"active\": false\n                },\n                {\n                    \"url\": \"http://localhost/api/v1/applications/vnAzO4mr7V/actions?page=1\",\n                    \"label\": \"1\",\n                    \"active\": true\n                },\n                {\n                    \"url\": null,\n                    \"label\": \"Next &raquo;\",\n                    \"active\": false\n                }\n            ],\n            \"path\": \"http://localhost/api/v1/applications/vnAzO4mr7V/actions\",\n            \"per_page\": 15,\n            \"to\": 1,\n            \"total\": 1\n        }\n    },\n    \"application\": {\n        \"name\": \"Tesla Stats\",\n        \"activated_at\": null,\n        \"created_at\": \"2024-12-25T05:26:15.000000Z\",\n        \"updated_at\": \"2024-12-25T05:26:15.000000Z\",\n        \"active\": false,\n        \"hash_id\": \"vnAzO4mr7V\",\n        \"can\": {\n            \"view\": true,\n            \"update\": true,\n            \"delete\": true,\n            \"activate\": true,\n            \"pause\": true\n        }\n    }\n}"}],"_postman_id":"40de07a7-6103-48f6-a805-561ee0969947"},{"name":"Get Action","id":"65cc661d-afd6-47e2-a08d-de3867e66f9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}/actions/{{ActionId}}","description":"<h3 id=\"retrieve-application-action-details\">Retrieve Application Action Details</h3>\n<p>This endpoint retrieves details of a specific action within an application.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: {{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}/actions/{{ActionId}}</p>\n</li>\n</ul>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"action\": {\n        \"name\": { \"type\": \"string\" },\n        \"description\": { \"type\": [\"string\", \"null\"] },\n        \"points\": { \"type\": \"integer\" },\n        \"created_at\": { \"type\": \"string\" },\n        \"updated_at\": { \"type\": \"string\" },\n        \"hash_id\": { \"type\": \"string\" },\n        \"can\": {\n            \"view\": { \"type\": \"boolean\" },\n            \"update\": { \"type\": \"boolean\" },\n            \"delete\": { \"type\": \"boolean\" }\n        },\n        \"application\": {\n            \"name\": { \"type\": \"string\" },\n            \"activated_at\": { \"type\": [\"string\", \"null\"] },\n            \"created_at\": { \"type\": \"string\" },\n            \"updated_at\": { \"type\": \"string\" },\n            \"active\": { \"type\": \"boolean\" },\n            \"hash_id\": { \"type\": \"string\" },\n            \"can\": {\n                \"view\": { \"type\": \"boolean\" },\n                \"update\": { \"type\": \"boolean\" },\n                \"delete\": { \"type\": \"boolean\" },\n                \"activate\": { \"type\": \"boolean\" },\n                \"pause\": { \"type\": \"boolean\" }\n            }\n        }\n    }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4effa175-9d3e-4868-b041-3606c34bdb8c","id":"4effa175-9d3e-4868-b041-3606c34bdb8c","name":"Gamifier","type":"collection"}},"urlObject":{"protocol":"{{Scheme}}","path":["api","v{{ApiVersion}}","applications","{{ApplicationID}}","actions","{{ActionId}}"],"host":["{{Hostname}}"],"query":[],"variable":[]}},"response":[{"id":"e92dd62d-7352-42c0-a05f-283b04721a2f","name":"Success","originalRequest":{"method":"GET","header":[],"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}/actions/{{ActionId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.1"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 05:40:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"action\": {\n        \"name\": \"Send long expiry message\",\n        \"description\": null,\n        \"points\": 90,\n        \"created_at\": \"2024-12-25T05:39:22.000000Z\",\n        \"updated_at\": \"2024-12-25T05:39:22.000000Z\",\n        \"hash_id\": \"x6OzEPaVbM\",\n        \"can\": {\n            \"view\": true,\n            \"update\": true,\n            \"delete\": true\n        },\n        \"application\": {\n            \"name\": \"Tesla Stats\",\n            \"activated_at\": null,\n            \"created_at\": \"2024-12-25T05:26:15.000000Z\",\n            \"updated_at\": \"2024-12-25T05:26:15.000000Z\",\n            \"active\": false,\n            \"hash_id\": \"vnAzO4mr7V\",\n            \"can\": {\n                \"view\": true,\n                \"update\": true,\n                \"delete\": true,\n                \"activate\": true,\n                \"pause\": true\n            }\n        }\n    }\n}"}],"_postman_id":"65cc661d-afd6-47e2-a08d-de3867e66f9e"},{"name":"Create Action","id":"17c137af-a25e-4c99-9910-f18be0a46e0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Send long expiry message","type":"text"},{"key":"points","value":"90","description":"<p>Can be any integer. Negative values allowed.</p>\n","type":"text"},{"key":"description","value":"Represents sending a message that expires longer than 7 days","description":"<p>Optional</p>\n","type":"text"}]},"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}/actions","description":"<h3 id=\"create-application-action\">Create Application Action</h3>\n<p>This endpoint is used to create a new action for a specific application.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code> (text): The name of the action.</p>\n</li>\n<li><p><code>points</code> (text): Can be any integer. Negative values allowed.</p>\n</li>\n<li><p><code>description</code> (text): Optional description of the action.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be in the form of a JSON object with the following properties:</p>\n<ul>\n<li><code>action</code> (object): An object containing details of the created action including name, description, points, updated_at, created_at, hash_id, and application details.</li>\n</ul>\n<h4 id=\"json-schema-for-response\">JSON Schema for Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"action\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"name\": { \"type\": \"string\" },\n                \"description\": { \"type\": \"string\" },\n                \"points\": { \"type\": \"string\" },\n                \"updated_at\": { \"type\": \"string\" },\n                \"created_at\": { \"type\": \"string\" },\n                \"hash_id\": { \"type\": \"string\" },\n                \"application\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"name\": { \"type\": \"string\" },\n                        \"activated_at\": { \"type\": [\"string\", \"null\"] },\n                        \"created_at\": { \"type\": \"string\" },\n                        \"updated_at\": { \"type\": \"string\" },\n                        \"active\": { \"type\": \"boolean\" },\n                        \"hash_id\": { \"type\": \"string\" },\n                        \"can\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                                \"view\": { \"type\": \"boolean\" },\n                                \"update\": { \"type\": \"boolean\" },\n                                \"delete\": { \"type\": \"boolean\" },\n                                \"activate\": { \"type\": \"boolean\" },\n                                \"pause\": { \"type\": \"boolean\" }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4effa175-9d3e-4868-b041-3606c34bdb8c","id":"4effa175-9d3e-4868-b041-3606c34bdb8c","name":"Gamifier","type":"collection"}},"urlObject":{"protocol":"{{Scheme}}","path":["api","v{{ApiVersion}}","applications","{{ApplicationID}}","actions"],"host":["{{Hostname}}"],"query":[],"variable":[]}},"response":[{"id":"e08047f7-d44b-46ce-8fb4-456cde0babe9","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Send long expiry message","type":"text"},{"key":"points","value":"90","type":"text"}]},"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}/actions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.1"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 05:39:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"action\": {\n        \"name\": \"Send long expiry message\",\n        \"points\": \"90\",\n        \"updated_at\": \"2024-12-25T05:39:22.000000Z\",\n        \"created_at\": \"2024-12-25T05:39:22.000000Z\",\n        \"hash_id\": \"x6OzEPaVbM\",\n        \"application\": {\n            \"name\": \"Tesla Stats\",\n            \"activated_at\": null,\n            \"created_at\": \"2024-12-25T05:26:15.000000Z\",\n            \"updated_at\": \"2024-12-25T05:26:15.000000Z\",\n            \"active\": false,\n            \"hash_id\": \"vnAzO4mr7V\",\n            \"can\": {\n                \"view\": true,\n                \"update\": true,\n                \"delete\": true,\n                \"activate\": true,\n                \"pause\": true\n            }\n        }\n    }\n}"},{"id":"db5cc87b-b072-4f7a-ae86-993e9c87320b","name":"Error","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Send long expiry message","type":"text"},{"key":"points","value":"90","type":"text","disabled":true}]},"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}/actions"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.1"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 05:39:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The name has already been taken. (and 1 more error)\",\n    \"errors\": {\n        \"name\": [\n            \"The name has already been taken.\"\n        ],\n        \"points\": [\n            \"The points field is required.\"\n        ]\n    }\n}"}],"_postman_id":"17c137af-a25e-4c99-9910-f18be0a46e0a"},{"name":"Update Application","id":"f0ce19fe-8fd8-4d9e-9dd0-45469d3edf37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"points\": 30\n}","options":{"raw":{"language":"json"}}},"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}/actions/{{ActionId}}","description":"<h3 id=\"update-application-action\">Update Application Action</h3>\n<p>This endpoint is used to update a specific action within an application.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>Type: JSON</p>\n</li>\n<li><p>Description: Payload containing the updated points, name and description for the action.</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>points</td>\n<td>number</td>\n<td>The new points for the action</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response\">Response</h4>\n<p>The response is a JSON object with the following properties:</p>\n<ul>\n<li><p><code>action</code> (object): Object containing the details of the updated action.</p>\n<ul>\n<li><p><code>name</code> (string): The name of the action.</p>\n</li>\n<li><p><code>description</code> (string): The description of the action.</p>\n</li>\n<li><p><code>points</code> (number): The updated points for the action.</p>\n</li>\n<li><p><code>created_at</code> (string): Timestamp of when the action was created.</p>\n</li>\n<li><p><code>updated_at</code> (string): Timestamp of when the action was last updated.</p>\n</li>\n<li><p><code>hash_id</code> (string): Unique hash ID of the action.</p>\n</li>\n<li><p><code>can</code> (object): Object containing boolean properties for various actions such as view, update, and delete.</p>\n</li>\n<li><p><code>application</code> (object): Object containing the details of the associated application.</p>\n<ul>\n<li><p><code>name</code> (string): The name of the associated application.</p>\n</li>\n<li><p><code>activated_at</code> (string or null): Timestamp of when the application was activated.</p>\n</li>\n<li><p><code>created_at</code> (string): Timestamp of when the application was created.</p>\n</li>\n<li><p><code>updated_at</code> (string): Timestamp of when the application was last updated.</p>\n</li>\n<li><p><code>active</code> (boolean): Indicates if the application is active.</p>\n</li>\n<li><p><code>hash_id</code> (string): Unique hash ID of the application.</p>\n</li>\n<li><p><code>can</code> (object): Object containing boolean properties for various actions such as view, update, delete, activate, and pause.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"json-schema-for-response\">JSON Schema for Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"action\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"name\": { \"type\": \"string\" },\n                \"description\": { \"type\": \"string\" },\n                \"points\": { \"type\": \"number\" },\n                \"created_at\": { \"type\": \"string\" },\n                \"updated_at\": { \"type\": \"string\" },\n                \"hash_id\": { \"type\": \"string\" },\n                \"can\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"view\": { \"type\": \"boolean\" },\n                        \"update\": { \"type\": \"boolean\" },\n                        \"delete\": { \"type\": \"boolean\" }\n                    },\n                    \"required\": [\"view\", \"update\", \"delete\"]\n                },\n                \"application\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"name\": { \"type\": \"string\" },\n                        \"activated_at\": { \"type\": [\"string\", \"null\"] },\n                        \"created_at\": { \"type\": \"string\" },\n                        \"updated_at\": { \"type\": \"string\" },\n                        \"active\": { \"type\": \"boolean\" },\n                        \"hash_id\": { \"type\": \"string\" },\n                        \"can\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                                \"view\": { \"type\": \"boolean\" },\n                                \"update\": { \"type\": \"boolean\" },\n                                \"delete\": { \"type\": \"boolean\" },\n                                \"activate\": { \"type\": \"boolean\" },\n                                \"pause\": { \"type\": \"boolean\" }\n                            },\n                            \"required\": [\"view\", \"update\", \"delete\", \"activate\", \"pause\"]\n                        }\n                    },\n                    \"required\": [\"name\", \"created_at\", \"updated_at\", \"active\", \"hash_id\", \"can\"]\n                }\n            },\n            \"required\": [\"name\", \"description\", \"points\", \"created_at\", \"updated_at\", \"hash_id\", \"can\", \"application\"]\n        }\n    },\n    \"required\": [\"action\"]\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4effa175-9d3e-4868-b041-3606c34bdb8c","id":"4effa175-9d3e-4868-b041-3606c34bdb8c","name":"Gamifier","type":"collection"}},"urlObject":{"protocol":"{{Scheme}}","path":["api","v{{ApiVersion}}","applications","{{ApplicationID}}","actions","{{ActionId}}"],"host":["{{Hostname}}"],"query":[],"variable":[]}},"response":[{"id":"5c55df21-3e33-45cf-9f05-153b3a05ea64","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"points\": 30\n}","options":{"raw":{"language":"json"}}},"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}/actions/{{ActionId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.1"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 25 Dec 2024 05:41:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"action\": {\n        \"name\": \"Send long expiry message\",\n        \"description\": null,\n        \"points\": 30,\n        \"created_at\": \"2024-12-25T05:39:22.000000Z\",\n        \"updated_at\": \"2024-12-25T05:41:18.000000Z\",\n        \"hash_id\": \"x6OzEPaVbM\",\n        \"can\": {\n            \"view\": true,\n            \"update\": true,\n            \"delete\": true\n        },\n        \"application\": {\n            \"name\": \"Tesla Stats\",\n            \"activated_at\": null,\n            \"created_at\": \"2024-12-25T05:26:15.000000Z\",\n            \"updated_at\": \"2024-12-25T05:26:15.000000Z\",\n            \"active\": false,\n            \"hash_id\": \"vnAzO4mr7V\",\n            \"can\": {\n                \"view\": true,\n                \"update\": true,\n                \"delete\": true,\n                \"activate\": true,\n                \"pause\": true\n            }\n        }\n    }\n}"}],"_postman_id":"f0ce19fe-8fd8-4d9e-9dd0-45469d3edf37"},{"name":"Delete Action","id":"2e177f10-32fe-4d9a-a22e-77ef2d10bbd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{Scheme}}://{{Hostname}}/api/v{{ApiVersion}}/applications/{{ApplicationID}}/actions/{{ActionId}}","description":"<p>This endpoint sends an HTTP DELETE request to delete a specific application identified by the ApplicationID in the URL.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response for this request is expected to be null.</p>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"null\"\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4effa175-9d3e-4868-b041-3606c34bdb8c","id":"4effa175-9d3e-4868-b041-3606c34bdb8c","name":"Gamifier","type":"collection"}},"urlObject":{"protocol":"{{Scheme}}","path":["api","v{{ApiVersion}}","applications","{{ApplicationID}}","actions","{{ActionId}}"],"host":["{{Hostname}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e177f10-32fe-4d9a-a22e-77ef2d10bbd0"}],"id":"c90f92a3-1036-44e1-902f-d7f9f4fe9d15","description":"<p>Actions represent any action done by a user of the application</p>\n","_postman_id":"c90f92a3-1036-44e1-902f-d7f9f4fe9d15","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4effa175-9d3e-4868-b041-3606c34bdb8c","id":"4effa175-9d3e-4868-b041-3606c34bdb8c","name":"Gamifier","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"af1cea12-facb-4f99-a97e-1a2647a7641f","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"6204fbb8-7b03-42a0-ba18-d6436e299e6e","type":"text/javascript","packages":{},"exec":[""]}}]}