{ "opencollection": "1.0.0", "info": { "name": "Mosey Accounts Tasks API", "version": "1.0.0" }, "items": [ { "info": { "name": "Tasks", "type": "folder" }, "items": [ { "info": { "name": "List Mosey Tasks", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v2/tasks", "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "List Mosey Tasks" }, { "info": { "name": "List Tasks", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/tasks", "params": [ { "name": "definition_id", "value": "", "type": "query" }, { "name": "start_date", "value": "", "type": "query" }, { "name": "end_date", "value": "", "type": "query" }, { "name": "include_managed", "value": "", "type": "query" }, { "name": "status", "value": "", "type": "query" }, { "name": "tags", "value": "", "type": "query", "description": "Tags are filtering criteria for tasks. When multiple tags are passed, tasks associated with at least one of the tags are returned." } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Returns a list of tasks relevant for the authenticated legal entity. Tasks are sorted algorithmically by importance. To filter by status include a `status` parameter for each status you wish to be included in the response." }, { "info": { "name": "Get Task", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/tasks/:task_id", "params": [ { "name": "task_id", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Returns the specified task." }, { "info": { "name": "Update Task Status", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/tasks/:task_id", "params": [ { "name": "task_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Updates the status for the specified task. Returns the updated task." }, { "info": { "name": "Create Hosted Session to Automate Task", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/tasks/:task_id/automate/sessions", "params": [ { "name": "task_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Starts the Mosey automation for the task. If the automation requires input from the user, the response will include a URL that will redirect them to a form to collect it." }, { "info": { "name": "Create Hosted Session to View Tasks", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/tasks/sessions", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Returns a URL with session, where the tasks are hosted at Mosey. Users can filter tasks based on location and status. Users can also act on these tasks" }, { "info": { "name": "Get Task", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v2/tasks/:task_id", "params": [ { "name": "task_id", "value": "", "type": "path" }, { "name": "legal_entity_public_id", "value": "", "type": "query" }, { "name": "user_or_platform_public_id", "value": "", "type": "query" }, { "name": "platform_public_id", "value": "", "type": "query" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get Task" }, { "info": { "name": "Update Task Status", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/v2/tasks/:task_id", "params": [ { "name": "task_id", "value": "", "type": "path" }, { "name": "legal_entity_public_id", "value": "", "type": "query" }, { "name": "user_or_platform_public_id", "value": "", "type": "query" }, { "name": "platform_public_id", "value": "", "type": "query" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Updates the status of the specified requirement task.\nQuestion task's status cannot be updated.\nTask status can be updated to todo or done only.\nAfter a successful update, the updated task is returned." }, { "info": { "name": "Update Question Task Answer", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/v2/tasks/questions/:question_task_id", "params": [ { "name": "question_task_id", "value": "", "type": "path" }, { "name": "legal_entity_public_id", "value": "", "type": "query" }, { "name": "user_or_platform_public_id", "value": "", "type": "query" }, { "name": "platform_public_id", "value": "", "type": "query" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Answer a question task.\nA question could accept a boolean (true/false) answer or numerical answer or a date\nAfter a successful update, the task's status is returned." }, { "info": { "name": "Create Tasks Management Session", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v2/tasks/manage/session", "params": [ { "name": "legal_entity_public_id", "value": "", "type": "query" }, { "name": "user_or_platform_public_id", "value": "", "type": "query" }, { "name": "platform_public_id", "value": "", "type": "query" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Creates an authenticated session to enter the Mosey app, and returns\nthe url on which a user can view and manage tasks.\n\nThe tasks shown are dictated by the values provided in the request:\n`task_type` and optionally `status`.\n\nWhen requesting question tasks, only `todo` and `done` statuses\ncan be requested." }, { "info": { "name": "Create A Task Resolution Session", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v2/tasks/:task_id/session", "params": [ { "name": "task_id", "value": "", "type": "path" }, { "name": "legal_entity_public_id", "value": "", "type": "query" }, { "name": "user_or_platform_public_id", "value": "", "type": "query" }, { "name": "platform_public_id", "value": "", "type": "query" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Create A Task Resolution Session" } ] } ], "bundled": true }