{
  "openapi": "3.0.0",
  "info": {
    "title": "YOOBIC Public API",
    "version": "",
    "description": "Welcome to the **YOOBIC Public API** documentation.\n\nThe **YOOBIC Public API** is designed for developers and engineers who are interested in building custom applications or integrating with other systems or APIs.\nThe API allows you to manage resources in a simple, programmatic way using conventional HTTPS requests.\n\nThe endpoints are intuitive and powerful, allowing you to easily make calls to retrieve information or to execute actions.\n\nThe API documentation will start with a general overview about the design and technology that has been implemented, followed by reference information about specific endpoints.\n\n# Postman Collection\n\nA complete **YOOBIC Postman Collection** is available for download, containing all API endpoints organized by resource groups with pre-configured environments.\n\n**Download:** [YOOBIC Postman Collection](https://assets.yoobic.com/raw/upload/v1767016464/3c85c240-dd03-4981-9814-bc6e5e861fa0.zip)\n\nThis collection includes:\n\n- All API endpoints organized by resource groups\n\n- Pre-configured environments (sandbox, prod)\n\n- Automatic authentication handling\n\n- Example requests and responses\n\n- Ready-to-use test scripts\n\nImport the collection into Postman to quickly start testing the YOOBIC API endpoints.\n\n# What's new\n\nBelow is a list of recent enhancements/changes to the YOOBIC Public API.\n\n### August 24th, 2026\n\n* Document the `priority` body parameter on campaign [Publish](#reference/campaigns/single-campaign-api/publish).\n\n### August 19th, 2026\n\n* Document the field types supported to prefill `answers` on campaign [Publish](#reference/campaigns/single-campaign-api/publish).\n\n### July 28th, 2026\n\n* Document the 15 MB payload limit on JSON [`users`](#group-users) import.\n\n### July 21st, 2026\n\n* New [rate limit](#section-api-tech-requirements) for `DELETE` requests (120 per minute) across all endpoints, per client organization. See [Rate Limits](#section-api-tech-requirements).\n\n### June 3rd, 2026\n\n* Clarify `score` and `extra_scores` semantics in [missions](#group-missions) CSV import/export: the `score` column holds the numeric value only; `extra_scores` is export-only with one (translated) column per sub-score.\n\n### March 19th, 2026\n\n* Expand publish documentation on [campaigns](#group-campaigns): per-site/per-user mission creation, `user_ids` parameter, and request/response examples.\n\n* Document that a mission must be assigned before it can be booked on [missions](#group-missions).\n\n### March 4th, 2026\n\n* Document escaping of special characters in CSV import files using double quotes (see [Asynchronous Jobs](#section-async-jobs)).\n\n### January 25th, 2026\n\n* Clarify that `group_ids` on [files](#group-files) accepts an array of group ids, with an updated example.\n\n### December 29th, 2025\n\n* New automatic public api collections\n\n* Add [Bot Messages](#group-bot_messages) endpoint.\n\n* Add [Chats](#group-chats) endpoint.\n\n* Add [Upload file](#reference/files/single-file-api/create) on files.\n\n### April 10th, 2025\n\n* Add `folder_id` field on [`files`](#group-files).\n\n* Add `folder_name` field on [`files`](#group-files).\n\n### February 16th, 2025\n\n* Error messages now partially obscure usernames when relevant.\n\n### January 16th, 2025\n\n* Added support for [SCIM](#group-scim).\n\n### January 15th, 2025\n\n* Add [Communities](#group-communities) endpoint.\n\n* Add [Community Posts](#group-community-posts) endpoint.\n\n### January 1st, 2025\n\n* Add `address` field on [`events`](#group-events).\n\n* Add `virtual_event_link` field on [`events`](#group-events).\n\n* Add `total_users` field on [`events`](#group-events).\n\n### November 10th, 2024\n\n* Add `expires_in` field on [`login`](#reference/auth/group-security/Authentication) [auth](#group-security).\n\n### October 30th, 2024\n\n* Add [Export manager users](#reference/users/multiple-users-api/export-manager-users) endpoint.\n\n* Add [Import manager users](#reference/users/multiple-users-api/import-manager-users) endpoint.\n\n* Add `position` field on [users](#group-users).\n\n* Add `department` field on [users](#group-users).\n\n* Add `division` field on [users](#group-users).\n\n* Add `company` field on [users](#group-users).\n\n* Add `hiring_date` field on [users](#group-users).\n\n* Add `skills` field on [users](#group-users).\n\n* Add `cover` field on [users](#group-users).\n\n* Add `description` field on [users](#group-users).\n\n### August 1st, 2024\n\n* Add `trigger_on_every_match` field on [webhooks](#group-webhooks).\n\n### July 15, 2024\n\n* Add new type for import users `json` on [`import`](#reference/users/multiple-users-api/import) endpoint.\n\n### June 27, 2024\n\n* Add [Bots](#group-bots) endpoint.\n\n* Add `earned_points` field on [courses](#group-courses).\n\n* Add `duration` field on [courses](#group-courses).\n\n* Add `start_date` field on [courses](#group-courses).\n\n* Add `due_date` field on [courses](#group-courses).\n\n* Add `finished_date` field on [courses](#group-courses).\n\n### April 30, 2024\n\n* Add `notify` field on campaign [Publish](#reference/campaigns/single-campaign-api/publish).\n\n### April 17, 2024\n\n* New [rate limit](#section-api-tech-requirements) for `users` endpoint for POST, PATCH and DELETE requests\n\n### January 31, 2024\n\n* Add [Invite users](#reference/users/multiple-users-api/invite-users) endpoint.\n\n* Add [Export archived users](#reference/users/multiple-users-api/export-archived-users) endpoint. The exported file now includes custom fields.\n\n* Add [Export archived stores](#reference/stores/multiple-stores-api/export-archived-stores) endpoint. The exported file now includes custom fields.\n\n### November 3, 2023\n\n* Add [Mission-Comments](#group-mission_comments) endpoint.\n\n### October 23, 2023\n\n* Add `da`, `fi`, `nb` and `sv` fields on [translations](#group-translations).\n\n### August 15, 2023\n\n* Add [Import Users To Archive](#reference/users/multiple-users-api/import-users-to-archive) on users.\n\n* Add [Import Users To Un Archive](#reference/users/multiple-users-api/import-users-to-un-archive) on users.\n\n* Add [Import Stores To Archive](#reference/stores/multiple-stores-api/import-stores-to-archive) on stores.\n\n* Add [Import Stores To Un Archive](#reference/stores/multiple-stores-api/import-stores-to-un-archive) on stores.\n\n### July 26, 2023\n\n* Add extra security asymetric encryption for logins.\n\n### June 20, 2023\n\n* [webhooks](#group-webhooks) change in behavior on sandbox environment.\n\n### April 23, 2023\n\n* Add new supported topics to [webhooks](#group-webhooks).\n\n### April 18, 2023\n\n* Add [Invitees](#reference/events/single-events-api/invitees) endpoint on events.\n\n### March 2, 2023\n\n* Update `group_id` field on [groups](#group-groups).\n\n### February 7, 2023\n\n* Add `weekly_schedule` fields on [users](#group-users).\n\n* Add [Shifts](#group-shifts) endpoint.\n\n### December 20, 2022\n\n* Add `au`, `ido` and `vi` fields on [translations](#group-translations).\n\n### November 23, 2022\n\n* Add `images` field on [news](#group-news).\n\n* Removed `image` field on [news](#group-news) (deprecated).\n\n### October 31, 2022\n\n* Add [Roles](#group-roles) endpoint.\n\n### October 20, 2022\n\n* Add [Questions](#group-questions) endpoint.\n\n### October 13, 2022\n\n* Add [Answers](#group-answers) endpoint.\n\n### September 1, 2022\n\n* Add `client_ids` field on [users](#group-users).\n\n* Add `store_type_names` field on [users](#group-users).\n\n### June 26, 2022\n\n* [`Publish`](#reference/campaigns/single-campaign-api/publish) a campaign based on its current configured audience.\n\n### June 22, 2022\n\n* Add security for [webhooks](#group-webhooks).\n\n* Updated limit to the number of [`notifications`](#group-notifications) that can be sent at once to 50k.\n\n### June 14, 2022\n\n* Add [Events](#group-events) endpoint.\n\n### February 20, 2022\n\n* Add `custom_fields` field on [visits](#group-visits).\n\n### December 21, 2021\n\n* Add [Import audience](#reference/campaigns/single-campaign-api/import-audience) on campaigns.\n\n* Add [Import new campaigns from template](#reference/campaigns/single-campaign-api/import-new-campaigns-from-template) on campaigns.\n\n* Add [Get all archives](#reference/users/multiple-users-api/get-all-archives) on users.\n\n* Add [Get all archives](#reference/stores/multiple-stores-api/get-all-archives) on stores.\n\n### October 27, 2021\n\n* Add `active` field on [campaigns](#group-campaigns).\n\n* Add `archived` field on [campaigns](#group-campaigns).\n\n### September 9, 2021\n\n* Add [jobs](#group-jobs) fields' detail.\n\n* Updated the location of the file containing the errors to be under `error`.\n\n### August 15, 2021\n\n* Errors during an import job are now described in a file and returned as a `download_url` under `errors` in the job response.\n\n### May 12, 2021\n\n* Add [create question](#reference/campaigns/single-campaign-api/create-question) on campaigns.\n\n* Add [update question](#reference/campaigns/single-campaign-api/update-question) on campaigns.\n\n* Add [delete question](#reference/campaigns/single-campaign-api/delete-question) on campaigns.\n\n* Add [partial u pdate](#reference/campaigns/single-campaign-api/partial-update) on campaigns.\n\n### May 10, 2021\n\n* Add get and update a [missions](#reference/missions/single-mission-api/find-mission's-tasks) tasks.\n\n### April 7, 2021\n\n* Add ability to get the missions' answers [missions](#reference/missions/multiple-missions-api/get-all).\n\n### March 16, 2021\n\n* Add `out_of_stock` field on [products](#group-products).\n\n### March 1, 2021\n\n* Add [`Password History`](#reference/users/single-user-api/password-history) method for [users](#group-users)\n\n### January 17, 2021\n\n* Add `terms_of_acceptance_date` field on [users](#group-users).\n\n* Add [tenants](#group-tenants)\n\n### January 13, 2021\n\n* Add `vq_fields` object in [stores](#group-stores) description and endpoints to support virtual queuing\n\n### January 12, 2021\n\n* Add [webhooks](#group-webhooks) endpoint.\n\n### December 28, 2020\n\n* Add [custom-model-instances](#group-custom_model_instances)\n\n### December 7, 2020\n\n* Add `task_number` field on [missions](#group-missions) endpoint.\n\n### November 19, 2020\n\n* Add `capacity` field on [stores](#group-stores) endpoint.\n\n* Add `last_seen` field on [users](#group-users).\n\n* Add `mobile_version` field on [users](#group-users).\n\n* Add `desktop_version` field on [users](#group-users).\n\n### November 10, 2020\n\n* Add `group_ids` field on [inventory](#group-inventory).\n\n### October 26, 2020\n\n* Add [`unarchive`](#reference/stores/single-store-api/unarchive) method for [stores](#group-stores)\n\n* Add [`unarchive`](#reference/users/single-user-api/unarchive) method for [users](#group-users)\n\n### October 22, 2020\n\n* Add [`archive`](#reference/stores/single-store-api/archive) method for [stores](#group-stores)\n\n* Add [`archive`](#reference/users/single-user-api/archive) method for [users](#group-users)\n\n### October 14, 2020\n\n* Add `allow_local_login` field on [users](#group-news).\n\n### September 14, 2020\n\n* Add `tags` field on [news](#group-news).\n\n* Add POST, DELETE and PATCH endpoints for [news](#group-news).\n\n### September 10, 2020\n\n* Add `client_role_extension` field on [users](#group-users).\n\n### August 19, 2020\n\n* Add `action_plan_progress` field on [missions](#group-missions) table.\n\n### July 23, 2020\n\n* Add `available-slots` method on [waitlist-yoobic-visits](#group-waitlist-yoobic-visits) endpoint.\n\n* Update `waitlist-yoobic-visits` response to return store `client_id` and store `title` on [waitlist-yoobic-visits](#group-waitlist-yoobic-visits) endpoints.\n\n### July 05, 2020\n\n* Add [waitlist-yoobic-visits](#group-waitlist-yoobic-visits)\n\n### June 28, 2020\n\n* Add [waitlist-customers](#group-waitlist-customers)\n\n### May 18, 2020\n\n* Add BOOST endpoint ([incentives-kpi](#group-incentives-kpi))\n\n### May 11, 2020\n\n* Add `timezone` field on [stores](#group-stores) endpoint.\n\n### May 5, 2020\n\n* Add `page_titles` field on [campaigns](#group-campaigns) endpoint.\n\n### April 16, 2020\n\n* Add [`delete`](#reference/campaigns/single-campaign-api/delete) method for [campaigns](#group-campaigns)\n\n### February 19, 2020\n\n* Add to [campaigns](#group-campaigns) [`publish`](#reference/campaigns/single-campaign-api/publish) the ability to provide default answers.\n\n### February 13, 2020\n\n* Add [`assign`](#reference/plans/single-plan-api/assign) method for [plans](#group-plans)\n\n### February 5, 2020\n\n* Add `timezone` field on [stores](#group-stores) endpoint.\n\n### February 4, 2020\n\n* Add [`create`](#reference/visits/multiple-visits-api/create) method for [visits](#group-visits)\n\n* Add [`import`](#reference/visits/multiple-visits-api/import) method for [visits](#group-visits)\n\n### January 28, 2020\n\n* Add properties on [campaigns](#group-campaigns) [`publish`](#reference/campaigns/single-campaign-api/publish)\n\n### November 5, 2019\n\n* Add `create` method for [campaigns](#group-campaigns) endpoint.\n\n* Add `create` method for [photos](#group-photos) endpoint.\n\n### October 2, 2019\n\n* Add `store_id` field on [visit](#group-visits).\n\n* Add `user_id` field on [visit](#group-visits).\n\n* Add `creator_id` field on [visit](#group-visits).\n\n### September 5, 2019\n\n* Add [visit](#group-visits) endpoint.\n\n### September 3, 2019\n\n* Add `group_ids` field on [notifications](#group-notifications).\n\n### August 8, 2019\n\n* Add [inventory](#group-inventory) endpoint.\n\n### August 5, 2019\n\n* Add `scoring` field on [campaigns](#group-campaigns).\n\n* Add `recurring` field on [campaigns](#group-campaigns).\n\n* Add `body` field on [notifications](#group-notifications).\n\n* Add `user_ids` field on [notifications](#group-notifications).\n\n* Add `badge_type` field on [notifications](#group-notifications).\n\n* Add `manufacturer` field on [products](#group-products).\n\n* Add `brand` field on [products](#group-products).\n\n* Add `category` field on [products](#group-products).\n\n* Add `images` field on [products](#group-products).\n\n### July 9, 2019\n\n* Add `authorised_viewers` field on [news](#group-news).\n\n* Add `description` field on [news](#group-news).\n\n* Add `group_ids` field on [news](#group-news).\n\n### June 13, 2019\n\n* Add `available_on_book` field on [missions](#group-missions).\n\n* Add `available_on_finished` field on [missions](#group-missions).\n\n### June 3, 2019\n\n* Add `average_completed_lesson` field on [plans](#group-plans).\n\n* Add `photo` field on [stores](#group-stores).\n\n* Add `address` field on [users](#group-users).\n\n### May 16, 2019\n\n* Add `duration` field on [missions](#group-missions).\n\n* Add `duration` field on [lessons](#group-lessons).\n\n### May 8, 2019\n\n* Add `markup_url` field on [photos](#group-photos).\n\n### April 30, 2019\n\n* Add `catalog_title` field on [products](#group-products).\n\n### Mar 24, 2019\n\n* Add `vip` field on [stores](#group-stores).\n\n### Mar 11, 2019\n\n* Remove support for the replace (PUT) resource, in favor of partial update (PATCH).\n\n### Mar 6, 2019\n\n* Document [Current User API](#reference/users/current-user-api/get)\n\n* Document company name restriction on  `Groups` [`create`](#reference/groups/multiple-groups-api/create) and [`import`](#reference/groups/multiple-groups-api/import)\n\n### Feb 25, 2019\n\n* Add endpoint to get a store's [`Health Score`](#reference/stores/single-store-api/health-score-of-a-store-api)\n\n* Add BOOST endpoints ([plans](#group-plans), [courses](#group-courses), [lessons](#group-lessons))\n\n### API Resources Overview\n\n| Resource                                 | GET | POST | PATCH  | DELETE | IMPORT | EXPORT | COUNT |\n|------------------------------------------|:---:|:----:|:------:|:------:|:------:|:------:|:-----:|\n|[`auth`](#group-security)                 |     |  x   |        |        |        |        |       |\n|[`answers`](#group-answers)               |  x  |      |        |        |        |    x   |   x   |\n|[`badges`](#group-badges)                 |  x  |      |        |        |        |    x   |   x   |\n|[`bots`](#group-bots)                     |  x  |      |        |        |        |    x   |   x   |\n|[`bot-messages`](#group-bot_messages)     |     |      |        |        |        |    x   |       |\n|[`campaigns`](#group-campaigns)           |  x  |  x   |   x    |   x    |        |    x   |   x   |\n|[`catalogs`](#group-catalogs)             |  x  |  x   |    x   |   x    |   x    |    x   |   x   |\n|[`chats`](#group-chats)                   |     |  x   |        |        |        |        |       |\n|[`comments`](#group-comments)             |  x  |      |        |        |        |    x   |   x   |\n|[`communities`](#group-communities)       |  x  |  x   |   x    |        |        |    x   |   x   |\n|[`community-posts`](#group-community-posts) |  x  |  x   |        |        |    x   |    x   |   x   |\n|[`competencies`](#group-competencies)     |  x  |      |        |        |        |    x   |   x   |\n|[`course-categories`](#group-course-categories)     |  x  |      |        |        |        |    x   |   x   |\n|[`courses`](#group-courses)               |  x  |      |        |        |        |    x   |   x   |\n|[`custom-model-instances`](#group-custom_model_instances)|  |   |    |   |   x    |    x   |       |\n|[`events`](#group-events)                 |  x  |  x   |   x    |   x    |   x    |    x   |   x   |\n|[`files`](#group-files)                   |  x  |  x   |        |        |        |    x   |   x   |\n|[`geofilters`](#group-geofilters)         |  x  |  x   |    x   |   x    |   x    |    x   |   x   |\n|[`groups`](#group-groups)                 |  x  |  x   |        |   x    |   x    |    x   |   x   |\n|[`incentives-kpi`](#group-incentives-kpi) |  x  |  x   |    x   |   x    |   x    |    x   |   x   |\n|[`inventory`](#group-inventory)           |  x  |      |        |        |        |    x   |   x   |\n|[`lessons`](#group-lessons)               |  x  |      |        |        |        |    x   |   x   |\n|[`missions`](#group-missions)             |  x  |      |    x   |   x    |   x    |    x   |   x   |\n|[`mission_comments`](#group-mission_comments)   |  x  |  x   |    x   |   x    |   x    |    x   |   x   |\n|[`news`](#group-news)                     |  x  |  x   |    x   |   x    |   x    |    x   |   x   |\n|[`notifications`](#group-notifications)   |  x  |  x   |        |        |        |    x   |   x   |\n|[`photos`](#group-photos)                 |  x  |  x   |        |        |        |    x   |   x   |\n|[`plans`](#group-plans)                   |  x  |      |        |        |        |    x   |   x   |\n|[`products`](#group-products)             |  x  |  x   |    x   |   x    |   x    |    x   |   x   |\n|[`questions`](#group-questions)           |  x  |      |        |        |        |    x   |   x   |\n|[`roles`](#group-roles)                   |  x  |      |        |        |        |    x   |   x   |\n|[`salesdata`](#group-salesdata)           |  x  |  x   |    x   |   x    |   x    |    x   |   x   |\n|[`shifts`](#group-shifts)                 |  x  |  x   |    x   |   x    |   x    |    x   |   x   |\n|[`store-types`](#group-store_types)       |  x  |  x   |    x   |   x    |   x    |    x   |   x   |\n|[`stores`](#group-stores)                 |  x  |  x   |    x   |   x    |   x    |    x   |   x   |\n|[`tenants`](#group-tenants)               |  x  |      |        |        |        |        |       |\n|[`translations`](#group-translations)     |  x  |  x   |    x   |   x    |   x    |    x   |   x   |\n|[`users`](#group-users)                   |  x  |  x   |    x   |   x    |   x    |    x   |   x   |\n|[`visits`](#group-visits)                 |  x  |  x   |    x   |   x    |   x    |    x   |   x   |\n|[`webhooks`](#group-webhooks)             |  x  |  x   |    x   |   x    |   x    |    x   |   x   |\n|[`jobs`](#group-jobs)                     |  x  |      |        |        |        |        |       |\n\n# Table of Contents\n\n- [API Help](#section-api-help) - We're here to help!\n\n- [API Access](#section-api-access) - API access authentication\n\n- [API Technical Requirements](#section-api-tech-requirements) - Technical requirements for communicating with the API - security protocols and rate limits\n\n- [API Requests](#section-api-requests) - Formatting of requests sent to the **RESTful** YOOBIC API\n    - [Filter](#section-api-requests-filter) - Filter the results using different criteria\n        - [Order](#section-api-requests-filter-order) - Ordering the results\n        - [Paging](#section-api-requests-filter-paging) - Paging through your results\n        - [Where](#section-api-requests-filter-where) - Matching your results\n        - [Fields](#section-api-requests-filter-fields) - including specific fields to your results\n    - [CRUD Requests](#section-api-requests-crud-requests) - Creating/updating/deleting resources\n\n- [API Responses](#section-api-responses) - The common response format of each request\n\n- [Asynchronous Jobs](#section-async-jobs) - How data is requested asynchronously for endpoints\n  - [Export file section](#section-export-jobs)\n  - [Import file section](#section-import-jobs)\n\n- [Endpoint Documentation](#section-endpoint-documentation) - Documentation specific for each endpoint. You may also use the links on the table on the sidebar to navigate to any endpoint.\n    - [Security](#group-security)\n    - [Answers](#group-answers)\n    - [Badges](#group-badges)\n    - [Bots](#group-bots)\n    - [Bot Messages](#group-bot_messages)\n    - [Campaigns](#group-campaigns)\n    - [Catalogs](#group-catalogs)\n    - [Chats](#group-chats)\n    - [Comments](#group-comments)\n    - [Communities](#group-communities)\n    - [Comments](#group-community-posts)\n    - [Competencies](#group-competencies)\n    - [Course-categories](#group-course-categories)\n    - [Courses](#group-courses)\n    - [Custom-model-instances](#group-custom_model_instances)\n    - [Events](#group-events)\n    - [Files](#group-files)\n    - [Geofilters](#group-geofilters)\n    - [Groups](#group-groups)\n    - [Incentives Kpi](#group-incentives-kpi)\n    - [Inventory](#group-inventory)\n    - [Lessons](#group-lessons)\n    - [Missions](#group-missions)\n    - [Missions](#group-mission_comments)\n    - [News](#group-news)\n    - [Notifications](#group-notifications)\n    - [Photos](#group-photos)\n    - [Plans](#group-plans)\n    - [Products](#group-products)\n    - [Questions](#group-questions)\n    - [Roles](#group-roles)\n    - [Salesdata](#group-salesdata)\n    - [SCIM](#group-scim)\n    - [Shifts](#group-shifts)\n    - [Store Types](#group-store_types)\n    - [Stores](#group-stores)\n    - [Tenants](#group-tenants)\n    - [Translations](#group-translations)\n    - [Users](#group-users)\n    - [Visits](#group-visits)\n    - [Webhooks](#group-webhooks)\n    - [Jobs](#group-async-jobs)\n\n<a id=\"section-api-help\"></a>\n\n## API Help\n\nHave questions or need support?\nEmail your YOOBIC Customer Success Manager or [support@yoobic.com](mailto:support@yoobic.com).\n\n<a id=\"section-api-access\"></a>\n\n## API Access\n\nAuthentication to the YOOBIC API uses JWT tokens. They are required for accessing API.    \nJWT tokens are set in the `Authorization` header for your requests as follows:\n\n```\nAuthorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\n```\n\nTo obtain a valid token you can either:\n\n- Use the [`auth/login`](#group-security) endpoint\n\n- Contact your YOOBIC Customer Success Manager or [support@yoobic.com](mailto:support@yoobic.com) to obtain credentials to use in the /auth/login endpoint.\n\n- Please note that in the case you are using a reverse proxy you must set the parameter `proxy_ssl_server_name` to on to successfully connect to the prod environment.\n\n<a id=\"section-api-tech-requirements\"></a>\n\n## API Technical Requirements\n\n### Protocol and Communication\n\n- The api is only accessible via HTTPS, using TLS 1.2 or better. We forward secrecy and AES-GCM, and prohibit insecure connections using SSL 3.0 or RC4.\n\n- Environments    \n      We provide both a Sandbox and a Production environment. Every Friday at 21:55 UTC, Sandbox is refreshed by taking a snapshot of the Production environment. Since this refresh process takes several hours, please avoid using Sandbox during that time. It is available for testing purposes outside of the refresh period.\n\n- Template structure of a request:   \n    - Base url Production: **https://api.yoobic.com/public/api**\n    - Base url Sandbox: **https://api-sandbox.yoobic.com/public/api**\n    - The `<base_url>` variable in the example requests is either `api.yoobic.com` or `api-sandbox.yoobic.com`.\n    - Get all (GET): `/{endpoint}?filter={ \"where\": { \"property\": \"value\" }, \"skip\": 0, \"limit\": 100, \"order\": \"updated_date DESC\", \"fields\": [\"property\"] }`\n    - Count (GET):  `/{endpoint}?where={ \"property\": \"value\" }`\n    - Create (POST): `/{endpoint}` should include a valid JSON object as the body.\n    - Update (PATCH): `/{endpoint}/:id` should include a valid JSON object as the body.\n    - Delete (DELETE): `/{endpoint}/:id`\n\n### Rate Limits\n\nAll limits are applied per client organization. Exceeding a limit returns HTTP error `429 Too Many Requests (Rate Limit Exceeded)`; wait for the current one-minute window to pass and retry.\n\n- **Interval Limit**: 10 requests per second overall. Send requests serially (one at a time); bursts of concurrent requests may be rejected.\n\n- **Delete Limit**: 120 `DELETE` requests per minute across all endpoints.\n\n- **Users Write Limit**: 180 requests per minute (3 per second) for `POST`, `PATCH` and `DELETE` on the `/users` endpoint. These requests also count toward the limits above.\n\n- **Daily Limit**: 100,000 requests per day.\nIf you need higher limits to support your specific use case, please contact your YOOBIC Customer Success Manager or [support@yoobic.com](mailto:support@yoobic.com) — limits can be adjusted per organization.\n\n<a id=\"section-api-requests\"></a>\n\n## API Requests\n\nRequests for the YOOBIC API are all RESTful, with parameters following the endpoint path or in request body.\nEach request in the documentation is displayed with the appropriate HTTP method and sample parameters.\nData may be sent in as parameters or in the request body as JSON.\nThe requests on the YOOBIC API allow for ordering, paging and filtering on a per entity basis.\n\n<a id=\"section-api-requests-filter\"></a>\n\n### Filter\n\nA where filter specifies criteria for returning data.\nWe supports the following kind of filters:\n\n- [Order filter](#section-api-requests-filter-order)\n\n- [Paging filter](#section-api-requests-filter-paging)\n\n- [Where filter](#section-api-requests-filter-where)\n\n- [Fields filter](#section-api-requests-filter-fields)\n\nA filter must be a JSON encoded string (`{\"something\":\"value\"}`).    \nTo do this, simply use the following syntax:\n\n```\n?filter={ Stringified-JSON }\n```\n\nIn the JSON all text keys/strings must be enclosed in quotes (\").\n\n**Important**:     \nWhen using stringified JSON, you must use an equal sign after ?filter in the query string.    \nFor example:\n\n```\nGET /entity?filter={\"where\": { \"entity_id\": 1234 }, \"order\": \"updated_date DESC\", \"limit\": 100, \"fields\": [\"property\", \"property\"] }\n```\n\n<a id=\"section-api-requests-filter-order\"></a>\n\n#### Order Filter\n\nAn *order* filter specifies how to sort the results: ascending (ASC) or descending (DESC) based on the specified property.   \nOrder by one property:\n\n```json\n{ \"order\": \"property <ASC|DESC>\" }\n```\n\nOrder by two or more properties:\n\n```json\n{ \"order\": [\"property <ASC|DESC>\", \"property <ASC|DESC>\",...] }\n```\n\nWhere:\n\n- *property* is the name of the property (field) to sort by.\n\n- *<ASC|DESC>* signifies either ASC for ascending order or DESC for descending order.\n\n**Important**:     \nBy default ordering will be performed according to the *updated_date* property.    \nEach endpoint's table, contains information, to the properties ordering could be performed on.\n\n<a id=\"section-api-requests-filter-paging\"></a>\n\n#### Paging Filter\n\nPaging can be achieved by a combination of *limit* and *skip* parameters.\n\n* *limit* filter limits the number of records returned to the specified number (or less).    \n    The maximum number of records that could be fetched is `1000`.    \n    For anything above that, you might want to consider using the [export](#section-async-jobs) endpoint.    \n    ```json\n        { \"limit\": 5 }\n    ```\n\n* *skip* filter omits the specified number of returned records.\n    ```json\n        { \"skip\": 5 } \n    ```\n\n* If `paging.total > paging.limit` in the response of a request:\n\n    It is possible to use the *skip* filter. Here is an example on how to use it with the users endpoint:    \n    `https://api-sandbox.yoobic.com/public/api/users?filter={\"skip\": 1000}`    \n    The recommended solution is to add a condition to the API script to loop requests if there are too many elements until all of them are returned.    \n    The condition would monitor that `paging.total - paging.limit <= paging.skip` in the response of each request, and if not send another request with `newSkip = Skip + 1000` after receiving the last one.    \n    The other way to manage large requests is to use asynchronous requests. For example with Users, it is possible to export a CSV file of all or some users. See the [export](#section-async-jobs) section for this.\n\n<a id=\"section-api-requests-filter-where\"></a>\n\n#### Where Filter\n\nA *where* filter specifies a set of logical conditions to match, similar to a WHERE clause in a SQL query.\n\nUse the first form below to test equivalence, that is, whether property equals value. Use the second form below for all other conditions.\n\n```json\n{ \"where\": { \"property\": value } }\n```\n\n```json\n{ \"where\": { \"property\": { \"op\" : value } } }\n```\n\n```json\n{ \"where\": { \"and|or\": [{ \"property\": { \"op\" : value } }, { \"property\": { \"op\" : value } }] } }\n```\n\nWhere:\n\n- *property* is the name of a property (field) in the model being queried.\n\n- *value* is a literal value.\n\n- *op* is one of the operators listed below.\n\n| Operator      | Description                                                                                                |\n|---------------|------------------------------------------------------------------------------------------------------------|\n|gt, gte        | Numerical greater than (>); greater than or equal (>=). Valid only for numerical and date values.| \n|lt, lte        | Numerical less than (<); less than or equal (<=). Valid only for numerical and date values. |\n|between        | True if the value is between the two specified values: greater than or equal to first value and less than or equal to second value.| \n|inq, nin       | In / not in an array of values.|\n|neq            | Not equal (!=) |\n\n<a id=\"section-api-requests-filter-fields\"></a>\n\n#### Fields Filter\n\nA *fields* filter specifies properties (fields) to include from the results.\n\n```json\n{ \"fields\": [\"property\", \"property\", ...] }\n```\n\nWhere:\n\n- *property* is the name of the proeprty (field) to include.\n\nBy default, queries return all properties in results. However, if you specify at least one fields filter, then by default the query will include only those you specifically include with filters.\n\n**Important**:     \nThe *export* resource for all endpoints does not allow the *fields* filter.\n\n<a id=\"section-api-requests-crud-requests\"></a>\n\n## CRUD Requests\n\nCreate, update and delete requests follow standard RESTful practices. While some fields\nare available on a resource, you may not be able to set values for *readonly* fields such as `created_date` during\na CREATE, UPDATE or DELETE action (it would just be ignored). The allowed parameters are listed at the beginning of each CRUD section for a particular resource.\n\n<a id=\"section-api-responses\"></a>\n\n## API Responses\n\nThe Response format varies depending on the type of request:\n\n- Single API requests - simple hash, whether it be an error or not.\n\n- Multiple API requests - a hash containing two lists \n  - `data` for successfull requests.\n  - `error` for failed requests.\n\nThe two correspond to the order in the request.\n\n```json\n{\n     \"data\": [],\n     \"error\": []\n}\n```\n\nFor find requests an `error` **or** `data` with an additional `paging` hash -\n\n```json\n{\n    \"data\": [],\n    \"error\": [],\n    \"paging\": {\n          \"skip\": 0,\n          \"limit\": 1000,\n          \"total\": 10000,\n    }\n}\n\n```\n\n- `skip` - The currently requested page. Defaults to `0` if no page is given in the request.\n\n- `limit` - The maximum amount of records that may be returned in this response. If not given in the filter parameter, defaults to `1000`.\n\n- `total` - The total records that match this request, regardless of current paging results.\n\n### Response Headers\n\n- content-type: application/json; charset=utf-8\n\n- status: 200 OK\n\n- ratelimit-limit: 1200\n\n- ratelimit-remaining: 1137\n\n- ratelimit-reset: 1415984218\n\n### Multiple Response Body\n\n#### Description Of Usual Server Responses:\n\n- 200 `OK` - the request was successful (some API calls may return 201 instead).\n\n- 201 `Created` - the request was successful and a resource was created.\n\n- 204 `No Content` - the request was successful but there is no representation to return (i.e. the response is empty).\n\n- 400 `Bad Request` - the request could not be understood or was missing required parameters.\n\n- 401 `Unauthorized` - authentication failed or user doesn't have permissions for requested operation.\n\n- 403 `Forbidden` - access denied.\n\n- 404 `Not Found` - resource was not found.\n\n- 405 `Method Not Allowed` - requested method is not supported for resource.\n\n- 429 `Too Many Requests` - rate limit exceeded.\n\n- 501 `Not Implemented` - the server lacks the ability to fulfill the request. Usually this implies future availability.\n\n<a id=\"section-async-jobs\"></a>\n\n## Asynchronous Jobs\n\nThere are 2 endpoints for async jobs\n\n- `/import`: Import a csv/excel file\n\n- `/export`: Export data as a csv/excel file\n\nBy default, all requests to the External API are synchronous and all data requested are returned within the same request/response cycle.\nOne limitation of this approach is that all responses are limited to a maximum number of records as defined in the [Paging section](#section-api-requests-filter-paging).\nTo enable returning an unlimited number of records, you are able to create a job to be executed asynchronously to return all records that match your current query.\n\n#### Async Jobs\n\n- `GET entity/export`\n\n- `POST entity/import`\n\nGiven the following request to get the stores:\n\n`https://api.yoobic.com/public/api/stores`\n\nIt can be converted into an asynchronous job:\n\n`https://api.yoobic.com/public/api/stores/export?type=csv`\n\n#### Response Structure and Return Codes\n\nWhen an asynchronous job is successfully created, a code of `200` will be returned. Any errors will result in a return code of `400` and error messages will be returned in the standard format.\n\nThe response structure of a requested asynchronous job includes a `job_id` that you use on the [Jobs endpoint](#group-jobs)\nto query for the current status of the endpoint. This structure is almost identical to what is returned from the [Jobs endpoint](#group-jobs).\nPlease refer to that endpoint for more details about obtaining the status of your job.\n\n```json\n{\n  \"name\": \"Export csv\",\n  \"type\": \"normal\",\n  \"priority\": 0,\n  \"nextRunAt\": \"2018-09-11T15:37:23.088Z\",\n  \"_id\": \"5b97e133952d1c8776c9e723\"\n}\n```\n\n#### Export File Format\n\n<a id=\"section-export-jobs\"></a>\n\nThe file formats supported for exporting all records via an asynchronous job are CSV or Excel (xlsx). Once a job is completed, the response\nbody of the [Jobs endpoint](#group-jobs) request will return the `download_url` key that is the URL of the CSV or Excel.\nFor example, the above request will result in a file containing example data delimited by the default delimiter, with headers as follows:\n\n```json\n{\n  \"job_id\": \"5b97e133952d1c8776c9e723\",\n  \"name\": \"Export file\",\n  \"data\": {\n    \"authorization\": \"\",\n    \"input\": {\n      \"filter\": null,\n      \"type\": \"csv\",\n      \"modelName\": \"stores\"\n    },\n    \"output\": {\n      \"errors\": [],\n      \"data\": {\n          \"download_url\": \"https://s3.eu-west-1.amazonaws.com/yoobic.transient-file-storage/stores_6b97e133952d1c8776c9e723.csv\"\n        }\n    },\n    \"stats\": {\n      \"execution_time_milliseconds\": 556.81776,\n      \"execution_time\": \"556.81776 ms\",\n      \"errors\": 0,\n      \"success\": 1\n    }\n  },\n  \"progress\": 1,\n  \"lastFinishedAt\": \"2018-09-11T15:37:28.496Z\"\n}\n```\n\n- Response \"data.input\" object\nThe input parameters when creating the job.\n\n- Response \"data.output.data\" object.    \nThe `data` object in the results hash may be either a hash or an array, depending on the endpoint action.\n\n- Response \"data.output.errors\" hash.    \nThe `errors` array only appears in results to inform the client of errors such as incorrect field formats, model validation errors or server errors.\n\n- Response \"data.stats\" hash.    \nThe `stats` object informs about the total execution time and number of errors and/or successes.\n\n##### Resulting CSV example:\n\n```\n    id; title; address; latitude; longitude; client_id; store_type_id; store_type_name; created_date; updated_date\n    5b97e017952d1c8776c9e71e; Home; Statue of Liberty, New York, USA; 40.6895453; -74.0449292; 001; 5b97e00411ec54f2e3a0936e; TEST; 2018-09-11T15:32:39.607Z; 2018-09-11T15:32:39.607Z\n```\n\n#### Resulting Excel example:\n\nIn case of a request to export an excel file `https://api.yoobic.com/public/api/stores/export?type=excel` it would result in:    \n<img src=\"https://res.cloudinary.com/www-yoobic-com/image/upload/v1554025223/export_excel_example.png\" >\n\n##### Export File Expiration\n\nCurrently all exports are set to expire **one day** after they are created at which point they will be inaccessible.\n\n#### Import File\n\n<a id=\"section-import-jobs\"></a>\n\n<a id=\"section-asynchronous-jobs-import\"></a>\nImport a CSV/Excel file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job.\nMake sure that you make a multipart/form-data query, passing the CSV/Excel file as named parameter `file`.\nWhen you create a CSV/Excel file to import, you'll probably generate this list from some other information management system or database. Most of these systems have some facility for creating a CSV/Excel export file. If you need to create the list from scratch you can use a program like Microsoft Excel or OpenOffice.org Calc.\n\n**Important**:\n\n- To ensure correct handling of special characters, you must generate the CSV/Excel file using the UTF-8 character encoding.\n\n- The first row of the file is the header row, and you must include it in the file.\n\n- The header row must contain any required fields in the table below, plus any other fields listed in the table below that you want to include.\n\n- Empty columns of data in the file will overwrite any existing data for that entity (empty column is treated as a *null* value).\n\n- For Excel files, array type fields (i.e.: `tags` for users or stores, `client_ids` for users…) must be comma separated string i.e.: Tag1,Tag2,Tag3 or Tag1, Tag2, Tag3\n\n- For CSV files, array type fields can be either comma separated strings (i.e.: Tag1,Tag2,Tag3 or Tag1, Tag2, Tag3) or JSON array with quotes (i.e.: `\"[\"Tag1\",\"Tag2\",\"Tag3\"]\"`)- In Addition for CSV the field separator is `;` and line separator is `line-break`.\n\n- Make sure there are no duplicates by the defined primary keys as there is no guarantee on the order in which the import iterates over the rows.\n\n- Date values should comply with the ISO format, i.e. 2019-12-31 or 2019-12-31T23:59:59:999.\n\n- Escape special characters in CSV files with double quotes, for example: `\"<a href=\"\"https://example.com\"\">Link</a>\"`."
  },
  "servers": [
    {
      "url": "https://<base_url>/"
    }
  ],
  "tags": [
    {
      "name": "Security",
      "description": "<a id=\"group-security\"></a>\nThis endpoint exposes the login method in order to create a valid access token for subsequents call to the API, as well as an endpoint for invalidating the current access token. The latter will have the effect of requiring anyone currently using the existing token to login again in order to get the new one."
    },
    {
      "name": "Answers",
      "description": "<a id=\"group-answers\"></a>\nAnswers are the users’ replies to the questions raised by their colleagues in the Questions menu. Other users can vote for answers they think are best, like them, and a user with the right permission can also validate an answer to indicate it is the right or best one.\n\n### Fields\n\n| Field                | Type        | Required | Readonly   | OrderBy | Description               |\n|----------------------|:-----------:|:--------:|:----------:|:-------:|---------------------------|\n|`answer_id`           |  string     |    x     |     x      |         | Unique id of the answer |\n|`question_id`         |  string     |          |     x      |         | Reference to the question |\n|`user_id`             |  string     |          |     x      |         | User id answering this question |\n|`text`                |  string     |          |     x      |         | The answer        |\n|`image`               |  string     |          |     x      |         | The url to the image  |\n|`is_verified`         |  boolean    |          |     x      |         | Whether or not this is a verified answer | \n|`user_verified`       |  string     |          |     x      |         | User id verifying this answer | \n|`likes`               |  number     |          |     x      |         | Likes count | \n|`created_date`        |  date       |          |     x      |         | Creation date             |\n|`updated_date`        |  date       |          |     x      |    x    | Last update date          |"
    },
    {
      "name": "Badges",
      "description": "<a id=\"group-badges\"></a>\nA badge is a customized reward earned by a learner after completing a lesson.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`badge_id`            |  string        |    x     |    x     |         | Unique id of the badge    |\n|`creator_id`          |  string        |          |    x     |         | Unique id of the badge creator    |\n|`title`               |  string        |          |    x     |         | Badge title     |\n|`icon`                |  string        |          |    x     |         | Badge icon name |\n|`created_date`        |  date          |          |    x     |         | Creation date             |\n|`updated_date`        |  date          |          |    x     |    x    | Last update date          |"
    },
    {
      "name": "Bots",
      "description": "<a id=\"group-bots\"></a>\nThis API is exclusively used to handle bots external to YOOBIC. External bots are an AI feature of the YOOBIC chat that enhances user interactions by automating workflows and streamlining processes to boost efficiency. By using third party bot APIs on top of the YOOBIC NEO chatbots, we enable users to access an unlimited number of specialised bots for back-office automations, HR, IT help, and more.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`bot_id`              |  string        |          |    x     |         | Unique id of the bot      |\n|`creator_id`          |  string        |          |    x     |         | Unique id of the badge creator    |\n|`name`                |  string        |          |          |         | Bot name     |\n|`is_active`           |  boolean       |          |          |         | Enable or disable this bot (default: true) |\n|`webhook_url`         |  string        |          |          |         | Unique http target url to the bot |\n|`created_date`        |  date          |          |    x     |         | Creation date             |\n|`updated_date`        |  date          |          |    x     |    x    | Last update date          |"
    },
    {
      "name": "Bot Messages",
      "description": "<a id=\"group-bot_messages\"></a>\nBot analytics allow you to improve your bots by understanding how your teams use them and how satisfied they are with the answers. The key metrics available can be used to monitor the usage of the feature and to analyze frequent questions where knowledge is lacking in order to create new content and add it to the NEO Chatbot sources.\n\n### Fields\n\n| Field | Type | Required | Readonly | OrderBy | Description |\n|-------|:----:|:--------:|:--------:|:-------:|-------------|\n|`bot_id`| string | | x | | Unique id of the bot |\n|`bot_message_id`| string | | x | | Unique if of the message sent to the bot |\n|`user_id`| string | | x | | Unique id of the user that sent the question |\n|`username`| string | | x | | Username of the user that sent the question |\n|`question`| string | | x | | Question of the user |\n|`answer`| string | | x | | Answer of the bot to the question of the user |\n|`feedback`| boolean | | x | | True if the user put a ‘thumbs up’ and false if the user put a ‘thumbs down' on the answer of the bot |\n|`answered`| boolean | | x | | True if the question was answered and false if it wasn’t (equivalent to ‘I don’t know' response from the bot') |\n|`created_date`| date | | x | | Created Date |\n|`updated_date`| date | | x | | Updated Date |"
    },
    {
      "name": "Business KPIs data - salesdata",
      "description": "<a id=\"group-salesdata\"></a>\nBusiness KPIs data allows integration of external business data per location. This is the data that will be used to display Business KPIs in the Activity Hub or Today's focus widget of the application.\n\nPeriods can be: yearly, monthly, weekly, or daily.\n\nSalesdata uniqueness is determined by:\n\n- store_id\n\n- reporting_date\n\n- title\n\n- category\n\n- value_frequency\n\n- target\n\nIn case a new salesdata is created with values for the latter five which already exist in a salesdata, then the salesdata will be updated. Otherwise, a new salesdata entry will be created\n\nThe category parameter refers to which KPI will use this data point to calculate the value in the app. For example, the 5 predefined KPIs are based on the following categories:\n\n- `sales` for the Sales KPI, calculated as the Sum of all sales data in the KPI's frequency\n\n- `sales` and `transactions` for the Average Basket KPI, calculated as SUM(sales) / SUM(transactions) in the KPI's frequency\n\n- `items` and `transactions` for the UPT KPI, calculated as SUM(items) / SUM(transactions) in the KPI's frequency\n\n- `transactions` and `traffic` for the Conversion rate KPI, calculated as SUM(transactions) / SUM(traffic) in the KPI's frequency\n\n- `reviews` for the Reviews, calculated as AVG(reviews) in the KPI's frequency\n\n- **For Custom KPIs**, the category must match the category defined in the **Business KPI configuration menu**.\n\n**Reporting Date**\n\n- The `reporting_date` must correspond to the expected calculation period of the KPI.\n\n- Example: For daily sales data, push one entry per store each day (e.g., timestamp at store closing time).\n\n**Targets**\n\n- Define a target with the parameter `target: true`.\n\n- The `reporting_date` should correspond to the target's period.\n  - For weekly targets, use the timestamp for the start of the week.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`salesdata_id`        |  string        |          |    x     |         | Unique id of the salesdata|\n|`store_id`            |  string        |          |          |    x    | Unique id of the store    |\n|`store_client_id`     |  string        |          |          |         | client_id of the store. Can be used instead of the store_id |\n|`reporting_date`      |  date          |     x    |          |         | Reporting date            |\n|`title`               |  string        |     x    |          |    x    | The salesdata report title|\n|`category`            |  string        |     x    |          |    x    | Salesdata name      |\n|`value`               |  number        |     x    |          |         | Salesdata value         |\n|`value_currency`      |  string        |          |          |         | Salesdata currency      |\n|`value_frequency`     |  string        |     x    |          |         | The product measuring frequency : yearly / monthly / weekly / daily / hourly     |\n|`target`              |  boolean       |          |          |         | Indicates if the associated value is a target |\n|`created_date`        |  date          |          |    x     |         | Creation date             |\n|`updated_date`        |  date          |          |    x     |    x    | Last update date          |\n\nEither store_id or store_client_id can be used."
    },
    {
      "name": "Campaigns",
      "description": "<a id=\"group-campaigns\"></a>\nA campaign is the main structure used to send tasks to frontline teams and collect data about how they execute them. It is essentially a configurable form with instructions and fields (checklists, buttons, photos, open text, etc.) that users fill in from the field. They are used for many operational needs like audits, promotions, checklists, surveys, health and safety monitoring, and other day-to-day activities.\n\nThere are 4 different types of campaigns available in YOOBIC:\n\n- Quick task\n\n- Memo\n\n- Form\n\n- Workflow\n\nArchived campaigns are visible in the [campaigns_archive](#group-campaigns_archive) table.\n\n### Fields\n\n| Field                | Type        | Required | Readonly   | OrderBy | Description               |\n|----------------------|:-----------:|:--------:|:----------:|:-------:|---------------------------|\n|`campaign_id`         |  string     |    x     |     x      |         | Unique id of the campaign |\n|`title`               |  string     |    x     |            |         | The campaign title        |\n|`description`         |  string     |          |            |         | The campaign description  |\n|`type`                |  string     |    x     |            |         | The campaign type  (mission, service, todo, poll, lesson, visit)     |\n|`group_ids`           |  array      |    x     |            |         | Group ids that can see this campaign |\n|`user_ids`            |  array      |          |            |         | User ids that can see this campaign |\n|`tags`                |  array      |          |            |         | The list of tags          |\n|`scoring`             |  boolean    |          |            |         | true if scoring is enabled for missions from this campaign, false otherwise | \n|`recurring`           |  boolean    |          |            |         | true if this campaign is recurring, false if it is a one-off campaign | \n|`active`              |  boolean    |          |    x       |         | true if campaign is neither paused nor archived | \n|`archived`            |  boolean    |          |    x       |         | true if campaign is paused | \n|`icon_url`            |  string     |          |            |         | `_downloadURL` of a File or a `url` of a Photo. Icon size recommendation is 100px X 100px. |\n|`background_url`      |  string     |          |            |         | `_downloadURL` of a File or a `url` of a Photo. |\n|`page_titles`         |  array      |          |            |         | An ordered list of page titles i.e. first title is the first page title etc. |\n|`questions`           |  array      |          |            |         | The campaign's questions  |\n|`created_date`        |  date       |          |     x      |         | Creation date             |\n|`updated_date`        |  date       |          |     x      |    x    | Last update date          |\n\nThe `questions` field is defined as an array of:\n| Field                | Type           | Description               |\n|----------------------|----------------|---------------------------|\n|`question_id`         |  string        | Unique id of the question |\n|`question_type`       |  string        | The type of the question. Supported types: `text`, `textarea`, `toggle`, `checkbox`, `information`, `todo`, `photo`, `multiphotos`, `selectbuttons`, `select`, `selectmulti`, `address`, `date`, `number`, `starrating`, `image`. |\n|`question`            |  string        | The title of the question |\n|`question_description`|  string        | The description of the question |\n|`mandatory`           |  boolean       | If `true`, the question has to be answered. Defaults to `false` |\n|`page_number`         |  number        | The number of the page the question appears in |\n|`question_number`     |  number        | The number of the question |\n|`hide_mobile`         |  boolean       | Hide the question on mobile devices. Defaults to `false`. |\n|`question_attributes` |  object        | Question attributes for specific question types.|\n\nThe `question_attributes` field is defined as an object with the following fields:\n| Field                | Type           | Description               |\n|----------------------|----------------|---------------------------|\n|`max_photos`          |  number        | Maximum of allowed photos to upload. Applies only to questions of type `multiphotos`.         |\n|`values`              |  array         | Values to be displayed as options to choose from in the question. Applies only to questions of type `selectbuttons`, `select`, `selectmulti`.           |\n|`min`                 |  number        | If present, value must be above or including it. Applies only to questions of type `number`. |\n|`max`                 |  number        | If present, value must be below or including it. Applies only to questions of type `number`, `starrating`. |\n\n#### Question Types\n\n<a id=\"group-campaigns-question-types\"></a>\n**Important**    \nBelow is a list of the supported types and their value types:\n\n| question_type | Type           | Description |\n|---------------|:--------------:|-------------|\n| address       |  string        |             |\n| date          |  string        |             |\n| information   |  string        |             |\n| select        |  string        | Single value chosen from the `values` defined in `question_attributes` |\n| textarea      |  string        |             |\n| text          |  string        |             |\n| photo         |  URL           | A valid image URL      |\n| multiphotos   |  array of URLs | Valid image URLs and up to `max_photos` defined in `question_attributes`     |\n| selectbuttons |  array         | Multiple values chosen from the `values` defined in `question_attributes`      |\n| selectmulti   |  array         | Multiple values chosen from the `values` defined in `question_attributes`      |\n| number        |  number        | Might have min, max borders as defined in `question_attributes`      |\n| starrating    |  number        | Might have max border as defined in `question_attributes`. No negatives allowed.      |\n| checkbox      |  boolean       |             |\n| toggle        |  boolean       |             |\n| image         |                | This is a readonly property (informative) which does not have a value. |\n\n**Important**\n\n- If `page_titles` does not have a title for a given page then a default will be given -    \nSo i.e. if the values are -    \n```json\n[ \"first chapter\", \"second chapter\" ]\n``` \nand there are three pages in total, then the title for the third page will be `Page 3`.\n\n- To filter on `live` campaigns only you should filter accordingly: \n```json\n{ \"active\": true,  \"archived\": { \"neq\": true } }\n```"
    },
    {
      "name": "Catalogs",
      "description": "<a id=\"group-catalogs\"></a>\nHolds a list of catalogs and their relevant data.\nEach catalog contains a list of [`products`](#group-products).\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|-------------|\n|`catalog_id`          |  string        |     x    |    x     |    x    | Unique id of the catalog  |\n|`title`               |  string        |     x    |          |         | The catalog title         |\n|`group_ids`           |  array         |     x    |          |         | Group ids that can see this catalog     |\n|`user _ids`           |  array         |          |          |         | User ids that can see this catalog     |\n|`created_date`        |  date          |          |    x     |         | Creation date             |\n|`updated_date`        |  date          |          |    x     |    x    | Last update date          |"
    },
    {
      "name": "Chats",
      "description": "<a id=\"group-chats\"></a>\nChats are used for internal communication between users directly in the YOOBIC app.\n\n### Fields\n\n| Field | Type | Required | Readonly | OrderBy | Description |\n|-------|:----:|:--------:|:--------:|:-------:|-------------|\n|`sender_id`| string | x | | | Unique id of the user account from which the message is sent |\n|`recipient_id`| string | x | | | Unique id of the user that will receive the message |\n|`text`| string | x | | | Text of the message |\n|`attachments`| file | | | | File link |"
    },
    {
      "name": "Comments",
      "description": "<a id=\"group-comments\"></a>\nGet all feeds comments.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description                                                        |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------                                         |\n|`comment_id`          |  string        |          |    x     |         | Unique id of the comment                                           |\n|`news_id`             |  string        |          |    x     |         | Related feed reference                                             |\n|`user_id`             |  string        |          |    x     |         | Related user reference                                             |\n|`text`                |  string        |          |    x     |         | comment text                                                       |\n|`text_en`             |  string        |          |    x     |         | Comment text translated to English                                 |\n|`language`            |  string        |          |    x     |         | Comment text automatically detected language                       |\n|`sentiment`           |  number        |          |    x     |         | Comment text sentiment represented by a number between -1 and 1    |"
    },
    {
      "name": "Communities",
      "description": "<a id=\"group-communities\"></a>\nCommunities are a sub-section of the general Newsfeed tab in YOOBIC. Unlike the Newsfeed, where you can read all the posts shared for your company, a community can be narrowed to a specific topic and a specific audience, chosen by the Community creator. Depending on the Community Type ('open', ‘secret’ or ‘compulsory’), users can join or leave communities to decide what kind of content they want to see in their feed. This feature customises the content in the newsfeed for each user.\n\n### Fields\n\n| Field                     | Type       | Required     | Readonly     | OrderBy     | Description                                               |\n|---------------------------|:----------:|:------------:|:------------:|:-----------:|-----------------------------------------------------------|\n| `community_id`            | String     |              | x            |             | Unique id of the community                                                  |\n| `name`                    | String     | x            |              |             | Name of the community                                                       |\n| `description`             | String     |              |              |             | Description of the community                                                |\n| `creator_id`              | String     |              | x            |             | Unique id of a user who created the community                               |\n| `type`                    | String     | x            |              |             | Type of the community, can be “open”, “secret” or \"compulsory\"              |\n| `audience_id`             | String     | x            |              |             | Audience id that has access to this community                               |\n| `allow_posts_from_all`    | Boolean    |              |              |             | Enable all members of the community to post                                 |\n| `disable_notifications`   | Boolean    |              |              |             | Disable notifications for new posts from this community                     |\n| `hide_posts_from_newsfeed`| Boolean    |              |              |             | Don’t show the posts from this community in the main newsfeed               |\n| `created_date`            | Date       |              | x            |             | Created Date                                                                |\n| `updated_date`            | Date       |              |              |             | Updated Date                                                                |"
    },
    {
      "name": "Community Posts",
      "description": "<a id=\"group-community-posts\"></a>\nThe posts made in the communities appear both in the community newsfeed and in the main newsfeed, along with the posts in the normal newsfeed (unless otherwise configured in the Community).\n\n### Post Fields\n\n| Field            | Type   | Required | Readonly | OrderBy | Description                          |\n|------------------|:------:|:--------:|:--------:|:-------:|--------------------------------------|\n| `post_id`        | String |          | x        |         | Unique id of the post                |\n| `description`    | String | x        |          |         | Content of the post                  |\n| `community_id`   | String | x        |          |         | Community id where the post is published |\n| `user_id`        | String | x        |          |         | Unique ID of the user who will be shown as the publisher of the post |\n| `publish_type`   | String | x        |          |         | Type of posting, can be “postnow” or “schedule” |\n| `publish_date`   | Date   |          |          |         | Required field, only if you set the publish_type to ‘schedule’, to define the date when the post will appear in the community |\n| `images`         | Array  |          |          |         | List of URLs of images in the post   |\n| `created_date`   | Date   |          | x        |         | Created Date                         |\n| `updated_date`   | Date   |          | x        | x       | Updated Date                         |\n\n### Post Comments Fields\n\n| Field              | Type   | Required | Readonly | OrderBy | Description                                   |\n|--------------------|:------:|:--------:|:--------:|:-------:|-----------------------------------------------|\n| `comment_id`       | String |          | x        |         | Unique id of the post comment                 |\n| `comment`          | String | x        |          |         | Content of the post comment                   |\n| `user_id`          | String | x        |          |         | Unique id of a user who created the comment |\n| `community_post_id`| String |          |          |         | Community post id where the comment appears   |\n| `community_id`     | String |          | x        |         | Community id where the original post is published |\n| `created_date`     | Date   |          | x        |         | Created Date                                  |\n| `updated_date`     | Date   |          | x        | x       | Updated Date                                  |"
    },
    {
      "name": "Competencies",
      "description": "<a id=\"group-competencies\"></a>\nA competency of a course allows measuring the success rate of a learner on all courses linked to that competency. Each course can be linked to only one competency.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`competency_id`       |  string        |    x     |    x     |         | Unique id of the competency    |\n|`creator_id`          |  string        |          |    x     |         | Unique id of the competency creator     |\n|`title`               |  string        |          |    x     |         | Competency title     |\n|`description`         |  date          |          |    x     |         | Competency description |\n|`created_date`        |  date          |          |    x     |         | Creation date             |\n|`updated_date`        |  date          |          |    x     |    x    | Last update date          |"
    },
    {
      "name": "Course Categories",
      "description": "<a id=\"group-course-categories\"></a>\nCategory in courses allows grouping available courses by topics or themes in the Discover section of the app. Each course can be linked to only one category.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`course_category_id`  |  string        |    x     |    x     |         | Unique id of the course category    |\n|`creator_id`          |  string        |          |    x     |         | Unique id of the course category creator    |\n|`title`               |  string        |          |    x     |         | Course category title     |\n|`icon`                |  string        |          |    x     |         | Course category icon name |\n|`created_date`        |  date          |          |    x     |         | Creation date             |\n|`updated_date`        |  date          |          |    x     |    x    | Last update date          |"
    },
    {
      "name": "Courses",
      "description": "<a id=\"group-courses\"></a>\nWhen a plan is assigned to a user it creates a course.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`course_id`           |  string        |    x     |    x     |         | Unique id of the course    |\n|`plan_id`             |  string        |    x     |          |         | Unique id of the plan     |\n|`user_id`             |  string        |    x     |          |         | Unique id of the user     |\n|`assignment_date`     |  date          |          |    x     |         | Date when the user has been assigned to the plan |\n|`earned_points`       |  number        |          |    x     |         | Number of points earned by the user for this course |\n|`start_date`          |  date          |          |    x     |         | Date when the user finished their first lesson of the course |\n|`duration`            |  number        |          |    x     |         | Minutes spent on this course |\n|`finished_date`       |  date          |          |    x     |         | Date when the user completed the course |\n|`due_date`            |  date          |          |    x     |         | Due date of the course     |\n|`created_date`        |  date          |          |    x     |         | Creation date             |\n|`updated_date`        |  date          |          |    x     |    x    | Last update date          |\n\n#### Course IDs\n\n<a id=\"group-courses-ids\"></a>\nBelow, you can find detailed descriptions of some of the course-related IDs mentioned above:\n\n| ID             | Description |\n|----------------|-------------|\n| `plan_id`      | The course object that Admins can see in the Course Manager. This is the ID of that course. |\n| `course_id`    | The course object that a learner can see in their Courses menu. It's unique for each learner, meaning that even if two learners see the same course in their courses menu, the course they see has a different `course_id`. |\n| `lesson_id`    | The ID of a completed lesson. This ID is unique for each learner, meaning that if two learners completed the same lesson, their completed lesson has a different `lesson_id`. |\n| `campaign_id`  | The lesson object linked to a course. This is the ID of the lesson. |"
    },
    {
      "name": "Custom Model Instances - Datasets",
      "description": "<a id=\"group-custom_model_instances\"></a>\nDatasets are where all your data is stored. They have some similarities to spreadsheets, for example they look similar and support some of the same functions and formulas. But, in terms of power, efficiency, and elasticity, datasets tend to behave more like a database. Datasets in Yoobic can used all the different data types available in a Yoobic Campaign.\n\nDatasets can be used to:\n\n- Display your data dynamically in Yoobic’s missions\n\n- Update dynamically your data based on Yoobic’s missions\n\n- Filter, sort, summarise, and link data\n\n- Preserve data integrity\n\n- Trigger automations and run calculation\n\n### Endpoint: Inventory\n\nYOOBIC’s dataset collection is stored in the inventory collection therefore we refer to the inventory endpoint to create or update a dataset.\n\n### Custom Model definition\n\nA dataset is identified in YOOBIC’s public API by a custom_model_id . We refer to datasets as a Custom Model because each dataset object is customizable (different field type available for each of the fields). Consequently, each row of a dataset (aka Custom_model) is referred to as a custom_model_instances.\n\n### How to create new instances in a dataset\n\nImport a csv/excel file containing in the header the name of the field and in the cells the value you want to import. If you are not sure of the format of the csv/excel file, we recommend you to first export your dataset to a csv/excel file and then to use this file as a template for the import.\n\n### How to update existing instances in a dataset\n\nImport a csv/excel file containing in the header the name of the field and in the cells the value you want to import. If you wish to update the value, you have to provide in the custom_model_instances_id column the value of the instance you wish to update. It’s a unique identifier generated by YOOBIC. The easiest way to do it is to export the existing dataset, then to modify the value directly in the file and finally to import it into YOOBIC.\n\n### Fields\n\n| Field                             | Type           | Required | Readonly | OrderBy | Description               |\n|-----------------------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`custom_model_instances_id`        |  string        |          |    x     |         | Unique identifier         |\n\n**Important**    \nThe columns of the export/import depend on the inventory's questions.    \nEach `question_id` is a column header. See [`inventory`](#group-inventory) for more details."
    },
    {
      "name": "Events",
      "description": "<a id=\"group-events\"></a>\nEvents can be created and managed through the YOOBIC app and are displayed in the calendar. Events can be public (visible to all users sharing at least one group with it) or private (visible only to users invited to it).\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`event_id`            |  string        |          |    x     |         | Unique id of the event    |\n|`title`               |  string        |    x     |          |         | The title of the event    |\n|`description`         |  string        |    x     |          |         | The description of the event. HTML can be used for formatting|\n|`start_date`          |  date          |    x     |          |         | Start date of the event in UTC|\n|`end_date`            |  date          |    x     |          |         | End date of the event in UTC|\n|`event_type`          |  string        |    x     |          |         | `private` or `public`      |\n|`all_day`             |  boolean       |          |          |         | `true` or `false`. if `true`, start_date should equal to end_date|\n|`tags`                |  array         |          |          |         | Event’s list of tags      |\n|`category`            |  string        |          |          |         | Category of the event. Must match the title of an existing event category|\n|`user_ids`            |  array         |          |          |         | Required for private events only. Ignored for public events. User ids that are invited to this event|\n|`usernames`           |  array         |          |          |         | For private events: usernames of the users invited to this event. Alternative to `user_ids`. Populated on export|\n|`group_ids`           |  array         |          |          |         | Required for public events. Ignored for private events. Group ids of users who should be invited to this event|\n|`images`              |  array         |          |          |         | Links to uploaded images. Used as illustration on the event page. Max 3 images per event|\n|`store_id`            |  string        |          |          |         | Store the event is linked to|\n|`shared`              |  boolean       |          |    x     |         | If event shared on feeds (true/false)|\n|`timezone`            |  string        |          |          |         | The Time Zone allows to display the hourly sales data in the store insights in the local time of the store. |\n|`address`             |  string        |          |          |         | The address of the event |\n|`virtual_event_link`  |  string        |          |          |         | Any link e.g. video call |\n|`total_users`         |  number        |          |    x     |         | Total user count attending |\n|`is_assigned_event_type`| boolean      |          |          |         | `true` or `false`. Marks the event as an assigned event type|\n|`is_informative`      |  boolean       |          |          |         | `true` or `false`. Informative event. Default `false`|\n|`video_urls`          |  array         |          |          |         | Links to uploaded videos|\n|`audio_urls`          |  array         |          |          |         | Links to uploaded audio files|\n|`file_ids`            |  array         |          |          |         | Ids of documents attached to the event|\n|`campaign_id`         |  string        |          |          |         | Id of the campaign linked to the event|\n|`is_share_location`   |  boolean       |          |          |         | `true` or `false`. Share the event location|\n|`location_type`       |  string        |          |          |         | Location type the event is linked to|\n|`users_query`         |  object        |          |          |         | Query object used to compute the invited users|\n|`use_users_query`     |  boolean       |          |          |         | `true` or `false`. If `true` the invitees are computed from `users_query`|\n|`recurrence`          |  object        |          |          |         | Recurrence rule of the event|\n|`disable_notifications`| boolean       |          |          |         | `true` or `false`. Disable notifications for this event. Default `false`|\n|`disable_likes`       |  boolean       |          |          |         | `true` or `false`. Disable likes on this event. Default `true`|\n|`disable_reactions`   |  boolean       |          |          |         | `true` or `false`. Disable reactions on this event. Default `true`|\n|`disable_comments`    |  boolean       |          |          |         | `true` or `false`. Disable comments on this event. Default `true`|\n|`creator_id`          |  string        |          |          |         | User id of the event creator|\n|`created_date`        |  date          |          |          |         | Creation date             |\n|`updated_date`        |  date          |          |          |    x    | Last update date          |"
    },
    {
      "name": "Files",
      "description": "<a id=\"group-files\"></a>\nFiles provides information about the external files used in the application.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`file_id`             |  string        |    x     |    x     |         | Unique id of the file     |\n|`folder_id`           |  string        |          |    x     |         | Unique id of the parent folder of the file     |\n|`group_ids`           |  string        |          |          |         | Unique id of the groups that have visibility of the file     |\n|`size`                |  Number        |          |    x     |         | The size of the file in bytes      |\n|`folder_name`         |  string        |          |    x     |         | Name of the parent folder of the file      |\n|`filename`            |  string        |          |    x     |         | The name of the file      |\n|`download_url`        |  string        |          |    x     |         | The url of the file       |\n|`mime_type`           |  string        |          |    x     |         | The mime type of the file |\n|`created_date`        |  date          |          |    x     |         | Creation date             |\n|`updated_date`        |  date          |          |    x     |    x    | Last update date          |"
    },
    {
      "name": "Geofilters",
      "description": "<a id=\"group-geofilters\"></a>\nprovides a mapping between users and the stores they have permission to visit\n\n- Each user may have more than one store mapped. If enabled, users could only book missions to the specified stores.\n\n- Geographic filters are extremely important in Operations. They are what control which stores a user can or can't see.\n\n- Geographic filters are assigned to stores and store types.\n\n- There are two types of geographic filters: non-dynamic and dynamic. Non dynamic filters are made by attaching stores to a user, dynamic filters are made by attaching store types to a user.\n<img src=\"https://user-images.githubusercontent.com/31584145/46032347-06a05180-c104-11e8-87f3-1bddb628a90c.png\">\n\n- With the exception of Stores, geographic filters should always be dynamic. This is because it is easier to add a store to a type so that it inherits its geographic filter than it is to add a store to each geographic filter it needs to be in.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`geofilter_id`        |  string        |     x    |    x     |         | Unique geofilter id       |\n|`user_id`             |  string        |     x    |          |    x    | Unique user id            |\n|`store_ids`           |  array         |          |          |    x    | Unique store ids           |\n|`store_client_ids`    |  array         |          |          |         | External unique ids of the stores as it may exists in your Information System|\n|`store_type_names`    |  array         |          |          |         | The names of the store types |\n|`store_type_ids`      |  array         |          |          |    x    | The ids of the store types |\n|`created_date`        |  date          |          |    x     |         | Created Date |\n|`updated_date`        |  date          |          |    x     |    x    | Updated Date |\n\nOne of either fields is required in order to resolve the mapping between a user and store/s:\n\n- store_ids\n\n- store_client_ids\n\n- store_type_ids\n\n- store_type_names"
    },
    {
      "name": "Groups",
      "description": "<a id=\"group-groups\"></a>\nGroups are used to manage users. This is VERY important as Groups are what make using the application much simpler. By adding Users to Groups, when you need to modify sets of Users, you just change the groups properties and all the Users in the Group inherit these properties (much better than changing each individual user manually). Moreover, Groups allow to restrict visibility when some entities are shared (Missions, News, Documents, ...)\n\n### How do I structure my groups ?\n\nEach Group usually corresponds to a population of Users (ex: Admin, HQ, VM Managers, Retail Area Managers, Stores, etc.).\n<img src=\"https://user-images.githubusercontent.com/4806944/41535702-fd95441a-730b-11e8-8fbe-603f8a43f51f.png\">\n\n### General Group\n\nUsually there is a general group, which has the name of the tenant.\nThis group will contain all of the other Groups and will give the Users access to shared information.\n\nThen you will usually find a Group for each type of user. \nThese usually fall into one of these categories:\n\n* Admin\n\n* Area Managers\n\n* HQ\n\n* Itinerants\n\n* Store Users\n\n### Fields\n\n| Field                       | Type     | Required | Readonly | OrderBy | Description              |\n|-----------------------------|:--------:|:--------:|:--------:|:-------:| -------------------------|\n|`group_id`                   |  string  |          |    x     |         | The group_id corresponds to the Group title in lowercase letters, with `_` instead of spaces, and without special characters |\n|`title`                      |  string  |     x    |          |         | Group Title |\n|`description`                |  string  |          |          |         | Group Description |\n|`group_ids`                  |  array   |          |          |    x    | group ids that belong to this group                |\n|`user_ids`                   |  array   |          |          |    x    | user ids that belong to this group                |\n|`created_date`               |  date    |          |    x     |         | Created Date |\n|`updated_date`               |  date    |          |    x     |    x    | Updated Date |\n|`icon_url`                   |  string  |          |          |         | Icon URL |\n\n### Tip\n\nTo summarise, remember that:\n\n* Users are organised in groups\n\n* Groups must be created prior to importing any users to the database\n\n* A user can belong to multiple groups\n\n* There can be sub-groups\n\n* Users inherit their level or rights from the group(s) they belong to\n<img src=\"https://user-images.githubusercontent.com/4806944/41536506-7949d9d4-730e-11e8-81d8-62c0bc39c9e3.png\">"
    },
    {
      "name": "Incentives Kpi",
      "description": "<a id=\"group-incentives-kpi\"></a>\nIncentives-KPIs are an indicator for users’ progress within an incentive. Each incentives-kpi represents the sale of one or more items of a single product. When a user submits new progress for an incentive, the data is then broken down product by product, creating one or several new kpis. In case there are no products involved, submitting new progress will generate a single incentive kpi with an empty product\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description                                    |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|------------------------------------------------|\n|`incentive_kpi_id`    |  string        |          |    x     |         | Unique id incentive_kpi                        |\n|`incentive_id`        |  string        |    x     |          |         | The incentive_id                               |\n|`owner_id`            |  string        |    x     |          |         | The user who submitted the kpi                 |\n|`username`            |  string        |          |    x     |         | The owner username                             |\n|`first_name`          |  string        |          |    x     |         | The owner first name                           |\n|`last_name`           |  string        |          |    x     |         | The owner last name                            |\n|`participant_type`    |  string        |    x     |          |         | Type of incentives-kpi ('individual' or 'team')|\n|`start_time`          |  date          |    x     |          |         | The start time of the kpi                      |\n|`end_time`            |  date          |    x     |          |         | The end time of the kpi                        |\n|`participant_user_id` |  string        |          |          |         | The participant user in kpi                    |\n|`participant_group_id`|  string        |          |          |         | The participant group in kpi                   |\n|`product_id`          |  string        |          |          |         | product_id involved in the kpi                 |\n|`price`               |  number        |          |    x     |         | The product's price                            |\n|`count`               |  number        |          |          |         | Number of units in the kpi                     |\n|`weight`              |  number        |          |    x     |         | Weight of product in total calculation         |\n|`total`               |  number        |          |          |         | Total value of the kpi                         |\n|`created_date`        |  date          |          |    x     |         | KPI submission date                            |\n|`updated_date`        |  date          |          |    x     |    x    | Last update date                               |\n\nOnly one of these fields is required:\n\n- participant_user_id\n\n- participant_group_id\n\n**Important:**\n\n- If `participant_type` equals `teams`, `participant_group_id` must be filled with `group_id` value.\n\n- If `participant_type` equals `individual`, `participant_user_id` must be filled with `user_id` value.\n\n- `product_id` is optional and appear only if product is part of the related incentive.\n\n- `price` has a value only if a `product_id` exists."
    },
    {
      "name": "Inventory",
      "description": "<a id=\"group-inventory\"></a>\nAn Inventory is a custom data structure to manage and use data in a similar way as in a spreadsheet or database directly from the YOOBIC Platform. Each inventory has a defined structure that rely on the same fields as in a YOOBIC campaign.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`inventory_id`        |  string        |    x     |    x     |         | Unique id of the inventory |\n|`description`         |  string        |          |    x     |         | The inventory description |\n|`name`                |  string        |          |    x     |         | The inventory name |\n|`title`               |  string        |          |    x     |         | The inventory title       |\n|`group_ids`           |  array         |          |    x     |         | Group ids that can see this inventory |\n|`page_titles`         |  array         |          |    x     |         | An ordered list of page titles i.e. first title is the first page title etc. |\n|`questions`           |  array         |          |    x     |         | The inventory's questions  |\n|`created_date`        |  date          |          |    x     |         | Creation date             |\n|`updated_date`        |  date          |          |    x     |    x    | Last update date          |\n\nThe `questions` field is defined as an array of:\n| Field                | Type           | Description               |\n|----------------------|----------------|---------------------------|\n|`question_id`         |  string        | Unique id of the question |\n|`question_type`       |  string        | The type of the question. Supported types: `text`, `textarea`, `toggle`, `checkbox`, `information`, `todo`, `photo`, `multiphotos`, `selectbuttons`, `select`, `selectmulti`, `address`, `date`, `number`, `starrating`, `image`. |\n|`question`            |  string        | The title of the question |\n|`question_description`|  string        | The description of the question |\n|`mandatory`           |  boolean       | If `true`, the question has to be answered. Defaults to `false` |\n|`page_number`         |  number        | The number of the page the question appears in |\n|`question_number`     |  number        | The number of the question |\n|`hide_mobile`         |  boolean       | Hide the question on mobile devices. Defaults to `false`. |\n|`question_attributes` |  object        | Question attributes for specific question types.|\n\nThe `question_attributes` field is defined as an object with the following fields:\n| Field                | Type           | Description               |\n|----------------------|----------------|---------------------------|\n|`max_photos`          |  number        | Maximum of allowed photos to upload. Applies only to questions of type `multiphotos`.         |\n|`values`              |  array         | Values to be displayed as options to choose from in the question. Applies only to questions of type `selectbuttons`, `select`, `selectmulti`.           |\n|`min`                 |  number        | If present, value must be above or including it. Applies only to questions of type `number`. |\n|`max`                 |  number        | If present, value must be below or including it. Applies only to questions of type `number`, `starrating`. |\n\n#### Question Types\n\n<a id=\"group-campaigns-question-types\"></a>\n**Important**    \nBelow is a list of the supported types and their value types:\n\n| question_type | Type           | Description |\n|---------------|:--------------:|-------------|\n| address       |  string        |             |\n| date          |  string        |             |\n| information   |  string        |             |\n| select        |  string        | Single value chosen from the `values` defined in `question_attributes` |\n| textarea      |  string        |             |\n| text          |  string        |             |\n| photo         |  URL           | A valid image URL      |\n| multiphotos   |  array of URLs | Valid image URLs and up to `max_photos` defined in `question_attributes`     |\n| selectbuttons |  array         | Multiple values chosen from the `values` defined in `question_attributes`      |\n| selectmulti   |  array         | Multiple values chosen from the `values` defined in `question_attributes`      |\n| number        |  number        | Might have min, max borders as defined in `question_attributes`      |\n| starrating    |  number        | Might have max border as defined in `question_attributes`. No negatives allowed.      |\n| checkbox      |  boolean       |             |\n| toggle        |  boolean       |             |\n| image         |                | This is a readonly property (informative) which does not have a value. |\n\n**Important**\n\n- If `page_titles` does not have a title for a given page then a default will be given -    \nSo i.e. if the values are -    \n```json\n[ \"first chapter\", \"second chapter\" ]\n``` \nand there are three pages in total, then the title for the third page will be `Page 3`.\n\n- To filter on `live` campaigns only you should filter accordingly: \n```json\n{ \"active\": true,  \"archived\": { \"neq\": true } }\n```"
    },
    {
      "name": "Lessons",
      "description": "<a id=\"group-lessons\"></a>\nLessons are the activities the users perform during their trainings.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`lesson_id`           |  string        |    x     |    x     |         | Unique id of the lesson   |\n|`title`               |  string        |          |    x     |         | Title of the lesson       |\n|`type`                |  string        |          |    x     |         | Type of lesson (currently just lesson) |\n|`campaign_id`         |  string        |          |    x     |    x    | Unique id of the campaign |\n|`plan_id`             |  string        |          |    x     |         | Unique id of the plan     |\n|`course_id`           |  string        |          |    x     |         | Unique id of the course   |\n|`user_id`             |  string        |          |    x     |         | Unique id of the user     |\n|`status`              |  string        |          |    x     |    x    | Whether the lesson is finished or not     |\n|`points`              |  number        |          |    x     |         | Number of points of the lesson |\n|`score`               |  object        |          |    x     |         | Score of the user      |\n|`duration`            |  number        |          |    x     |         | Time spent on the lesson (in minutes)      |\n|`validated`           |  boolean       |          |    x     |         | Whether the lesson is successfull or a failure      |\n|`created_date`        |  date          |          |    x     |         | Creation date             |\n|`updated_date`        |  date          |          |    x     |    x    | Last update date          |\n\nThe `answers` field is defined as an array of:\n| Field                | Type           | Required  | Readonly  | Description               |\n|----------------------|:--------------:|:---------:|:---------:|---------------------------|\n|`question_id`         |  string        |           |     x     | Unique id of the question |\n|`question_type`       |  string        |           |     x     | The type of the question  |\n|`question`            |  string        |           |     x     | The title of the question |\n|`page_number`         |  number        |           |     x     | The number of the page the question appears in |\n|`question_number`     |  number        |           |     x     | The number of the question on the page |\n|`answer`              |  string        |           |     x     | The value of the answer |"
    },
    {
      "name": "Missions",
      "description": "<a id=\"group-missions\"></a>\nMissions are the basic campaign type. The store users will receive missions with fields to complete, for example send a photo of their display or change the location of the new collection in store. The mission creator will define its content from the dashboard, then he will publish it to the appropriate stores. Once the users have completed the mission they will be able to submit it. The managers responsible for the store will then be able to define the mission as compliant (if they deem the answers acceptable) or non compliant (if they believe there is room for improvement). If a mission is evaluated as non compliant, the manager can choose for the user to retake the mission entirely or he can specify which parts of the mission need improving and republish the mission to the store with the rest of the answers already filled in.\n\nTips: a mission is an entity of a campaign published on a store.\n\n<img src=\"https://user-images.githubusercontent.com/4806944/46027402-7576ae00-c0f6-11e8-9579-808251a4aa97.png\" >\n\nA mission is either available, ongoing or finished.\n<img src=\"https://user-images.githubusercontent.com/4806944/46028408-2e3dec80-c0f9-11e8-92c4-673fc5ef4794.png\" >\n\nA finished mission is either \"to validate\", \"compliant\" or \"not compliant\".\n\n- **Available** : a mission is available as soon as it has been published on a store, and hasn't been started yet by a user.\n\n- **Ongoing**: as soon as a user starts or loads a mission, the status of the mission goes from \"available\" to \"ongoing\" (known as `booked` under the status field of a mission)\n\n- **Finished** : once the mission has been submitted, it is finished.\n    - **To validate**: if the mission hasn't been validated yet  and marked as \"compliant\" or \"not compliant\", or isn't configured to be automatically marked as compliant.\n    - **Compliant** \n    - **Not compliant**\n\n- **Scheduled**: a mission is scheduled as soon as it has been published on a store and if `valid_from` date did not reach the current date yet.\n\n- **Archived**: a mission gets status archived as soon as it’s archived\n\n### Fields\n\n<a id=\"group-missions-fields\"></a>\n| Field                          | Type         | Required | Readonly | OrderBy | Description     |\n|--------------------------------|--------------|:--------:|:--------:|:-------:|-----------------|\n|`mission_id`                    |  string      |     x    |     x    |         | Unique id of the mission  |\n|`title`                         |  string      |          |          |         | The title of the mission  |\n|`type`                          |  string      |          |          |    x    | Mission type             |\n|`campaign_id`                   |  string      |          |     x    |    x    | Unique id of the mission's parent campaign |\n|`user_id`                       |  string      |          |     x    |    x    | Unique id of the user who performs the mission   |\n|`creator_id`                    |  string      |          |          |    x    | Unique id of the mission creator  |\n|`store_id`                      |  string      |          |     x    |    x    | Unique id of associated store  |\n|`status`                        |  string      |          |     x    |    x    | Current status of the mission if set: `\"scheduled\"`, `\"booked\"`, `\"finished\"`, `\"archived\"`  |\n|`valid_from`                    |  timestamp   |          |     x    |         | Mission available from   |\n|`republish_count`               |  number      |          |          |         | The number of times the mission was republished  |\n|`available_on_book`             |  boolean     |          |     x    |         | If `true`, a new copy of this mission would be created when the mission is started |\n|`available_on_finished`         |  boolean     |          |     x    |         | If `true`, a new copy of this mission would be created on finish |\n|`booked_date`                   |  timestamp   |          |     x    |         | The date on which the mission was booked to a user  |\n|`due_date`                      |  timestamp   |          |     x    |         | The date by which the mission must be completed |\n|`duration`                      |  number      |          |     x    |         | Time spent on the mission (in minutes)      |\n|`finished_date`                 |  timestamp   |          |     x    |    x    | The date on which the mission was finished  |\n|`score`                         |  object      |          |          |         | The score of the mission as a JSON object `{\"title\": \"my score\", \"value\": 10}`  |\n|`extra_scores`                  |  object      |          |          |         | The extra scores of the mission as a JSON object `{\"score1\": { \"title\": \"my score\", \"value\": 10}}`  |\n|`compliant`                     |  boolean     |          |    x     |         | The compliance of the mission as marked by an area manager: `true` if marked compliant, `false` if marked noncompliant. If nothing is specified and if the mission is finished, `status` will be \"to validate\" |\n|`compliant_by_default`          |  boolean     |          |          |         | If `true` the mission is automatically marked compliant on finish |\n|`validated_date`                |  timestamp   |          |     x    |         | The date on which the mission was validated  |\n|`reason_noncompliant`           |  string      |          |          |         | The reason provided by the area manager to explain why the mission was marked noncompliant |\n|`republished_with_answers`      |  boolean     |          |     x    |         | Has the mission been repulished with the previous answers after being marked noncompliant |\n|`original_mission_id`           |  string      |          |     x    |         | If present, the `mission_id` of the mission that this mission was republished from |\n|`original_reason_noncompliant`  |  string      |          |     x    |         | The `reason_noncompliant` from the original mission that was republished. |\n|`updated_date`                  |  timestamp   |          |     x    |    x    | Mission's last update date  |\n|`created_date`                  |  timestamp   |          |     x    |         | Mission's creation date     |\n|`answers`                       |  array       |          |          |         | Mission's questions and answers, if misssion is finished (see below) |\n|`group_ids`                     |  array       |          |          |         | Group ids that can see this mission |\n|`user_ids`                      |  array       |          |          |         | User ids that can see this mission |\n|`action_plan_progress`          |  number      |          |     x    |         | Completion rate of an action plan.      |\n|`task_number`                   |  number      |          |     x    |         | Auto generated when a new mission is created. The value is unique within a campaign      |\n\n**Important**:    \nPlease note that to retrieve the value of the answers for a specific mission, you will need to use the single mission endpoint.\n\nThe `answers` field is defined as an array of:\n| Field                | Type           | Description               |\n|----------------------|----------------|---------------------------|\n|`question_id`         |  string        | Unique id of the question |\n|`question_type`       |  string        | The type of the question  |\n|`question`            |  string        | The title of the question |\n|`page_number`         |  number        | The number of the page the question appears in |\n|`question_number`     |  number        | The number of the question on the page |\n|`answer`              |  string        | The value of the answer |"
    },
    {
      "name": "Mission Comments",
      "description": "<a id=\"group-mission_comments\"></a>\nPerform operations on comments linked to missions.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description                                                        |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------                                         |\n|`comment_id`          |  string        |          |    x     |         | Unique id of the comment                                           |\n| user_id              |  string        |    x     |          |         | Id of the user who created the comment                                    |\n| mission_id           |  string        |    x     |          |         | Id of the mission that was interacted with this comment |\n|`text`                |  string        |    x     |          |         | Comment text                                                       |\n|`photo_url`           |  string        |    x     |          |         | Comment photo                                                       |\n|`comment_date`        |  date          |          |          |         | The date of the comment          |\n|`updated_date`        |  date          |          |          |    x    | Last update date          |\n|`created_date`        |  date          |          |          |         | Creation date             |\n\n**Important**:\n\n- Either `text` or `photo_url` are required\n\n- The message can be only a single text or a single photo url. The photo url to be visible in YOOBIC should be a valid url to an image (jpg, png, gif, etc...).\n\n- The mission comment does not support sub comments or reply to comments or reaction to comments. It is a simple comment with no reference to the original comment.\n\n- To handle historical comment you should use the `comment_date` field. In case the `comment_date` is not provided, the `updated_date` will be used instead.\n\n- The text of the comment is limited to 2000 characters."
    },
    {
      "name": "News",
      "description": "<a id=\"group-news\"></a>\nContains information coming from the news feed tab\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`news_id`             |  string        |          |    x     |         | Unique id of the news     |\n|`user_id`             |  string        |    x     |          |    x    | Unique id of a user who published the news |\n|`title`               |  string        |          |          |         | The title of news         |\n|`description`         |  string        |    x     |          |         | The html content of the news feed         |\n|`group_ids`           |  array         |    x     |          |         | Group ids that can see this news         |\n|`user_ids`            |  array         |          |          |         | User ids that can see this news |\n|`views`               |  number        |          |    x     |         | News item views count     |\n|`likes`               |  number        |          |    x     |         | News item likes count     |\n|`authorised_viewers`  |  number        |          |    x     |         | Number of users allowed to view this news feed    |\n|`images`              |  array         |          |          |         | Images to illustrate the news. Max 20 images per news    |\n|`tags`                |  array         |          |          |         | News' list of tags        |\n|`created_date`        |  date          |          |    x     |         | News item creation date   |\n|`updated_date`        |  date          |          |    x     |    x    | News item last update date|"
    },
    {
      "name": "Notifications",
      "description": "<a id=\"group-notifications\"></a>\nNotifications provide information about the internal notifications sent to users in the application.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`notification_id`     |  string        |    x     |    x     |         | Unique id of the notification     |\n|`title`               |  string        |    x     |          |         | The title of notification         |\n|`mode`                |  string        |          |          |         | The way in which the notification is sent. Possible values (`push`, `email`, `all`) |\n|`body`                |  string        |    x     |          |         | Notification body |\n|`user_ids`            |  array         |    x     |          |         | Target user ids to send the notification |\n|`group_ids`           |  array         |          |          |         | Send notification to all users in group_ids, but not to users from imbricated groups  |\n|`badge_type`          |  string        |          |    x     |         | Specifies which badge in the Operations or Boost app should be incremented for recipients of this notification |\n|`sender_id`           |  string        |          |    x     |         | Unique id of the user triggering the notification |\n|`push_recipients`     |  number        |          |    x     |         | Number of recipients    |\n|`entity_type`         |  string        |          |          |         | The entity's type for which the notification was created. Possible values (`missions`, `news`, `campaigns`) |\n|`entity_id`           |  string        |          |          |         | The unique id of the entity |\n|`created_date`        |  date          |          |    x     |         | Creation date   |\n|`updated_date`        |  date          |          |    x     |    x    | Last update date |\n\n**Important**:\n\n- `entity_type` and `entity_id` are used to redirect the user once he/she click on the notification.\n\n- `group_ids` is used only when creating the notification. Therefore, it won't be provided on the response. Instead, all the recipients.\n\n- There is a limit of 50k notifications. If you need to send more than this, you can split the recipients in separate requests targetting different groups."
    },
    {
      "name": "Photos",
      "description": "<a id=\"group-photos\"></a>\ncontains information about uploaded photos and photos taken as part of a mission and its relations to the mission.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`photo_id`            |  string        |    x     |     x    |         | Unique id of the photo    |\n|`mission_id`          |  string        |          |     x    |    x    | Unique id of the mission  |\n|`campaign_id`         |  string        |          |     x    |    x    | Unique id of the campaign |\n|`store_id`            |  string        |          |     x    |         | Unique id of the store    |\n|`title`               |  string        |          |     x    |         | The photo title           |\n|`url`                 |  string        |          |     x    |         | The url to the image      |\n|`markup_url`          |  string        |          |     x    |         | The markup url to the image |\n|`question_id`         |  string        |          |     x    |    x    | Unique id of the question |\n|`phash`               |  string        |          |     x    |    x    | Perceptual hash (fingerprint) |\n|`tags`                |  array         |          |     x    |         | Tags assigned to the photo |\n|`created_date`        |  date          |          |     x    |         | Creation date             |\n|`updated_date`        |  date          |          |     x    |    x    | Last update date          |"
    },
    {
      "name": "Plans",
      "description": "<a id=\"group-plans\"></a>\nA plan is the main description of a course that's assigned to users.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`plan_id`             |  string        |    x     |    x     |         | Unique id of the plan    |\n|`title`               |  string        |          |    x     |         | The plan title           |\n|`description`         |  string        |          |    x     |         | Description of the plan |\n|`enable_journey`      |  boolean       |          |    x     |         | Journey parameter activated or not |\n|`average_completed_lesson` |  number   |          |    x     |         | Average progression in the course |\n|`user_ids`            |  array         |          |          |         | User ids that are assigned to the plan             |\n|`creator_id`          |  string        |          |          |         |              |\n|`category_id`         |  string        |          |          |         |              |\n|`competency_id`       |  string        |          |          |         |              |\n|`created_date`        |  date          |          |    x     |         | Creation date             |\n|`updated_date`        |  date          |          |    x     |    x    | Last update date          |"
    },
    {
      "name": "Products",
      "description": "<a id=\"group-products\"></a>\nProducts represent usually physical products and are organised by [`catalog`](#group-catalogs)\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`product_id`          |  string        |          |    x     |         | Unique id of the product  |\n|`title`               |  string        |    x     |          |         | The product title         |\n|`price`               |  number        |          |          |         | The product price         |\n|`reference`           |  string        |    x     |          |         | The product reference (SKU) |\n|`image`               |  string        |          |          |         | The url to the image        |\n|`short_desc`          |  string        |          |          |         | Short description of the product         |\n|`description`         |  string        |          |          |         | Description of the product |\n|`catalog_id`          |  string        |    x     |          |    x    | Unique id of the catalog  |\n|`catalog_title`       |  string        |    x     |          |         | Title of the catalog  |\n|`tags`                |  array         |          |          |         | Tags assigned to the product |\n|`manufacturer`        |  string        |          |          |         | The manufacturer name of the product |\n|`brand`               |  string        |          |          |         | The brand name of the product |  \n|`category`            |  string        |          |          |         | The category name of the product |  \n|`images`              |  array         |          |          |         | The images associated with this product | \n|`out_of_stock`        |  boolean       |          |          |         | Whether or not product is available | \n|`created_date`        |  date          |          |    x     |         | Creation date             |\n|`updated_date`        |  date          |          |    x     |    x    | Last update date          |\n|`custom_fields`       |  object        |          |          |         | Dynamic properties (optional)|\n\nOne of either fields is required:\n\n- catalog_id\n\n- catalog_title\n\n**Important:**\n\n- The `image` property should be a secured public URL (HTTPS).\n\n- For best experience in the app, its recommended that the `image` be a square picture.\n\n- `custom_fields` contains new attributes that can be used to describe more precisely a product.    \nCustom fields provide a new way to customize your product data by allowing you to filter and select the relevant data in the application.    \nYou can create your own custom fields in the YOOBIC Web Application in order to enrich your product data.    \nFor the full list of supported field types see [campaigns](#group-campaigns-question-types)\n\n- `reference` is unique per catalog. If a product is uploaded with a combination of `catalog_id` or `catalog_title` and reference that already exist, then the corresponding product is updated."
    },
    {
      "name": "Questions",
      "description": "<a id=\"group-questions\"></a>\nQuestions are a Social Learning feature, allowing users to learn tips / expertise from each other. They can ask questions and others can reply to them. Admins and managers can “verify” some answers to make the response official. Essentially, Questions section acts as a forum where knowledge can be shared across the company.\n\n### Fields\n\n| Field                | Type        | Required | Readonly   | OrderBy | Description               |\n|----------------------|:-----------:|:--------:|:----------:|:-------:|---------------------------|\n|`question_id`         |  string     |    x     |     x      |         | Unique id of the question |\n|`title`               |  string     |          |     x      |         | Title of the question |\n|`description`         |  string     |          |     x      |         | Description of the question |\n|`user_id`             |  string     |          |     x      |         | User id creating the question |\n|`is_wiki`             |  boolean    |          |     x      |         | Whether or not the question exists in the knowledge base | \n|`is_verified`         |  boolean    |          |     x      |         | Whether or not this is a verified question | \n|`likes`               |  number     |          |     x      |         | Likes count | \n|`answers`             |  number     |          |     x      |         | Answers count | \n|`bookmarks`           |  number     |          |     x      |         | Number of users who bookmarked the question | \n|`tags`                |  array      |          |     x      |         | List of tags        |\n|`image`               |  string     |          |     x      |         | The url to the image  |\n|`created_date`        |  date       |          |     x      |         | Creation date             |\n|`updated_date`        |  date       |          |     x      |    x    | Last update date          |"
    },
    {
      "name": "Roles",
      "description": "<a id=\"group-roles\"></a>\nGet the list of Roles available for the users in your organization. The roles are defined by a combination of `client_role` and `client_role_extension`\n\nThe `client_role` refers to a YOOBIC specific role name between  ROLEFIELD, ROLEMANAGER, ROLEEDITOR, ROLESTOREMANAGER, ROLESTORE, ROLEADMIN, and ROLEVIEWER and has an impact on some default features of the platform. It also determines what license level the user is attached to.\n\nThe `client_role_extension` refers to a customer-specific designation of a user role, usually based on the job or responsibility of the teams. It is used to differentiate users with the same license level but access to different modules of the platform.\n\nEach combination of client_role and `client_role_extension` is given a unique acl_role_id at creation\n\nRoles are created during the implementation of the platform and cannot be changed by an administrator either via the public API or from the admin interface.\n\n### Fields\n\n| Field                  | Type           | Required | Readonly | OrderBy | Description               |\n|------------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`acl_role_id`           |  string        |     x    |     x    |         | Unique id of the role object  |\n|`client_role`           |  string        |     x    |     x    |         | User roles: ROLEFIELD | ROLEMANAGER | ROLEEDITOR | ROLESTOREMANAGER | ROLESTORE | ROLEADMIN | ROLEVIEWER   |\n|`client_role_extension` |  string        |     x    |     x    |         | Additional role information   |\n|`created_date`          |  date          |          |     x    |         | Creation date             |\n|`updated_date`          |  date          |          |     x    |    x    | Last update date          |"
    },
    {
      "name": "SCIM",
      "description": "<a id=\"group-scim\"></a>\nYOOBIC supports SCIM (System for Cross-domain Identity Management) integrations, enabling seamless user provisioning and management. We offer a dedicated integration with Microsoft Entra ID (formerly Azure AD) to simplify user synchronization and automate identity management. Additionally, we provide a complete Postman collection and detailed documentation to help you effectively use our SCIM endpoint. For more details, please refer to our [Microsoft Entra ID SCIM provisioning guide](https://yoobic.zendesk.com/hc/en-gb/articles/23279718974610-Enable-SCIM-provisioning-with-Microsoft-Entra-ID-Azure) or our [SCIM documentation](https://yoobic.zendesk.com/hc/en-gb/articles/23898081735186-SCIM-Provisioning-overview)."
    },
    {
      "name": "Shifts",
      "description": "<a id=\"group-shifts\"></a>\nA shift object represents a scheduled period of time in which a specific employee is expected to work at a specific store. The object includes information about the start and end times of the shift, as well as the store location and the ID of the employee who is scheduled to work during that time\n\n### Fields\n\n| Field      | Type   | Required | Readonly | OrderBy | Description                                                            |\n|------------|--------|:--------:|:--------:|:-------:|------------------------------------------------------------------------|\n| username   | string |    x     |          |         | The unique username of the employee assigned to the shift.             |\n| user_id    | string |          |    x     |         | An external identifier for the employee                                |\n| title      | string |    x     |          |         | The title of the shift. (visible in the calendar of the user)         |\n| store_id   | string |          |    x     |         | An external identifier for the employee                                |\n| start_date | string |    x     |          |    x    | The start date and time of the shift.                                  |\n| shift_id   | string |          |    x     |         | The unique identifier of the shift.                                   |\n| end_date   | string |    x     |          |    x    | The end date and time of the shift.                                   |\n| description| string |          |          |         | The description of the shift.                                         |\n| client_id  | string |    x     |          |         | The unique client_id of the location where the shift takes place.      |\n| _lmt       | string |          |    x     |         | The last modified time of the shift.                                  |\n| _ect       | string |          |    x     |         | The time when the shift was created.                                  |"
    },
    {
      "name": "Store Types",
      "description": "<a id=\"group-store_types\"></a> \nStores always belong to specific Store Type.    \nStore Types determine which stores users can potentially see.     \nThey will be linked to one or several user groups.     \nStore types are used to have a better view of where the stores are (regions), or what type they belong to (business unit).     \nStores types are handy in the application when publishing campaigns to multiple stores.    \n<img src=\"https://user-images.githubusercontent.com/4806944/41536837-6372e65e-730f-11e8-9bba-78d46a39ca1c.png\" >\n\n### Fields\n\n| Field                       | Type     | Required | Readonly | OrderBy | Description                 |\n|-----------------------------|:--------:|:--------:|:--------:|:-------:|-----------------------------|\n|`store_type_id`              |  string  |          |    x     |         | Unique id of the store type |\n|`name`                       |  string  |    x     |          |    x    | Name of the store type      |\n|`group_ids`                  |  array   |    x     |          |         | Group ids that can see this store type   |\n|`user_ids`                   |  array   |          |          |         | User ids that can see this store type |\n|`created_date`               |  date    |          |    x     |         | Created Date|\n|`updated_date`               |  date    |          |    x     |    x    | Updated Date|\n\n### Tip\n\nTo summarize remember that stores always belong to specific store type.     \nFor example, all stores in the UK might belong to the type \"UK Stores\".    \nStore Types must be created before importing or creating stores."
    },
    {
      "name": "Stores",
      "description": "<a id=\"group-stores\"></a>\nStores are a very important part of the application. They represent physical locations of stores.\nThey are the entities which receive missions (not the users). The users associated to the stores will be able to see their missions and carry them out if they have the correct roles.\nBefore you can create or import stores, you need to have created the store types. If you don't know how to do that, please refer to the Store Types section which will provide you with a detailed explanation on how to create store types.\n\nIn the front end of the application we now call them sites, to use a wording that also applies to companies in different industries that do not have frontline locations called stores (but perhaps restaurants, pharmacies etc.). But in the context of the API, we still call these entities stores.\n\n<img src=\"https://user-images.githubusercontent.com/4806944/41537992-bb5dc5fc-7312-11e8-8059-311f076a30c7.png\" >\n\nWhen you use your GPS to get your position on your smartphone, how are you located?\nEvery point on the Earth's surface can be defined with a pair of coordinates: latitude and longitude.\nWhen you are creating new stores, geo location data is required (`latitude` and `longitude`). In these fields you have to enter the coordinates pair of the store you are trying to locate.\n\nIn the case you don't provide them, the coordinates will be infered automatically from the `address` but it may result in a less accurate location than the exact geolocation of the store.\n\n### Fields\n\n| Field                    | Type    | Required | Readonly | OrderBy | Description     |\n|--------------------------|:-------:|:--------:|:--------:|:-------:|-----------------|\n|`store_id`                |  string |          |     x    |         | Unique store id |\n|`title`                   |  string |    x     |          |         | Name of the store|\n|`address`                 |  string |    x     |          |         | The full address allows us to locate the store on the map. This is used to display the missions available near the user's position|\n|`tags`                    |  array  |          |          |         | Tags allow to specify additional information about the store|\n|`latitude`                |  float  |    x     |          |         | Latitude of the store|\n|`longitude`               |  float  |    x     |          |         | Longitude of the store|\n|`client_id`               |  string |    x     |          |    x    | The external unique id of the store as it may exists in your Information System|\n|`store_type_name`         |  string |    x     |          |         | The name of the store type|\n|`store_type_id`           |  string |    x     |          |         | The id of the store type|\n|`info`                    |  string |          |          |         | Additional information regarding the store. Supports HTML layout |\n|`country`                 |  string |          |    x     |         | Country location of the store |\n|`notification_emails`     |  array  |          |          |         | List of email(s) that will be notified when a mission is finished and/or a request is created/finished |\n|`contact_email`           |  string |          |          |         | Contact's email of the store i.e. store manager's email |\n|`contact_phone`           |  string |          |          |         | Contact's phone of the store i.e. store manager's phone |\n|`contact_name`            |  string |          |          |         | Contact's name of the store i.e. store manager's name |\n|`properties`              |  json   |          |          |         | Extra information that enables you to customize the display of the data shown on the Store Activity page. This can be split into 4 components: `columns`, `rows`, `grid`, `html` |\n|`photo`                   |  string |          |          |         | A photo of the store                                            |\n|`vip`                     | boolean |          |          |         | Indicates if the store is a VIP store (a flagship store) |\n|`timezone`                | string  |          |    x     |         | The Time Zone allows to display the hourly sales data in the store insights in the local time of the store. |\n|`capacity`                | number  |          |          |         | Maximum number of customers which can be served at the same time |\n|`created_date`            |  date   |          |    x     |         | Created Date|\n|`updated_date`            |  date   |          |    x     |    x    | Updated Date|\n|`custom_fields`           | object  |          |          |         | Dynamic properties (optional)|\n\nOne of either fields is required:\n\n- address\n\n- geoloc (latitude + longitude)\n\nIn case one of the fields' missing the other one will be inferred automatically by using Google Map API.    \nPlease note that the results may be incorrect and it's always recommended to supply both fields.    \n`country` field will be resolved using either the geoloc or address. Order of precedence is to resolve by the geoloc and if not present, by address.\n\nOne of either fields is required:\n\n- store_type_name\n\n- store_type_id\n\nThe `properties` field is a json array and can be used to display the following columns, rows, grid,  and html.\nIn its most generic format it looks like :\n\n```json\n\n[\n    {\n        \"title\": \"string\",\n        \"type\": \"string\",\n        \"headers\": [\n            \"string\"\n        ],\n        \"values\": [\n            \"object\"\n        ]\n    }\n]\n```\n\n#### columns\n\n```\n{\n    \"title\" : \"KPI S27\",\n    \"type\" : \"columns\",\n    \"values\" : [ \n        {\n            \"title\" : \"Revenues\",\n            \"value\" : \"1 456 $\",\n            \"isPercent\" : false,\n            \"colorHex\" : \"#00FF00\"\n        }, \n        {\n            \"title\" : \"Nb Hours\",\n            \"value\" : \"7/66\",\n            \"colorHex\" : \"#B404FF\"\n        }, \n        {\n            \"title\" : \"QP\",\n            \"value\" : 2.8,\n            \"isPercent\" : true,\n            \"colorHex\" : \"#B40404\"\n        }\n    ]\n}\n```\n\n<img src=\"https://user-images.githubusercontent.com/4806944/67024261-c942a380-f10c-11e9-9a42-07c7415ea421.png\" >\n\n#### rows\n\n```\n{\n    \"title\" : \"S26 to S27\",\n    \"type\" : \"rows\",\n    \"values\" : [ \n        {\n            \"title\" : \"Revenues\",\n            \"value\" : \"14 647 $\",\n            \"delta\" : \"+82.5 %\",\n            \"colorHex\" : \"#B40404\"\n        }, \n        {\n            \"title\" : \"Clients\",\n            \"value\" : \"1 753\",\n            \"delta\" : \"-10.3 %\",\n            \"colorHex\" : \"#B40404\"\n        }, \n        {\n            \"title\" : \"Basket\",\n            \"value\" : \"8.4 $\",\n            \"delta\" : \"+4.7 %\",\n            \"colorHex\" : \"#04B404\"\n        }\n    ]\n}\n```\n\n<img src=\"https://user-images.githubusercontent.com/4806944/67024307-dd86a080-f10c-11e9-82a4-e4e407282fdd.png\" >\n\n#### grid\n\n```\n{\n    \"title\" : \"Hours\",\n    \"type\" : \"grid\",\n    \"headers\" : [ \n        \"Day\", \n        \"Morning\", \n        \"Afternoon\", \n        \"Nb Hours\"\n    ],\n    \"values\" : [ \n        {\n            \"values\" : [ \n                \"Monday\", \n                \"9:00\", \n                \"20:00\", \n                \"5/11\"\n            ],\n            \"colorHex\" : \"#000000\"\n        }, \n        {\n            \"values\" : [ \n                \"Tuesday\", \n                \"9:00\", \n                \"20:00\", \n                \"2/11\"\n            ],\n            \"colorHex\" : \"#000000\"\n        }, \n        {\n            \"values\" : [ \n                \"Wednesday\", \n                \"9:00\", \n                \"20:00\", \n                \"0/11\"\n            ],\n            \"colorHex\" : \"#000000\"\n        }, \n        {\n            \"values\" : [ \n                \"Thursday\", \n                \"9:00\", \n                \"20:00\", \n                \"0/11\"\n            ],\n            \"colorHex\" : \"#000000\"\n        }, \n        {\n            \"values\" : [ \n                \"Friday\", \n                \"9:00\", \n                \"20:00\", \n                \"0/11\"\n            ],\n            \"colorHex\" : \"#000000\"\n        }, \n        {\n            \"values\" : [ \n                \"Saturday\", \n                \"9:00\", \n                \"20:00\", \n                \"0/11\"\n            ],\n            \"colorHex\" : \"#A0A0A0\"\n        }, \n        {\n            \"values\" : [ \n                \"Sunday\", \n                \" \", \n                \" \", \n                \"0/0\"\n            ],\n            \"colorHex\" : \"#A0A0A0\"\n        }\n    ]\n}\n```\n\n#### html\n\n```\n{\n    \"title\" : \"Reference docs\",\n    \"type\" : \"html\",\n    \"value\" : \"<center>Your engagement: <br><b>85%</b><br><br>Share of shelf :<br><img src=\\\"https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/w_50/v1516113345/upyw8n7f9fz3v6zhfq29.png\\\"><br><font color=#69D0C0><a href=\\\"mailto:support@yoobic.com?Subject=Reference\\\" target=\\\"_top \\\">Contact us</a></font></center>\"\n}\n```\n\n<img src=\"https://user-images.githubusercontent.com/31584145/50735233-373c6080-11b4-11e9-832d-ad0ecefb4447.png\" >\n\n**Important:**\n\n`custom_fields` contains new attributes that can be used to describe more precisely a store.    \nCustom fields provide a new way to customize your store data by allowing you to filter and select the relevant data in the application.    \nYou can create your own custom fields in the YOOBIC Web Application in order to enrich your store data.    \nFor the full list of supported field types see [campaigns](#group-campaigns-question-types)"
    },
    {
      "name": "Tenants",
      "description": "<a id=\"group-tenants\"></a>\nExposes tenant level information.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`tenant_id`           |  string        |    x     |    x     |         | Unique id of the tenant   |\n|`name`                |  string        |          |    x     |         | The unique tenant name    |\n|`title`               |  string        |          |    x     |         | The tenant title           |\n|`icon`                |  string        |          |    x     |         | The icon of the company |\n|`sql_size`            |  number        |          |    x     |         | The company's estimated size  |\n|`has_terms_of_acceptance`|  boolean    |          |    x     |         | Does company have acceptance terms |\n|`terms_of_acceptance`    |  string     |          |    x     |         | Acceptance terms |\n|`terms_of_acceptance_lmt`|  date       |          |    x     |         | Last date modified acceptance terms |"
    },
    {
      "name": "Translations",
      "description": "<a id=\"group-translations\"></a>\nContains translations of common keys used in the app to different languages.\n\n### Table Translations\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`translation_id`      | string         |    x     |          |         | Unique id of the translations     |\n|`language`            | string         |    x     |          |    x    | Default language chosen for the key |\n|`key`                 | string         |    x     |          |    x    | The key that references this translation |\n|`value`               | string         |    x     |          |         | Translated key by the default language |\n|`group_ids`           | array          |    x     |          |         | Group ids that can see these translations  |\n|`user_ids`            |  array         |          |          |         | User ids that can see these translations |\n|`us`                  | string         |          |          |         | English - United States           |\n|`en`                  | string         |          |          |         | English                                  |\n|`ca`                  | string         |          |          |         | English - Canada                         |\n|`fr`                  | string         |          |          |         | French                                  |\n|`de`                  | string         |          |          |         | German                                  |\n|`es`                  | string         |          |          |         | Spanish                                  |\n|`nl`                  | string         |          |          |         | Dutch                                  |\n|`pl`                  | string         |          |          |         | Polish                                  |\n|`it`                  | string         |          |          |         | Italian                                  |\n|`ru`                  | string         |          |          |         | Russian                                  |\n|`zhs`                 | string         |          |          |         | Simplified Chinese                                  |\n|`zht`                 | string         |          |          |         | Traditional Chinese                                  |\n|`pt`                  | string         |          |          |         | Portuguese                                  |\n|`kr`                  | string         |          |          |         | Kanuri                                  |\n|`ja`                  | string         |          |          |         | Japanese                                  |\n|`ua`                  | string         |          |          |         | Ukrainian                                  |\n|`he`                  | string         |          |          |         | Hebrew                                  |\n|`ar`                  | string         |          |          |         | Arabic                                  |\n|`cz`                  | string         |          |          |         | Czech                                  |\n|`th`                  | string         |          |          |         | Thai                                  |\n|`tr`                  | string         |          |          |         | Turkish                                  |\n|`bg`                  | string         |          |          |         | Bulgarian                                  |\n|`el`                  | string         |          |          |         | Greek                                  |\n|`sl`                  | string         |          |          |         | Slovenian                                  |\n|`sk`                  | string         |          |          |         | Slovak                                  |\n|`ro`                  | string         |          |          |         | Romanian                                  |\n|`hu`                  | string         |          |          |         | Hungarian                                  |\n|`br`                  | string         |          |          |         | Brazilian Portuguese                                  |\n|`et`                  | string         |          |          |         | Estonian                                  |\n|`au`                  | string         |          |          |         | Australian                                  |\n|`ido`                 | string         |          |          |         | Indonesian                                  |\n|`vi`                  | string         |          |          |         | Vietnamese                                  |\n|`da`                  | string         |          |          |         | Danish                                  |\n|`fi`                  | string         |          |          |         | Finnish                                  |\n|`nb`                  | string         |          |          |         | Norwegian                                  |\n|`sv`                  | string         |          |          |         | Swedish                                  |\n|`base_language`       |  string        |          |          |         | the base language code of the plan |\n|`created_date`        |  date          |          |          |         | translations item creation date   |\n|`updated_date`        |  date          |          |          |    x    | translations item last update date|"
    },
    {
      "name": "Users",
      "description": "<a id=\"group-users\"></a>\nExpose users for your company.\n\nRemember:\n\n- Users are the people at your company with access to the YOOBIC mobile and/or web apps.\n\n- Users can be assigned to one or more groups after they are created\n\n- Users can have multiple tags\n\n### Fields\n\n| Field                    | Type    | Required | Readonly | OrderBy | Available for all users | Description     |\n|--------------------------|:-------:|:--------:|:--------:|:-------:|:-----------------------:|-----------------|\n|`user_id`                 |  string |          |    x     |         |         x               | Unique user id |\n|`username`                |  string |    x     |          |    x    |         x               | Unique username |\n|`password`                |  string |    x     |          |         |         x               | Password, required on creation only |\n|`first_name`              |  string |    x     |          |         |         x               | First name|\n|`last_name`               |  string |    x     |          |         |         x               | Last name|\n|`client_role`             |  string |    x     |          |         |         x               | User roles: ROLEFIELD \\| ROLEMANAGER \\| ROLEEDITOR \\| ROLESTOREMANAGER \\| ROLESTORE \\| ROLEADMIN \\| ROLEVIEWER|\n|`client_role_extension`   |  string |          |          |         |         x               | Indicates an extension of a user role. Has to match an existing role extension in the database |\n|`email`                   |  string |          |          |         |         x               | Email |\n|`address`                 |  string |          |          |         |         x               | User's work address |\n|`groups`                  |  array  |    x     |          |         |         x               | The list of groups the user is in|\n|`language`                |  string |          |          |         |         x               | Preferred language |\n|`phone`                   |  string |          |          |         |         x               | Phone number|\n|`photo`                   |  string |          |          |         |         x               | Url of the user's picture |\n|`store_id`                |  string |          |    x     |    x    |         x               | Primary Store. Setting up a store_id on a user will create a geofilter on this user |\n|`tags`                    |  array  |          |          |         |         x               | Tags allow to specify additional information about the user|\n|`sso`                     |  boolean|     x    |          |         |         x               | Flag if a user will login through a third party |\n|`allow_local_login`       |  boolean|          |          |         |         x               | Flag if a user will login with password, even if set to third party in tenant (company) configuration |\n|`last_seen`               |  date   |          |    x     |         |         x               | The date on which the user connected for the last time.  |\n|`terms_of_acceptance_date`|  date   |          |    x     |         |         x               | The date in which terms were last accepted |\n|`mobile_version`          |  string |          |    x     |         |         x               | Version of the App used on mobile by the user.  |\n|`desktop_version`         |  string |          |    x     |         |         x               | Version of the App used on desktop by the user. |\n|`created_date`            |  date   |          |    x     |         |         x               | Created Date|\n|`updated_date`            |  date   |          |    x     |    x    |         x               | Updated Date|\n|`custom_fields`           | object  |          |          |         |         x               | Dynamic properties (optional)|\n|`weekly_schedule`         | object  |          |          |         |         x               | Contains data on an employee's working hours for each day of the week.|\n|`client_ids`              | array   |          |          |         |         x               | List of stores that the user can have access to, selected with their client_id. Creates or updates the corresponding user's geofilter if not empty\n|`store_type_names`        | array   |          |          |         |         x               | List of stores' store_types that the user can have access to, selected with their store_type_name. Creates or updates the corresponding user's geofilter if not empty\n| `position`               | string  |          |          |         |                         | Position                               |\n| `department`             | string  |          |          |         |                         | Department                             |\n| `division`               | string  |          |          |         |                         | Division                               |\n| `company`                | string  |          |          |         |                         | Company                                |\n| `hiring_date`            | date    |          |          |         |                         | Date when the user joined the company  |\n| `skills`                 | array   |          |          |         |                         | Skills                                 |\n| `cover`                  | string  |          |          |         |                         | Cover URL                                  |\n| `description`            | string  |          |          |         |                         | Description                            |\n\n**Important:**\n\n- One of either fields is required in case of user creation:\n    - password\n    - sso\n\n- `allow_local_login` is required only if in tenant (company) configuration it is specified to allow login using a third party, but would like to enable specific user a login with a password instead.\n\n- Combination of `client_role` and `client_role_extension` defines the user's permission. A wrong combination of these two will cause a validation error, specifying an invalid permission. If `client_role_extension` is not passed (optional), `client_role` will refer to the corresponding base permission.\n\n- `custom_fields` contains new attributes that can be used to describe more precisely a user.    \nCustom fields provide a new way to customize your user data by allowing you to filter and select the relevant data in the application.    \nYou can create your own custom fields in the YOOBIC Web Application in order to enrich your user data.    \nFor the full list of supported field types see [campaigns](#group-campaigns-question-types)\n\n- The `username` of a user has to be unique across live and archived users and is used to log in to the platform.\n\n- If a user already has a `store_id` in their profile, the corresponding store’s `client_id` will be exported in the next export. It can be used instead of the `store_id`\n\n- It is possible to add several `client_ids` and/or `store_type_names` for a single user. When updating a user, the list of `client_ids` and `store_type_names` will replace the previous one in the user's geofilter.\n\n- It is not possible to filter users on the `client_ids` or `store_type_names` attributes. Please use the geofilter collection to find if a geofilter exist for a user on a specific store or store_type\n\nDescription of the `weekly_schedule` object:\n\n- This object contains data on an employee's working hours for each day of the week.\n\n- Each day of the week is represented by a key (e.g. `mon`, `tue`, etc.) and has a corresponding value that contains information about the working periods for that day.\n\n### Fields\n\n| Field   | Type    | Required | Readonly | OrderBy | Description     |\n|---------|:-------:|:--------:|:--------:|:-------:|-----------------|\n| mon     | JSON    | no       | no       | no      | Contains data on the working hours for Monday |\n| tue     | JSON    | no       | no       | no      | Contains data on the working hours for Tuesday |\n| wed     | JSON    | no       | no       | no      | Contains data on the working hours for Wednesday |\n| thu     | JSON    | no       | no       | no      | Contains data on the working hours for Thursday |\n| fri     | JSON    | no       | no       | no      | Contains data on the working hours for Friday |\n| sat     | JSON    | no       | no       | no      | Contains data on the working hours for Saturday |\n| sun     | JSON    | no       | no       | no      | Contains data on the working hours for Sunday |\n\nFor each day of the week, the corresponding value is an object with the following fields:\n\n| Field   | Type   | Required | Readonly | OrderBy | Description                                                            |\n|---------|--------|----------|----------|---------|------------------------------------------------------------------------|\n| periods | array  | no       | no       | no      | Contains an array of objects, each of which represents a working period for the day. |\n\nEach object in the `periods` array has the following fields:\n\n| Field | Type   | Required | Readonly | OrderBy | Description                                                            |\n|-------|--------|----------|----------|---------|------------------------------------------------------------------------|\n| from  | string | no       | no       | no      | The start time of the working period. Format is `hh:mm` in UTC.      |\n| to    | string | no       | no       | no      | The end time of the working period. Format is `hh:mm` in UTC.        |\n\nIf a day doesn’t have data in the `weekly_schedule` object, it is considered that the user is not scheduled to work on that day."
    },
    {
      "name": "Visits",
      "description": "<a id=\"group-visits\"></a>\nThrough this endpoint the details and/or the approval of the visit could be set.    \nBy default, the visits will be shown as pending until they are approved (`compliant`).    \nBelow is an example of a typical way of scheduling a visit:\n\n<img src=\"https://res.cloudinary.com/www-yoobic-com/image/upload/v1568034036/ympswsz9y1j0ziaddexu.png\" >\n\n### Fields\n\n<a id=\"group-visits-fields\"></a>\n| Field                          | Type         | Required | Readonly | OrderBy | Description     |\n|--------------------------------|--------------|:--------:|:--------:|:-------:|-----------------|\n|`visit_id`                      |  string      |          |     x    |         | Unique id of the visit  |\n|`user_id`                       |  string      |     x    |          |    x    | Unique id of the user who will visit the store  |\n|`store_id`                      |  string      |     x    |          |    x    | Unique id of the associated store  |\n|`group_ids`                     |  timestamp   |     x    |          |         | Group ids that can see this visit  |\n|`user_ids`                      |  array       |          |          |         | User ids that can see this visit|\n|`start_time`                    |  string      |          |          |         | The scheduled time of the visit. Format is HH:mm |\n|`end_time`                      |  string      |          |          |         | The end time of the visit. Format is HH:mm |\n|`visit_date`                    |  date        |     x    |          |         | The scheduled date of the visit. Format is YYYY-MM-DD |\n|`compliant`                     |  boolean     |          |          |         | The compliance of the visit as marked by an area manager: `true` if marked compliant, `false` if marked noncompliant |\n|`type`                          |  string      |          |          |         | Type of the visit chosen among a predefined list             |\n|`description`                   |  string      |          |          |         | Description of the visit  |\n|`creator_id`                    |  string      |          |     x    |    x    | Unique id of the visit creator  |\n|`custom_fields`                 |  object      |          |          |         | Dynamic properties (optional)|\n|`updated_date`                  |  timestamp   |          |     x    |    x    | Visit's last update date  |\n|`created_date`                  |  timestamp   |          |     x    |         | Visit's creation date     |\n\n**Important:**\n\n`custom_fields` contains new attributes that can be used to describe more precisely a user.    \nCustom fields provide a new way to customize your user data by allowing you to filter and select the relevant data in the application.    \nYou can create your own custom fields in the YOOBIC Web Application in order to enrich your user data.    \nFor the full list of supported field types see [campaigns](#group-campaigns-question-types)"
    },
    {
      "name": "Webhooks",
      "description": "<a id=\"group-webhooks\"></a>\nYou can create webhooks with HTTP targets to build integrations with the services or with your back-end system. Examples:\n\n- Alert your team in Slack when a mission is created\n\n- Pass mission to your docs team in Asana after a mission is completed\n\n- Update Salesforce when a new store is created\n\nAn HTTP target lets you pass information to third-party services and REST APIs that accept JSON in HTTP requests.\n\nThe list of topics supporting webhooks are:\n\n- campaigns\n\n- courses\n\n- events\n\n- files\n\n- lessons\n\n- mission-workflows\n\n- missions\n\n- mission-comments\n\n- mission-services\n\n- store-types\n\n- stores\n\n- users\n\n- visits\n\n- webhooks\n\n- For visits, the `delete` action is not supported. To receive deleted visit objects you need to subscribe to the `missions` topic. The deleted visits are sent as their corresponding `mission` object as a visit is a sub-type of missions.\n\n- For mission-comments, only `create` and `update` actions are supported.    \nSee example use case [here](https://yoobic.zendesk.com/hc/en-gb/articles/14909941328274-Ticketing-System-Integration-Setup-Guide-Synchronise-Requests-and-Comments-With-External-Tickets#h_01HEJEZ7VEZSGHBCZH7C569T8A).\n\n- For mission-services, only `create` and `update` actions are supported.    \nSee example use case [here](https://yoobic.zendesk.com/hc/en-gb/articles/14909941328274-Ticketing-System-Integration-Setup-Guide-Synchronise-Requests-and-Comments-With-External-Tickets#h_01HEJCJBH9B9G62R79FBGKA29N).\n\n- If the webhook has a filter, the webhook will fire only once per object when it matches the filter the first time. For example, if the webhook is on topic `missions` , operations `update` and the filter is `{\"status\": \"finished\"}`, then each mission will trigger a new message only when it is `finished`. If another update happens later, to validate the mission for example, it will not fire a new message.\n\n- To send multiple messages for the same object and operation, set `trigger_on_every_match` to true. For example if you want to track every update for `mission-workflows` for every step of the workflow.\n\n- On mission-workflows, possible to filter on `step_title` and `state`. Both can be used together to **only** fire the webhook when a step is reached. Otherwise, having only a filter on `step_title` results in the webhook firing twice when the step is reached due to the mission being updated when it is assigned to a user.\n\n- The object output of mission-workflows contains the same fields as for a regular mission, with an addition of `workflow_step_title`, `workflow_step_id` and `workflow_state`.\n\n#### Errors\n\nIf a webhook fails it becomes inactive. In addition a failure object with the http status and reason are set on the webhook's object.\n\n```\n  {\n      \"is_active\": false\",\n      \"error\": {\n        \"status\": 404,\n        \"message\": \"Not Found.\"\n      }\n  }\n  ```\n\nOnce the webhook becomes active again, the error object will be cleared.    \ni.e. a PATCH request to fix the broken webhook:\n\n```\n  {\n    \"is_active\": true,\n    \"url\": \"<new working callback url>\"\n  } \n  ```\n\n#### Callback response body\n\nThe callback url will have the following fields -\n\n- action: create/update/delete\n\n- topic: one of the supported topics i.e. store-types\n\n- data: the actual entity\n\n- updatedFields: list of fields that were updated \n  ```\n  {\n      \"action\": \"update\",\n      \"topic\": \"store-types\",\n      \"data\": {\n          \"store_type_id\": \"56b0c262e9a22a4e5f02be7d\",\n          \"name\": \"ice-cream\",\n          \"group_ids\": [\"managers\"],\n          \"created_date\": \"2016-02-02T14:51:14.644Z\",\n          \"updated_date\": \"2020-07-15T14:18:41.750Z\"\n      },\n      \"updatedFields\": [\n        \"group_ids\"\n      ]\n  }\n  ```\n\n#### Security\n\nWebhooks provide an additional security measure to verify that the webhook is genuine and has come from YOOBIC. \n  This can be useful if you're looking to ensure only YOOBIC webhooks are being made to your endpoint and ensure the information is genuine and as the system expects. These signatures will also help prevent against replay attacks. Verifying the signing secret is optional.\n  When registering a webhook you can set an additional `secret` field in the payload.\n  Webhook requests will contain two headers which can be used to verify the request's authenticity:\n\n- `x-yoobic-webhook-signature` - the main signature\n\n- `x-yoobic-webhook-signature-timestamp` - the timestamp used to verify the signature\n  This is used in conjunction with the payload of the request (if there is one).\n\n  Verifying the signature    \n  Sign the body and signature timestamp with the webhook secret key using SHA256, then base64 encoding the resulting digest.\n\n  Represented simply: base64(HMACSHA256(TIMESTAMP + BODY))\n\n  To verify the signature, create the same SHA256 HMAC signature and then compare it to the webhook payload to ensure that they match. If they match, then you can be sure that the webhook came from YOOBIC. If they don't, it may be a request from another source.\n\n\n  Here is an example of a verification signature function in nodejs\n\n\n  ```js\n  const crypto = require('crypto');\n  const SIGNING_SECRET = <the secret you used when registering the webhook>\n  function isValidSignature(signature, body, timestamp) {\n    let hmac = crypto.createHmac('sha256', SIGNING_SECRET);\n    let sig = hmac.update(timestamp + body).digest(\"base64\");\n\n    return (\n      Buffer.compare(\n        Buffer.from(signature),\n        Buffer.from(sig.toString(\"base64\"))\n      ) === 0\n    );\n  }\n\n  // assuming you have access to the HTTP request (req) object your webhook endpoint has been called with\n  const signature = req.headers[\"x-yoobic-webhook-signature\"];\n  const timestamp = req.headers[\"x-yoobic-webhook-signature-timestamp\"];\n  const raw_body = JSON.stringify(req.body);\n\n  const isValid = isValidSignature(signature, raw_body, timestamp)\n  if (isValid) {\n    console.log(\"HMAC signature is valid\");\n  } else {\n    console.log(\"HMAC signature is invalid\");\n  }\n  ```\n\n#### Webhooks and sandbox\n\nYou can create webhooks in the sandbox environment but they are automatically removed every week when the sandbox environment is refreshed.\n  Active webhooks in production are not copied to the sandbox environment during the weekly sandbox refresh.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`webhook_id`          |  string        |          |     x    |         | Unique webhook id         |\n|`url`                 |  string        |     x    |          |         | Unique http target url    |\n|`topics`              |  array         |          |          |         | A list of entities to listen for (default: all)|\n|`operations`          |  array         |          |          |         | A list of operations to listen for [\"create\", \"update\", \"delete\"] (default: all)|\n|`is_active`           |  boolean       |          |          |         | enable or disable this webhook (default: true)         |\n|`trigger_on_every_match`|  boolean     |          |          |         | Specifies if an object should trigger the webhook on every match or only once |\n|`has_secret`          |  boolean       |          |    x     |         | True if secret has been provided         |\n|`error`               |  object        |          |    x     |         | A description object (http status, message) to the reason this webhook is inactive         |\n|`secret`              |  string        |          |          |         | Encryption key         |\n|`created_date`        |  date          |          |     x    |         | Creation date             |\n|`updated_date`        |  date          |          |     x    |    x    | Last update date          |"
    },
    {
      "name": "Jobs",
      "description": "<a id=\"group-jobs\"></a>\nThe Jobs endpoint allows you to query the status of your asynchronous jobs, whether they are queued, running, completed, or expired.\nThe `id` required to request status is returned from your requests that are queued asynchronously on enabled endpoints.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`job_id`              |  string        |    x     |    x     |         | Unique id of the inventory |\n|`name`                |  string        |          |    x     |         | Job name suffixed with a UUID |\n|`progress`            |  number        |          |    x     |         | Between 0-1, the progress of a job, 1 being complete |\n|`lastFinishedAt`      |  date          |          |    x     |         | The date the job finished |\n|`data.stats.execution_time_milliseconds` |  number | |    x  |         | How long the job ran in milliseconds |\n|`data.stats.execution_time` |  number  |          |    x     |         | How long the job ran in words |\n|`data.stats.errors`   |  number        |          |    x     |         | Number of errors in the run |\n|`data.stats.success`  |  number        |          |    x     |         | Number of successes in the run |\n|`data.input`          |  object        |          |    x     |         | Request parameters supplied to the job (see below details for export/import) |\n|`data.output`         |  object        |          |    x     |         | Response parameters of the job (see below details for export/import) |\n\n#### Fields Export\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`data.input.filter`   |  object        |          |    x     |         | The filter object passed to the request  |\n|`data.input.modelName`|  string        |          |    x     |         | The endpoint's entity name  |\n|`data.input.type`     |  string        |          |    x     |         | The exported file type (csv/xlsx)  |\n|`data.output.errors`  |  array         |          |    x     |         | General error or errors that may have occurred for this export job   |\n|`data.output.data.download_url`  |  string |       |    x     |         | The exported file |\n|`data.output.data.expires_at`   |  string |       |    x     |         | The date at which the file will no longer be available for download |\n\n#### Fields Import\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`data.input.originalFilename`   |  string        |          |    x     |         | The file passed to the request  |\n|`data.input.modelName`|  string        |          |    x     |         | The endpoint's entity name  |\n|`data.input.type`     |  string        |          |    x     |         | The imported file type (csv/xlsx)  |\n|`data.output.error.download_url`  |  string |      |    x     |         | The file containing all errors (if any) |\n|`data.output.error.expires_at`   |  date |        |    x     |         | The date at which the file will no longer be available for download |"
    }
  ],
  "paths": {
    "/public/api/auth/login": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "username": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "expires_in": {
                      "type": "number"
                    },
                    "tenant": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
                    "user_id": "53fb03c6546847fe0d30186b",
                    "username": "mycompany+yoobicserviceaccount@mycompany.com",
                    "email": "support+mycompany+yoobicserviceaccount@yoobic.com",
                    "created_date": "2019-02-10T17:20:11.531Z",
                    "updated_date": "2019-02-10T17:20:11.531Z",
                    "expires_in": 3600,
                    "tenant": "mycompany"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
                      "user_id": "53fb03c6546847fe0d30186b",
                      "username": "mycompany+yoobicserviceaccount@mycompany.com",
                      "email": "support+mycompany+yoobicserviceaccount@yoobic.com",
                      "created_date": "2019-02-10T17:20:11.531Z",
                      "updated_date": "2019-02-10T17:20:11.531Z",
                      "expires_in": 3600,
                      "tenant": "mycompany"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Login",
        "operationId": "Login",
        "description": "Generates a JSON Web Token (JWT) for the API provided a valid username and password.\n\n**important**\n\n- The `expires_in` parameter is used during the login process to specify the duration for which the token will remain valid. The acceptable range for this value is a minimum of 1200 seconds (20 minutes) and a maximum of 157680000 seconds (5 years). If a value below the minimum is provided, it will automatically be set to 1200 seconds (20 minutes). Conversely, if a value exceeds the maximum, it will be limited to 157680000 seconds (5 years).\n\n- Whenever the `expires_in` parameter is provided, a new token will be generated and any previous one will be automatically invalidated. If the `expires_in` parameter is not specified, the system will return the existing token if one is available. If no existing token is found, a new token will be created.\n\n#### (optional) Asymmetric encryption for login\n\nTo provide an extra level of security for getting the bearer token it is possible to configure asymetric encryption for login.\nThe type of certificate that needs to be created to use this feature is a Public Key Certificate. This certificate is also known as a Digital Certificate or Identity Certificate.\nThis certificate uses the **RSA** algorithm for public key cryptography with the **OAEP** padding scheme and **SHA-256** hash function for added security.\n\nTo decode the response the user must be in possession of the private key.\n\nIf this is the case the service account should be configured with the public key.\n\nIn that case the response from login will look like this:\n\n```json\n{\n    \"encrypted\": [\n        \"CoAxwnTyH0xPMQ3lEWEt0x+sFpj7...\",\n        \"xZqYuAj91xpyHhnX/mOoi08nAsJA...\"\n    ]\n}\n```\n\nTo decode the payload you have to write a script that iterates over each encrypted string in the encrypted array and calls the decrypt function with each string as an argument using your private key.\nThe decrypted strings should then be concatenated into a single string and parsed as JSON. The JSON should then match the same format as the payload when not using encryption.\n\nHere is an example of code in Nodejs for this process.\n\n```js\nconst axios = require('axios');\nconst crypto = require('crypto');\nconst fs = require('fs');\nconst main = async () => {\n  const payload = {\n    username: 'some username',\n    password: 'some password',\n  };\n  const response = await axios.post('/public/api/auth/login', payload);\n  const encrypted = response.data.encrypted;\n  const decrypted_parts = []\n  for(item of encrypted) {\n  // decrypting each item in encrypted array\n    const decrypted = await decrypt(item);\n    decrypted_parts.push(decrypted);\n  }\n  const decrypted = decrypted_parts.join('');\n  const data = JSON.parse(decrypted);\n\n  console.log(data);\n}\n\nconst decrypt = async (encrypted) => {\n  // loading the private key\n  const privateKey = fs.readFileSync('./cert/clientprivate.key', 'utf8');\n  if (typeof encrypted === 'string') {\n    encrypted = Buffer.from(encrypted, 'base64');\n  }\n  const decryptedData = crypto.privateDecrypt(\n    {\n      key: privateKey,\n      padding: crypto.constants.RSA_PKCS1_OAEP_PADDING,\n      oaepHash: \"sha256\",\n    },\n    encrypted\n  );\n  return  decryptedData.toString();\n}\nmain();\n```\n\nThe Public Key has to be shared with YOOBIC’s Customer Implementation Manager during the API implementation phase.",
        "tags": [
          "Security"
        ]
      }
    },
    "/public/api/auth/invalidate_token": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "token": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "username": {
                      "type": "string"
                    },
                    "tenant": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "success": true,
                    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
                    "user_id": "53fb03c6546847fe0d30186b",
                    "username": "mycompany+yoobicserviceaccount@mycompany.com",
                    "tenant": "mycompany"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
                      "user_id": "53fb03c6546847fe0d30186b",
                      "username": "mycompany+yoobicserviceaccount@mycompany.com",
                      "tenant": "mycompany"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Invalidate Token",
        "operationId": "Invalidate Token",
        "description": "Invalidates the existing JSON Web Token (JWT) for the API provided in the Authorization header.",
        "tags": [
          "Security"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/answers/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "answer_id": {
                      "type": "string"
                    },
                    "question_id": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    },
                    "likes": {
                      "type": "number"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "answer_id": "63459c260a1b6d001dc60f8e",
                    "question_id": "6343ee166c8a0e001de9bd7f",
                    "user_id": "5e272f12e1d5f2003ad7afe6",
                    "text": "Comment",
                    "likes": 1,
                    "created_date": "2022-10-11T16:39:02.900Z",
                    "updated_date": "2022-10-11T16:41:28.566Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "answer_id": "63459c260a1b6d001dc60f8e",
                      "question_id": "6343ee166c8a0e001de9bd7f",
                      "user_id": "5e272f12e1d5f2003ad7afe6",
                      "text": "Comment",
                      "likes": 1,
                      "created_date": "2022-10-11T16:39:02.900Z",
                      "updated_date": "2022-10-11T16:41:28.566Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a answer for the given id.",
        "tags": [
          "Answers"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the answer",
            "required": true,
            "example": "61b9b435c8f864003a552378",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/answers?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        },
                        "total": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "answer_id": {
                            "type": "string"
                          },
                          "question_id": {
                            "type": "string"
                          },
                          "user_id": {
                            "type": "string"
                          },
                          "text": {
                            "type": "string"
                          },
                          "likes": {
                            "type": "number"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "answer_id",
                          "question_id",
                          "user_id",
                          "text",
                          "likes",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "skip": 0,
                      "limit": 3,
                      "total": 2000
                    },
                    "data": [
                      {
                        "answer_id": "63459c260a1b6d001dc60f8e",
                        "question_id": "6343ee166c8a0e001de9bd7f",
                        "user_id": "5e272f12e1d5f2003ad7afe6",
                        "text": "Comment",
                        "likes": 1,
                        "created_date": "2022-10-11T16:39:02.900Z",
                        "updated_date": "2022-10-11T16:41:28.566Z"
                      },
                      {
                        "answer_id": "63459c679693060027345b91",
                        "question_id": "6343ee166c8a0e001de9bd7f",
                        "user_id": "5e1356f0c5f0e0003d305072",
                        "text": "Comm",
                        "likes": 10,
                        "created_date": "2022-10-11T16:40:07.994Z",
                        "updated_date": "2022-10-11T16:40:16.175Z"
                      },
                      {
                        "answer_id": "63459b240a1b6d001dc60c48",
                        "question_id": "63453bd184b108002a5166ae",
                        "user_id": "5e1356f0c5f0e0003d305072",
                        "text": "@Hq2 mention from web",
                        "created_date": "2022-10-11T16:34:44.892Z",
                        "updated_date": "2022-10-11T16:34:44.892Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "skip": 0,
                        "limit": 3,
                        "total": 2000
                      },
                      "data": [
                        {
                          "answer_id": "63459c260a1b6d001dc60f8e",
                          "question_id": "6343ee166c8a0e001de9bd7f",
                          "user_id": "5e272f12e1d5f2003ad7afe6",
                          "text": "Comment",
                          "likes": 1,
                          "created_date": "2022-10-11T16:39:02.900Z",
                          "updated_date": "2022-10-11T16:41:28.566Z"
                        },
                        {
                          "answer_id": "63459c679693060027345b91",
                          "question_id": "6343ee166c8a0e001de9bd7f",
                          "user_id": "5e1356f0c5f0e0003d305072",
                          "text": "Comm",
                          "likes": 10,
                          "created_date": "2022-10-11T16:40:07.994Z",
                          "updated_date": "2022-10-11T16:40:16.175Z"
                        },
                        {
                          "answer_id": "63459b240a1b6d001dc60c48",
                          "question_id": "63453bd184b108002a5166ae",
                          "user_id": "5e1356f0c5f0e0003d305072",
                          "text": "@Hq2 mention from web",
                          "created_date": "2022-10-11T16:34:44.892Z",
                          "updated_date": "2022-10-11T16:34:44.892Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the answers.",
        "tags": [
          "Answers"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/answers/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Answers"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/answers/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Answers"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/badges/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "badge_id": {
                      "type": "string"
                    },
                    "creator_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "icon": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "badge_id": "61b9b435c8f864003a552378",
                    "creator_id": "61af7b01ee30bd0025145674",
                    "title": "woohoo",
                    "icon": "award-trophy-star",
                    "created_date": "2021-12-15T09:24:05.652Z",
                    "updated_date": "2021-12-15T09:24:05.652Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "badge_id": "61b9b435c8f864003a552378",
                      "creator_id": "61af7b01ee30bd0025145674",
                      "title": "woohoo",
                      "icon": "award-trophy-star",
                      "created_date": "2021-12-15T09:24:05.652Z",
                      "updated_date": "2021-12-15T09:24:05.652Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a badge for the given id.",
        "tags": [
          "Badges"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the badge",
            "required": true,
            "example": "61b9b435c8f864003a552378",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/badges?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "badge_id": {
                            "type": "string"
                          },
                          "creator_id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "icon": {
                            "type": "string"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "badge_id",
                          "creator_id",
                          "title",
                          "icon",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "badge_id": "61b8de5b55c2d5002449ab27",
                        "creator_id": "61af7b01ee30bd0025145674",
                        "title": "doc lesson",
                        "icon": "folder-add",
                        "created_date": "2021-12-14T18:11:39.026Z",
                        "updated_date": "2021-12-14T18:11:39.026Z"
                      },
                      {
                        "badge_id": "61a622f2a9accb0024ea732b",
                        "creator_id": "6194baa5aedfd900296e744f",
                        "title": "Yoobic Master",
                        "icon": "automotive-airplane",
                        "created_date": "2021-11-30T13:11:14.247Z",
                        "updated_date": "2021-11-30T13:11:14.247Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "badge_id": "61b8de5b55c2d5002449ab27",
                          "creator_id": "61af7b01ee30bd0025145674",
                          "title": "doc lesson",
                          "icon": "folder-add",
                          "created_date": "2021-12-14T18:11:39.026Z",
                          "updated_date": "2021-12-14T18:11:39.026Z"
                        },
                        {
                          "badge_id": "61a622f2a9accb0024ea732b",
                          "creator_id": "6194baa5aedfd900296e744f",
                          "title": "Yoobic Master",
                          "icon": "automotive-airplane",
                          "created_date": "2021-11-30T13:11:14.247Z",
                          "updated_date": "2021-11-30T13:11:14.247Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the badges.",
        "tags": [
          "Badges"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/badges/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Badges"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/badges/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Badges"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/bots/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "bot_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "is_active": {
                      "type": "boolean"
                    },
                    "webhook_url": {
                      "type": "string"
                    },
                    "tenant": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "bot_id": "666abc9a8c591700299636bd",
                    "name": "FAQ Bot",
                    "is_active": true,
                    "webhook_url": "https://8b3e-212-116-179-154.ngrok-free.app/webhook",
                    "tenant": "workplace2",
                    "created_date": "2024-06-13T09:32:10.859Z",
                    "updated_date": "2024-06-13T09:32:10.859Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "bot_id": "666abc9a8c591700299636bd",
                      "name": "FAQ Bot",
                      "is_active": true,
                      "webhook_url": "https://8b3e-212-116-179-154.ngrok-free.app/webhook",
                      "tenant": "workplace2",
                      "created_date": "2024-06-13T09:32:10.859Z",
                      "updated_date": "2024-06-13T09:32:10.859Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a bot for the given id.",
        "tags": [
          "Bots"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the bot",
            "required": true,
            "example": "666abc9a8c591700299636bd",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/bots?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "bot_id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "is_active": {
                            "type": "boolean"
                          },
                          "webhook_url": {
                            "type": "string"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "bot_id",
                          "name",
                          "is_active",
                          "webhook_url",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "bot_id": "666abc9a8c591700299636bd",
                        "name": "FAQ Bot",
                        "is_active": true,
                        "webhook_url": "https://8b3e-212-116-179-154.ngrok-free.app/webhook",
                        "created_date": "2024-06-13T09:32:10.859Z",
                        "updated_date": "2024-06-13T09:32:10.859Z"
                      },
                      {
                        "bot_id": "666abc9a8c591700299636be",
                        "name": "FAQ Bot #2",
                        "is_active": true,
                        "webhook_url": "https://8b3e-213-117-178-155.ngrok-free.app/webhook",
                        "created_date": "2024-06-13T09:32:10.859Z",
                        "updated_date": "2024-06-13T09:32:10.859Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "bot_id": "666abc9a8c591700299636bd",
                          "name": "FAQ Bot",
                          "is_active": true,
                          "webhook_url": "https://8b3e-212-116-179-154.ngrok-free.app/webhook",
                          "created_date": "2024-06-13T09:32:10.859Z",
                          "updated_date": "2024-06-13T09:32:10.859Z"
                        },
                        {
                          "bot_id": "666abc9a8c591700299636be",
                          "name": "FAQ Bot #2",
                          "is_active": true,
                          "webhook_url": "https://8b3e-213-117-178-155.ngrok-free.app/webhook",
                          "created_date": "2024-06-13T09:32:10.859Z",
                          "updated_date": "2024-06-13T09:32:10.859Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the bots.",
        "tags": [
          "Bots"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/bots/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Bots"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/bots/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Bots"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/bot-messages/{id}/export?type=excel&no_answer=true": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get with no answer",
        "operationId": "Get with no answer",
        "description": "Get analytics for a single bot where there is no answer (equivalent to ‘I don’t know' response from the bot).",
        "tags": [
          "Bot Messages"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the bot",
            "required": true,
            "example": "54ab03c6546847ee0d30086a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/bot-messages/{id}/export?type=excel&dislike=true": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get with negative feedback",
        "operationId": "Get with negative feedback",
        "description": "Get analytics for a single bot where the feedback is negative.",
        "tags": [
          "Bot Messages"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the bot",
            "required": true,
            "example": "54ab03c6546847ee0d30086a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/bot-messages/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Get all bot analytics.",
        "tags": [
          "Bot Messages"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either csv (default value) or excel",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{\"where\":{\"answered\":true,\"feedback\":true}}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/salesdata/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "salesdata_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "reporting_date": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "category": {
                      "type": "string"
                    },
                    "value": {
                      "type": "number"
                    },
                    "value_currency": {
                      "type": "string"
                    },
                    "value_frequency": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "salesdata_id": "54ab03c6546847ee0d30086b",
                    "store_id": "54ab03c6546847ee0d30086c",
                    "reporting_date": "2018-05-23T04:51:40.862Z",
                    "title": "Rockets salesdata 1",
                    "category": "Electronics",
                    "value": 2,
                    "value_currency": "$",
                    "value_frequency": "weekly",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "updated_date": "2018-05-23T04:51:40.862Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "salesdata_id": "54ab03c6546847ee0d30086b",
                      "store_id": "54ab03c6546847ee0d30086c",
                      "reporting_date": "2018-05-23T04:51:40.862Z",
                      "title": "Rockets salesdata 1",
                      "category": "Electronics",
                      "value": 2,
                      "value_currency": "$",
                      "value_frequency": "weekly",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a salesdata for the given id.",
        "tags": [
          "Business KPIs data - salesdata"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the salesdata",
            "required": true,
            "example": "54ab03c6546847ee0d30086b",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {}
          }
        },
        "summary": "Delete",
        "operationId": "Delete",
        "description": "Delete a salesdata by id.",
        "tags": [
          "Business KPIs data - salesdata"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the salesdata",
            "required": true,
            "example": "54ab03c6546847ee0d30086b",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "salesdata_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "reporting_date": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "category": {
                      "type": "string"
                    },
                    "value": {
                      "type": "number"
                    },
                    "value_currency": {
                      "type": "string"
                    },
                    "value_frequency": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "salesdata_id": "54ab03c6546847ee0d30086b",
                    "store_id": "54ab03c6546847ee0d30086c",
                    "reporting_date": "2018-05-23T04:51:40.862Z",
                    "title": "Rockets salesdata 1",
                    "category": "Electronics",
                    "value": 10,
                    "value_currency": "$",
                    "value_frequency": "yearly",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "updated_date": "2018-05-23T04:51:40.862Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "salesdata_id": "54ab03c6546847ee0d30086b",
                      "store_id": "54ab03c6546847ee0d30086c",
                      "reporting_date": "2018-05-23T04:51:40.862Z",
                      "title": "Rockets salesdata 1",
                      "category": "Electronics",
                      "value": 10,
                      "value_currency": "$",
                      "value_frequency": "yearly",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of a salesdata",
        "tags": [
          "Business KPIs data - salesdata"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the salesdata",
            "required": true,
            "example": "54ab03c6546847ee0d30086b",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "value": {
                    "type": "number"
                  },
                  "value_frequency": {
                    "type": "string"
                  }
                },
                "example": {
                  "value": 10,
                  "value_frequency": "yearly"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/salesdata?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "salesdata_id": {
                            "type": "string"
                          },
                          "store_id": {
                            "type": "string"
                          },
                          "reporting_date": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "category": {
                            "type": "string"
                          },
                          "value": {
                            "type": "number"
                          },
                          "value_currency": {
                            "type": "string"
                          },
                          "value_frequency": {
                            "type": "string"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "salesdata_id",
                          "store_id",
                          "reporting_date",
                          "title",
                          "category",
                          "value",
                          "value_currency",
                          "value_frequency",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "salesdata_id": "54ab03c6546847ee0d30086b",
                        "store_id": "54ab03c6546847ee0d30086c",
                        "reporting_date": "2018-05-23T04:51:40.862Z",
                        "title": "Rockets salesdata 1",
                        "category": "Electronics",
                        "value": 2,
                        "value_currency": "$",
                        "value_frequency": "weekly",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-05-23T04:51:40.862Z"
                      },
                      {
                        "salesdata_id": "54ab03c6546847ee0d30082b",
                        "store_id": "54ab03c6546847ee0d30086c",
                        "reporting_date": "2018-05-21T04:51:40.862Z",
                        "title": "Rockets salesdata 2",
                        "category": "Drinks",
                        "value": 5.4,
                        "value_currency": "$",
                        "value_frequency": "monthly",
                        "created_date": "2018-05-21T04:51:40.862Z",
                        "updated_date": "2018-05-21T04:51:40.862Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "salesdata_id": "54ab03c6546847ee0d30086b",
                          "store_id": "54ab03c6546847ee0d30086c",
                          "reporting_date": "2018-05-23T04:51:40.862Z",
                          "title": "Rockets salesdata 1",
                          "category": "Electronics",
                          "value": 2,
                          "value_currency": "$",
                          "value_frequency": "weekly",
                          "created_date": "2018-05-23T04:51:40.862Z",
                          "updated_date": "2018-05-23T04:51:40.862Z"
                        },
                        {
                          "salesdata_id": "54ab03c6546847ee0d30082b",
                          "store_id": "54ab03c6546847ee0d30086c",
                          "reporting_date": "2018-05-21T04:51:40.862Z",
                          "title": "Rockets salesdata 2",
                          "category": "Drinks",
                          "value": 5.4,
                          "value_currency": "$",
                          "value_frequency": "monthly",
                          "created_date": "2018-05-21T04:51:40.862Z",
                          "updated_date": "2018-05-21T04:51:40.862Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the salesdata.",
        "tags": [
          "Business KPIs data - salesdata"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/salesdata/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Business KPIs data - salesdata"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/salesdata": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "salesdata_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "reporting_date": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "category": {
                      "type": "string"
                    },
                    "value": {
                      "type": "number"
                    },
                    "value_currency": {
                      "type": "string"
                    },
                    "value_frequency": {
                      "type": "string"
                    },
                    "target": {
                      "type": "boolean"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "salesdata_id": "52cb02c6546847ee0d30082b",
                    "store_id": "54ab03c6546847ee0d30086c",
                    "reporting_date": "2018-05-21T04:51:40.862Z",
                    "title": "Weekly Sales Target",
                    "category": "sales",
                    "value": 100000,
                    "value_currency": "USD",
                    "value_frequency": "weekly",
                    "target": true,
                    "created_date": "2018-05-21T04:51:40.862Z",
                    "updated_date": "2018-05-21T04:51:40.862Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "salesdata_id": "52cb02c6546847ee0d30082b",
                      "store_id": "54ab03c6546847ee0d30086c",
                      "reporting_date": "2018-05-21T04:51:40.862Z",
                      "title": "Weekly Sales Target",
                      "category": "sales",
                      "value": 100000,
                      "value_currency": "USD",
                      "value_frequency": "weekly",
                      "target": true,
                      "created_date": "2018-05-21T04:51:40.862Z",
                      "updated_date": "2018-05-21T04:51:40.862Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "You may create a new single salesdata or multiple salesdatas using this action.    \nWhen creating a single salesdata the body contains a json object, when creating multiple salesdata the body contains an array of objects.    \n**Warning: a maximum of 1000 items can be sent in a single request.**",
        "tags": [
          "Business KPIs data - salesdata"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "store_id": {
                    "type": "string"
                  },
                  "reporting_date": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "category": {
                    "type": "string"
                  },
                  "value": {
                    "type": "number"
                  },
                  "value_currency": {
                    "type": "string"
                  },
                  "value_frequency": {
                    "type": "string"
                  }
                },
                "example": {
                  "store_id": "54ab03c6546847ee0d30086d",
                  "reporting_date": "2018-05-21T04:51:40.862Z",
                  "title": "Milk salesdata 1",
                  "category": "Food",
                  "value": 5,
                  "value_currency": "$",
                  "value_frequency": "hourly"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/salesdata/export?{filter}&type={type}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Business KPIs data - salesdata"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/salesdata/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n### Fields\n\n| Field                    | Format  | Required | Description     |\n|--------------------------|---------|:--------:|-----------------|\n|`salesdata_id`                |  string |          | Unique id of the salesdata |\n|`store_id`                |  string |          | Unique id of the store |\n|`store_client_id`         |  string |          | client_id of the store. Can be used instead of the store_id |\n|`reporting_date`          |  date   |    x     | Reporting date  |\n|`title`                   |  string |    x     | The salesdata title|\n|`category`                |  string |    x     | Salesdata name |\n|`value`                   |  float  |    x     | Salesdata value |\n|`value_currency`          |  string |          | Salesdata currency |\n|`value_frequency`         |  string |    x     | The salesdata measuring frequency : yearly / monthly / weekly / daily / hourly  |\n|`target`                |  boolean |          | Indicates if the associated value is a target   |\n|`created_date`                |  string |          | Creation date   |\n|`updated_date`                |  string |          | Last update date |\n\nEither `store_id` or `store_client_id` can be used.\n\nThe following fields are required:\n\n- reporting_date\n\n- title\n\n- category\n\n- value_frequency",
        "tags": [
          "Business KPIs data - salesdata"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/campaigns/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "campaign_id": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "type": {
                      "type": "string"
                    },
                    "page_titles": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "questions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "question_id": {
                            "type": "string"
                          },
                          "question_type": {
                            "type": "string"
                          },
                          "question": {
                            "type": "string"
                          },
                          "page_number": {
                            "type": "number"
                          },
                          "question_number": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "question_id",
                          "question_type",
                          "question",
                          "page_number",
                          "question_number"
                        ]
                      }
                    }
                  },
                  "example": {
                    "campaign_id": "54ab03c6546847ee0d30086a",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "updated_date": "2018-05-23T04:51:40.862Z",
                    "title": "Rockets campaign 1",
                    "description": "campaign description here",
                    "tags": [
                      "tag1",
                      "tag2"
                    ],
                    "type": "mission",
                    "page_titles": [
                      "Page 1"
                    ],
                    "active": true,
                    "questions": [
                      {
                        "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc7",
                        "question_type": "number",
                        "question": "number of ice-cream flavors",
                        "page_number": 1,
                        "question_number": 1
                      },
                      {
                        "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc8",
                        "question_type": "text",
                        "question": "ice-cream flavors",
                        "page_number": 1,
                        "question_number": 2
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "campaign_id": "54ab03c6546847ee0d30086a",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "title": "Rockets campaign 1",
                      "description": "campaign description here",
                      "tags": [
                        "tag1",
                        "tag2"
                      ],
                      "type": "mission",
                      "page_titles": [
                        "Page 1"
                      ],
                      "active": true,
                      "questions": [
                        {
                          "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc7",
                          "question_type": "number",
                          "question": "number of ice-cream flavors",
                          "page_number": 1,
                          "question_number": 1
                        },
                        {
                          "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc8",
                          "question_type": "text",
                          "question": "ice-cream flavors",
                          "page_number": 1,
                          "question_number": 2
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a campaign for the given id.",
        "tags": [
          "Campaigns"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the campaign",
            "required": true,
            "example": "54ab03c6546847ee0d30086a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of a campaign.    \nIf `questions` are passed, they will *replace* the existing.",
        "tags": [
          "Campaigns"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the campaign",
            "required": true,
            "example": "54ab03c6546847ee0d30086a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "questions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "question_type": {
                          "type": "string"
                        },
                        "question": {
                          "type": "string"
                        },
                        "page_number": {
                          "type": "number"
                        },
                        "question_number": {
                          "type": "number"
                        },
                        "question_attributes": {
                          "type": "object",
                          "properties": {
                            "allow_library": {
                              "type": "boolean"
                            },
                            "hide_mobile": {
                              "type": "boolean"
                            },
                            "mandatory": {
                              "type": "boolean"
                            }
                          }
                        }
                      },
                      "required": [
                        "question_type",
                        "question",
                        "page_number",
                        "question_number"
                      ]
                    }
                  }
                },
                "example": {
                  "title": "<p>campaign title here updated</p>",
                  "description": "campaign description here updated",
                  "questions": [
                    {
                      "question_type": "number",
                      "question": "number of ice-cream flavors",
                      "page_number": 1,
                      "question_number": 1
                    },
                    {
                      "question_type": "text",
                      "question": "ice-cream flavors",
                      "page_number": 1,
                      "question_number": 2
                    },
                    {
                      "question": "Photo 2",
                      "question_type": "photo",
                      "page_number": 2,
                      "question_number": 1,
                      "question_attributes": {
                        "allow_library": true,
                        "hide_mobile": false,
                        "mandatory": false
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {}
          }
        },
        "summary": "Delete",
        "operationId": "Delete",
        "description": "Delete a campaign by id.",
        "tags": [
          "Campaigns"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the campaign",
            "required": true,
            "example": "54ab03c6546847ee0d30086a",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/campaigns": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "campaign_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "group_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "page_titles": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "icon_url": {
                      "type": "string"
                    },
                    "background_url": {
                      "type": "string"
                    },
                    "questions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "question_id": {
                            "type": "string"
                          },
                          "question_type": {
                            "type": "string"
                          },
                          "question": {
                            "type": "string"
                          },
                          "question_description": {
                            "type": "string"
                          },
                          "page_number": {
                            "type": "number"
                          },
                          "question_number": {
                            "type": "number"
                          },
                          "mandatory": {
                            "type": "boolean"
                          }
                        }
                      }
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "campaign_id": "5dc18578883086880887175e",
                    "title": "<p>campaign title here</p>",
                    "description": "campaign description here",
                    "type": "mission",
                    "group_ids": [
                      "staff"
                    ],
                    "page_titles": [
                      "My first page title"
                    ],
                    "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401814/ji2yhtw926naemtsj6xr.png",
                    "background_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401827/seuuqjbry1e4uusi0nta.png",
                    "questions": [
                      {
                        "question_id": "32e1e38c-961a-421f-8cb7-ee1eafefbace",
                        "question_type": "text",
                        "question": "Dow do the shelves look today?",
                        "question_description": "<p>Tell us what you see from left to right.</p>",
                        "page_number": 1,
                        "question_number": 1,
                        "mandatory": false
                      }
                    ],
                    "created_date": "2019-11-05T14:21:44.361Z",
                    "updated_date": "2019-11-05T14:21:44.361Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "campaign_id": "5dc18578883086880887175e",
                      "title": "<p>campaign title here</p>",
                      "description": "campaign description here",
                      "type": "mission",
                      "group_ids": [
                        "staff"
                      ],
                      "page_titles": [
                        "My first page title"
                      ],
                      "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401814/ji2yhtw926naemtsj6xr.png",
                      "background_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401827/seuuqjbry1e4uusi0nta.png",
                      "questions": [
                        {
                          "question_id": "32e1e38c-961a-421f-8cb7-ee1eafefbace",
                          "question_type": "text",
                          "question": "Dow do the shelves look today?",
                          "question_description": "<p>Tell us what you see from left to right.</p>",
                          "page_number": 1,
                          "question_number": 1,
                          "mandatory": false
                        }
                      ],
                      "created_date": "2019-11-05T14:21:44.361Z",
                      "updated_date": "2019-11-05T14:21:44.361Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "Create a campaign.\n\n`icon_url` and `background_url` can be a file's `_downloadURL` or a created photo's `url`. Both have to begin with https://.",
        "tags": [
          "Campaigns"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "group_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "icon_url": {
                    "type": "string"
                  },
                  "background_url": {
                    "type": "string"
                  },
                  "page_titles": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "questions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "question_type": {
                          "type": "string"
                        },
                        "question": {
                          "type": "string"
                        },
                        "question_description": {
                          "type": "string"
                        },
                        "page_number": {
                          "type": "number"
                        },
                        "question_number": {
                          "type": "number"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "title": "<p>campaign title here</p>",
                  "description": "campaign description here",
                  "type": "mission",
                  "group_ids": [
                    "staff"
                  ],
                  "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401814/ji2yhtw926naemtsj6xr.png",
                  "background_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401827/seuuqjbry1e4uusi0nta.png",
                  "page_titles": [
                    "My first page title"
                  ],
                  "questions": [
                    {
                      "question_type": "text",
                      "question": "Dow do the shelves look today?",
                      "question_description": "<p>Tell us what you see from left to right.</p>",
                      "page_number": 1,
                      "question_number": 1
                    }
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/campaigns/{id}/publish": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    },
                    "mission_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "example": {
                    "count": 6,
                    "mission_ids": [
                      "5bf166a4e44684a31c7a5f86",
                      "5bf166a4e44684a31c7a5f87",
                      "5bf166a4e44684a31c7a5f88",
                      "5bf166a4e44684a31c7a5f89",
                      "5bf166a4e44684a31c7a5f8a",
                      "5bf166a4e44684a31c7a5f8b",
                      "5bf166a4e44684a31c7a5f8c"
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 6,
                      "mission_ids": [
                        "5bf166a4e44684a31c7a5f86",
                        "5bf166a4e44684a31c7a5f87",
                        "5bf166a4e44684a31c7a5f88",
                        "5bf166a4e44684a31c7a5f89",
                        "5bf166a4e44684a31c7a5f8a",
                        "5bf166a4e44684a31c7a5f8b",
                        "5bf166a4e44684a31c7a5f8c"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Publish",
        "operationId": "Publish",
        "description": "Publish missions of a campaign to automatically create one mission per targeted site or per targeted user.\nThe result is the number of newly created missions and the mission ids.\n\n**Important**\nThe mission must be assigned before booking: error message: \"Mission must have an assigned user before it can be booked. Please call the assign endpoint prior to booking the mission.\"\n\n- Only campaigns of type memo, form and workflow are supported (quick tasks not supported)\n\n- Memos cannot be personalised by site (the message is sent as configured in the YOOBIC app)\n\n- If campaign audience is set by site: not possible to specify user_ids for publication\n\n- If campaign audience is set by user: not possible to specify store_ids for publication\n\n- If store_ids specified: missions published to all sites specified OR that match the campaign audience (store_ids that do not match the campaign audience criteria are added)\n\n- If user_ids specified: missions published to all users specified AND that match the campaign audience (user_ids that do not match the campaign audience criteria are ignored)\n\n- If no store_ids specified: missions published to all sites in the audience of the campaign (if the audience is not null)\n\n- If no user_ids specified: missions published to all users in the audience of the campaign (if the audience is not null)\n\n**Example:**\n\nFor a form campaign by site with an audience of 5 sites:\n\n- if no `store_ids`, `store_client_ids`, `store_type_ids` is specified in the request:\n\nRequest - Body:\n\n```\n{}\n```\n\nResponse - Body:\n\n```\n{\n  \"count\": 5,\n  \"mission_ids\": [\n    \"5bf166a4e44684a31c7a5f86\",\n    \"5bf166a4e44684a31c7a5f87\",\n    \"5bf166a4e44684a31c7a5f88\",\n    \"5bf166a4e44684a31c7a5f89\",\n    \"5bf166a4e44684a31c7a5f8a\"\n  ]\n}\n```\n\n- if `store_ids` is specified in the request:\n\nRequest - Body:\n\n```\n{\n  \"store_ids\": [\n    \"674843fbf7b5a0004845026b\"\n  ]\n}\n```\n\nResponse - Body:\n\n```\n{\n  \"count\": 1,\n  \"mission_ids\": [\n    \"5bf166a4e44684a31c7a5f8c\"\n  ]\n}\n```\n\n### Fields\n\n| Field                | Format   | Required | Description     |\n|----------------------|----------|:--------:|-----------------|\n|`store_ids`           |  array   |          | Unique store ids|\n|`store_client_ids`    |  array   |          | External unique ids of the stores as it may exists in your Information System|\n|`store_type_ids`      |  array   |          | The ids of the store types|\n|`user_ids`            |  array   |          | Unique user ids |\n|`skip_when_available` |  boolean |          | Skip publishing for a store if there is already an unbooked mission of the same campaign on that store |\n|`skip_when_exists`    |  boolean |          | Skip publishing for a store if there is already a mission of the same campaign on that store (regardless of status) |\n|`valid_from`          |  date    |          | Make a mission visible from the specified date |\n|`valid_until`         |  date    |          | Archive an available or ongoing mission after the specified date & time. (Script is run every hour) |\n|`due_date`            |  date    |          | Due date in UTC |\n|`priority`            |  string  |          | Priority of the published missions. Accepted values: `\"1\"` (high) to `\"4\"` (low). If not specified, the campaign's priority is used. Ignored for memos |\n|`mission_title`       |  string  |          | If exists, it replaces the default campaign title. See below for further details |\n|`answers`             |  array   |          | Default values for the published missions. Only simple field types are supported — see the list below |\n|`notify`              |  boolean |          | if true will send a notification at publication. More information on who receives the notification in [this](https://yoobic.zendesk.com/hc/en-gb/articles/360015946360-Create-Publish-a-Campaign-Form-Missions-Polls-Requests#01G4Z8A3N45FRJB45DD5B2ZJN0) article. If false or not specified, no notification is sent. |\n\n`mission_title` has two placeholders you can add:\n\n+ `{campaign_title}` if supplied, will be replaced with the original campaign title.\n\n+ `{date_now}` if supplied, today's date will be added to the mission title.\n\nSo i.e. a mission_title could look like -    \n``` \"{CAMPAIGN_TITLE} - {DATE_NOW_TEMPLATE} - URGENT\" ``` => ``` \"HQ Store Visit - 01/03/2020 - URGENT\" ```.\n\nThe `answers` field is defined as an array of:\n| Field                | Format   | Required | Description               |\n|----------------------|----------|:--------:|---------------------------|\n|`question_id`         |  string  |    x     | Unique id of the question |\n|`question_type`       |  string  |          | The type of the question  |\n|`question`            |  string  |    x     | The title of the question |\n|`page_number`         |  number  |    x     | The number of the page the question appears in |\n|`answer`              |  any     |          | The value of the answer |\n\nOne of either options is required for the each answer object:\n\n+ question_id\n\n+ question, page_number\n\n**Important**    \nOnly simple field types can be prefilled through the `answers` array when publishing. This list is specific to the publish action and differs from the [field types supported on the campaign itself](#group-campaigns-question-types). Below is the list of the supported types:\n\n| question_type | Type           | Description |\n|---------------|:--------------:|-------------|\n| text          |  string        | Supports basic HTML formatting when used as readonly |\n| textarea      |  string        | Supports basic HTML formatting when used as readonly |\n| number        |  number        |             |\n| photo         |  URL           | External image URL only (binary upload not supported) |\n| multiphotos   |  array of URLs | External image URLs only (binary upload not supported) |\n| select        |  string        | Single value chosen from the `values` defined in the campaign's form |\n| selectmulti   |  array         | Multiple values chosen from the `values` defined in the campaign's form |\n| selectbuttons |  array         | Multiple values chosen from the `values` defined in the campaign's form |\n| checkbox      |  boolean       |             |\n| toggle        |  boolean       |             |\n\nOnly the types listed above are supported; any other type is unsupported at publish, including User, Site, Table, Dataset, Formula & advanced formula, Action, Catalogue, Learn and Information fields, as well as any newly added field type not explicitly listed here.\n\nThere are two ways to publish a campaign of type `mission`:\n\n- If you have a specific store or list of stores to target, you can specify in the body of the request one of the following:\n\n  + store_ids\n\n  + store_client_ids\n\n  + store_type_ids\n\n- If you have already configured the campaign’s audience in the Campaign’s menu from the user interface, it is possible to publish the campaign on all the stores of the audience, only the stores where a mission from this campaign is not available (`skip_when_available: true`), or only the stores where no mission from this campaign exisits (`skip_when_exists: true`).\n\n**Important**    \nIt is required to have either:\n\n+ At least one active filter with the \"Select all\" function activated to publish on the selection.\n\n+ At least one store manually selected.\n\nIf nothing is selected in the Campaign’s configuration (filters or manual selection) and no stores were specified in the request’s body, then an error will be returned.",
        "tags": [
          "Campaigns"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "store_client_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "answers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "question_id": {
                          "type": "string"
                        },
                        "question_type": {
                          "type": "string"
                        },
                        "question": {
                          "type": "string"
                        },
                        "page_number": {
                          "type": "number"
                        },
                        "answer": {
                          "items": {
                            "type": "string"
                          },
                          "oneOf": [
                            {
                              "type": "array",
                              "items": {}
                            },
                            {
                              "type": "number"
                            }
                          ]
                        }
                      },
                      "required": [
                        "question_type",
                        "question",
                        "page_number",
                        "answer"
                      ]
                    }
                  }
                },
                "example": {
                  "store_client_ids": [
                    "client_100",
                    "client_101",
                    "client_102"
                  ],
                  "answers": [
                    {
                      "question_id": "8d6d072d-4dcc-42e5-9243-be149b5ef9bb",
                      "question_type": "selectmulti",
                      "question": "Multiple choice",
                      "page_number": 1,
                      "answer": [
                        "2"
                      ]
                    },
                    {
                      "question_type": "number",
                      "question": "Number",
                      "page_number": 3,
                      "answer": 9
                    }
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/campaigns/{id}/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export data for a Campaign",
        "operationId": "Export data for a Campaign",
        "description": "Exports the data from the missions that have been published for this campaign.\n\n#### Exported Fields\n\nThe result file contains generic [`mission fields`](#group-missions-fields) as well as specific columns for each of the questions defined on the campaign. The name of the field for each question is the `question_id`.    \nClick <a href=\"https://res.cloudinary.com/www-yoobic-com/raw/upload/v1558500360/campaign_data_5ce4d1a5c5d27100499b2395_m5wjty.xlsx\">here</a> to download an excel file example.    \n**Important:**\nThe result file contains 2 header rows. The second header row contains additional data from the corresponding question with the format `<question>|<page_number>|<question_number>`. All other fields in this extra header row are blank. Because of the extra header row, files exported by this endpoint contain data starting on the third line rather than the second.",
        "tags": [
          "Campaigns"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/campaigns/{id}/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import (update) data for a Campaign",
        "operationId": "Import (update) data for a Campaign",
        "description": "Imports the data to update missions that have been published for this campaign.\n\nSee the [Import file section](#section-import-jobs) for more information.\n\nThe headers and fields imported are the same as those of the campaign data export files. A typical scenario would be to start exporting data for a specific mission, alter the result file, and then import it back.\n\n**Important:**\n\n-   The second header row with the question alignment data must be present, but is not read. All mission fields (except readonly ones, for more details see [missions](#group-missions)) can be modified via the campaign data import.\n\n-   Rows without an existing `mission_id` field will **not** be processed. Only existing missions may be updated by this import endpoint.\n\n-   Fields which contain an object as value cannot be updated. This includes fields with type: catalog, user, store, table\n\n### Fields\n\n| Field                          | Format       | Required | Readonly | Description     |\n|--------------------------------|--------------|:--------:|:--------:|-----------------|\n|`mission_id`                    |  string      |     x    |    x     | Unique id of the mission  |\n|`title`                         |  string      |          |          | The title of the mission  |\n|`type`                          |  string      |          |    x     | Mission type             |\n|`campaign_id`                   |  string      |          |    x     | Unique id of the mission's parent campaign |\n|`user_id`                       |  string      |          |    x     | Unique id of the user who performs the mission   |\n|`creator_id`                    |  string      |          |    x     | Unique id of the mission creator  |\n|`store_id`                      |  string      |          |    x     | Unique id of associated store  |\n|`status`                        |  string      |          |    x     | Current status of the mission if set: `\"scheduled\"`, `\"booked\"`, `\"finished\"`, `\"archived\"`  |\n|`valid_from`                    |  timestamp   |          |    x     | Mission available from   |\n|`republish_count`               |  number      |          |    x     | The number of times the mission was republished  |\n|`booked_date`                   |  timestamp   |          |    x     | The date on which the mission was booked to a user  |\n|`due_date`                      |  timestamp   |          |    x     | The date by which the mission must be completed |\n|`finished_date`                 |  timestamp   |          |    x     | The date on which the mission was finished  |\n|`score`                         |  number      |          |          | The mission's main score as its numeric value (e.g. `10`). In file exports/imports this column holds the score value only; the full `{\"title\", \"value\"}` object is used in the JSON API representation. |\n|`extra_scores`                  |  number      |          |    x     | Export only. Each sub-score is written to its own column, named after the (translated) sub-score title and holding that sub-score's numeric value. It cannot be set via import. |\n|`compliant`                     |  boolean     |          |    x     | The compliance of the mission as marked by an area manager: `true` if marked compliant, `false` if marked noncompliant. If nothing is specified and if the mission is finished, `status` will be \"to validate\" |\n|`compliant_by_default`          |  boolean     |          |    x     | If `true` the mission is automatically marked compliant on finish |\n|`validated_date`                |  timestamp   |          |    x     | The date on which the mission was validated  |\n|`reason_noncompliant`           |  string      |          |    x     | The reason provided by the area manager to explain why the mission was marked noncompliant |\n|`republished_with_answers`      |  boolean     |          |    x     | Has the mission been repulished with the previous answers after being marked noncompliant |\n|`original_mission_id`           |  string      |          |    x     | If present, the `mission_id` of the mission that this mission was republished from |\n|`original_reason_noncompliant`  |  string      |          |    x     | The `reason_noncompliant` from the original mission that was republished. |\n|`action_plan_progress`          |  number      |          |    x     | Completion rate of an action plan.      |\n|`task_number`                   |  number      |          |    x     | Auto generated when a new mission is created. The value is unique within a campaign.      |\n|`created_date`                  |  timestamp   |          |    x     | Mission's creation date     |\n|`updated_date`                  |  timestamp   |          |    x     | Mission's last update date  |",
        "tags": [
          "Campaigns"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/campaigns/{id}/questions": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Create Question",
        "operationId": "Create Question",
        "description": "Create a single question.\n\n* Restricted to campaigns of type `mission`.\n\n* If there's a conflict in the `question_number` the request takes priority. If you add a question in position 1 in page 1 and there is already a question 1 in the page 1, the new question will be placed in position 1 and the one that already existed is moved to position 2 in page 1.\n\n* The `page_number` and `question_number` are adjusted to the current state. If i.e. the `page_number` does not exist, a new subsequent number will be given regardless of the input.",
        "tags": [
          "Campaigns"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "question": {
                    "type": "string"
                  },
                  "question_type": {
                    "type": "string"
                  },
                  "page_number": {
                    "type": "number"
                  },
                  "question_number": {
                    "type": "number"
                  },
                  "question_attributes": {
                    "type": "object",
                    "properties": {
                      "allow_library": {
                        "type": "boolean"
                      },
                      "hide_mobile": {
                        "type": "boolean"
                      },
                      "mandatory": {
                        "type": "boolean"
                      }
                    }
                  }
                },
                "example": {
                  "question": "Photo 2",
                  "question_type": "photo",
                  "page_number": 200,
                  "question_number": 12,
                  "question_attributes": {
                    "allow_library": true,
                    "hide_mobile": false,
                    "mandatory": false
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/campaigns/{id}/questions/{question_id}": {
      "put": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Update Question",
        "operationId": "Update Question",
        "description": "Replace a single question.\n\n* Restricted to campaigns of type `mission`.\n\n* If there's a conflict in the `question_number` the request takes priority. If you add a question in position 1 in page 1 and there is already a question 1 in the page 1, the new question will be placed in position 1 and the one that already existed is moved to position 2 in page 1\n\n* The `page_number` and `question_number` are adjusted to the current state. If i.e. the `page_number` does not exist, a new subsequent number will be given regardless of the input.",
        "tags": [
          "Campaigns"
        ],
        "parameters": [
          {
            "name": "question_id",
            "in": "path",
            "description": "The id of the question",
            "required": true,
            "example": "e8345f6d-108d-445f-b90b-123ce6876bc9",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "question": {
                    "type": "string"
                  },
                  "question_type": {
                    "type": "string"
                  },
                  "page_number": {
                    "type": "number"
                  },
                  "question_number": {
                    "type": "number"
                  },
                  "question_attributes": {
                    "type": "object",
                    "properties": {
                      "allow_library": {
                        "type": "boolean"
                      },
                      "hide_mobile": {
                        "type": "boolean"
                      },
                      "mandatory": {
                        "type": "boolean"
                      }
                    }
                  }
                },
                "example": {
                  "question": "Photo 2",
                  "question_type": "photo",
                  "page_number": 1,
                  "question_number": 2,
                  "question_attributes": {
                    "allow_library": true,
                    "hide_mobile": false,
                    "mandatory": false
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "campaign_id": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "type": {
                      "type": "string"
                    },
                    "page_titles": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "icon_url": {
                      "type": "string"
                    },
                    "background_url": {
                      "type": "string"
                    },
                    "questions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "question_id": {
                            "type": "string"
                          },
                          "question_type": {
                            "type": "string"
                          },
                          "question": {
                            "type": "string"
                          },
                          "page_number": {
                            "type": "number"
                          },
                          "question_number": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "question_id",
                          "question_type",
                          "question",
                          "page_number",
                          "question_number"
                        ]
                      }
                    }
                  },
                  "example": {
                    "campaign_id": "54ab03c6546847ee0d30086a",
                    "created_date": "2021-05-23T04:45:02.020Z",
                    "updated_date": "2021-05-23T04:51:40.862Z",
                    "title": "Rockets campaign 1",
                    "description": "campaign description here",
                    "tags": [
                      "tag1",
                      "tag2"
                    ],
                    "type": "mission",
                    "page_titles": [
                      "Page 1"
                    ],
                    "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401814/ji2yhtw926naemtsj6xr.png",
                    "background_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401827/seuuqjbry1e4uusi0nta.png",
                    "questions": [
                      {
                        "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc7",
                        "question_type": "number",
                        "question": "number of ice-cream flavors",
                        "page_number": 1,
                        "question_number": 1
                      },
                      {
                        "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc8",
                        "question_type": "text",
                        "question": "ice-cream flavors",
                        "page_number": 1,
                        "question_number": 2
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "campaign_id": "54ab03c6546847ee0d30086a",
                      "created_date": "2021-05-23T04:45:02.020Z",
                      "updated_date": "2021-05-23T04:51:40.862Z",
                      "title": "Rockets campaign 1",
                      "description": "campaign description here",
                      "tags": [
                        "tag1",
                        "tag2"
                      ],
                      "type": "mission",
                      "page_titles": [
                        "Page 1"
                      ],
                      "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401814/ji2yhtw926naemtsj6xr.png",
                      "background_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401827/seuuqjbry1e4uusi0nta.png",
                      "questions": [
                        {
                          "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc7",
                          "question_type": "number",
                          "question": "number of ice-cream flavors",
                          "page_number": 1,
                          "question_number": 1
                        },
                        {
                          "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc8",
                          "question_type": "text",
                          "question": "ice-cream flavors",
                          "page_number": 1,
                          "question_number": 2
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Delete Question",
        "operationId": "Delete Question",
        "description": "Delete a single question.\n\n* Restricted to campaigns of type `mission`.\n\n* If a single question is removed from a page, that page would be removed as well (unless its the only page of the campaign).",
        "tags": [
          "Campaigns"
        ],
        "parameters": [
          {
            "name": "question_id",
            "in": "path",
            "description": "The id of the question",
            "required": true,
            "example": "e8345f6d-108d-445f-b90b-123ce6876bc9",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/campaigns/{id}/stores": {
      "put": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "campaign_id": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        },
                        "storesQuery": {
                          "type": "object",
                          "properties": {
                            "query": {
                              "type": "object",
                              "properties": {
                                "where": {
                                  "type": "object",
                                  "properties": {
                                    "_id": {
                                      "type": "object",
                                      "properties": {
                                        "inq": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            "total": {
                              "type": "number"
                            },
                            "mode": {
                              "type": "string"
                            },
                            "selectiondIds": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "created_date": {
                          "type": "string"
                        },
                        "updated_date": {
                          "type": "string"
                        }
                      }
                    },
                    "errors": {
                      "type": "object",
                      "properties": {}
                    }
                  },
                  "example": {
                    "data": {
                      "campaign_id": "61c1af9dc9ee430037e6b622",
                      "title": "my campaign",
                      "type": "mission",
                      "storesQuery": {
                        "query": {
                          "where": {
                            "_id": {
                              "inq": [
                                "5f1ff8f221cd73003b84234a",
                                "5f4f6d4fb8d7fc003b62ef5c"
                              ]
                            }
                          }
                        },
                        "total": 1,
                        "mode": "selection",
                        "selectiondIds": [
                          "5f1ff8f221cd73003b84234a",
                          "5f4f6d4fb8d7fc003b62ef5c"
                        ]
                      },
                      "created_date": "2021-12-21T10:42:37.369Z",
                      "updated_date": "2021-12-21T14:52:13.216Z"
                    },
                    "errors": {}
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "data": {
                        "campaign_id": "61c1af9dc9ee430037e6b622",
                        "title": "my campaign",
                        "type": "mission",
                        "storesQuery": {
                          "query": {
                            "where": {
                              "_id": {
                                "inq": [
                                  "5f1ff8f221cd73003b84234a",
                                  "5f4f6d4fb8d7fc003b62ef5c"
                                ]
                              }
                            }
                          },
                          "total": 1,
                          "mode": "selection",
                          "selectiondIds": [
                            "5f1ff8f221cd73003b84234a",
                            "5f4f6d4fb8d7fc003b62ef5c"
                          ]
                        },
                        "created_date": "2021-12-21T10:42:37.369Z",
                        "updated_date": "2021-12-21T14:52:13.216Z"
                      },
                      "errors": {}
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import audience",
        "operationId": "Import audience",
        "description": "Import a simple list of `client_ids` or `titles` of your sites to use it as the audience of an existing campaign.\n\n### Fields\n\n| Field      | Format  | Required | Description     |\n|------------|---------|:--------:|-----------------|\n|`client_id` |  string |    x     | client_id of the store to be added to the audience  |\n|`title`     |  string |    x     | title of the store to be added to the audience  |\n\n**Important:**    \nEither `client_id` or `title` is required. We recommend to import client_ids as they are unique.\nIf multiple stores have the same title in your database they will all be added to the audience if you are importing a list of titles.",
        "tags": [
          "Campaigns"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the campaign",
            "required": true,
            "example": "61c1af9dc9ee430037e6b622",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/campaign-templates/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import new campaigns from template",
        "operationId": "Import new campaigns from template",
        "description": "Generate multiple campaigns from an excel file containing the list of new campaigns you wish to create and the campaign template used as source for each.\n\n#### Fields\n\n| Field                 | Format  | Required | Description     |\n|-----------------------|---------|:--------:|-----------------|\n|`template_title`       |  string |    x     | The title of the source template you want to use for the new campaign  |\n|`campaign_title`       |  string |    x     | The title of the new campaign you are creating  |\n|`campaign_description` |  string |          | The description of the new campaign (Formatting HTML)  |\n|`tags`                 |  string |          | The list of tags (separated by commas) of the new campaign   |\n|`start_date`           |  string |          | The date from which the missions published from this campaign will be visible to your users. Note that you still need to publish the campaign even if you specify a start_date. The date has to be written in the ISO-8601 format   |\n|`end_date`             |  string |          | The date after which the missions will be paused for this campaign. The date has to be written in the ISO-8601 format   |\n|`due_date`             |  string |          | The due date indicated for all the missions published from this campaign. The date has to be written in the ISO-8601 format   |",
        "tags": [
          "Campaigns"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/campaigns?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "campaign_id": {
                        "type": "string"
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "type": {
                        "type": "string"
                      },
                      "page_titles": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "icon_url": {
                        "type": "string"
                      },
                      "background_url": {
                        "type": "string"
                      },
                      "questions": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "question_id": {
                              "type": "string"
                            },
                            "question_type": {
                              "type": "string"
                            },
                            "question": {
                              "type": "string"
                            },
                            "page_number": {
                              "type": "number"
                            },
                            "question_number": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "question_id",
                            "question_type",
                            "question",
                            "page_number",
                            "question_number"
                          ]
                        }
                      }
                    },
                    "required": [
                      "campaign_id",
                      "created_date",
                      "updated_date",
                      "title",
                      "description",
                      "tags",
                      "type",
                      "page_titles",
                      "icon_url",
                      "background_url",
                      "questions"
                    ]
                  },
                  "example": [
                    {
                      "campaign_id": "54ab03c6546847ee0d30086a",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "title": "Rockets campaign 1",
                      "description": "campaign description here",
                      "tags": [
                        "tag1",
                        "tag2"
                      ],
                      "type": "mission",
                      "page_titles": [
                        "Page 1"
                      ],
                      "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401814/ji2yhtw926naemtsj6xr.png",
                      "background_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401827/seuuqjbry1e4uusi0nta.png",
                      "questions": [
                        {
                          "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc7",
                          "question_type": "number",
                          "question": "number of ice-cream flavors",
                          "page_number": 1,
                          "question_number": 1
                        },
                        {
                          "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc8",
                          "question_type": "text",
                          "question": "ice-cream flavors",
                          "page_number": 1,
                          "question_number": 2
                        }
                      ]
                    },
                    {
                      "campaign_id": "54ab03c6546847ee0d30086b",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "title": "Rockets campaign 2",
                      "description": "campaign description here",
                      "tags": [
                        "tag1",
                        "tag3"
                      ],
                      "type": "mission",
                      "page_titles": [
                        "Page 1"
                      ],
                      "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401814/ji2yhtw926naemtsj6xr.png",
                      "background_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401827/seuuqjbry1e4uusi0nta.png",
                      "questions": [
                        {
                          "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc7",
                          "question_type": "number",
                          "question": "number of ice-cream flavors",
                          "page_number": 1,
                          "question_number": 1
                        },
                        {
                          "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc8",
                          "question_type": "text",
                          "question": "do you prefer sorbet?",
                          "page_number": 2,
                          "question_number": 1
                        }
                      ]
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "campaign_id": "54ab03c6546847ee0d30086a",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-05-23T04:51:40.862Z",
                        "title": "Rockets campaign 1",
                        "description": "campaign description here",
                        "tags": [
                          "tag1",
                          "tag2"
                        ],
                        "type": "mission",
                        "page_titles": [
                          "Page 1"
                        ],
                        "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401814/ji2yhtw926naemtsj6xr.png",
                        "background_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401827/seuuqjbry1e4uusi0nta.png",
                        "questions": [
                          {
                            "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc7",
                            "question_type": "number",
                            "question": "number of ice-cream flavors",
                            "page_number": 1,
                            "question_number": 1
                          },
                          {
                            "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc8",
                            "question_type": "text",
                            "question": "ice-cream flavors",
                            "page_number": 1,
                            "question_number": 2
                          }
                        ]
                      },
                      {
                        "campaign_id": "54ab03c6546847ee0d30086b",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-05-23T04:51:40.862Z",
                        "title": "Rockets campaign 2",
                        "description": "campaign description here",
                        "tags": [
                          "tag1",
                          "tag3"
                        ],
                        "type": "mission",
                        "page_titles": [
                          "Page 1"
                        ],
                        "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401814/ji2yhtw926naemtsj6xr.png",
                        "background_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401827/seuuqjbry1e4uusi0nta.png",
                        "questions": [
                          {
                            "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc7",
                            "question_type": "number",
                            "question": "number of ice-cream flavors",
                            "page_number": 1,
                            "question_number": 1
                          },
                          {
                            "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc8",
                            "question_type": "text",
                            "question": "do you prefer sorbet?",
                            "page_number": 2,
                            "question_number": 1
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the campaigns.",
        "tags": [
          "Campaigns"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/campaigns/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Campaigns"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/campaigns/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Campaigns"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/catalogs/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "catalog_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "group_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "catalog_id": "54ab03c6546847ee0d30086a",
                    "title": "Rockets catalog",
                    "group_ids": [
                      "staf",
                      "managers"
                    ],
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "updated_date": "2018-05-23T04:51:40.862Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "catalog_id": "54ab03c6546847ee0d30086a",
                      "title": "Rockets catalog",
                      "group_ids": [
                        "staf",
                        "managers"
                      ],
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a catalog for the given id.",
        "tags": [
          "Catalogs"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the catalog",
            "required": true,
            "example": "54ab03c6546847ee0d30086a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {}
          }
        },
        "summary": "Delete",
        "operationId": "Delete",
        "description": "Delete a catalog by id.",
        "tags": [
          "Catalogs"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the catalog",
            "required": true,
            "example": "54ab03c6546847ee0d30086a",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "catalog_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "group_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "catalog_id": "54ab03c6546847ee0d30086a",
                    "title": "Houston Rockets catalog.",
                    "group_ids": [
                      "staf",
                      "managers"
                    ],
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "updated_date": "2018-05-23T04:51:40.862Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "catalog_id": "54ab03c6546847ee0d30086a",
                      "title": "Houston Rockets catalog.",
                      "group_ids": [
                        "staf",
                        "managers"
                      ],
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of a catalog",
        "tags": [
          "Catalogs"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the catalog",
            "required": true,
            "example": "54ab03c6546847ee0d30086a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  }
                },
                "example": {
                  "title": "Houston Rockets catalog."
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/catalogs?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "catalog_id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "group_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "catalog_id",
                      "group_ids",
                      "title",
                      "created_date",
                      "updated_date"
                    ]
                  },
                  "example": [
                    {
                      "catalog_id": "54ab03c6546847ee0d30086a",
                      "title": "Houston Rockets catalog.",
                      "group_ids": [
                        "staf",
                        "managers"
                      ],
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z"
                    },
                    {
                      "catalog_id": "54ab03c6546847ee0d30086b",
                      "group_ids": [
                        "staf"
                      ],
                      "title": "Rockets catalog 1",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z"
                    },
                    {
                      "catalog_id": "54ab03c6546847ee0d30086c",
                      "title": "Rockets catalog 2",
                      "group_ids": [
                        "managers"
                      ],
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "catalog_id": "54ab03c6546847ee0d30086a",
                        "title": "Houston Rockets catalog.",
                        "group_ids": [
                          "staf",
                          "managers"
                        ],
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-05-23T04:51:40.862Z"
                      },
                      {
                        "catalog_id": "54ab03c6546847ee0d30086b",
                        "group_ids": [
                          "staf"
                        ],
                        "title": "Rockets catalog 1",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-05-23T04:51:40.862Z"
                      },
                      {
                        "catalog_id": "54ab03c6546847ee0d30086c",
                        "title": "Rockets catalog 2",
                        "group_ids": [
                          "managers"
                        ],
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-05-23T04:51:40.862Z"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the catalogs.",
        "tags": [
          "Catalogs"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/catalogs/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Catalogs"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/catalogs": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "catalog_id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "group_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "catalog_id",
                      "title",
                      "group_ids",
                      "created_date",
                      "updated_date"
                    ]
                  },
                  "example": [
                    {
                      "catalog_id": "552168f5f8d75fe77c520e7f",
                      "title": "Houston Rockets' managers catalog.",
                      "group_ids": [
                        "managers"
                      ],
                      "created_date": "2015-04-05T01:55:17.563Z",
                      "updated_date": "2015-09-07T11:30:58.643Z"
                    },
                    {
                      "catalog_id": "552168f5f8d75fe77c520e80",
                      "title": "Houston Rockets' staf catalog.",
                      "group_ids": [
                        "staf"
                      ],
                      "created_date": "2015-04-05T01:55:17.563Z",
                      "updated_date": "2015-09-07T11:40:58.643Z"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "catalog_id": "552168f5f8d75fe77c520e7f",
                        "title": "Houston Rockets' managers catalog.",
                        "group_ids": [
                          "managers"
                        ],
                        "created_date": "2015-04-05T01:55:17.563Z",
                        "updated_date": "2015-09-07T11:30:58.643Z"
                      },
                      {
                        "catalog_id": "552168f5f8d75fe77c520e80",
                        "title": "Houston Rockets' staf catalog.",
                        "group_ids": [
                          "staf"
                        ],
                        "created_date": "2015-04-05T01:55:17.563Z",
                        "updated_date": "2015-09-07T11:40:58.643Z"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "You may create a new single catalog or multiple catalogs using this action.    \nWhen creating a single catalog the body contains a json object, when creating multiple catalogs the body contains an array of objects.    \n**Warning: a maximum of 1000 items can be sent in a single request.**",
        "tags": [
          "Catalogs"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "group_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "title": "Houston Rockets' new catalog.",
                  "group_ids": [
                    "staf",
                    "managers"
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/catalogs/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Catalogs"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/catalogs/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n### Fields\n\n| Field                    | Format  | Required | Description     |\n|--------------------------|---------|:--------:|-----------------|\n|`catalog_id`              |  string |          | Unique id of the catalog |\n|`title`                   |  string |     x    | The catalog title         |\n|`group_ids`               |  array  |     x    | Group ids that can see this catalog     |\n|`created_date`            |  timestamp |       | Creation date             |\n|`updated_date`            |  timestamp |       | Last update date          |",
        "tags": [
          "Catalogs"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/chats": {
      "post": {
        "responses": {
          "201": {
            "description": "Created",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sender_id": {
                      "type": "string"
                    },
                    "recipient_id": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    },
                    "attachments": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "sender_id": "54ab03c6546847ee0d30086a",
                    "recipient_id": "54ab03c6546847ee0d30086b",
                    "text": "Hello, how are you?",
                    "attachments": "https://assets.yoobic.com/image/upload/v1/file.jpg",
                    "created_date": "2025-12-29T10:00:00.000Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "sender_id": "54ab03c6546847ee0d30086a",
                      "recipient_id": "54ab03c6546847ee0d30086b",
                      "text": "Hello, how are you?",
                      "attachments": "https://assets.yoobic.com/image/upload/v1/file.jpg",
                      "created_date": "2025-12-29T10:00:00.000Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "Send a chat message from a user to another user.",
        "tags": [
          "Chats"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sender_id": {
                    "type": "string"
                  },
                  "recipient_id": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  },
                  "attachments": {
                    "type": "string"
                  }
                },
                "example": {
                  "sender_id": "54ab03c6546847ee0d30086a",
                  "recipient_id": "54ab03c6546847ee0d30086b",
                  "text": "Hello, how are you?",
                  "attachments": "https://assets.yoobic.com/image/upload/v1/file.jpg"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/comments/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "comment_id": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "news_id": {
                      "type": "string"
                    },
                    "date": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    },
                    "text_en": {
                      "type": "string"
                    },
                    "sentiment": {
                      "type": "number"
                    },
                    "language": {
                      "type": "string"
                    },
                    "_lmt": {
                      "type": "string"
                    },
                    "_ect": {
                      "type": "string"
                    },
                    "tenant": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "comment_id": "5d31ecba11e695003a9b1dfc",
                    "user_id": "5beee5197fc4d50043801bd1",
                    "news_id": "5d31b71a1a76e9003afd621e",
                    "date": "2019-07-19T16:15:54.554Z",
                    "text": "La vie est belle!",
                    "text_en": "Life is beautiful!",
                    "sentiment": 0.9,
                    "language": "fr",
                    "_lmt": "2019-07-19T16:15:54.610Z",
                    "_ect": "2019-07-19T16:15:54.610Z",
                    "tenant": "tenant name",
                    "created_date": "2019-07-19T16:15:54.610Z",
                    "updated_date": "2019-07-19T16:15:54.610Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "comment_id": "5d31ecba11e695003a9b1dfc",
                      "user_id": "5beee5197fc4d50043801bd1",
                      "news_id": "5d31b71a1a76e9003afd621e",
                      "date": "2019-07-19T16:15:54.554Z",
                      "text": "La vie est belle!",
                      "text_en": "Life is beautiful!",
                      "sentiment": 0.9,
                      "language": "fr",
                      "_lmt": "2019-07-19T16:15:54.610Z",
                      "_ect": "2019-07-19T16:15:54.610Z",
                      "tenant": "tenant name",
                      "created_date": "2019-07-19T16:15:54.610Z",
                      "updated_date": "2019-07-19T16:15:54.610Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a comment for the given id.",
        "tags": [
          "Comments"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the comment",
            "required": true,
            "example": "5c6e7bd9d6313e003a5b73e1",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/comments?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "comment_id": {
                            "type": "string"
                          },
                          "user_id": {
                            "type": "string"
                          },
                          "news_id": {
                            "type": "string"
                          },
                          "date": {
                            "type": "string"
                          },
                          "text": {
                            "type": "string"
                          },
                          "text_en": {
                            "type": "string"
                          },
                          "language": {
                            "type": "string"
                          },
                          "_lmt": {
                            "type": "string"
                          },
                          "_ect": {
                            "type": "string"
                          },
                          "tenant": {
                            "type": "string"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          },
                          "sentiment": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "comment_id",
                          "user_id",
                          "news_id",
                          "date",
                          "text",
                          "text_en",
                          "language",
                          "_lmt",
                          "_ect",
                          "tenant",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "comment_id": "5d31ecba11e695003a9b1dfc",
                        "user_id": "5beee5197fc4d50043801bd1",
                        "news_id": "5d31b71a1a76e9003afd621e",
                        "date": "2019-07-19T16:15:54.554Z",
                        "text": "Hello",
                        "text_en": "Hello",
                        "language": "en",
                        "_lmt": "2019-07-19T16:15:54.610Z",
                        "_ect": "2019-07-19T16:15:54.610Z",
                        "tenant": "testproductv6_boost",
                        "created_date": "2019-07-19T16:15:54.610Z",
                        "updated_date": "2019-07-19T16:15:54.610Z"
                      },
                      {
                        "comment_id": "5d31ecba11e695003a9b1dfc",
                        "user_id": "5beee5197fc4d50043801bd1",
                        "news_id": "5d31b71a1a76e9003afd621e",
                        "date": "2019-07-19T16:15:54.554Z",
                        "text": "La vie est belle!",
                        "text_en": "Life is beautiful!",
                        "sentiment": 0.9,
                        "language": "fr",
                        "_lmt": "2019-07-19T16:15:54.610Z",
                        "_ect": "2019-07-19T16:15:54.610Z",
                        "tenant": "tenant name",
                        "created_date": "2019-07-19T16:15:54.610Z",
                        "updated_date": "2019-07-19T16:15:54.610Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "comment_id": "5d31ecba11e695003a9b1dfc",
                          "user_id": "5beee5197fc4d50043801bd1",
                          "news_id": "5d31b71a1a76e9003afd621e",
                          "date": "2019-07-19T16:15:54.554Z",
                          "text": "Hello",
                          "text_en": "Hello",
                          "language": "en",
                          "_lmt": "2019-07-19T16:15:54.610Z",
                          "_ect": "2019-07-19T16:15:54.610Z",
                          "tenant": "testproductv6_boost",
                          "created_date": "2019-07-19T16:15:54.610Z",
                          "updated_date": "2019-07-19T16:15:54.610Z"
                        },
                        {
                          "comment_id": "5d31ecba11e695003a9b1dfc",
                          "user_id": "5beee5197fc4d50043801bd1",
                          "news_id": "5d31b71a1a76e9003afd621e",
                          "date": "2019-07-19T16:15:54.554Z",
                          "text": "La vie est belle!",
                          "text_en": "Life is beautiful!",
                          "sentiment": 0.9,
                          "language": "fr",
                          "_lmt": "2019-07-19T16:15:54.610Z",
                          "_ect": "2019-07-19T16:15:54.610Z",
                          "tenant": "tenant name",
                          "created_date": "2019-07-19T16:15:54.610Z",
                          "updated_date": "2019-07-19T16:15:54.610Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all comments.",
        "tags": [
          "Comments"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/comments/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Comments"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/comments/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Comments"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/communities/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "community_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "creator_id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "audience_id": {
                      "type": "string"
                    },
                    "allow_posts_from_all": {
                      "type": "boolean"
                    },
                    "disable_notifications": {
                      "type": "boolean"
                    },
                    "hide_posts_from_newsfeed": {
                      "type": "boolean"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "community_id": "668d495b335f79001d10cfd7",
                    "name": "Public API community",
                    "creator_id": "662a0acf7495703637e9c884",
                    "type": "open",
                    "audience_id": "668d22072e701b001dec95bb",
                    "allow_posts_from_all": true,
                    "disable_notifications": false,
                    "hide_posts_from_newsfeed": false,
                    "created_date": "2024-07-09T14:29:47.747Z",
                    "updated_date": "2025-01-07T12:55:09.085Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "community_id": "668d495b335f79001d10cfd7",
                      "name": "Public API community",
                      "creator_id": "662a0acf7495703637e9c884",
                      "type": "open",
                      "audience_id": "668d22072e701b001dec95bb",
                      "allow_posts_from_all": true,
                      "disable_notifications": false,
                      "hide_posts_from_newsfeed": false,
                      "created_date": "2024-07-09T14:29:47.747Z",
                      "updated_date": "2025-01-07T12:55:09.085Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a community for the given id.",
        "tags": [
          "Communities"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the community",
            "required": true,
            "example": "668d495b335f79001d10cfd7",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/communities?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Get all communitites",
        "operationId": "Get all communitites",
        "description": "Get all communities.",
        "tags": [
          "Communities"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{\"where\": {\"audience_id\": \"668d22072e701b001dec95bb\"}}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/communities": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "community_id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "creator_id": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      },
                      "audience_id": {
                        "type": "string"
                      },
                      "allow_posts_from_all": {
                        "type": "boolean"
                      },
                      "disable_notifications": {
                        "type": "boolean"
                      },
                      "hide_posts_from_newsfeed": {
                        "type": "boolean"
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      }
                    }
                  },
                  "example": [
                    {
                      "community_id": "677e40f690f4a601c4bf8735",
                      "name": "NEW Test Community",
                      "creator_id": "662a0acf7495703637e9c884",
                      "type": "open",
                      "audience_id": "668d22072e701b001dec95bb",
                      "allow_posts_from_all": true,
                      "disable_notifications": false,
                      "hide_posts_from_newsfeed": false,
                      "created_date": "2025-01-08T09:10:14.603Z",
                      "updated_date": "2025-01-08T09:10:14.603Z"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "community_id": "677e40f690f4a601c4bf8735",
                        "name": "NEW Test Community",
                        "creator_id": "662a0acf7495703637e9c884",
                        "type": "open",
                        "audience_id": "668d22072e701b001dec95bb",
                        "allow_posts_from_all": true,
                        "disable_notifications": false,
                        "hide_posts_from_newsfeed": false,
                        "created_date": "2025-01-08T09:10:14.603Z",
                        "updated_date": "2025-01-08T09:10:14.603Z"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "Create a community",
        "tags": [
          "Communities"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "audience_id": {
                    "type": "string"
                  },
                  "allow_posts_from_all": {
                    "type": "boolean"
                  },
                  "disable_notifications": {
                    "type": "boolean"
                  },
                  "hide_posts_from_newsfeed": {
                    "type": "boolean"
                  }
                },
                "example": {
                  "name": "NEW Test Community",
                  "type": "open",
                  "audience_id": "668d22072e701b001dec95bb",
                  "allow_posts_from_all": true,
                  "disable_notifications": false,
                  "hide_posts_from_newsfeed": false
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/communities/{community_id}/promote_manager/{manager_id}": {
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "message": "662a4534fb6cd214b1fab989 is now a manager of 668d495b335f79001d10cfd7 community"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "message": "662a4534fb6cd214b1fab989 is now a manager of 668d495b335f79001d10cfd7 community"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Nominate a community manager",
        "operationId": "Nominate a community manager",
        "description": "Nominate the manager of a community",
        "tags": [
          "Communities"
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "description": "The id of the community",
            "required": true,
            "example": "668d495b335f79001d10cfd7",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "manager_id",
            "in": "path",
            "description": "The id of the manager",
            "required": true,
            "example": "662a4534fb6cd214b1fab989",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/public/api/communities/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Communities"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/communities/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Communities"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/community-posts/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "post_id": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "community_id": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "publish_type": {
                      "type": "string"
                    },
                    "publish_date": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "post_id": "677d40dc0241bb002127310f",
                    "description": "<div>Working test</div>",
                    "community_id": "667ac0b15ba1350028ac0b99",
                    "user_id": "66150878202c1cfafdb4f8f5",
                    "publish_type": "postnow",
                    "publish_date": "2025-01-07T14:57:32.036Z",
                    "created_date": "2025-01-07T14:57:32.122Z",
                    "updated_date": "2025-01-07T14:57:32.122Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "post_id": "677d40dc0241bb002127310f",
                      "description": "<div>Working test</div>",
                      "community_id": "667ac0b15ba1350028ac0b99",
                      "user_id": "66150878202c1cfafdb4f8f5",
                      "publish_type": "postnow",
                      "publish_date": "2025-01-07T14:57:32.036Z",
                      "created_date": "2025-01-07T14:57:32.122Z",
                      "updated_date": "2025-01-07T14:57:32.122Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a post for a given id",
        "tags": [
          "Community Posts"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the post",
            "required": true,
            "example": "677d40dc0241bb002127310f",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/community-posts/?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Get all posts",
        "operationId": "Get all posts",
        "description": "Get all posts.",
        "tags": [
          "Community Posts"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{\"where\":{\"community_id\": \"667ac0b15ba1350028ac0b99\"}}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/community-posts/{community_post_id}/comments?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Get all post comments",
        "operationId": "Get all post comments",
        "description": "Get all post comments.",
        "tags": [
          "Community Posts"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{\"where”:{\"comment\": \"I want to join\"}}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/community-posts": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "post_id": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "community_id": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "publish_type": {
                      "type": "string"
                    },
                    "publish_date": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "post_id": "677e3e49b855a6001ff46388",
                    "description": "<div>Welcome everyone!</div>",
                    "community_id": "667ac0b15ba1350028ac0b99",
                    "user_id": "6628ed6adc1960a7aa5c7ce4",
                    "publish_type": "postnow",
                    "publish_date": "2025-01-08T07:57:32.036Z",
                    "created_date": "2025-01-08T08:58:49.102Z",
                    "updated_date": "2025-01-08T08:58:49.102Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "post_id": "677e3e49b855a6001ff46388",
                      "description": "<div>Welcome everyone!</div>",
                      "community_id": "667ac0b15ba1350028ac0b99",
                      "user_id": "6628ed6adc1960a7aa5c7ce4",
                      "publish_type": "postnow",
                      "publish_date": "2025-01-08T07:57:32.036Z",
                      "created_date": "2025-01-08T08:58:49.102Z",
                      "updated_date": "2025-01-08T08:58:49.102Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Create a post",
        "operationId": "Create a post",
        "description": "Create a post",
        "tags": [
          "Community Posts"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "community_id": {
                    "type": "string"
                  },
                  "user_id": {
                    "type": "string"
                  },
                  "publish_type": {
                    "type": "string"
                  },
                  "publish_date": {
                    "type": "string"
                  }
                },
                "example": {
                  "description": "<div>Welcome everyone!</div>",
                  "community_id": "667ac0b15ba1350028ac0b99",
                  "user_id": "6628ed6adc1960a7aa5c7ce4",
                  "publish_type": "postnow",
                  "publish_date": "2025-01-08T07:57:32.036Z"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/community-posts/{community_post_id}/comments": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "comment_id": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "date": {
                      "type": "string"
                    },
                    "comment": {
                      "type": "string"
                    },
                    "community_id": {
                      "type": "string"
                    },
                    "community_post_id": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "comment_id": "677e3f43b855a6001ff464a7",
                    "user_id": "6628ed6adc1960a7aa5c7ce4",
                    "date": "2025-01-08T09:02:59.707Z",
                    "comment": "Good to know :)",
                    "community_id": "667ac0b15ba1350028ac0b99",
                    "community_post_id": "677ba82156e14b001e8cab37",
                    "created_date": "2025-01-08T09:02:59.728Z",
                    "updated_date": "2025-01-08T09:02:59.728Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "comment_id": "677e3f43b855a6001ff464a7",
                      "user_id": "6628ed6adc1960a7aa5c7ce4",
                      "date": "2025-01-08T09:02:59.707Z",
                      "comment": "Good to know :)",
                      "community_id": "667ac0b15ba1350028ac0b99",
                      "community_post_id": "677ba82156e14b001e8cab37",
                      "created_date": "2025-01-08T09:02:59.728Z",
                      "updated_date": "2025-01-08T09:02:59.728Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Create a post comment",
        "operationId": "Create a post comment",
        "description": "Create a post comment",
        "tags": [
          "Community Posts"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user_id": {
                    "type": "string"
                  },
                  "comment": {
                    "type": "string"
                  }
                },
                "example": {
                  "user_id": "6628ed6adc1960a7aa5c7ce4",
                  "comment": "Good to know :)"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/community-posts/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Community Posts"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/community-posts/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Community Posts"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/competencies/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "competency_id": {
                      "type": "string"
                    },
                    "creator_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "tenant": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "competency_id": "61bb34a35f12370025d998da",
                    "creator_id": "5e1356f0c5f0e0003d305072",
                    "title": "new test competency ",
                    "tenant": "testproductv6_boost",
                    "created_date": "2021-12-16T12:44:19.018Z",
                    "updated_date": "2021-12-16T12:44:19.018Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "competency_id": "61bb34a35f12370025d998da",
                      "creator_id": "5e1356f0c5f0e0003d305072",
                      "title": "new test competency ",
                      "tenant": "testproductv6_boost",
                      "created_date": "2021-12-16T12:44:19.018Z",
                      "updated_date": "2021-12-16T12:44:19.018Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a competency for the given id.",
        "tags": [
          "Competencies"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the competency",
            "required": true,
            "example": "5c6e7bd9d6313e003a5b73e1",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/competencies?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "competency_id": {
                            "type": "string"
                          },
                          "creator_id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "tenant": {
                            "type": "string"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "competency_id",
                          "creator_id",
                          "title",
                          "tenant",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "competency_id": "61bb34a35f12370025d998da",
                        "creator_id": "5e1356f0c5f0e0003d305072",
                        "title": "new test competency ",
                        "tenant": "testproductv6_boost",
                        "created_date": "2021-12-16T12:44:19.018Z",
                        "updated_date": "2021-12-16T12:44:19.018Z"
                      },
                      {
                        "competency_id": "61b8de7f18a1d2002905c610",
                        "creator_id": "61af7b01ee30bd0025145674",
                        "title": "this is a new competency ",
                        "tenant": "new_security_tenant",
                        "created_date": "2021-12-14T18:12:15.385Z",
                        "updated_date": "2021-12-14T18:12:15.385Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "competency_id": "61bb34a35f12370025d998da",
                          "creator_id": "5e1356f0c5f0e0003d305072",
                          "title": "new test competency ",
                          "tenant": "testproductv6_boost",
                          "created_date": "2021-12-16T12:44:19.018Z",
                          "updated_date": "2021-12-16T12:44:19.018Z"
                        },
                        {
                          "competency_id": "61b8de7f18a1d2002905c610",
                          "creator_id": "61af7b01ee30bd0025145674",
                          "title": "this is a new competency ",
                          "tenant": "new_security_tenant",
                          "created_date": "2021-12-14T18:12:15.385Z",
                          "updated_date": "2021-12-14T18:12:15.385Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the competencies.",
        "tags": [
          "Competencies"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/competencies/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Competencies"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/competencies/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Competencies"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/course-categories/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "category_id": {
                      "type": "string"
                    },
                    "creator_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "tenant": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "category_id": "61c058d4d1ae7c00388ef198",
                    "creator_id": "5f3cfa761e8fdf003bf1fab7",
                    "title": "Sales AI",
                    "tenant": "vitaltest",
                    "created_date": "2021-12-20T10:20:04.206Z",
                    "updated_date": "2021-12-20T10:20:04.206Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "category_id": "61c058d4d1ae7c00388ef198",
                      "creator_id": "5f3cfa761e8fdf003bf1fab7",
                      "title": "Sales AI",
                      "tenant": "vitaltest",
                      "created_date": "2021-12-20T10:20:04.206Z",
                      "updated_date": "2021-12-20T10:20:04.206Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a course for the given id.",
        "tags": [
          "Course Categories"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the course",
            "required": true,
            "example": "5c6e7bd9d6313e003a5b73e1",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/course-categories?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "category_id": {
                            "type": "string"
                          },
                          "creator_id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "tenant": {
                            "type": "string"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "category_id",
                          "creator_id",
                          "title",
                          "tenant",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "category_id": "61b86bea8300b200252164e4",
                        "creator_id": "5e1356f0c5f0e0003d305072",
                        "title": "hello",
                        "tenant": "testproductv6_boost",
                        "created_date": "2021-12-14T10:03:22.232Z",
                        "updated_date": "2021-12-14T10:03:22.232Z"
                      },
                      {
                        "category_id": "61aa12c62e6c8a003d8f71c2",
                        "creator_id": "61125f8d7e10d10034973329",
                        "title": "Blabla",
                        "tenant": "testproduct",
                        "created_date": "2021-12-03T12:51:18.855Z",
                        "updated_date": "2021-12-03T12:51:18.855Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "category_id": "61b86bea8300b200252164e4",
                          "creator_id": "5e1356f0c5f0e0003d305072",
                          "title": "hello",
                          "tenant": "testproductv6_boost",
                          "created_date": "2021-12-14T10:03:22.232Z",
                          "updated_date": "2021-12-14T10:03:22.232Z"
                        },
                        {
                          "category_id": "61aa12c62e6c8a003d8f71c2",
                          "creator_id": "61125f8d7e10d10034973329",
                          "title": "Blabla",
                          "tenant": "testproduct",
                          "created_date": "2021-12-03T12:51:18.855Z",
                          "updated_date": "2021-12-03T12:51:18.855Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the course-categories.",
        "tags": [
          "Course Categories"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/course-categories/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Course Categories"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/course-categories/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Course Categories"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/courses/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "course_id": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "plan_id": {
                      "type": "string"
                    },
                    "assignment_date": {
                      "type": "string"
                    },
                    "earned_points": {
                      "type": "number"
                    },
                    "start_date": {
                      "type": "string"
                    },
                    "finished_date": {
                      "type": "string"
                    },
                    "duration": {
                      "type": "number"
                    },
                    "due_date": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "course_id": "5c6e7bd9d6313e003a5b73e1",
                    "user_id": "5c46fccd73b0240042c8d1cd",
                    "plan_id": "5c5b09bb924daa006bafb347",
                    "assignment_date": "2019-02-21T10:22:17.130Z",
                    "earned_points": 0,
                    "start_date": "2019-02-22T09:00:00.000Z",
                    "finished_date": "2019-02-22T10:00:00.000Z",
                    "duration": 60,
                    "due_date": "2019-03-01T08:00:00.000Z",
                    "created_date": "2019-02-21T10:22:17.136Z",
                    "updated_date": "2019-02-21T10:22:17.136Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "course_id": "5c6e7bd9d6313e003a5b73e1",
                      "user_id": "5c46fccd73b0240042c8d1cd",
                      "plan_id": "5c5b09bb924daa006bafb347",
                      "assignment_date": "2019-02-21T10:22:17.130Z",
                      "earned_points": 0,
                      "start_date": "2019-02-22T09:00:00.000Z",
                      "finished_date": "2019-02-22T10:00:00.000Z",
                      "duration": 60,
                      "due_date": "2019-03-01T08:00:00.000Z",
                      "created_date": "2019-02-21T10:22:17.136Z",
                      "updated_date": "2019-02-21T10:22:17.136Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a course for the given id.",
        "tags": [
          "Courses"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the course",
            "required": true,
            "example": "5c6e7bd9d6313e003a5b73e1",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/courses?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "course_id": {
                            "type": "string"
                          },
                          "user_id": {
                            "type": "string"
                          },
                          "plan_id": {
                            "type": "string"
                          },
                          "assignment_date": {
                            "type": "string"
                          },
                          "earned_points": {
                            "type": "number"
                          },
                          "start_date": {
                            "type": "string"
                          },
                          "finished_date": {
                            "type": "string"
                          },
                          "due_date": {
                            "type": "string"
                          },
                          "tenant": {
                            "type": "string"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "course_id",
                          "user_id",
                          "plan_id",
                          "assignment_date",
                          "tenant",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "course_id": "5c6e7bd9d6313e003a5b73e1",
                        "user_id": "5c46fccd73b0240042c8d1cd",
                        "plan_id": "5c5b09bb924daa006bafb347",
                        "assignment_date": "2019-02-21T10:22:17.130Z",
                        "earned_points": 0,
                        "start_date": "2019-02-22T09:08:54.000Z",
                        "finished_date": "2019-02-22T09:08:54.000Z",
                        "due_date": "2019-03-01T08:00:00.000Z",
                        "tenant": "boost_cs",
                        "created_date": "2019-02-21T10:22:17.136Z",
                        "updated_date": "2019-02-21T10:22:17.136Z"
                      },
                      {
                        "course_id": "5c6e7bcdd6313e003a5b73cc",
                        "user_id": "5c46fccc73b0240042c8d1ca",
                        "plan_id": "5c5b09bb924daa006bafb347",
                        "assignment_date": "2019-02-21T10:22:05.160Z",
                        "tenant": "boost_cs",
                        "created_date": "2019-02-21T10:22:05.163Z",
                        "updated_date": "2019-02-21T10:22:05.163Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "course_id": "5c6e7bd9d6313e003a5b73e1",
                          "user_id": "5c46fccd73b0240042c8d1cd",
                          "plan_id": "5c5b09bb924daa006bafb347",
                          "assignment_date": "2019-02-21T10:22:17.130Z",
                          "earned_points": 0,
                          "start_date": "2019-02-22T09:08:54.000Z",
                          "finished_date": "2019-02-22T09:08:54.000Z",
                          "due_date": "2019-03-01T08:00:00.000Z",
                          "tenant": "boost_cs",
                          "created_date": "2019-02-21T10:22:17.136Z",
                          "updated_date": "2019-02-21T10:22:17.136Z"
                        },
                        {
                          "course_id": "5c6e7bcdd6313e003a5b73cc",
                          "user_id": "5c46fccc73b0240042c8d1ca",
                          "plan_id": "5c5b09bb924daa006bafb347",
                          "assignment_date": "2019-02-21T10:22:05.160Z",
                          "tenant": "boost_cs",
                          "created_date": "2019-02-21T10:22:05.163Z",
                          "updated_date": "2019-02-21T10:22:05.163Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the courses.",
        "tags": [
          "Courses"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/courses/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Courses"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/courses/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Courses"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/custom-model-instances/export?custom_model_id={custom_model_id}&type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Custom Model Instances - Datasets"
        ],
        "parameters": [
          {
            "name": "custom_model_id",
            "in": "path",
            "description": "The inventory for all instances of this export",
            "required": true,
            "example": "54ab03c6546847ee0d37143b",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/custom-model-instances/import?custom_model_id={custom_model_id}&type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n### Fields\n\n| Field                             | Type           | Required | Readonly | OrderBy | Description               |\n|-----------------------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`custom_model_instances_id`        |  string        |          |          |         | Unique identifier         |",
        "tags": [
          "Custom Model Instances - Datasets"
        ],
        "parameters": [
          {
            "name": "custom_model_id",
            "in": "path",
            "description": "The inventory for all instances of this import",
            "required": true,
            "example": "54ab03c6546847ee0d37143b",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/events/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a event for the given id.",
        "tags": [
          "Events"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the event",
            "required": true,
            "example": "61b9b435c8f864003a552378",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "event_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "start_date": {
                      "type": "string"
                    },
                    "end_date": {
                      "type": "string"
                    },
                    "event_type": {
                      "type": "string"
                    },
                    "images": {
                      "type": "array",
                      "items": {}
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "user_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "timezone": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "event_id": "62876c7ad1d606003e43d8bc",
                    "title": "private event",
                    "description": "update description",
                    "start_date": "2022-05-23T10:24:00.000Z",
                    "end_date": "2022-05-23T15:25:00.000Z",
                    "event_type": "private",
                    "images": [],
                    "created_date": "2022-05-20T10:24:58.655Z",
                    "updated_date": "2022-05-20T10:24:58.655Z",
                    "user_ids": [
                      "5f23dc9e342004004927778e",
                      "5f3cfa761e8fdf003bf1faba",
                      "628361451008ce002508afe1",
                      "628364ac1008ce00250a18c2"
                    ],
                    "tags": [
                      "event_tag"
                    ],
                    "timezone": "America/New_York"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "event_id": "62876c7ad1d606003e43d8bc",
                      "title": "private event",
                      "description": "update description",
                      "start_date": "2022-05-23T10:24:00.000Z",
                      "end_date": "2022-05-23T15:25:00.000Z",
                      "event_type": "private",
                      "images": [],
                      "created_date": "2022-05-20T10:24:58.655Z",
                      "updated_date": "2022-05-20T10:24:58.655Z",
                      "user_ids": [
                        "5f23dc9e342004004927778e",
                        "5f3cfa761e8fdf003bf1faba",
                        "628361451008ce002508afe1",
                        "628364ac1008ce00250a18c2"
                      ],
                      "tags": [
                        "event_tag"
                      ],
                      "timezone": "America/New_York"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of an event",
        "tags": [
          "Events"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the event",
            "required": true,
            "example": "61b9b435c8f864003a552378",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The id of the event",
            "required": true,
            "example": "62876c7ad1d606003e43d8bc",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "description": {
                    "type": "string"
                  },
                  "timezone": {
                    "type": "string"
                  }
                },
                "example": {
                  "tags": [
                    "event_tag"
                  ],
                  "description": "update description",
                  "timezone": "America/New_York"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {}
          }
        },
        "summary": "Delete",
        "operationId": "Delete",
        "description": "Delete an event by id.",
        "tags": [
          "Events"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the event",
            "required": true,
            "example": "61b9b435c8f864003a552378",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/events/{id}/invitees": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Invitees",
        "operationId": "Invitees",
        "description": "Export list of invitees of an event.\n\n| Field       | Format | Description                               |\n|-------------|--------|-------------------------------------------|\n| user_id     | string | id of the user                            |\n| username    | string | username of the user                      |\n| email       | string | email of the user                         |\n| first_name  | string | first name of the user                    |\n| last_name   | string | last name of the user                     |\n| attendance  | string | attendance status of the user:<br>• `null` if no answer from user<br>• `join`<br>• `maybe`<br>• `decline` |",
        "tags": [
          "Events"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the event",
            "required": true,
            "example": "62876c7ad1d606003e43d8bc",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/events?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        },
                        "total": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "event_id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "start_date": {
                            "type": "string"
                          },
                          "end_date": {
                            "type": "string"
                          },
                          "event_type": {
                            "type": "string"
                          },
                          "images": {
                            "type": "array",
                            "items": {}
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          },
                          "group_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "shared": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "event_id",
                          "title",
                          "description",
                          "start_date",
                          "end_date",
                          "event_type",
                          "images",
                          "shared",
                          "created_date",
                          "updated_date",
                          "group_ids"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "skip": 0,
                      "limit": 2,
                      "total": 5
                    },
                    "data": [
                      {
                        "event_id": "62a0c411fcbce30026aee2c8",
                        "title": "Share to newsfeed event",
                        "description": "shared in feed",
                        "start_date": "2022-06-08T15:45:14.688Z",
                        "end_date": "2022-06-08T16:45:18.434Z",
                        "event_type": "public",
                        "images": [],
                        "created_date": "2022-06-08T15:45:21.045Z",
                        "updated_date": "2022-06-08T16:20:56.579Z",
                        "group_ids": [
                          "documetation_api"
                        ],
                        "shared": true
                      },
                      {
                        "event_id": "62a0c83271670d71266b9a55",
                        "title": "Don't share to newsfeed",
                        "description": "<div>Is it working?</div>",
                        "start_date": "2022-06-08T15:45:14.688Z",
                        "end_date": "2022-06-08T16:45:18.434Z",
                        "event_type": "public",
                        "images": [],
                        "shared": false,
                        "created_date": "2022-06-08T16:02:58.878Z",
                        "updated_date": "2022-06-08T16:20:56.028Z",
                        "group_ids": [
                          "documetation_api"
                        ]
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "skip": 0,
                        "limit": 2,
                        "total": 5
                      },
                      "data": [
                        {
                          "event_id": "62a0c411fcbce30026aee2c8",
                          "title": "Share to newsfeed event",
                          "description": "shared in feed",
                          "start_date": "2022-06-08T15:45:14.688Z",
                          "end_date": "2022-06-08T16:45:18.434Z",
                          "event_type": "public",
                          "images": [],
                          "created_date": "2022-06-08T15:45:21.045Z",
                          "updated_date": "2022-06-08T16:20:56.579Z",
                          "group_ids": [
                            "documetation_api"
                          ],
                          "shared": true
                        },
                        {
                          "event_id": "62a0c83271670d71266b9a55",
                          "title": "Don't share to newsfeed",
                          "description": "<div>Is it working?</div>",
                          "start_date": "2022-06-08T15:45:14.688Z",
                          "end_date": "2022-06-08T16:45:18.434Z",
                          "event_type": "public",
                          "images": [],
                          "shared": false,
                          "created_date": "2022-06-08T16:02:58.878Z",
                          "updated_date": "2022-06-08T16:20:56.028Z",
                          "group_ids": [
                            "documetation_api"
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the events.",
        "tags": [
          "Events"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/events": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "*/*": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "event_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "start_date": {
                      "type": "string"
                    },
                    "end_date": {
                      "type": "string"
                    },
                    "event_type": {
                      "type": "string"
                    },
                    "group_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "images": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "category": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "event_id": "5f3e4be0c920a5003b57bbed",
                    "title": "EVENT 1",
                    "description": "<div>This is my new description 1</div>",
                    "start_date": "2022-05-29T08:00:00.000Z",
                    "end_date": "2022-05-29T13:00:00.000Z",
                    "event_type": "public",
                    "group_ids": [
                      "documentation_admin",
                      "documentation_stores"
                    ],
                    "images": [
                      "test.jpg"
                    ],
                    "category": "EVENTCATEGORY1",
                    "store_id": "5f3e4be0c920a5003b57bbec"
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "You may create a new single or multiple events using this action.\nWhen creating a single event object the body contains a json object, when creating multiple events objects the body contains an array of objects.    \n**Warning: a maximum of 1000 items can be sent in a single request.**",
        "tags": [
          "Events"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "start_date": {
                    "type": "string"
                  },
                  "end_date": {
                    "type": "string"
                  },
                  "event_type": {
                    "type": "string"
                  },
                  "group_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "images": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "category": {
                    "type": "string"
                  },
                  "store_id": {
                    "type": "string"
                  }
                },
                "example": {
                  "title": "EVENT 1",
                  "description": "<div>This is my new description 1</div>",
                  "start_date": "2022-05-29T08:00:00.000Z",
                  "end_date": "2022-05-29T13:00:00.000Z",
                  "event_type": "public",
                  "group_ids": [
                    "documentation_admin",
                    "documentation_stores"
                  ],
                  "images": [
                    "test.jpg"
                  ],
                  "category": "EVENTCATEGORY1",
                  "store_id": "5f3e4be0c920a5003b57bbec"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/events/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Events"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/events/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Events"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/events/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "### Fields\n\n| Field                | Format         | Required | Description               |\n|----------------------|:--------------:|:--------:|:--------------------------|\n|`event_id`            |  string        |          | Unique id of the event    |\n|`title`               |  string        |    x     | The title of the event    |\n|`description`         |  string        |    x     | The description of the event. HTML can be used for formatting|\n|`start_date`          |  date          |    x     | Start date of the event in UTC|\n|`end_date`            |  date          |    x     | End date of the event in UTC|\n|`event_type`          |  string        |    x     | `private` or `public`      |\n|`all_day`             |  boolean       |          | `true` or `false`. if `true`, start_date should equal to end_date|\n|`tags`                |  array         |          | Event’s list of tags      |\n|`category`            |  string        |          | Category of the event. Must match the title of an existing event category|\n|`user_ids`            |  array         |          | Required for private events only. Ignored for public events. User ids that are invited to this event|\n|`usernames`           |  array         |          | For private events: usernames of the users invited to this event. Alternative to `user_ids`. Populated on export|\n|`group_ids`           |  array         |          | | Required for public events. Ignored for private events. Group ids of users who should be invited to this event|\n|`images`              |  array         |          | | Links to uploaded images. Used as illustration on the event page. Max 3 images per event|\n|`store_id`            |  string        |          | Store the event is linked to|\n|`shared_in_newsfeed`  |  boolean       |          | If event shared on feeds (true/false). Default `false`|\n|`is_assigned_event_type`| boolean      |          | `true` or `false`. Marks the event as an assigned event type|\n|`is_informative`      |  boolean       |          | `true` or `false`. Informative event. Default `false`|\n|`video_urls`          |  array         |          | Links to uploaded videos|\n|`audio_urls`          |  array         |          | Links to uploaded audio files|\n|`file_ids`            |  array         |          | Ids of documents attached to the event|\n|`campaign_id`         |  string        |          | Id of the campaign linked to the event|\n|`is_share_location`   |  boolean       |          | `true` or `false`. Share the event location|\n|`location_type`       |  string        |          | Location type the event is linked to|\n|`users_query`         |  object        |          | Query object used to compute the invited users|\n|`use_users_query`     |  boolean       |          | `true` or `false`. If `true` the invitees are computed from `users_query`|\n|`recurrence`          |  object        |          | Recurrence rule of the event|\n|`disable_notifications`| boolean       |          | `true` or `false`. Disable notifications for this event. Default `false`|\n|`disable_likes`       |  boolean       |          | `true` or `false`. Disable likes on this event. Default `true`|\n|`disable_reactions`   |  boolean       |          | `true` or `false`. Disable reactions on this event. Default `true`|\n|`disable_comments`    |  boolean       |          | `true` or `false`. Disable comments on this event. Default `true`|\n|`creator_id`          |  string        |          | User id of the event creator|\n|`created_date`        |  date          |          | Creation date             |\n|`updated_date`        |  date          |          | Last update date          |",
        "tags": [
          "Events"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/files/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "file_id": {
                      "type": "string"
                    },
                    "folder_id": {
                      "type": "string"
                    },
                    "folder_name": {
                      "type": "string"
                    },
                    "size": {
                      "type": "number"
                    },
                    "filename": {
                      "type": "string"
                    },
                    "download_url": {
                      "type": "string"
                    },
                    "mime_type": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "file_id": "54ab03c6546847ee0d30087d",
                    "folder_id": "54ab03c6546847ee0d30087b",
                    "folder_name": "Rockets folder",
                    "size": 25,
                    "filename": "Rockets file 1",
                    "download_url": "www.rocketltd.com/file/RocketsFile1.jpg",
                    "mime_type": "jpg",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "updated_date": "2018-05-23T04:51:40.862Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "file_id": "54ab03c6546847ee0d30087d",
                      "folder_id": "54ab03c6546847ee0d30087b",
                      "folder_name": "Rockets folder",
                      "size": 25,
                      "filename": "Rockets file 1",
                      "download_url": "www.rocketltd.com/file/RocketsFile1.jpg",
                      "mime_type": "jpg",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a file for the given id.",
        "tags": [
          "Files"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the file",
            "required": true,
            "example": "54ab03c6546847ee0d30087d",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/files": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "file_id": {
                      "type": "string"
                    },
                    "folder_id": {
                      "type": "string"
                    },
                    "folder_name": {
                      "type": "string"
                    },
                    "size": {
                      "type": "number"
                    },
                    "filename": {
                      "type": "string"
                    },
                    "download_url": {
                      "type": "string"
                    },
                    "mime_type": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "file_id": "54ab03c6546847ee0d30087d",
                    "folder_id": "54ab03c6546847ee0d30087b",
                    "folder_name": "Rockets folder",
                    "size": 25,
                    "filename": "Rockets file 1",
                    "download_url": "www.rocketltd.com/file/RocketsFile1.jpg",
                    "mime_type": "jpg",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "updated_date": "2018-05-23T04:51:40.862Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "file_id": "54ab03c6546847ee0d30087d",
                      "folder_id": "54ab03c6546847ee0d30087b",
                      "folder_name": "Rockets folder",
                      "size": 25,
                      "filename": "Rockets file 1",
                      "download_url": "www.rocketltd.com/file/RocketsFile1.jpg",
                      "mime_type": "jpg",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "Upload a file in YOOBIC Documents.\n\nTo upload a photo, you should make a post request of type multipart/form-data. The request body should contain two fields:\n\n- `file`: the binary file you want to upload.\n\n- `group_ids`: select the groups that will have visibility of the file.\n\n- Optionally, `folder_id`: select the parent folder to upload the file.\n\n<img src=\"https://assets.yoobic.com/image/upload/v1769336454/jpjdfb7mhrnmgisymkmf.png\" >",
        "tags": [
          "Files"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/files?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "file_id": {
                        "type": "string"
                      },
                      "folder_id": {
                        "type": "string"
                      },
                      "folder_name": {
                        "type": "string"
                      },
                      "size": {
                        "type": "number"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "download_url": {
                        "type": "string"
                      },
                      "mime_type": {
                        "type": "string"
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "file_id",
                      "folder_id",
                      "folder_name",
                      "size",
                      "filename",
                      "download_url",
                      "mime_type",
                      "created_date",
                      "updated_date"
                    ]
                  },
                  "example": [
                    {
                      "file_id": "54ab03c6546847ee0d30087d",
                      "folder_id": "54ab03c6546847ee0d30087b",
                      "folder_name": "Rockets folder",
                      "size": 25,
                      "filename": "Rockets file 1",
                      "download_url": "www.rocketltd.com/file/RocketsFile1.jpg",
                      "mime_type": "jpg",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z"
                    },
                    {
                      "file_id": "54ab03c6546847ee0d30087e",
                      "folder_id": "54ab03c6546847ee0d30087b",
                      "folder_name": "Rockets folder",
                      "size": 25,
                      "filename": "Rockets file 2",
                      "download_url": "www.rocketltd.com/file/RocketsFile2.jpg",
                      "mime_type": "jpg",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "file_id": "54ab03c6546847ee0d30087d",
                        "folder_id": "54ab03c6546847ee0d30087b",
                        "folder_name": "Rockets folder",
                        "size": 25,
                        "filename": "Rockets file 1",
                        "download_url": "www.rocketltd.com/file/RocketsFile1.jpg",
                        "mime_type": "jpg",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-05-23T04:51:40.862Z"
                      },
                      {
                        "file_id": "54ab03c6546847ee0d30087e",
                        "folder_id": "54ab03c6546847ee0d30087b",
                        "folder_name": "Rockets folder",
                        "size": 25,
                        "filename": "Rockets file 2",
                        "download_url": "www.rocketltd.com/file/RocketsFile2.jpg",
                        "mime_type": "jpg",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-05-23T04:51:40.862Z"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the files.",
        "tags": [
          "Files"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/files/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Files"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/files/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Files"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/geofilters/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "geofilter_id": {
                      "type": "string"
                    },
                    "store_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "store_type_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "geofilter_id": "552168f5f8d75fe77c520e7f",
                    "store_ids": [
                      "551d6add1077d5fb7a12cd33",
                      "551da1d6e846db5b384876e3",
                      "551d6addc5ba3e1c05027f75",
                      "551d6adddf86ce073a80903b",
                      "551d6add6356be82480274c0",
                      "551d6add2c35374276027fe9",
                      "54f06ac41e93dff83d000857"
                    ],
                    "store_type_ids": [
                      "551c1b9b11cbd1e27819ea0f",
                      "551bc51e0a122f7f73e04ba7",
                      "551b1a44e829ce22380028f4",
                      "54357be802d0e9fa0202e9a2"
                    ],
                    "user_id": "55142883b0cc8a622d01c5a1",
                    "created_date": "2015-04-05T16:55:17.563Z",
                    "updated_date": "2015-09-07T09:10:58.643Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "geofilter_id": "552168f5f8d75fe77c520e7f",
                      "store_ids": [
                        "551d6add1077d5fb7a12cd33",
                        "551da1d6e846db5b384876e3",
                        "551d6addc5ba3e1c05027f75",
                        "551d6adddf86ce073a80903b",
                        "551d6add6356be82480274c0",
                        "551d6add2c35374276027fe9",
                        "54f06ac41e93dff83d000857"
                      ],
                      "store_type_ids": [
                        "551c1b9b11cbd1e27819ea0f",
                        "551bc51e0a122f7f73e04ba7",
                        "551b1a44e829ce22380028f4",
                        "54357be802d0e9fa0202e9a2"
                      ],
                      "user_id": "55142883b0cc8a622d01c5a1",
                      "created_date": "2015-04-05T16:55:17.563Z",
                      "updated_date": "2015-09-07T09:10:58.643Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a geofilter for the given id.",
        "tags": [
          "Geofilters"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {}
          }
        },
        "summary": "Delete",
        "operationId": "Delete",
        "description": "Delete a geofilter by id.",
        "tags": [
          "Geofilters"
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "geofilter_id": {
                      "type": "string"
                    },
                    "store_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "store_type_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "geofilter_id": "552168f5f8d75fe77c520e7f",
                    "store_ids": [
                      "551d6add1077d5fb7a12ab01"
                    ],
                    "store_type_ids": [
                      "551c1b9b11cbd1e27819ea0f",
                      "551bc51e0a122f7f73e04ba7",
                      "551b1a44e829ce22380028f4",
                      "54357be802d0e9fa0202e9a2"
                    ],
                    "user_id": "55142883b0cc8a622d01c5a1",
                    "created_date": "2015-04-05T01:55:17.563Z",
                    "updated_date": "2015-09-07T11:30:58.643Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "geofilter_id": "552168f5f8d75fe77c520e7f",
                      "store_ids": [
                        "551d6add1077d5fb7a12ab01"
                      ],
                      "store_type_ids": [
                        "551c1b9b11cbd1e27819ea0f",
                        "551bc51e0a122f7f73e04ba7",
                        "551b1a44e829ce22380028f4",
                        "54357be802d0e9fa0202e9a2"
                      ],
                      "user_id": "55142883b0cc8a622d01c5a1",
                      "created_date": "2015-04-05T01:55:17.563Z",
                      "updated_date": "2015-09-07T11:30:58.643Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of a geofilter",
        "tags": [
          "Geofilters"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "store_client_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "store_client_ids": [
                    "ice-cream-store-10"
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/geofilters?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "geofilter_id": {
                            "type": "string"
                          },
                          "store_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "store_type_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "user_id": {
                            "type": "string"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "geofilter_id",
                          "store_ids",
                          "user_id",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "geofilter_id": "552168f5f8d75fe77c520e7f",
                        "store_ids": [
                          "551d6add1077d5fb7a12ab01"
                        ],
                        "store_type_ids": [
                          "551c1b9b11cbd1e27819ea0f",
                          "551bc51e0a122f7f73e04ba7",
                          "551b1a44e829ce22380028f4",
                          "54357be802d0e9fa0202e9a2"
                        ],
                        "user_id": "55142883b0cc8a622d01c5a1",
                        "created_date": "2015-04-05T01:55:17.563Z",
                        "updated_date": "2015-09-07T11:30:58.643Z"
                      },
                      {
                        "geofilter_id": "552168f5f8d75fe77c520e80",
                        "store_ids": [
                          "551d6add1077d5fb7a12ab02",
                          "551d6add1077d5fb7a12ab03"
                        ],
                        "user_id": "55142883b0cc8a622d01c5a2",
                        "created_date": "2015-04-05T01:55:17.563Z",
                        "updated_date": "2015-09-07T11:40:58.643Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "geofilter_id": "552168f5f8d75fe77c520e7f",
                          "store_ids": [
                            "551d6add1077d5fb7a12ab01"
                          ],
                          "store_type_ids": [
                            "551c1b9b11cbd1e27819ea0f",
                            "551bc51e0a122f7f73e04ba7",
                            "551b1a44e829ce22380028f4",
                            "54357be802d0e9fa0202e9a2"
                          ],
                          "user_id": "55142883b0cc8a622d01c5a1",
                          "created_date": "2015-04-05T01:55:17.563Z",
                          "updated_date": "2015-09-07T11:30:58.643Z"
                        },
                        {
                          "geofilter_id": "552168f5f8d75fe77c520e80",
                          "store_ids": [
                            "551d6add1077d5fb7a12ab02",
                            "551d6add1077d5fb7a12ab03"
                          ],
                          "user_id": "55142883b0cc8a622d01c5a2",
                          "created_date": "2015-04-05T01:55:17.563Z",
                          "updated_date": "2015-09-07T11:40:58.643Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get all",
        "operationId": "Get all",
        "description": "Get all geofilters.",
        "tags": [
          "Geofilters"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/geofilters/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Geofilters"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/geofilters": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "geofilter_id": {
                        "type": "string"
                      },
                      "store_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "user_id": {
                        "type": "string"
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "geofilter_id",
                      "store_ids",
                      "user_id",
                      "created_date",
                      "updated_date"
                    ]
                  },
                  "example": [
                    {
                      "geofilter_id": "552168f5f8d75fe77c520e7f",
                      "store_ids": [
                        "551d6add1077d5fb7a12ab01"
                      ],
                      "user_id": "55142883b0cc8a622d01c5a1",
                      "created_date": "2015-04-05T01:55:17.563Z",
                      "updated_date": "2015-09-07T11:30:58.643Z"
                    },
                    {
                      "geofilter_id": "552168f5f8d75fe77c520e80",
                      "store_ids": [
                        "551d6add1077d5fb7a12ab03"
                      ],
                      "user_id": "55142883b0cc8a622d01c5a2",
                      "created_date": "2015-04-05T01:55:17.563Z",
                      "updated_date": "2015-09-07T11:40:58.643Z"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "geofilter_id": "552168f5f8d75fe77c520e7f",
                        "store_ids": [
                          "551d6add1077d5fb7a12ab01"
                        ],
                        "user_id": "55142883b0cc8a622d01c5a1",
                        "created_date": "2015-04-05T01:55:17.563Z",
                        "updated_date": "2015-09-07T11:30:58.643Z"
                      },
                      {
                        "geofilter_id": "552168f5f8d75fe77c520e80",
                        "store_ids": [
                          "551d6add1077d5fb7a12ab03"
                        ],
                        "user_id": "55142883b0cc8a622d01c5a2",
                        "created_date": "2015-04-05T01:55:17.563Z",
                        "updated_date": "2015-09-07T11:40:58.643Z"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "You may create a new single geofilter or multiple geofilters using this action.    \nWhen creating a single geofilter the body contains a json object, when creating multiple geofilters the body contains an array of objects.    \n**Warning: a maximum of 1000 items can be sent in a single request.**",
        "tags": [
          "Geofilters"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "store_type_names": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "user_id": {
                    "type": "string"
                  }
                },
                "example": {
                  "store_type_names": [
                    "yoobic-ice-creams"
                  ],
                  "user_id": "5babb8a69fa6ae919f675716"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/geofilters/export?{filter}&type={type}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Geofilters"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/geofilters/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n### Fields\n\n| Field                    | Format  | Required | Description     |\n|--------------------------|---------|:--------:|-----------------|\n|`geofilter_id`            |  string |          | Unique geofilter id |\n|`user_id`                 |  string |    x     | Unique user id            |\n|`store_ids`               |  array  |    x     | Unique store ids|\n|`store_client_ids`        |  array  |          | External unique ids of the stores as it may exists in your Information System|\n|`store_type_names`        |  array  |          | The names of the store types|\n|`store_type_ids`          |  array  |          | The ids of the store types|\n\nOne of either fields is required in order to resolve the mapping between a user and store/s:\n\n- store_ids\n\n- store_client_ids\n\n- store_type_ids\n\n- store_type_names",
        "tags": [
          "Geofilters"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/groups/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "group_id": {
                      "type": "string"
                    },
                    "user_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "icon_url": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "group_id": "mycompany_test",
                    "user_ids": [
                      "53fb03c6546847ee0d33386b",
                      "53fb03c6546847ee0d30086a"
                    ],
                    "updated_date": "2018-05-22T11:45:22.100Z",
                    "created_date": "2018-05-22T11:45:22.100Z",
                    "title": "My Company Title",
                    "description": "My Company Description",
                    "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1581436892/klsrdxjtz44dtnlsquzc.png"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "group_id": "mycompany_test",
                      "user_ids": [
                        "53fb03c6546847ee0d33386b",
                        "53fb03c6546847ee0d30086a"
                      ],
                      "updated_date": "2018-05-22T11:45:22.100Z",
                      "created_date": "2018-05-22T11:45:22.100Z",
                      "title": "My Company Title",
                      "description": "My Company Description",
                      "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1581436892/klsrdxjtz44dtnlsquzc.png"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a group for the given id.",
        "tags": [
          "Groups"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {}
          }
        },
        "summary": "Delete",
        "operationId": "Delete",
        "description": "Delete a group by id.",
        "tags": [
          "Groups"
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "group_id": {
                      "type": "string"
                    },
                    "user_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "icon_url": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "group_id": "mycompany_test",
                    "user_ids": [
                      "53fb03c6546847ee0d33386b",
                      "53fb03c6546847ee0d30086a"
                    ],
                    "title": "My New Company Title",
                    "description": "My New Company Description",
                    "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1581436892/klsrdxjtz44dtnlsquzc.png"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "group_id": "mycompany_test",
                      "user_ids": [
                        "53fb03c6546847ee0d33386b",
                        "53fb03c6546847ee0d30086a"
                      ],
                      "title": "My New Company Title",
                      "description": "My New Company Description",
                      "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1581436892/klsrdxjtz44dtnlsquzc.png"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of a group.\n\n**Important:**\nIt is not possible to update `group_ids` or `user_ids` through this endpoint. To update these properties, please read the endpoints above.",
        "tags": [
          "Groups"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "icon_url": {
                    "type": "string"
                  }
                },
                "example": {
                  "title": "My New Company Title",
                  "description": "My New Company Description",
                  "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1581436892/klsrdxjtz44dtnlsquzc.png"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/groups/{id}/groups": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "group_id": {
                      "type": "string"
                    },
                    "user_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "group_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "group_id": "mycompany_mycompany_test",
                    "user_ids": [
                      "53fb03c6546847ee0d33386b",
                      "53fb03c6546847ee0d30086a"
                    ],
                    "group_ids": [
                      "mycompany_mycompany_group_1",
                      "mycompany_mycompany_group_2"
                    ],
                    "updated_date": "2018-10-08T10:15:22.100Z",
                    "created_date": "2018-05-22T11:45:22.100Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "group_id": "mycompany_mycompany_test",
                      "user_ids": [
                        "53fb03c6546847ee0d33386b",
                        "53fb03c6546847ee0d30086a"
                      ],
                      "group_ids": [
                        "mycompany_mycompany_group_1",
                        "mycompany_mycompany_group_2"
                      ],
                      "updated_date": "2018-10-08T10:15:22.100Z",
                      "created_date": "2018-05-22T11:45:22.100Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Add Groups to Group",
        "operationId": "Add Groups to Group",
        "description": "Add groups to a group",
        "tags": [
          "Groups"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "group_id": {
                      "type": "string"
                    },
                    "user_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "group_id": "mycompany_test",
                    "user_ids": [
                      "53fb03c6546847ee0d33386b",
                      "53fb03c6546847ee0d30086a"
                    ],
                    "updated_date": "2018-10-08T10:15:22.100Z",
                    "created_date": "2018-05-22T11:45:22.100Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "group_id": "mycompany_test",
                      "user_ids": [
                        "53fb03c6546847ee0d33386b",
                        "53fb03c6546847ee0d30086a"
                      ],
                      "updated_date": "2018-10-08T10:15:22.100Z",
                      "created_date": "2018-05-22T11:45:22.100Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Remove Groups from Group",
        "operationId": "Remove Groups from Group",
        "description": "Remove groups from a group",
        "tags": [
          "Groups"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/groups/{id}/users": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "group_id": {
                      "type": "string"
                    },
                    "user_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "group_id": "mycompany_test",
                    "user_ids": [
                      "53fb03c6546847ee0d33386b",
                      "53fb03c6546847ee0d30086a",
                      "53fb03c6546847ee0d33387c",
                      "53fb03c6546847ee0d33387d"
                    ],
                    "updated_date": "2018-10-08T10:15:22.100Z",
                    "created_date": "2018-05-22T11:45:22.100Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "group_id": "mycompany_test",
                      "user_ids": [
                        "53fb03c6546847ee0d33386b",
                        "53fb03c6546847ee0d30086a",
                        "53fb03c6546847ee0d33387c",
                        "53fb03c6546847ee0d33387d"
                      ],
                      "updated_date": "2018-10-08T10:15:22.100Z",
                      "created_date": "2018-05-22T11:45:22.100Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Add Users to Group",
        "operationId": "Add Users to Group",
        "description": "Add users to a group",
        "tags": [
          "Groups"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "group_id": {
                      "type": "string"
                    },
                    "user_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "group_id": "mycompany_test",
                    "user_ids": [
                      "53fb03c6546847ee0d33386b",
                      "53fb03c6546847ee0d30086a"
                    ],
                    "updated_date": "2018-10-08T10:15:22.100Z",
                    "created_date": "2018-05-22T11:45:22.100Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "group_id": "mycompany_test",
                      "user_ids": [
                        "53fb03c6546847ee0d33386b",
                        "53fb03c6546847ee0d30086a"
                      ],
                      "updated_date": "2018-10-08T10:15:22.100Z",
                      "created_date": "2018-05-22T11:45:22.100Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Remove Users from Group",
        "operationId": "Remove Users from Group",
        "description": "Remove users from a group",
        "tags": [
          "Groups"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/groups?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "group_id": {
                            "type": "string"
                          },
                          "user_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "updated_date": {
                            "type": "string"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "icon_url": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "group_id",
                          "user_ids",
                          "updated_date",
                          "created_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "group_id": "mycompany_test",
                        "user_ids": [
                          "53fb03c6546847ee0d33386b",
                          "53fb03c6546847ee0d30086a"
                        ],
                        "updated_date": "2018-10-08T10:15:22.100Z",
                        "created_date": "2018-05-22T11:45:22.100Z",
                        "title": "My Company Title",
                        "description": "My Company Description",
                        "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1581436892/klsrdxjtz44dtnlsquzc.png"
                      },
                      {
                        "group_id": "mycompany_another_test_group",
                        "user_ids": [
                          "53fb03c6546847ee0d33387b",
                          "53fb03c6546847ee0d30086a"
                        ],
                        "updated_date": "2018-10-08T10:15:22.100Z",
                        "created_date": "2018-05-22T11:45:22.100Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "group_id": "mycompany_test",
                          "user_ids": [
                            "53fb03c6546847ee0d33386b",
                            "53fb03c6546847ee0d30086a"
                          ],
                          "updated_date": "2018-10-08T10:15:22.100Z",
                          "created_date": "2018-05-22T11:45:22.100Z",
                          "title": "My Company Title",
                          "description": "My Company Description",
                          "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1581436892/klsrdxjtz44dtnlsquzc.png"
                        },
                        {
                          "group_id": "mycompany_another_test_group",
                          "user_ids": [
                            "53fb03c6546847ee0d33387b",
                            "53fb03c6546847ee0d30086a"
                          ],
                          "updated_date": "2018-10-08T10:15:22.100Z",
                          "created_date": "2018-05-22T11:45:22.100Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the groups.",
        "tags": [
          "Groups"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/group/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Groups"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/groups": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "group_id": {
                        "type": "string"
                      },
                      "user_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "updated_date": {
                        "type": "string"
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "icon_url": {
                        "type": "string"
                      },
                      "group_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "group_id",
                      "user_ids",
                      "title",
                      "updated_date",
                      "created_date"
                    ]
                  },
                  "example": [
                    {
                      "group_id": "mycompany_sub-test",
                      "user_ids": [
                        "53fb03c6546847ee0d33386b",
                        "53fb03c6546847ee0d30086a"
                      ],
                      "updated_date": "2018-10-08T10:15:22.100Z",
                      "created_date": "2018-05-22T11:45:22.100Z",
                      "title": "sub-test",
                      "description": "My Company Description",
                      "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1581436892/klsrdxjtz44dtnlsquzc.png"
                    },
                    {
                      "group_id": "mycompany_my_company_title",
                      "user_ids": [
                        "53fb03c6546847ee0d33386b",
                        "53fb03c6546847ee0d30086a"
                      ],
                      "group_ids": [
                        "mycompany_sub-test"
                      ],
                      "title": "My Company Title",
                      "updated_date": "2018-10-08T10:15:22.100Z",
                      "created_date": "2018-05-22T11:45:22.100Z"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "group_id": "mycompany_sub-test",
                        "user_ids": [
                          "53fb03c6546847ee0d33386b",
                          "53fb03c6546847ee0d30086a"
                        ],
                        "updated_date": "2018-10-08T10:15:22.100Z",
                        "created_date": "2018-05-22T11:45:22.100Z",
                        "title": "sub-test",
                        "description": "My Company Description",
                        "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1581436892/klsrdxjtz44dtnlsquzc.png"
                      },
                      {
                        "group_id": "mycompany_my_company_title",
                        "user_ids": [
                          "53fb03c6546847ee0d33386b",
                          "53fb03c6546847ee0d30086a"
                        ],
                        "group_ids": [
                          "mycompany_sub-test"
                        ],
                        "title": "My Company Title",
                        "updated_date": "2018-10-08T10:15:22.100Z",
                        "created_date": "2018-05-22T11:45:22.100Z"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "You may create a new single group or multiple groups using this action.\nWhen creating a single group the body contains a json object, when creating multiple groups the body contains an array of objects.    \n**Warning: a maximum of 1000 items can be sent in a single request.**\n\n**Important:**\nThe `group_id` is generated automatically when a new group is created. The `group_id` corresponds to the group's title in lowercase letters, with `_` instead of spaces, and without special caracters",
        "tags": [
          "Groups"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "icon_url": {
                    "type": "string"
                  }
                },
                "example": {
                  "user_ids": [
                    "53fb03c6546847ee0d33386b",
                    "53fb03c6546847ee0d30086a"
                  ],
                  "title": "My Company Title",
                  "description": "My Company Description",
                  "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1581436892/klsrdxjtz44dtnlsquzc.png"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/groups/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Groups"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/groups/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n**Important:**\nThe `group_id` is generated automatically when a new group is created. The `group_id` corresponds to the Group title in lowercase letters, with `_` instead of spaces, and without special caracters\n\n### Fields\n\n| Field                    | Format  | Required  | Description     |\n|--------------------------|---------|:---------:|-----------------|\n|`group_id`                |  string |           | Unique group name/id |\n|`user_ids`                |  array  |           | User ids of the group |\n|`group_ids`               |  array  |           | Sub group ids of the group|\n|`title`                   |  string |     x     | Group Title|\n|`description`             |  string |           | Group Description|\n|`icon_url`                |  string |           | Icon URL|",
        "tags": [
          "Groups"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/incentives-kpi/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "incentive_kpi_id": {
                      "type": "string"
                    },
                    "incentive_id": {
                      "type": "string"
                    },
                    "owner_id": {
                      "type": "string"
                    },
                    "first_name": {
                      "type": "string"
                    },
                    "last_name": {
                      "type": "string"
                    },
                    "username": {
                      "type": "string"
                    },
                    "participant_id": {
                      "type": "string"
                    },
                    "start_time": {
                      "type": "string"
                    },
                    "end_time": {
                      "type": "string"
                    },
                    "total": {
                      "type": "number"
                    },
                    "count": {
                      "type": "number"
                    },
                    "weight": {
                      "type": "number"
                    },
                    "participant_type": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "incentive_kpi_id": "5eb8fd0a7d5ff5748adcb039",
                    "incentive_id": "5eb8fd017d5ff5748adcaf09",
                    "owner_id": "5eb8fd017d5ff5748adcaef5",
                    "first_name": "my",
                    "last_name": "company",
                    "username": "mcompany@mycompany.com",
                    "participant_id": "5eb8fd017d5ff5748adcaef5",
                    "start_time": "2020-01-01T00:00:00.000Z",
                    "end_time": "2020-01-31T23:59:59.999Z",
                    "total": 12,
                    "count": 6,
                    "weight": 2,
                    "participant_type": "individual",
                    "created_date": "2020-01-01T00:00:00.000Z",
                    "updated_date": "2020-01-01T00:10:00.000Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "incentive_kpi_id": "5eb8fd0a7d5ff5748adcb039",
                      "incentive_id": "5eb8fd017d5ff5748adcaf09",
                      "owner_id": "5eb8fd017d5ff5748adcaef5",
                      "first_name": "my",
                      "last_name": "company",
                      "username": "mcompany@mycompany.com",
                      "participant_id": "5eb8fd017d5ff5748adcaef5",
                      "start_time": "2020-01-01T00:00:00.000Z",
                      "end_time": "2020-01-31T23:59:59.999Z",
                      "total": 12,
                      "count": 6,
                      "weight": 2,
                      "participant_type": "individual",
                      "created_date": "2020-01-01T00:00:00.000Z",
                      "updated_date": "2020-01-01T00:10:00.000Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get an incentive-kpi for the given id.",
        "tags": [
          "Incentives Kpi"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the incentive-kpi",
            "required": true,
            "example": "5eb8fd0a7d5ff5748adcb039",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {}
          }
        },
        "summary": "Delete",
        "operationId": "Delete",
        "description": "Delete an incentive-kpi by id.",
        "tags": [
          "Incentives Kpi"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the incentive-kpi",
            "required": true,
            "example": "5eb8fd0a7d5ff5748adcb039",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "incentive_kpi_id": {
                      "type": "string"
                    },
                    "incentive_id": {
                      "type": "string"
                    },
                    "owner_id": {
                      "type": "string"
                    },
                    "first_name": {
                      "type": "string"
                    },
                    "last_name": {
                      "type": "string"
                    },
                    "username": {
                      "type": "string"
                    },
                    "participant_id": {
                      "type": "string"
                    },
                    "start_time": {
                      "type": "string"
                    },
                    "end_time": {
                      "type": "string"
                    },
                    "total": {
                      "type": "number"
                    },
                    "count": {
                      "type": "number"
                    },
                    "weight": {
                      "type": "number"
                    },
                    "participant_type": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "incentive_kpi_id": "5eb8fd0a7d5ff5748adcb039",
                    "incentive_id": "5eb8fd017d5ff5748adcaf09",
                    "owner_id": "5eb8fd017d5ff5748adcaef5",
                    "first_name": "my",
                    "last_name": "company",
                    "username": "mcompany@mycompany.com",
                    "participant_id": "5eb8fd017d5ff5748adcaef5",
                    "start_time": "2020-01-01T00:00:00.000Z",
                    "end_time": "2020-01-31T23:59:59.999Z",
                    "total": 10,
                    "count": 5,
                    "weight": 2,
                    "participant_type": "individual",
                    "created_date": "2020-01-01T00:00:00.000Z",
                    "updated_date": "2020-01-01T00:35:00.000Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "incentive_kpi_id": "5eb8fd0a7d5ff5748adcb039",
                      "incentive_id": "5eb8fd017d5ff5748adcaf09",
                      "owner_id": "5eb8fd017d5ff5748adcaef5",
                      "first_name": "my",
                      "last_name": "company",
                      "username": "mcompany@mycompany.com",
                      "participant_id": "5eb8fd017d5ff5748adcaef5",
                      "start_time": "2020-01-01T00:00:00.000Z",
                      "end_time": "2020-01-31T23:59:59.999Z",
                      "total": 10,
                      "count": 5,
                      "weight": 2,
                      "participant_type": "individual",
                      "created_date": "2020-01-01T00:00:00.000Z",
                      "updated_date": "2020-01-01T00:35:00.000Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of an incentive-kpi",
        "tags": [
          "Incentives Kpi"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the incentive-kpi",
            "required": true,
            "example": "5eb8fd0a7d5ff5748adcb039",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The id of the incentive-kpi",
            "required": true,
            "example": "5eb8fd0a7d5ff5748adcb039",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "total": {
                    "type": "number"
                  },
                  "count": {
                    "type": "number"
                  }
                },
                "example": {
                  "total": 10,
                  "count": 5
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/incentives-kpi?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "incentive_kpi_id": {
                            "type": "string"
                          },
                          "incentive_id": {
                            "type": "string"
                          },
                          "owner_id": {
                            "type": "string"
                          },
                          "first_name": {
                            "type": "string"
                          },
                          "last_name": {
                            "type": "string"
                          },
                          "username": {
                            "type": "string"
                          },
                          "participant_id": {
                            "type": "string"
                          },
                          "start_time": {
                            "type": "string"
                          },
                          "end_time": {
                            "type": "string"
                          },
                          "total": {
                            "type": "number"
                          },
                          "count": {
                            "type": "number"
                          },
                          "weight": {
                            "type": "number"
                          },
                          "participant_type": {
                            "type": "string"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          },
                          "product_id": {
                            "type": "string"
                          },
                          "product_name": {
                            "type": "string"
                          },
                          "price": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "incentive_kpi_id",
                          "incentive_id",
                          "participant_id",
                          "owner_id",
                          "first_name",
                          "last_name",
                          "username",
                          "start_time",
                          "end_time",
                          "total",
                          "count",
                          "weight",
                          "participant_type",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "incentive_kpi_id": "5eb8fd0a7d5ff5748adcb039",
                        "incentive_id": "5eb8fd017d5ff5748adcaf09",
                        "owner_id": "5eb8fd017d5ff5748adcaef5",
                        "first_name": "my",
                        "last_name": "company",
                        "username": "mcompany@mycompany.com",
                        "participant_id": "5eb8fd017d5ff5748adcaef5",
                        "start_time": "2020-01-01T00:00:00.000Z",
                        "end_time": "2020-01-31T23:59:59.999Z",
                        "total": 10,
                        "count": 5,
                        "weight": 2,
                        "participant_type": "individual",
                        "created_date": "2020-01-01T00:00:00.000Z",
                        "updated_date": "2020-01-01T00:35:00.000Z"
                      },
                      {
                        "incentive_kpi_id": "5eb8fd147d5ff5748adcb096",
                        "incentive_id": "5eb8fd017d5ff5748adcaf08",
                        "participant_id": "api_team",
                        "product_id": "5eb8fd017d5ff5748adcaef5",
                        "product_name": "myproduct",
                        "owner_id": "5eb8fd017d5ff5748adcaef4",
                        "first_name": "John",
                        "last_name": "Doe",
                        "username": "jdoe@mycompany.com",
                        "start_time": "2020-01-01T00:00:00.000Z",
                        "end_time": "2020-01-31T23:59:59.999Z",
                        "total": 20,
                        "count": 2,
                        "weight": 2,
                        "price": 5,
                        "participant_type": "teams",
                        "created_date": "2020-05-11T07:21:56.182Z",
                        "updated_date": "2020-05-11T08:21:56.182Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "incentive_kpi_id": "5eb8fd0a7d5ff5748adcb039",
                          "incentive_id": "5eb8fd017d5ff5748adcaf09",
                          "owner_id": "5eb8fd017d5ff5748adcaef5",
                          "first_name": "my",
                          "last_name": "company",
                          "username": "mcompany@mycompany.com",
                          "participant_id": "5eb8fd017d5ff5748adcaef5",
                          "start_time": "2020-01-01T00:00:00.000Z",
                          "end_time": "2020-01-31T23:59:59.999Z",
                          "total": 10,
                          "count": 5,
                          "weight": 2,
                          "participant_type": "individual",
                          "created_date": "2020-01-01T00:00:00.000Z",
                          "updated_date": "2020-01-01T00:35:00.000Z"
                        },
                        {
                          "incentive_kpi_id": "5eb8fd147d5ff5748adcb096",
                          "incentive_id": "5eb8fd017d5ff5748adcaf08",
                          "participant_id": "api_team",
                          "product_id": "5eb8fd017d5ff5748adcaef5",
                          "product_name": "myproduct",
                          "owner_id": "5eb8fd017d5ff5748adcaef4",
                          "first_name": "John",
                          "last_name": "Doe",
                          "username": "jdoe@mycompany.com",
                          "start_time": "2020-01-01T00:00:00.000Z",
                          "end_time": "2020-01-31T23:59:59.999Z",
                          "total": 20,
                          "count": 2,
                          "weight": 2,
                          "price": 5,
                          "participant_type": "teams",
                          "created_date": "2020-05-11T07:21:56.182Z",
                          "updated_date": "2020-05-11T08:21:56.182Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the incentive-kpis.",
        "tags": [
          "Incentives Kpi"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/incentives-kpi/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Incentives Kpi"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/incentives-kpi": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "incentive_kpi_id": {
                        "type": "string"
                      },
                      "incentive_id": {
                        "type": "string"
                      },
                      "start_time": {
                        "type": "string"
                      },
                      "end_time": {
                        "type": "string"
                      },
                      "owner_id": {
                        "type": "string"
                      },
                      "first_name": {
                        "type": "string"
                      },
                      "last_name": {
                        "type": "string"
                      },
                      "username": {
                        "type": "string"
                      },
                      "participant_id": {
                        "type": "string"
                      },
                      "participant_type": {
                        "type": "string"
                      },
                      "total": {
                        "type": "number"
                      },
                      "weight": {
                        "type": "number"
                      },
                      "count": {
                        "type": "number"
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      },
                      "product_id": {
                        "type": "string"
                      },
                      "product_name": {
                        "type": "string"
                      },
                      "price": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "incentive_kpi_id",
                      "incentive_id",
                      "participant_id",
                      "owner_id",
                      "first_name",
                      "last_name",
                      "username",
                      "start_time",
                      "end_time",
                      "total",
                      "count",
                      "weight",
                      "participant_type",
                      "created_date",
                      "updated_date"
                    ]
                  },
                  "example": [
                    {
                      "incentive_kpi_id": "5eb8fd147d5ff5748adcb097",
                      "incentive_id": "5eb8fd017d5ff5748adcaf08",
                      "start_time": "2019-05-21T04:51:40.862Z",
                      "end_time": "2019-05-28T04:51:40.862Z",
                      "owner_id": "5eb8fd017d5ff5748adcaef4",
                      "first_name": "John",
                      "last_name": "Doe",
                      "username": "jdoe@mycompany.com",
                      "participant_id": "5eb8fd017d5ff5748adcaef4",
                      "participant_type": "individual",
                      "total": 35,
                      "weight": 5,
                      "count": 7,
                      "created_date": "2020-05-11T07:21:56.182Z",
                      "updated_date": "2020-05-11T08:21:56.182Z"
                    },
                    {
                      "incentive_kpi_id": "5eb8fd147d5ff5748adcb096",
                      "incentive_id": "5eb8fd017d5ff5748adcaf08",
                      "participant_id": "api_team",
                      "product_id": "5eb8fd017d5ff5748adcaef5",
                      "product_name": "myproduct",
                      "owner_id": "5eb8fd017d5ff5748adcaef4",
                      "first_name": "John",
                      "last_name": "Doe",
                      "username": "jdoe@mycompany.com",
                      "start_time": "2020-01-01T00:00:00.000Z",
                      "end_time": "2020-01-31T23:59:59.999Z",
                      "total": 20,
                      "count": 2,
                      "weight": 2,
                      "price": 5,
                      "participant_type": "teams",
                      "created_date": "2020-05-11T07:21:56.182Z",
                      "updated_date": "2020-05-11T08:21:56.182Z"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "incentive_kpi_id": "5eb8fd147d5ff5748adcb097",
                        "incentive_id": "5eb8fd017d5ff5748adcaf08",
                        "start_time": "2019-05-21T04:51:40.862Z",
                        "end_time": "2019-05-28T04:51:40.862Z",
                        "owner_id": "5eb8fd017d5ff5748adcaef4",
                        "first_name": "John",
                        "last_name": "Doe",
                        "username": "jdoe@mycompany.com",
                        "participant_id": "5eb8fd017d5ff5748adcaef4",
                        "participant_type": "individual",
                        "total": 35,
                        "weight": 5,
                        "count": 7,
                        "created_date": "2020-05-11T07:21:56.182Z",
                        "updated_date": "2020-05-11T08:21:56.182Z"
                      },
                      {
                        "incentive_kpi_id": "5eb8fd147d5ff5748adcb096",
                        "incentive_id": "5eb8fd017d5ff5748adcaf08",
                        "participant_id": "api_team",
                        "product_id": "5eb8fd017d5ff5748adcaef5",
                        "product_name": "myproduct",
                        "owner_id": "5eb8fd017d5ff5748adcaef4",
                        "first_name": "John",
                        "last_name": "Doe",
                        "username": "jdoe@mycompany.com",
                        "start_time": "2020-01-01T00:00:00.000Z",
                        "end_time": "2020-01-31T23:59:59.999Z",
                        "total": 20,
                        "count": 2,
                        "weight": 2,
                        "price": 5,
                        "participant_type": "teams",
                        "created_date": "2020-05-11T07:21:56.182Z",
                        "updated_date": "2020-05-11T08:21:56.182Z"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "You may create a new single incentives-kpi or multiple incentives-kpi using this action.\nWhen creating a single incentives-kpi the body contains a json object, when creating multiple incentives-kpi the body contains an array of objects.    \n**Warning: a maximum of 1000 items can be sent in a single request.**",
        "tags": [
          "Incentives Kpi"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "incentive_id": {
                    "type": "string"
                  },
                  "start_time": {
                    "type": "string"
                  },
                  "end_time": {
                    "type": "string"
                  },
                  "owner_id": {
                    "type": "string"
                  },
                  "participant_id": {
                    "type": "string"
                  },
                  "participant_type": {
                    "type": "string"
                  },
                  "total": {
                    "type": "number"
                  },
                  "weight": {
                    "type": "number"
                  },
                  "count": {
                    "type": "number"
                  }
                },
                "example": {
                  "incentive_id": "5eb8fd017d5ff5748adcaf08",
                  "start_time": "2019-05-21T04:51:40.862Z",
                  "end_time": "2019-05-28T04:51:40.862Z",
                  "owner_id": "5eb8fd017d5ff5748adcaef4",
                  "participant_id": "5eb8fd017d5ff5748adcaef4",
                  "participant_type": "individual",
                  "total": 35,
                  "weight": 5,
                  "count": 7
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/incentives-kpi/export?{filter}&type={type}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Incentives Kpi"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/incentives-kpi/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n### Fields\n\n| Field                | Type           | Required | Readonly | OrderBy | Description               |\n|----------------------|:--------------:|:--------:|:--------:|:-------:|---------------------------|\n|`incentive_kpi_id`    |  string        |          |    x     |         | Unique id incentive_kpi   |\n|`incentive_id`        |  string        |    x     |          |         | The incentive_id          |\n|`participant_type`    |  string        |    x     |          |         | Type of incentives-kpi ('individual' or 'team')      |\n|`participant_user_id` |  string        |          |          |         | The participant user in kpi    |\n|`participant_group_id`|  string        |          |          |         | The participant group in kpi   |\n|`product_id`          |  string        |          |          |         | product_id involved in the kpi |\n|`product_name`        |  string        |          |    x     |         | The product's name        |\n|`owner_id`            |  string        |    x     |          |         | The user who submitted the kpi      |\n|`username`            |  string        |          |    x     |         | The owner username        |\n|`first_name`          |  string        |          |    x     |         | The owner first name      |\n|`last_name`           |  string        |          |    x     |         | The owner last name       |\n|`start_time`          |  date          |    x     |          |         | The start time of the kpi          |\n|`end_time`            |  date          |    x     |          |         | The end time of the kpi             |\n|`price`               |  number        |          |    x     |         | The product's price       |\n|`count`               |  number        |          |          |         | Number of units in the kpi|\n|`weight`              |  number        |          |    x     |         | Weight of product in total calculation         |\n|`total`               |  number        |          |          |         | Total value of the kpi    |\n|`created_date`        |  date          |          |    x     |         | KPI submission date       |\n|`updated_date`        |  date          |          |    x     |    x    | Last update date          |\n\nOnly One of either fields is required (inserting both will fail validation):\n\n- participant_user_id\n\n- participant_group_id\n\nThe rule to define which one to use, is according to the value of `participant_type`.\n\n**Important:**\n\n- If `participant_type` equals `'teams'`, `participant_group_id` must be filled with `group_id` value.\n\n- If `participant_type` equals `'individual'`, `participant_user_id` must be filled with `user_id` value.\n\n- `product_id` is optional and exists only if a product is part of incentives.\n\n- `price` has a value only if a `product_id` exists.\n\n- `start_time` must be before `end_time`.\n\n- `total` is the multiplicity of `count`, `weight` and `price` if `product_id` exists",
        "tags": [
          "Incentives Kpi"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/inventories/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "inventory_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "group_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "inventory_id": "5c015012ad45490041a52f64",
                    "title": "Items",
                    "name": "Grade A products",
                    "description": "Listing of our A products",
                    "group_ids": [
                      "testproduct"
                    ],
                    "created_date": "2018-11-30T14:58:26.716Z",
                    "updated_date": "2019-01-25T13:34:14.819Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "inventory_id": "5c015012ad45490041a52f64",
                      "title": "Items",
                      "name": "Grade A products",
                      "description": "Listing of our A products",
                      "group_ids": [
                        "testproduct"
                      ],
                      "created_date": "2018-11-30T14:58:26.716Z",
                      "updated_date": "2019-01-25T13:34:14.819Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get an inventory for the given id.",
        "tags": [
          "Inventory"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the inventory",
            "required": true,
            "example": "5c015012ad45490041a52f64",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/inventories?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "inventory_id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "group_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "inventory_id",
                          "title",
                          "name",
                          "description",
                          "group_ids",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "inventory_id": "5c015012ad45490041a52f64",
                        "title": "Items",
                        "name": "Grade A products",
                        "description": "Listing of our A products",
                        "group_ids": [
                          "testproduct"
                        ],
                        "created_date": "2018-11-30T14:58:26.716Z",
                        "updated_date": "2019-01-25T13:34:14.819Z"
                      },
                      {
                        "inventory_id": "5c015012ad45490041a52f65",
                        "title": "Items",
                        "name": "Grade B products",
                        "description": "Listing of our B products",
                        "group_ids": [
                          "testproduct"
                        ],
                        "created_date": "2018-11-30T14:58:26.716Z",
                        "updated_date": "2019-01-25T13:34:14.819Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "inventory_id": "5c015012ad45490041a52f64",
                          "title": "Items",
                          "name": "Grade A products",
                          "description": "Listing of our A products",
                          "group_ids": [
                            "testproduct"
                          ],
                          "created_date": "2018-11-30T14:58:26.716Z",
                          "updated_date": "2019-01-25T13:34:14.819Z"
                        },
                        {
                          "inventory_id": "5c015012ad45490041a52f65",
                          "title": "Items",
                          "name": "Grade B products",
                          "description": "Listing of our B products",
                          "group_ids": [
                            "testproduct"
                          ],
                          "created_date": "2018-11-30T14:58:26.716Z",
                          "updated_date": "2019-01-25T13:34:14.819Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the inventories.",
        "tags": [
          "Inventory"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/inventories/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Inventory"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/inventories/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Inventory"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/lessons/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "lesson_id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "campaign_id": {
                            "type": "string"
                          },
                          "plan_id": {
                            "type": "string"
                          },
                          "course_id": {
                            "type": "string"
                          },
                          "user_id": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "score": {
                            "type": "object",
                            "properties": {
                              "total": {
                                "type": "number"
                              },
                              "value": {
                                "type": "number"
                              }
                            }
                          },
                          "duration": {
                            "type": "number"
                          },
                          "validated": {
                            "type": "boolean"
                          },
                          "tenant": {
                            "type": "string"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          },
                          "answers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "question_id": {
                                  "type": "string"
                                },
                                "question_type": {
                                  "type": "string"
                                },
                                "question": {
                                  "type": "string"
                                },
                                "page_number": {
                                  "type": "number"
                                },
                                "question_number": {
                                  "type": "number"
                                },
                                "answer": {
                                  "type": "number"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "lesson_id": "5c7004c1b31ec3003a56af4e",
                        "title": "Feedback",
                        "type": "lesson",
                        "campaign_id": "5c582b8f4a35650044aea049",
                        "plan_id": "5bf2d58ae553190041467eef",
                        "course_id": "5bf4448528b7420041ba9b62",
                        "user_id": "5beee3717fc4d50043801a97",
                        "status": "finished",
                        "score": {
                          "total": 0,
                          "value": 0
                        },
                        "duration": 2.3,
                        "validated": true,
                        "tenant": "testproductv6_boost",
                        "created_date": "2019-02-22T14:18:41.667Z",
                        "updated_date": "2019-02-22T14:18:41.667Z",
                        "answers": [
                          {
                            "question_id": "e886902d-ddef-43c1-8894-c9f5f101fa56",
                            "question_type": "feedback",
                            "question": "Feedback",
                            "page_number": 1,
                            "question_number": 1,
                            "answer": 3
                          }
                        ]
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "lesson_id": "5c7004c1b31ec3003a56af4e",
                          "title": "Feedback",
                          "type": "lesson",
                          "campaign_id": "5c582b8f4a35650044aea049",
                          "plan_id": "5bf2d58ae553190041467eef",
                          "course_id": "5bf4448528b7420041ba9b62",
                          "user_id": "5beee3717fc4d50043801a97",
                          "status": "finished",
                          "score": {
                            "total": 0,
                            "value": 0
                          },
                          "duration": 2.3,
                          "validated": true,
                          "tenant": "testproductv6_boost",
                          "created_date": "2019-02-22T14:18:41.667Z",
                          "updated_date": "2019-02-22T14:18:41.667Z",
                          "answers": [
                            {
                              "question_id": "e886902d-ddef-43c1-8894-c9f5f101fa56",
                              "question_type": "feedback",
                              "question": "Feedback",
                              "page_number": 1,
                              "question_number": 1,
                              "answer": 3
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a lesson for the given id.",
        "tags": [
          "Lessons"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the lesson",
            "required": true,
            "example": "5c7004c1b31ec3003a56af4e",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/lessons?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "lesson_id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      },
                      "campaign_id": {
                        "type": "string"
                      },
                      "plan_id": {
                        "type": "string"
                      },
                      "course_id": {
                        "type": "string"
                      },
                      "user_id": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      },
                      "score": {
                        "type": "object",
                        "properties": {
                          "total": {
                            "type": "number"
                          },
                          "value": {
                            "type": "number"
                          },
                          "isPercentage": {
                            "type": "boolean"
                          },
                          "completed": {
                            "type": "number"
                          }
                        }
                      },
                      "validated": {
                        "type": "boolean"
                      },
                      "tenant": {
                        "type": "string"
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      },
                      "answers": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "question_id": {
                              "type": "string"
                            },
                            "question_type": {
                              "type": "string"
                            },
                            "question": {
                              "type": "string"
                            },
                            "page_number": {
                              "type": "number"
                            },
                            "question_number": {
                              "type": "number"
                            },
                            "answer": {
                              "type": "array",
                              "items": {
                                "type": "array",
                                "items": {}
                              }
                            }
                          },
                          "required": [
                            "question_id",
                            "question_type",
                            "question",
                            "page_number",
                            "question_number",
                            "answer"
                          ]
                        }
                      },
                      "points": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "lesson_id",
                      "title",
                      "type",
                      "campaign_id",
                      "plan_id",
                      "course_id",
                      "user_id",
                      "status",
                      "score",
                      "validated",
                      "tenant",
                      "created_date",
                      "updated_date",
                      "answers"
                    ]
                  },
                  "example": [
                    {
                      "lesson_id": "5c7004c1b31ec3003a56af4e",
                      "title": "Feedback",
                      "type": "lesson",
                      "campaign_id": "5c582b8f4a35650044aea049",
                      "plan_id": "5bf2d58ae553190041467eef",
                      "course_id": "5bf4448528b7420041ba9b62",
                      "user_id": "5beee3717fc4d50043801a97",
                      "status": "finished",
                      "score": {
                        "total": 0,
                        "value": 0
                      },
                      "validated": true,
                      "tenant": "testproductv6_boost",
                      "created_date": "2019-02-22T14:18:41.667Z",
                      "updated_date": "2019-02-22T14:18:41.667Z",
                      "answers": [
                        {
                          "question_id": "e886902d-ddef-43c1-8894-c9f5f101fa56",
                          "question_type": "feedback",
                          "question": "Feedback",
                          "page_number": 1,
                          "question_number": 1,
                          "answer": 3
                        }
                      ]
                    },
                    {
                      "lesson_id": "5c7004b8b31ec3003a56af0c",
                      "title": "Categories",
                      "type": "lesson",
                      "campaign_id": "5c582b5b4a35650044aea033",
                      "plan_id": "5bf2d58ae553190041467eef",
                      "course_id": "5bf4448528b7420041ba9b62",
                      "user_id": "5beee3717fc4d50043801a97",
                      "status": "finished",
                      "points": 10,
                      "score": {
                        "total": 1,
                        "value": 100,
                        "isPercentage": true,
                        "completed": 1
                      },
                      "validated": true,
                      "tenant": "testproductv6_boost",
                      "created_date": "2019-02-22T14:18:32.878Z",
                      "updated_date": "2019-02-22T14:18:32.878Z",
                      "answers": [
                        {
                          "question_id": "fd91d037-769d-46d8-ac56-059a85db745e",
                          "question_type": "categorizewords",
                          "question": "Categorize words",
                          "page_number": 1,
                          "question_number": 1,
                          "answer": [
                            [
                              "1",
                              "2",
                              "3"
                            ],
                            [
                              "A",
                              "B",
                              "C"
                            ]
                          ]
                        }
                      ]
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "lesson_id": "5c7004c1b31ec3003a56af4e",
                        "title": "Feedback",
                        "type": "lesson",
                        "campaign_id": "5c582b8f4a35650044aea049",
                        "plan_id": "5bf2d58ae553190041467eef",
                        "course_id": "5bf4448528b7420041ba9b62",
                        "user_id": "5beee3717fc4d50043801a97",
                        "status": "finished",
                        "score": {
                          "total": 0,
                          "value": 0
                        },
                        "validated": true,
                        "tenant": "testproductv6_boost",
                        "created_date": "2019-02-22T14:18:41.667Z",
                        "updated_date": "2019-02-22T14:18:41.667Z",
                        "answers": [
                          {
                            "question_id": "e886902d-ddef-43c1-8894-c9f5f101fa56",
                            "question_type": "feedback",
                            "question": "Feedback",
                            "page_number": 1,
                            "question_number": 1,
                            "answer": 3
                          }
                        ]
                      },
                      {
                        "lesson_id": "5c7004b8b31ec3003a56af0c",
                        "title": "Categories",
                        "type": "lesson",
                        "campaign_id": "5c582b5b4a35650044aea033",
                        "plan_id": "5bf2d58ae553190041467eef",
                        "course_id": "5bf4448528b7420041ba9b62",
                        "user_id": "5beee3717fc4d50043801a97",
                        "status": "finished",
                        "points": 10,
                        "score": {
                          "total": 1,
                          "value": 100,
                          "isPercentage": true,
                          "completed": 1
                        },
                        "validated": true,
                        "tenant": "testproductv6_boost",
                        "created_date": "2019-02-22T14:18:32.878Z",
                        "updated_date": "2019-02-22T14:18:32.878Z",
                        "answers": [
                          {
                            "question_id": "fd91d037-769d-46d8-ac56-059a85db745e",
                            "question_type": "categorizewords",
                            "question": "Categorize words",
                            "page_number": 1,
                            "question_number": 1,
                            "answer": [
                              [
                                "1",
                                "2",
                                "3"
                              ],
                              [
                                "A",
                                "B",
                                "C"
                              ]
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the lessons.",
        "tags": [
          "Lessons"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/lessons/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Lessons"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/lessons/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Lessons"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/missions/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "mission_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "campaign_id": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "creator_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "score": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "value": {
                          "type": "number"
                        }
                      }
                    },
                    "extra_scores": {
                      "type": "object",
                      "properties": {
                        "score1": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string"
                            },
                            "value": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    },
                    "republish_count": {
                      "type": "string"
                    },
                    "reason_noncompliant": {
                      "type": "string"
                    },
                    "finished_date": {
                      "type": "string"
                    },
                    "validated_date": {
                      "type": "string"
                    },
                    "compliant": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "answers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "question_id": {
                            "type": "string"
                          },
                          "question_type": {
                            "type": "string"
                          },
                          "question": {
                            "type": "string"
                          },
                          "answer": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "page_number": {
                            "type": "number"
                          },
                          "question_number": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "question_id",
                          "question_type",
                          "question",
                          "answer",
                          "page_number",
                          "question_number"
                        ]
                      }
                    },
                    "task_number": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "mission_id": "54ab03c6546847ee0d30084a",
                    "title": "Rockets mission 1",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "updated_date": "2018-05-23T04:51:40.862Z",
                    "campaign_id": "54ab03c6546847ee0d30088a",
                    "user_id": "54ab03c6546847ee0d30089a",
                    "creator_id": "54ab03c6546847ee0d30089a",
                    "store_id": "54ab03c6546847ee0d30081a",
                    "score": {
                      "title": "my score",
                      "value": 10
                    },
                    "extra_scores": {
                      "score1": {
                        "title": "my score2",
                        "value": 8
                      }
                    },
                    "republish_count": "2",
                    "reason_noncompliant": "missing photo",
                    "finished_date": "2018-05-29T04:51:40.862Z",
                    "validated_date": "2018-05-30T04:51:40.862Z",
                    "compliant": true,
                    "status": "finished",
                    "type": "mission",
                    "answers": [
                      {
                        "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc7",
                        "question_type": "number",
                        "question": "number of ice-cream flavors",
                        "answer": 2,
                        "page_number": 1,
                        "question_number": 1
                      },
                      {
                        "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc8",
                        "question_type": "text",
                        "question": "ice-cream flavors",
                        "answer": [
                          "chocolate",
                          "vanilla"
                        ],
                        "page_number": 1,
                        "question_number": 2
                      }
                    ],
                    "task_number": 1
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "mission_id": "54ab03c6546847ee0d30084a",
                      "title": "Rockets mission 1",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "campaign_id": "54ab03c6546847ee0d30088a",
                      "user_id": "54ab03c6546847ee0d30089a",
                      "creator_id": "54ab03c6546847ee0d30089a",
                      "store_id": "54ab03c6546847ee0d30081a",
                      "score": {
                        "title": "my score",
                        "value": 10
                      },
                      "extra_scores": {
                        "score1": {
                          "title": "my score2",
                          "value": 8
                        }
                      },
                      "republish_count": "2",
                      "reason_noncompliant": "missing photo",
                      "finished_date": "2018-05-29T04:51:40.862Z",
                      "validated_date": "2018-05-30T04:51:40.862Z",
                      "compliant": true,
                      "status": "finished",
                      "type": "mission",
                      "answers": [
                        {
                          "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc7",
                          "question_type": "number",
                          "question": "number of ice-cream flavors",
                          "answer": 2,
                          "page_number": 1,
                          "question_number": 1
                        },
                        {
                          "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc8",
                          "question_type": "text",
                          "question": "ice-cream flavors",
                          "answer": [
                            "chocolate",
                            "vanilla"
                          ],
                          "page_number": 1,
                          "question_number": 2
                        }
                      ],
                      "task_number": 1
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a mission for the given id.",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the mission",
            "required": true,
            "example": "54ab03c6546847ee0d30084a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {}
          }
        },
        "summary": "Delete",
        "operationId": "Delete",
        "description": "Delete a mission by id.",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the mission",
            "required": true,
            "example": "54ab03c6546847ee0d30084a",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of a mission",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the mission",
            "required": true,
            "example": "54ab03c6546847ee0d30084a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "score": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "value": {
                        "type": "number"
                      }
                    }
                  },
                  "answers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "question_id": {
                          "type": "string"
                        },
                        "answer": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "question_type": {
                          "type": "string"
                        },
                        "question": {
                          "type": "string"
                        },
                        "page_number": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "answer"
                      ]
                    }
                  }
                },
                "example": {
                  "score": {
                    "title": "my other score",
                    "value": 20
                  },
                  "answers": [
                    {
                      "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc7",
                      "answer": 3
                    },
                    {
                      "question_type": "text",
                      "question": "ice-cream flavors",
                      "answer": [
                        "chocolate",
                        "vanilla",
                        "strawberry"
                      ],
                      "page_number": 1
                    }
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/missions/{id}/tasks": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "mission_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "campaign_id": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "creator_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "todo": {
                      "type": "object",
                      "properties": {
                        "user_id": {
                          "type": "string"
                        },
                        "tasks": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "value": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "example": {
                    "mission_id": "54ab03c6546847ee0d30084b",
                    "title": "Action plans",
                    "created_date": "2021-05-10T09:21:40.232Z",
                    "updated_date": "2021-05-10T09:21:40.232Z",
                    "campaign_id": "54ab03c6546847ee0d30088b",
                    "user_id": "5fbea9662804f40033935d9b",
                    "creator_id": "54ab03c6546847ee0d30089a",
                    "store_id": "54ab03c6546847ee0d30081a",
                    "todo": {
                      "user_id": "5fbea9662804f40033935d9b",
                      "tasks": [
                        {
                          "value": "TEST"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "mission_id": "54ab03c6546847ee0d30084b",
                      "title": "Action plans",
                      "created_date": "2021-05-10T09:21:40.232Z",
                      "updated_date": "2021-05-10T09:21:40.232Z",
                      "campaign_id": "54ab03c6546847ee0d30088b",
                      "user_id": "5fbea9662804f40033935d9b",
                      "creator_id": "54ab03c6546847ee0d30089a",
                      "store_id": "54ab03c6546847ee0d30081a",
                      "todo": {
                        "user_id": "5fbea9662804f40033935d9b",
                        "tasks": [
                          {
                            "value": "TEST"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Find mission's tasks",
        "operationId": "Find mission's tasks",
        "description": "Find the tasks for missions of type `todo`",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "put": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Replace mission's tasks",
        "operationId": "Replace mission's tasks",
        "description": "Update the tasks on a mission of type `todo`.    \nThe `todo` object must contain *all* the tasks defined with the new values.    \nOnce updated the status of the mission is set to `finished`.",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/missions/{id}/book": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "mission_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "campaign_id": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "mission_id": "54ab03c6546847ee0d30084a",
                    "title": "Rockets mission 1",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "updated_date": "2018-05-23T04:51:40.862Z",
                    "campaign_id": "54ab03c6546847ee0d30088a",
                    "user_id": "54ab03c6546847ee0d30089a",
                    "store_id": "54ab03c6546847ee0d30081a",
                    "status": "booked",
                    "type": "mission"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "mission_id": "54ab03c6546847ee0d30084a",
                      "title": "Rockets mission 1",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "campaign_id": "54ab03c6546847ee0d30088a",
                      "user_id": "54ab03c6546847ee0d30089a",
                      "store_id": "54ab03c6546847ee0d30081a",
                      "status": "booked",
                      "type": "mission"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Book",
        "operationId": "Book",
        "description": "Book an available mission.\n\n**Important**\nThe mission must be assigned before booking: error message: \"Mission must have an assigned user before it can be booked. Please call the assign endpoint prior to booking the mission.\"\n\nIf the mission was republished with answers during the validation of a non-compliant mission, the booked mission will contain:\n\n* `original_mission_id`\n\n* `original_reason_noncompliant`\n\n* `original_mission_answers`\n\nThe `original_mission_answers` can be used as a starting point for the answers provided to `/missions/{id}/finish`.",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/missions/{id}/unbook": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "mission_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "campaign_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "mission_id": "54ab03c6546847ee0d30084a",
                    "title": "Rockets mission 1",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "updated_date": "2018-05-23T04:51:40.862Z",
                    "campaign_id": "54ab03c6546847ee0d30088a",
                    "store_id": "54ab03c6546847ee0d30081a",
                    "type": "mission"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "mission_id": "54ab03c6546847ee0d30084a",
                      "title": "Rockets mission 1",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "campaign_id": "54ab03c6546847ee0d30088a",
                      "store_id": "54ab03c6546847ee0d30081a",
                      "type": "mission"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Unbook",
        "operationId": "Unbook",
        "description": "Unbook a mission.\n\nMake available a mission that was previously booked.",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/missions/{id}/assign": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "mission_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "campaign_id": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "creator_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "mission_id": "54ab03c6546847ee0d30084a",
                    "title": "Rockets mission 1",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "updated_date": "2018-05-23T04:51:40.862Z",
                    "campaign_id": "54ab03c6546847ee0d30088a",
                    "user_id": "53fb03c6546847fe0d30186b",
                    "creator_id": "54ab03c6546847ee0d30089a",
                    "store_id": "54ab03c6546847ee0d30081a",
                    "status": "booked",
                    "type": "mission"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "mission_id": "54ab03c6546847ee0d30084a",
                      "title": "Rockets mission 1",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "campaign_id": "54ab03c6546847ee0d30088a",
                      "user_id": "53fb03c6546847fe0d30186b",
                      "creator_id": "54ab03c6546847ee0d30089a",
                      "store_id": "54ab03c6546847ee0d30081a",
                      "status": "booked",
                      "type": "mission"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Assign",
        "operationId": "Assign",
        "description": "Assign an available mission to a user whose `user_id` is provided.",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/missions/{id}/unassign": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "mission_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "campaign_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "mission_id": "54ab03c6546847ee0d30084a",
                    "title": "Rockets mission 1",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "updated_date": "2018-05-23T04:51:40.862Z",
                    "campaign_id": "54ab03c6546847ee0d30088a",
                    "store_id": "54ab03c6546847ee0d30081a",
                    "status": "booked",
                    "type": "mission"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "mission_id": "54ab03c6546847ee0d30084a",
                      "title": "Rockets mission 1",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "campaign_id": "54ab03c6546847ee0d30088a",
                      "store_id": "54ab03c6546847ee0d30081a",
                      "status": "booked",
                      "type": "mission"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Unassign",
        "operationId": "Unassign",
        "description": "Unassign a mission.\n\nMake available a mission that was previously assigned. \n**Important:**\nOnly the user that previously assigned the mission can unassign it.",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/missions/{id}/finish": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Finish",
        "operationId": "Finish",
        "description": "Finish a mission.\n\nThe body should only contain an `answers` field as an array.",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/missions/{id}/validate": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "validated_mission": {
                      "type": "object",
                      "properties": {
                        "mission_id": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "created_date": {
                          "type": "string"
                        },
                        "updated_date": {
                          "type": "string"
                        },
                        "campaign_id": {
                          "type": "string"
                        },
                        "user_id": {
                          "type": "string"
                        },
                        "creator_id": {
                          "type": "string"
                        },
                        "store_id": {
                          "type": "string"
                        },
                        "finished_date": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "compliant": {
                          "type": "boolean"
                        },
                        "validated_date": {
                          "type": "string"
                        },
                        "rating": {
                          "type": "number"
                        },
                        "republish_count": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "example": {
                    "validated_mission": {
                      "mission_id": "54ab03c6546847ee0d30084a",
                      "title": "Rockets mission 1",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "campaign_id": "54ab03c6546847ee0d30088a",
                      "user_id": "54ab03c6546847ee0d30089a",
                      "creator_id": "54ab03c6546847ee0d30089a",
                      "store_id": "54ab03c6546847ee0d30081a",
                      "finished_date": "2018-05-29T04:51:40.862Z",
                      "status": "finished",
                      "compliant": true,
                      "validated_date": "2018-05-30T04:51:40.862Z",
                      "rating": 100,
                      "republish_count": "3",
                      "type": "mission"
                    }
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "validated_mission": {
                        "mission_id": "54ab03c6546847ee0d30084a",
                        "title": "Rockets mission 1",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-05-23T04:51:40.862Z",
                        "campaign_id": "54ab03c6546847ee0d30088a",
                        "user_id": "54ab03c6546847ee0d30089a",
                        "creator_id": "54ab03c6546847ee0d30089a",
                        "store_id": "54ab03c6546847ee0d30081a",
                        "finished_date": "2018-05-29T04:51:40.862Z",
                        "status": "finished",
                        "compliant": true,
                        "validated_date": "2018-05-30T04:51:40.862Z",
                        "rating": 100,
                        "republish_count": "3",
                        "type": "mission"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Validate",
        "operationId": "Validate",
        "description": "Validate a mission.\n\n#### Fields\n\n| Field                          | Format       | Required | Description     |\n|--------------------------------|--------------|:--------:|-----------------|\n|`compliant`                     |  boolean     |     x    | Validated if true, rejected otherwise. |\n|`rating`                        |  number      |          | Rating of the mission.                |\n|`republish`                     |  boolean     |          | If true, republish this mission.                |\n|`republish_with_answers`        |  boolean     |          | If `republish` is true, control whether or not to prefill the republished mission with previous mission answers. |\n|`reason_noncompliant`           |  string      |          | Explanation why the mission was not compliant.                |\n|`reason_noncompliant_key`       |  string      |          | Explanation key.                |",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/missions/{id}/archive": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "mission_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "campaign_id": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "creator_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "score": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "value": {
                          "type": "number"
                        }
                      }
                    },
                    "extra_scores": {
                      "type": "object",
                      "properties": {
                        "score1": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string"
                            },
                            "value": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    },
                    "republish_count": {
                      "type": "string"
                    },
                    "reason_noncompliant": {
                      "type": "string"
                    },
                    "finished_date": {
                      "type": "string"
                    },
                    "validated_date": {
                      "type": "string"
                    },
                    "compliant": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "mission_id": "54ab03c6546847ee0d30084a",
                    "title": "Rockets mission 1",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "updated_date": "2018-05-23T04:51:40.862Z",
                    "campaign_id": "54ab03c6546847ee0d30088a",
                    "user_id": "54ab03c6546847ee0d30089a",
                    "creator_id": "54ab03c6546847ee0d30089a",
                    "store_id": "54ab03c6546847ee0d30081a",
                    "score": {
                      "title": "my score",
                      "value": 10
                    },
                    "extra_scores": {
                      "score1": {
                        "title": "my score2",
                        "value": 8
                      }
                    },
                    "republish_count": "2",
                    "reason_noncompliant": "missing photo",
                    "finished_date": "2018-05-29T04:51:40.862Z",
                    "validated_date": "2018-05-30T04:51:40.862Z",
                    "compliant": true,
                    "status": "archived",
                    "type": "mission"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "mission_id": "54ab03c6546847ee0d30084a",
                      "title": "Rockets mission 1",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "campaign_id": "54ab03c6546847ee0d30088a",
                      "user_id": "54ab03c6546847ee0d30089a",
                      "creator_id": "54ab03c6546847ee0d30089a",
                      "store_id": "54ab03c6546847ee0d30081a",
                      "score": {
                        "title": "my score",
                        "value": 10
                      },
                      "extra_scores": {
                        "score1": {
                          "title": "my score2",
                          "value": 8
                        }
                      },
                      "republish_count": "2",
                      "reason_noncompliant": "missing photo",
                      "finished_date": "2018-05-29T04:51:40.862Z",
                      "validated_date": "2018-05-30T04:51:40.862Z",
                      "compliant": true,
                      "status": "archived",
                      "type": "mission"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Archive",
        "operationId": "Archive",
        "description": "Archive a mission.\n\nThe status of the mission will be set to `archived`.",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/missions/{id}/workflow": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "mission_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "campaign_id": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "creator_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "booked_date": {
                      "type": "string"
                    },
                    "task_number": {
                      "type": "number"
                    },
                    "workflowState": {
                      "type": "object",
                      "properties": {
                        "state": {
                          "type": "string"
                        },
                        "step_id": {
                          "type": "string"
                        },
                        "step_title": {
                          "type": "string"
                        }
                      }
                    },
                    "workflowHistory": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "state": {
                            "type": "string"
                          },
                          "step_id": {
                            "type": "string"
                          },
                          "step_title": {
                            "type": "string"
                          },
                          "user_id": {
                            "type": "string"
                          },
                          "date": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "example": {
                    "mission_id": "67726366dc8e0300a774e23d",
                    "title": "Field Answer Group by date field",
                    "created_date": "2025-01-01T09:21:40.232Z",
                    "updated_date": "2025-01-01T09:21:40.232Z",
                    "campaign_id": "6772631ddc8e0300a774e03b",
                    "user_id": "5fbea9662804f40033935d9b",
                    "creator_id": "54ab03c6546847ee0d30089a",
                    "store_id": "5b912704e64618003830c194",
                    "type": "mission",
                    "booked_date": "2024-12-30T09:10:11.225Z",
                    "task_number": 6,
                    "workflowState": {
                      "state": "available",
                      "step_id": "8cbe48e3-52b5-4ffa-bb2b-1cb51f40bf8d",
                      "step_title": "Step 2"
                    },
                    "workflowHistory": [
                      {
                        "state": "completed",
                        "step_id": "f93f7fdb-8253-4ab3-8f81-d05485c6181e",
                        "step_title": "Step 1",
                        "user_id": "5a57539eb937d8003ba3d17f",
                        "date": "2024-12-30T09:11:51.315Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "mission_id": "67726366dc8e0300a774e23d",
                      "title": "Field Answer Group by date field",
                      "created_date": "2025-01-01T09:21:40.232Z",
                      "updated_date": "2025-01-01T09:21:40.232Z",
                      "campaign_id": "6772631ddc8e0300a774e03b",
                      "user_id": "5fbea9662804f40033935d9b",
                      "creator_id": "54ab03c6546847ee0d30089a",
                      "store_id": "5b912704e64618003830c194",
                      "type": "mission",
                      "booked_date": "2024-12-30T09:10:11.225Z",
                      "task_number": 6,
                      "workflowState": {
                        "state": "available",
                        "step_id": "8cbe48e3-52b5-4ffa-bb2b-1cb51f40bf8d",
                        "step_title": "Step 2"
                      },
                      "workflowHistory": [
                        {
                          "state": "completed",
                          "step_id": "f93f7fdb-8253-4ab3-8f81-d05485c6181e",
                          "step_title": "Step 1",
                          "user_id": "5a57539eb937d8003ba3d17f",
                          "date": "2024-12-30T09:11:51.315Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Find mission's workflow",
        "operationId": "Find mission's workflow",
        "description": "Get information about the workflow of a mission.\n\nThe `workflow_history` field is defined as an array of:\n\n| Field                | Type           | Description               |\n|----------------------|----------------|---------------------------|\n|`state`               |  string        | State of the step |\n|`step_id`             |  string        | Unique id of the step |\n|`step_title`          |  string        | The title of the step |\n|`user_id`             |  string        | Id of the user that completed the step |\n|`date`                |  date          | Date the user completed the step |",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/missions?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "mission_id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      },
                      "campaign_id": {
                        "type": "string"
                      },
                      "user_id": {
                        "type": "string"
                      },
                      "creator_id": {
                        "type": "string"
                      },
                      "store_id": {
                        "type": "string"
                      },
                      "score": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string"
                          },
                          "value": {
                            "type": "number"
                          }
                        }
                      },
                      "duration": {
                        "type": "number"
                      },
                      "extra_scores": {
                        "type": "object",
                        "properties": {
                          "score1": {
                            "type": "object",
                            "properties": {
                              "title": {
                                "type": "string"
                              },
                              "value": {
                                "type": "number"
                              }
                            }
                          }
                        }
                      },
                      "republish_count": {
                        "type": "string"
                      },
                      "reason_noncompliant": {
                        "type": "string"
                      },
                      "finished_date": {
                        "type": "string"
                      },
                      "validated_date": {
                        "type": "string"
                      },
                      "compliant": {
                        "type": "boolean"
                      },
                      "status": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      },
                      "task_number": {
                        "type": "number"
                      },
                      "answers": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "question_id": {
                              "type": "string"
                            },
                            "question_type": {
                              "type": "string"
                            },
                            "question": {
                              "type": "string"
                            },
                            "answer": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "page_number": {
                              "type": "number"
                            },
                            "question_number": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "question_id",
                            "question_type",
                            "question",
                            "answer",
                            "page_number",
                            "question_number"
                          ]
                        }
                      }
                    },
                    "required": [
                      "mission_id",
                      "title",
                      "created_date",
                      "updated_date",
                      "campaign_id",
                      "user_id",
                      "creator_id",
                      "store_id",
                      "status",
                      "type",
                      "task_number"
                    ]
                  },
                  "example": [
                    {
                      "mission_id": "54ab03c6546847ee0d30084a",
                      "title": "Rockets mission 1",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "campaign_id": "54ab03c6546847ee0d30088a",
                      "user_id": "54ab03c6546847ee0d30089a",
                      "creator_id": "54ab03c6546847ee0d30089a",
                      "store_id": "54ab03c6546847ee0d30081a",
                      "score": {
                        "title": "my score",
                        "value": 10
                      },
                      "duration": 2.3,
                      "extra_scores": {
                        "score1": {
                          "title": "my score2",
                          "value": 8
                        }
                      },
                      "republish_count": "2",
                      "reason_noncompliant": "missing photo",
                      "finished_date": "2018-05-29T04:51:40.862Z",
                      "validated_date": "2018-05-30T04:51:40.862Z",
                      "compliant": true,
                      "status": "finished",
                      "type": "mission",
                      "task_number": 1,
                      "answers": [
                        {
                          "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc7",
                          "question_type": "number",
                          "question": "number of ice-cream flavors",
                          "answer": 2,
                          "page_number": 1,
                          "question_number": 1
                        },
                        {
                          "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc8",
                          "question_type": "text",
                          "question": "ice-cream flavors",
                          "answer": [
                            "chocolate",
                            "vanilla"
                          ],
                          "page_number": 1,
                          "question_number": 2
                        }
                      ]
                    },
                    {
                      "mission_id": "54ab03c6546847ee0d30084b",
                      "title": "Rockets mission 2",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "campaign_id": "54ab03c6546847ee0d30088a",
                      "user_id": "54ab03c6546847ee0d30089b",
                      "creator_id": "54ab03c6546847ee0d30089a",
                      "store_id": "54ab03c6546847ee0d30081b",
                      "status": "booked",
                      "type": "mission",
                      "task_number": 2
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "mission_id": "54ab03c6546847ee0d30084a",
                        "title": "Rockets mission 1",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-05-23T04:51:40.862Z",
                        "campaign_id": "54ab03c6546847ee0d30088a",
                        "user_id": "54ab03c6546847ee0d30089a",
                        "creator_id": "54ab03c6546847ee0d30089a",
                        "store_id": "54ab03c6546847ee0d30081a",
                        "score": {
                          "title": "my score",
                          "value": 10
                        },
                        "duration": 2.3,
                        "extra_scores": {
                          "score1": {
                            "title": "my score2",
                            "value": 8
                          }
                        },
                        "republish_count": "2",
                        "reason_noncompliant": "missing photo",
                        "finished_date": "2018-05-29T04:51:40.862Z",
                        "validated_date": "2018-05-30T04:51:40.862Z",
                        "compliant": true,
                        "status": "finished",
                        "type": "mission",
                        "task_number": 1,
                        "answers": [
                          {
                            "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc7",
                            "question_type": "number",
                            "question": "number of ice-cream flavors",
                            "answer": 2,
                            "page_number": 1,
                            "question_number": 1
                          },
                          {
                            "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc8",
                            "question_type": "text",
                            "question": "ice-cream flavors",
                            "answer": [
                              "chocolate",
                              "vanilla"
                            ],
                            "page_number": 1,
                            "question_number": 2
                          }
                        ]
                      },
                      {
                        "mission_id": "54ab03c6546847ee0d30084b",
                        "title": "Rockets mission 2",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-05-23T04:51:40.862Z",
                        "campaign_id": "54ab03c6546847ee0d30088a",
                        "user_id": "54ab03c6546847ee0d30089b",
                        "creator_id": "54ab03c6546847ee0d30089a",
                        "store_id": "54ab03c6546847ee0d30081b",
                        "status": "booked",
                        "type": "mission",
                        "task_number": 2
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the missions.",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object.\nOptionally add the answers to the result if exist.\n",
            "required": false,
            "example": "{ include: [\"answers\"] }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/missions/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/missions/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/missions/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n**Important:**\n\n- Rows without an existing `mission_id` field will **not** be processed. Only existing missions may be updated by this import endpoint.\n\n- Only the following fields can be modified via a mission import:     \n    - title    \n    - score (the numeric score value, e.g. `10` — the score column holds the value, not the `{title, value}` object)    \n    - group_ids    \n    - user_ids\n\n    `extra_scores` is export-only: sub-scores appear as separate (translated) columns and are not read back on import.\n\n    For any other change, please refer to the corresponding endpoint.\n\n### Fields\n\n| Field                          | Format       | Required | Readonly | Description     |\n|--------------------------------|--------------|:--------:|:--------:|-----------------|\n|`mission_id`                    |  string      |     x    |    x     | Unique id of the mission  |\n|`title`                         |  string      |          |          | The title of the mission  |\n|`type`                          |  string      |          |    x     | Mission type             |\n|`campaign_id`                   |  string      |          |    x     | Unique id of the mission's parent campaign |\n|`user_id`                       |  string      |          |    x     | Unique id of the user who performs the mission   |\n|`creator_id`                    |  string      |          |    x     | Unique id of the mission creator  |\n|`store_id`                      |  string      |          |    x     | Unique id of associated store  |\n|`status`                        |  string      |          |    x     | Current status of the mission if set: `\"scheduled\"`, `\"booked\"`, `\"finished\"`, `\"archived\"`  |\n|`valid_from`                    |  timestamp   |          |    x     | Mission available from   |\n|`republish_count`               |  number      |          |    x     | The number of times the mission was republished  |\n|`booked_date`                   |  timestamp   |          |    x     | The date on which the mission was booked to a user  |\n|`due_date`                      |  timestamp   |          |    x     | The date by which the mission must be completed |\n|`finished_date`                 |  timestamp   |          |    x     | The date on which the mission was finished  |\n|`score`                         |  number      |          |          | The mission's main score as its numeric value (e.g. `10`). In file exports/imports this column holds the score value only; the full `{\"title\", \"value\"}` object is used in the JSON API representation. |\n|`extra_scores`                  |  number      |          |    x     | Export only. Each sub-score is written to its own column, named after the (translated) sub-score title and holding that sub-score's numeric value. It cannot be set via import. |\n|`compliant`                     |  boolean     |          |    x     | The compliance of the mission as marked by an area manager: `true` if marked compliant, `false` if marked noncompliant. If nothing is specified and if the mission is finished, `status` will be \"to validate\" |\n|`compliant_by_default`          |  boolean     |          |    x     | If `true` the mission is automatically marked compliant on finish |\n|`validated_date`                |  timestamp   |          |    x     | The date on which the mission was validated  |\n|`reason_noncompliant`           |  string      |          |    x     | The reason provided by the area manager to explain why the mission was marked noncompliant |\n|`republished_with_answers`      |  boolean     |          |    x     | Has the mission been repulished with the previous answers after being marked noncompliant |\n|`original_mission_id`           |  string      |          |    x     | If present, the `mission_id` of the mission that this mission was republished from |\n|`original_reason_noncompliant`  |  string      |          |    x     | The `reason_noncompliant` from the original mission that was republished. |\n|`action_plan_progress`          |  number      |          |    x     | Completion rate of an action plan.      |\n|`task_number`                   |  number      |          |    x     | Auto generated when a new mission is created. The value is unique within a campaign.      |\n|`created_date`                  |  timestamp   |          |    x     | Mission's creation date     |\n|`updated_date`                  |  timestamp   |          |    x     | Mission's last update date  |",
        "tags": [
          "Missions"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/mission-comments/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a comment for the given id.",
        "tags": [
          "Mission Comments"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the comment",
            "required": true,
            "example": "5d31ecba11e695003a9b1dfc",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {}
          }
        },
        "summary": "Delete",
        "operationId": "Delete",
        "description": "Delete a mission comment by id.",
        "tags": [
          "Mission Comments"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the comment",
            "required": true,
            "example": "5d31ecba11e695003a9b1dfc",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of a mission comment",
        "tags": [
          "Mission Comments"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the comment",
            "required": true,
            "example": "5d31ecba11e695003a9b1dfc",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "photo_url": {
                    "type": "string"
                  }
                },
                "example": {
                  "photo_url": "https://assets-dev.yoobic.com/image/upload/v1675350130/development/nyjwh5zmbnjxdwtsqfyz.jpg"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/mission-comments?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the mission-comments.",
        "tags": [
          "Mission Comments"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/mission-comments/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Mission Comments"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/mission-comments": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "You may create a new single mission comment or multiple mission comments using this action.\nWhen creating a single mission comment, the body contains a json object, when creating multiple mission comments, the body contains an array of objects.    \n**Warning: a maximum of 1000 items can be sent in a single request.**",
        "tags": [
          "Mission Comments"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user_id": {
                    "type": "string"
                  },
                  "mission_id": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  }
                },
                "example": {
                  "user_id": "5beee5197fc4d50043801bd1",
                  "mission_id": "5d31b71a1a76e9003afd621e",
                  "text": "Life is beautiful!"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/mission-comments/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Mission Comments"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/mission-comments/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.",
        "tags": [
          "Mission Comments"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/news/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "news_id": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "views": {
                      "type": "number"
                    },
                    "likes": {
                      "type": "number"
                    },
                    "authorised_viewers": {
                      "type": "number"
                    },
                    "images": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "group_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "example": {
                    "news_id": "54ab03c6546847ee0d30083e",
                    "updated_date": "2018-05-23T04:51:40.862Z",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "user_id": "54ab03c6546847ee0d30072b",
                    "title": "Rocket ltd news",
                    "description": "Contents of the feed.",
                    "views": 3,
                    "likes": 10,
                    "authorised_viewers": 100,
                    "images": [
                      "www.rocketltd.com/file/RocketsFile1.jpg"
                    ],
                    "group_ids": [
                      "rockets_hq",
                      "rockets_pr",
                      "rockets_employees"
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "news_id": "54ab03c6546847ee0d30083e",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "user_id": "54ab03c6546847ee0d30072b",
                      "title": "Rocket ltd news",
                      "description": "Contents of the feed.",
                      "views": 3,
                      "likes": 10,
                      "authorised_viewers": 100,
                      "images": [
                        "www.rocketltd.com/file/RocketsFile1.jpg"
                      ],
                      "group_ids": [
                        "rockets_hq",
                        "rockets_pr",
                        "rockets_employees"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get news for the given id.",
        "tags": [
          "News"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the news",
            "required": true,
            "example": "54ab03c6546847ee0d30083e",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {}
          }
        },
        "summary": "Delete",
        "operationId": "Delete",
        "description": "Delete a news object by id.",
        "tags": [
          "News"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the news",
            "required": true,
            "example": "54ab03c6546847ee0d30083e",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "news_id": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "views": {
                      "type": "number"
                    },
                    "likes": {
                      "type": "number"
                    },
                    "authorised_viewers": {
                      "type": "number"
                    },
                    "images": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "group_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "example": {
                    "news_id": "54ab03c6546847ee0d30081a",
                    "updated_date": "2018-05-23T04:51:40.862Z",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "user_id": "54ab03c6546847ee0d30072b",
                    "title": "Rocket ltd incoming news",
                    "description": "Contents of the feed.",
                    "views": 3,
                    "likes": 10,
                    "authorised_viewers": 100,
                    "images": [
                      "www.rocketltd.com/file/RocketsFile1.jpg"
                    ],
                    "group_ids": [
                      "rockets_hq",
                      "rockets_pr",
                      "rockets_employees"
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "news_id": "54ab03c6546847ee0d30081a",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "user_id": "54ab03c6546847ee0d30072b",
                      "title": "Rocket ltd incoming news",
                      "description": "Contents of the feed.",
                      "views": 3,
                      "likes": 10,
                      "authorised_viewers": 100,
                      "images": [
                        "www.rocketltd.com/file/RocketsFile1.jpg"
                      ],
                      "group_ids": [
                        "rockets_hq",
                        "rockets_pr",
                        "rockets_employees"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of a news object",
        "tags": [
          "News"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the news",
            "required": true,
            "example": "54ab03c6546847ee0d30083e",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The id of the news",
            "required": true,
            "example": "54ab03c6546847ee0d30081a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/news?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "news_id": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "user_id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "views": {
                        "type": "number"
                      },
                      "likes": {
                        "type": "number"
                      },
                      "authorised_viewers": {
                        "type": "number"
                      },
                      "images": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "group_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "news_id",
                      "updated_date",
                      "created_date",
                      "user_id",
                      "title",
                      "description",
                      "views",
                      "likes",
                      "authorised_viewers",
                      "images",
                      "group_ids"
                    ]
                  },
                  "example": [
                    {
                      "news_id": "54ab03c6546847ee0d30081a",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "user_id": "54ab03c6546847ee0d30072b",
                      "title": "Rocket ltd news",
                      "description": "Contents of the feed.",
                      "views": 3,
                      "likes": 10,
                      "authorised_viewers": 100,
                      "images": [
                        "www.rocketltd.com/file/RocketsFile1.jpg"
                      ],
                      "group_ids": [
                        "rockets_hq",
                        "rockets_pr",
                        "rockets_employees"
                      ]
                    },
                    {
                      "news_id": "54ab03c6546847ee0d30081c",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "user_id": "54ab03c6546847ee0d30072b",
                      "title": "Rocket ltd news 3",
                      "description": "Contents of the feed.",
                      "views": 1,
                      "likes": 12,
                      "authorised_viewers": 100,
                      "images": [
                        "www.rocketltd.com/file/RocketsFile2.jpg"
                      ],
                      "group_ids": [
                        "rockets_hq",
                        "rockets_pr",
                        "rockets_employees"
                      ]
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "news_id": "54ab03c6546847ee0d30081a",
                        "updated_date": "2018-05-23T04:51:40.862Z",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "user_id": "54ab03c6546847ee0d30072b",
                        "title": "Rocket ltd news",
                        "description": "Contents of the feed.",
                        "views": 3,
                        "likes": 10,
                        "authorised_viewers": 100,
                        "images": [
                          "www.rocketltd.com/file/RocketsFile1.jpg"
                        ],
                        "group_ids": [
                          "rockets_hq",
                          "rockets_pr",
                          "rockets_employees"
                        ]
                      },
                      {
                        "news_id": "54ab03c6546847ee0d30081c",
                        "updated_date": "2018-05-23T04:51:40.862Z",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "user_id": "54ab03c6546847ee0d30072b",
                        "title": "Rocket ltd news 3",
                        "description": "Contents of the feed.",
                        "views": 1,
                        "likes": 12,
                        "authorised_viewers": 100,
                        "images": [
                          "www.rocketltd.com/file/RocketsFile2.jpg"
                        ],
                        "group_ids": [
                          "rockets_hq",
                          "rockets_pr",
                          "rockets_employees"
                        ]
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the news.",
        "tags": [
          "News"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/news/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "News"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/news": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "*/*": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "news_id": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "authorised_viewers": {
                      "type": "number"
                    },
                    "images": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "group_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "example": {
                    "news_id": "54ab03c6546847ee0d30081a",
                    "updated_date": "2020-09-14T04:51:40.862Z",
                    "created_date": "2020-09-14T04:51:40.862Z",
                    "user_id": "54ab03c6546847ee0d30072b",
                    "title": "Rocket ltd exciting news",
                    "description": "News content",
                    "authorised_viewers": 100,
                    "images": [
                      "www.rocketltd.com/file/RocketsFile1.jpg"
                    ],
                    "group_ids": [
                      "rockets_hq",
                      "rockets_pr",
                      "rockets_employees"
                    ],
                    "tags": [
                      "rockets_stars",
                      "rockets_fans"
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "You may create a new single or multiple news using this action.\nWhen creating a single news object the body contains a json object, when creating multiple news objects the body contains an array of objects.    \n**Warning: a maximum of 1000 items can be sent in a single request.**",
        "tags": [
          "News"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user_id": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "authorised_viewers": {
                    "type": "number"
                  },
                  "images": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "group_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "user_id": "54ab03c6546847ee0d30072b",
                  "title": "Rocket ltd exciting news",
                  "description": "News content",
                  "authorised_viewers": 100,
                  "images": [
                    "www.rocketltd.com/file/RocketsFile1.jpg"
                  ],
                  "group_ids": [
                    "rockets_hq",
                    "rockets_pr",
                    "rockets_employees"
                  ],
                  "tags": [
                    "rockets_stars",
                    "rockets_fans"
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/news/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "News"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/notifications/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "notification_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "mode": {
                      "type": "string"
                    },
                    "sender_id": {
                      "type": "string"
                    },
                    "push_recipients": {
                      "type": "number"
                    },
                    "entity_type": {
                      "type": "string"
                    },
                    "entity_id": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "notification_id": "54ab03c6546847ee0d30081d",
                    "title": "Rocket ltd notification 1",
                    "mode": "notification",
                    "sender_id": "54ab03c6546847ee0d30072b",
                    "push_recipients": 3,
                    "entity_type": "Mission",
                    "entity_id": "54ab03c6546847ee0d30072a",
                    "updated_date": "2018-05-23T04:51:40.862Z",
                    "created_date": "2018-05-23T04:51:40.862Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "notification_id": "54ab03c6546847ee0d30081d",
                      "title": "Rocket ltd notification 1",
                      "mode": "notification",
                      "sender_id": "54ab03c6546847ee0d30072b",
                      "push_recipients": 3,
                      "entity_type": "Mission",
                      "entity_id": "54ab03c6546847ee0d30072a",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "created_date": "2018-05-23T04:51:40.862Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a notification for the given id.",
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the notification",
            "required": true,
            "example": "54ab03c6546847ee0d30083e",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/notifications?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "notification_id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "mode": {
                        "type": "string"
                      },
                      "sender_id": {
                        "type": "string"
                      },
                      "push_recipients": {
                        "oneOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "entity_type": {
                        "type": "string"
                      },
                      "entity_id": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      },
                      "created_date": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "notification_id",
                      "title",
                      "mode",
                      "sender_id",
                      "push_recipients",
                      "entity_type",
                      "entity_id",
                      "updated_date",
                      "created_date"
                    ]
                  },
                  "example": [
                    {
                      "notification_id": "54ab03c6546847ee0d30081d",
                      "title": "Rocket ltd notification 1",
                      "mode": "notification",
                      "sender_id": "54ab03c6546847ee0d30072b",
                      "push_recipients": 3,
                      "entity_type": "Mission",
                      "entity_id": "54ab03c6546847ee0d30072a",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "created_date": "2018-05-23T04:51:40.862Z"
                    },
                    {
                      "notification_id": "54ab03c6546847ee0d30081e",
                      "title": "Rocket ltd notification 2",
                      "mode": "notification",
                      "sender_id": "54ab03c6546847ee0d30072b",
                      "push_recipients": "1",
                      "entity_type": "Mission",
                      "entity_id": "54ab03c6546847ee0d30072a",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "created_date": "2018-05-23T04:51:40.862Z"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "notification_id": "54ab03c6546847ee0d30081d",
                        "title": "Rocket ltd notification 1",
                        "mode": "notification",
                        "sender_id": "54ab03c6546847ee0d30072b",
                        "push_recipients": 3,
                        "entity_type": "Mission",
                        "entity_id": "54ab03c6546847ee0d30072a",
                        "updated_date": "2018-05-23T04:51:40.862Z",
                        "created_date": "2018-05-23T04:51:40.862Z"
                      },
                      {
                        "notification_id": "54ab03c6546847ee0d30081e",
                        "title": "Rocket ltd notification 2",
                        "mode": "notification",
                        "sender_id": "54ab03c6546847ee0d30072b",
                        "push_recipients": "1",
                        "entity_type": "Mission",
                        "entity_id": "54ab03c6546847ee0d30072a",
                        "updated_date": "2018-05-23T04:51:40.862Z",
                        "created_date": "2018-05-23T04:51:40.862Z"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the notifications.",
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/notifications": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "You may create a new single notification or multiple notifications using this action.    \nWhen creating a single notification the body contains a json object, when creating multiple notifications the body contains an array of objects.    \n**Warning: a maximum of 1000 items can be sent in a single request.**",
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "group_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "title": {
                    "type": "string"
                  },
                  "body": {
                    "type": "string"
                  },
                  "mode": {
                    "type": "string"
                  },
                  "entity_type": {
                    "type": "string"
                  },
                  "entity_id": {
                    "type": "string"
                  }
                },
                "example": {
                  "user_ids": [
                    "5babb8a69fa6ae919f675715",
                    "5babb8a69fa6ae919f675716"
                  ],
                  "group_ids": [
                    "company_employees"
                  ],
                  "title": "Major news",
                  "body": "New deal signed with ...",
                  "mode": "push",
                  "entity_type": "news",
                  "entity_id": "54ab03c6546847ee0d30084a"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/notifications/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/notifications/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/photos/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "photo_id": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "mission_id": {
                      "type": "string"
                    },
                    "campaign_id": {
                      "type": "string"
                    },
                    "mission_data_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "markup_url": {
                      "type": "string"
                    },
                    "question_id": {
                      "type": "string"
                    },
                    "phash": {
                      "type": "string"
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "short_desc": {
                      "type": "string"
                    },
                    "entity_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "photo_id": "54ab03c6546847ee0d30081d",
                    "updated_date": "2018-05-23T04:51:40.862Z",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "mission_id": "54ab03c6546847ee0d30081c",
                    "campaign_id": "54ab03c6546847ee0d30077a",
                    "mission_data_id": "54ab03c6546847ee0d300790",
                    "store_id": "54ab03c6546847ee0d30076a",
                    "title": "Rocket ltd photo 1",
                    "url": "https://res.cloudinary.com/yoobic/image/upload/v1475779283/r4b1ticoyezzkdubkidf.jpg",
                    "markup_url": "https://res.cloudinary.com/yoobic/image/upload/v1475779283/r4b1ticoyezzkdubkidg.jpg",
                    "question_id": "54ab03c6546847ee0d30072b",
                    "phash": "12a34b6cd6cb2134",
                    "tags": [
                      "OK"
                    ],
                    "short_desc": "Mission",
                    "entity_id": "54ab03c6546847ee0d30072a"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "photo_id": "54ab03c6546847ee0d30081d",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "mission_id": "54ab03c6546847ee0d30081c",
                      "campaign_id": "54ab03c6546847ee0d30077a",
                      "mission_data_id": "54ab03c6546847ee0d300790",
                      "store_id": "54ab03c6546847ee0d30076a",
                      "title": "Rocket ltd photo 1",
                      "url": "https://res.cloudinary.com/yoobic/image/upload/v1475779283/r4b1ticoyezzkdubkidf.jpg",
                      "markup_url": "https://res.cloudinary.com/yoobic/image/upload/v1475779283/r4b1ticoyezzkdubkidg.jpg",
                      "question_id": "54ab03c6546847ee0d30072b",
                      "phash": "12a34b6cd6cb2134",
                      "tags": [
                        "OK"
                      ],
                      "short_desc": "Mission",
                      "entity_id": "54ab03c6546847ee0d30072a"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a photo for the given id.",
        "tags": [
          "Photos"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the photo",
            "required": true,
            "example": "54ab03c6546847ee0d30081d",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/photos": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "photo_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "photo_id": "5dc14612234f047cfe100a09",
                    "title": "Shelf No. 1",
                    "url": "https://res.cloudinary.com/www-yoobic-com/image/upload/v1572947475/qyrpyiscrd28s4hbrxqm.jpg",
                    "created_date": "2019-11-05T09:51:14.937Z",
                    "updated_date": "2019-11-05T09:51:14.937Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "photo_id": "5dc14612234f047cfe100a09",
                      "title": "Shelf No. 1",
                      "url": "https://res.cloudinary.com/www-yoobic-com/image/upload/v1572947475/qyrpyiscrd28s4hbrxqm.jpg",
                      "created_date": "2019-11-05T09:51:14.937Z",
                      "updated_date": "2019-11-05T09:51:14.937Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "Upload a photo.\n\nTo upload a photo, you should make a post request of type `multipart/form-data`.\nThe request body should contain two fields:\n\n`file`: the binary image file you want to upload.\n`title`: give a title to the photo.",
        "tags": [
          "Photos"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/photos?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "photo_id": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "mission_id": {
                        "type": "string"
                      },
                      "campaign_id": {
                        "type": "string"
                      },
                      "mission_data_id": {
                        "type": "string"
                      },
                      "store_id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      },
                      "markup_url": {
                        "type": "string"
                      },
                      "question_id": {
                        "type": "string"
                      },
                      "phash": {
                        "type": "string"
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "short_desc": {
                        "type": "string"
                      },
                      "entity_id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "photo_id",
                      "updated_date",
                      "created_date",
                      "mission_id",
                      "campaign_id",
                      "mission_data_id",
                      "store_id",
                      "title",
                      "url",
                      "question_id",
                      "phash",
                      "tags",
                      "short_desc",
                      "entity_id"
                    ]
                  },
                  "example": [
                    {
                      "photo_id": "54ab03c6546847ee0d30081d",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "mission_id": "54ab03c6546847ee0d30081c",
                      "campaign_id": "54ab03c6546847ee0d30077a",
                      "mission_data_id": "54ab03c6546847ee0d300790",
                      "store_id": "54ab03c6546847ee0d30076a",
                      "title": "Rocket ltd photo 1",
                      "url": "https://res.cloudinary.com/yoobic/image/upload/v1475779283/r4b1ticoyezzkdubkidf.jpg",
                      "markup_url": "https://res.cloudinary.com/yoobic/image/upload/v1475779283/r4b1ticoyezzkdubkidf.jpg",
                      "question_id": "54ab03c6546847ee0d30072b",
                      "phash": "12a34b6cd6cb2134",
                      "tags": [
                        "OK"
                      ],
                      "short_desc": "Mission",
                      "entity_id": "54ab03c6546847ee0d30072a"
                    },
                    {
                      "photo_id": "54ab03c6546847ee0d30081e",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "mission_id": "54ab03c6546847ee0d30081c",
                      "campaign_id": "54ab03c6546847ee0d30077a",
                      "mission_data_id": "54ab03c6546847ee0d300790",
                      "store_id": "54ab03c6546847ee0d30076a",
                      "title": "Rocket ltd photo 2",
                      "url": "https://res.cloudinary.com/yoobic/image/upload/v1475779283/r4b1ticoyezzkdubkidf.jpg",
                      "question_id": "54ab03c6546847ee0d30072c",
                      "phash": "12a34b6cd6cb2134",
                      "tags": [
                        "No"
                      ],
                      "short_desc": "Mission",
                      "entity_id": "54ab03c6546847ee0d30072b"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "photo_id": "54ab03c6546847ee0d30081d",
                        "updated_date": "2018-05-23T04:51:40.862Z",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "mission_id": "54ab03c6546847ee0d30081c",
                        "campaign_id": "54ab03c6546847ee0d30077a",
                        "mission_data_id": "54ab03c6546847ee0d300790",
                        "store_id": "54ab03c6546847ee0d30076a",
                        "title": "Rocket ltd photo 1",
                        "url": "https://res.cloudinary.com/yoobic/image/upload/v1475779283/r4b1ticoyezzkdubkidf.jpg",
                        "markup_url": "https://res.cloudinary.com/yoobic/image/upload/v1475779283/r4b1ticoyezzkdubkidf.jpg",
                        "question_id": "54ab03c6546847ee0d30072b",
                        "phash": "12a34b6cd6cb2134",
                        "tags": [
                          "OK"
                        ],
                        "short_desc": "Mission",
                        "entity_id": "54ab03c6546847ee0d30072a"
                      },
                      {
                        "photo_id": "54ab03c6546847ee0d30081e",
                        "updated_date": "2018-05-23T04:51:40.862Z",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "mission_id": "54ab03c6546847ee0d30081c",
                        "campaign_id": "54ab03c6546847ee0d30077a",
                        "mission_data_id": "54ab03c6546847ee0d300790",
                        "store_id": "54ab03c6546847ee0d30076a",
                        "title": "Rocket ltd photo 2",
                        "url": "https://res.cloudinary.com/yoobic/image/upload/v1475779283/r4b1ticoyezzkdubkidf.jpg",
                        "question_id": "54ab03c6546847ee0d30072c",
                        "phash": "12a34b6cd6cb2134",
                        "tags": [
                          "No"
                        ],
                        "short_desc": "Mission",
                        "entity_id": "54ab03c6546847ee0d30072b"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the photos.",
        "tags": [
          "Photos"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/photos/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Photos"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/photos/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Photos"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/plans/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "plan_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "tenant": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "plan_id": "5c015012ad45490041a52f64",
                    "title": "QA - Document",
                    "description": "Course to test Documents Lessons",
                    "tenant": "qa_boost",
                    "created_date": "2018-11-30T14:58:26.716Z",
                    "updated_date": "2019-01-25T13:34:14.819Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "plan_id": "5c015012ad45490041a52f64",
                      "title": "QA - Document",
                      "description": "Course to test Documents Lessons",
                      "tenant": "qa_boost",
                      "created_date": "2018-11-30T14:58:26.716Z",
                      "updated_date": "2019-01-25T13:34:14.819Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a plan for the given id.",
        "tags": [
          "Plans"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the plan",
            "required": true,
            "example": "5c015012ad45490041a52f64",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/plans/{id}/assign": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "example": [
                    "5e4514ac98ab7400553bf15f",
                    "5e4514ac98ab7400553bf160"
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      "5e4514ac98ab7400553bf15f",
                      "5e4514ac98ab7400553bf160"
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Assign",
        "operationId": "Assign",
        "description": "Assign a plan to users. Response is an array of courses ids created for each assigned user.",
        "tags": [
          "Plans"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/plans?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "plan_id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "tenant": {
                            "type": "string"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "plan_id",
                          "title",
                          "description",
                          "tenant",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "plan_id": "5c015012ad45490041a52f64",
                        "title": "QA - Document",
                        "description": "Course to test Documents Lessons",
                        "tenant": "qa_boost",
                        "created_date": "2018-11-30T14:58:26.716Z",
                        "updated_date": "2019-01-25T13:34:14.819Z"
                      },
                      {
                        "plan_id": "5c015558ad45490041a53473",
                        "title": "QA - Video",
                        "description": "Course to test Video Lessons",
                        "tenant": "qa_boost",
                        "created_date": "2018-11-30T15:20:56.392Z",
                        "updated_date": "2019-01-25T13:34:05.098Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "plan_id": "5c015012ad45490041a52f64",
                          "title": "QA - Document",
                          "description": "Course to test Documents Lessons",
                          "tenant": "qa_boost",
                          "created_date": "2018-11-30T14:58:26.716Z",
                          "updated_date": "2019-01-25T13:34:14.819Z"
                        },
                        {
                          "plan_id": "5c015558ad45490041a53473",
                          "title": "QA - Video",
                          "description": "Course to test Video Lessons",
                          "tenant": "qa_boost",
                          "created_date": "2018-11-30T15:20:56.392Z",
                          "updated_date": "2019-01-25T13:34:05.098Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the plans.",
        "tags": [
          "Plans"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/plans/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Plans"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/plans/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Plans"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/products/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "product_id": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "price": {
                      "type": "number"
                    },
                    "reference": {
                      "type": "string"
                    },
                    "image": {
                      "type": "string"
                    },
                    "short_desc": {
                      "type": "string"
                    },
                    "out_of_stock": {
                      "type": "boolean"
                    },
                    "description": {
                      "type": "string"
                    },
                    "catalog_id": {
                      "type": "string"
                    },
                    "catalog_title": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "product_id": "54ab03c6546847ee0d30081d",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "updated_date": "2018-05-23T04:51:40.862Z",
                    "title": "Rocket ltd product 1",
                    "price": 20.4,
                    "reference": "Rocket ltd SKU 1",
                    "image": "https://res.cloudinary.com/yoobic/image/upload/v1475779283/r4b1ticoyezzkdubkidf.jpg",
                    "short_desc": "<p>Rocket</p>",
                    "out_of_stock": false,
                    "description": "<p>Great rocket example</p>",
                    "catalog_id": "54ab03c6546847ee0d30076b",
                    "catalog_title": "Rockets Catalog"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "product_id": "54ab03c6546847ee0d30081d",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z",
                      "title": "Rocket ltd product 1",
                      "price": 20.4,
                      "reference": "Rocket ltd SKU 1",
                      "image": "https://res.cloudinary.com/yoobic/image/upload/v1475779283/r4b1ticoyezzkdubkidf.jpg",
                      "short_desc": "<p>Rocket</p>",
                      "out_of_stock": false,
                      "description": "<p>Great rocket example</p>",
                      "catalog_id": "54ab03c6546847ee0d30076b",
                      "catalog_title": "Rockets Catalog"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a product for the given id.",
        "tags": [
          "Products"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the product",
            "required": true,
            "example": "54ab03c6546847ee0d30081d",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/products?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the products.",
        "tags": [
          "Products"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/products/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Products"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/products/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Products"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/products/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n### Fields\n\n| Field                | Type           | Required | Description               |\n|----------------------|:--------------:|:--------:|---------------------------|\n|`product_id`          |  string        |          | Unique id of the product  |\n|`title`               |  string        |    x     | The product title         |\n|`price`               |  number        |          | The product price         |\n|`reference`           |  string        |    x     | The product reference (SKU) |\n|`image`               |  string        |          | The url to the image        |\n|`short_desc`          |  string        |          | Short description of the product         |\n|`description`         |  string        |          | Description of the product |\n|`catalog_id`          |  string        |    x     | Unique id of the catalog  |\n|`catalog_title`       |  string        |    x     | Title of the catalog  |\n|`tags`                |  array         |          | Tags of the product in the form \"aaa,bbb\" - multiple tags are comma separated |\n|`manufacturer`        |  string        |          | The manufacturer name of the product | \n|`brand`               |  string        |          | The brand name of the product |  \n|`category`            |  string        |          | The category name of the product |  \n|`images`              |  array         |          | The image urls associated with this product - multiple images are comma separated |  \n|`out_of_stock`        |  boolean       |          | Whether or not product is available |  \n|`created_date`        |  date          |          | Creation date             |\n|`updated_date`        |  date          |          | Last update date          |\n\nOne of either fields is required:\n\n- catalog_id\n\n- catalog_title\n\n**important**:        \nIf you are using custom_fields, you can also add columns corresponding to the name of each of your custom_fields in your import file",
        "tags": [
          "Products"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/questions/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "question_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "is_wiki": {
                      "type": "boolean"
                    },
                    "likes": {
                      "type": "number"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "question_id": "634925735aa7ab001df22cda",
                    "title": "new article test",
                    "user_id": "63482186d676de001d29288b",
                    "is_wiki": true,
                    "likes": 1,
                    "created_date": "2022-10-14T09:01:39.744Z",
                    "updated_date": "2022-10-18T09:33:29.552Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "question_id": "634925735aa7ab001df22cda",
                      "title": "new article test",
                      "user_id": "63482186d676de001d29288b",
                      "is_wiki": true,
                      "likes": 1,
                      "created_date": "2022-10-14T09:01:39.744Z",
                      "updated_date": "2022-10-18T09:33:29.552Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a question for the given id.",
        "tags": [
          "Questions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the question",
            "required": true,
            "example": "61b9b435c8f864003a552378",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/questions?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the questions.",
        "tags": [
          "Questions"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/questions/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Questions"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/questions/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Questions"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/acl-roles/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "acl_role_id": {
                      "type": "string"
                    },
                    "client_role": {
                      "type": "string"
                    },
                    "client_role_extension": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "acl_role_id": "635fa9a8fffb8783206ea224",
                    "client_role": "ROLESTORE",
                    "client_role_extension": "test",
                    "created_date": "2022-10-31T10:55:36.857Z",
                    "updated_date": "2022-10-31T10:55:36.857Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "acl_role_id": "635fa9a8fffb8783206ea224",
                      "client_role": "ROLESTORE",
                      "client_role_extension": "test",
                      "created_date": "2022-10-31T10:55:36.857Z",
                      "updated_date": "2022-10-31T10:55:36.857Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a role for the given id.",
        "tags": [
          "Roles"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the role",
            "required": true,
            "example": "635fa9a8fffb8783206ea224",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/acl-roles?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "acl_role_id": {
                        "type": "string"
                      },
                      "client_role": {
                        "type": "string"
                      },
                      "client_role_extension": {
                        "type": "string"
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "acl_role_id",
                      "client_role",
                      "created_date",
                      "updated_date"
                    ]
                  },
                  "example": [
                    {
                      "acl_role_id": "5f591f87933fa329c5956d7d",
                      "client_role": "ROLESTORE",
                      "client_role_extension": "Tudor",
                      "created_date": "2020-09-09T18:31:35.542Z",
                      "updated_date": "2022-10-31T10:54:27.973Z"
                    },
                    {
                      "acl_role_id": "61538d4de9967a003670703c",
                      "client_role": "ROLEVIEWER",
                      "created_date": "2021-09-28T21:46:53.325Z",
                      "updated_date": "2022-10-28T21:01:37.131Z"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "acl_role_id": "5f591f87933fa329c5956d7d",
                        "client_role": "ROLESTORE",
                        "client_role_extension": "Tudor",
                        "created_date": "2020-09-09T18:31:35.542Z",
                        "updated_date": "2022-10-31T10:54:27.973Z"
                      },
                      {
                        "acl_role_id": "61538d4de9967a003670703c",
                        "client_role": "ROLEVIEWER",
                        "created_date": "2021-09-28T21:46:53.325Z",
                        "updated_date": "2022-10-28T21:01:37.131Z"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the roles.",
        "tags": [
          "Roles"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/acl-roles/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Roles"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/acl-roles/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Roles"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/shifts/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "shift_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "start_date": {
                      "type": "string"
                    },
                    "end_date": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "client_id": {
                      "type": "string"
                    },
                    "username": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "shift_id": "63dbe3f3fb2603001d1f958c",
                    "title": "New shift4",
                    "description": "10:00 - 16:00",
                    "start_date": "2022-12-14T09:00:00.000Z",
                    "end_date": "2022-12-14T16:00:00.000Z",
                    "user_id": "62c2adf1e926980025f9986f",
                    "store_id": "5f3e4cc1fe89be003bc29bd6",
                    "created_date": "2023-02-02T16:25:23.119Z",
                    "updated_date": "2023-02-02T16:25:23.119Z",
                    "client_id": "VT008",
                    "username": "newgeofilter1"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "shift_id": "63dbe3f3fb2603001d1f958c",
                      "title": "New shift4",
                      "description": "10:00 - 16:00",
                      "start_date": "2022-12-14T09:00:00.000Z",
                      "end_date": "2022-12-14T16:00:00.000Z",
                      "user_id": "62c2adf1e926980025f9986f",
                      "store_id": "5f3e4cc1fe89be003bc29bd6",
                      "created_date": "2023-02-02T16:25:23.119Z",
                      "updated_date": "2023-02-02T16:25:23.119Z",
                      "client_id": "VT008",
                      "username": "newgeofilter1"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a shift for the given id",
        "tags": [
          "Shifts"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the shifts",
            "required": true,
            "example": "5efd1157b2e93c96bc8ea071",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "shift_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "start_date": {
                      "type": "string"
                    },
                    "end_date": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "client_id": {
                      "type": "string"
                    },
                    "username": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "shift_id": "63dbe3f3fb2603001d1f958c",
                    "title": "New shift4",
                    "description": "10:00 - 16:00",
                    "start_date": "2022-12-14T09:00:00.000Z",
                    "end_date": "2022-12-14T16:00:00.000Z",
                    "user_id": "62c2adf1e926980025f9986f",
                    "store_id": "5f3e4cc1fe89be003bc29bd6",
                    "created_date": "2023-02-02T16:25:23.119Z",
                    "updated_date": "2023-02-02T16:25:23.119Z",
                    "client_id": "VT008",
                    "username": "newgeofilter1"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "shift_id": "63dbe3f3fb2603001d1f958c",
                      "title": "New shift4",
                      "description": "10:00 - 16:00",
                      "start_date": "2022-12-14T09:00:00.000Z",
                      "end_date": "2022-12-14T16:00:00.000Z",
                      "user_id": "62c2adf1e926980025f9986f",
                      "store_id": "5f3e4cc1fe89be003bc29bd6",
                      "created_date": "2023-02-02T16:25:23.119Z",
                      "updated_date": "2023-02-02T16:25:23.119Z",
                      "client_id": "VT008",
                      "username": "newgeofilter1"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "Creating a single shifts",
        "tags": [
          "Shifts"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the shifts",
            "required": true,
            "example": "5efd1157b2e93c96bc8ea071",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "client_id": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "start_date": {
                    "type": "string"
                  },
                  "end_date": {
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  }
                },
                "example": {
                  "client_id": "VT008",
                  "title": "New shift4",
                  "description": "10:00 - 16:00",
                  "start_date": "2022-12-14T09:00:00.000Z",
                  "end_date": "2022-12-14T16:00:00.000Z",
                  "username": "newgeofilter1"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "shift_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "start_date": {
                      "type": "string"
                    },
                    "end_date": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "client_id": {
                      "type": "string"
                    },
                    "username": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "shift_id": "63dbe3f3fb2603001d1f958c",
                    "title": "New shift4",
                    "description": "updated description",
                    "start_date": "2022-12-14T09:00:00.000Z",
                    "end_date": "2022-12-14T16:00:00.000Z",
                    "user_id": "62c2adf1e926980025f9986f",
                    "store_id": "5f3e4cc1fe89be003bc29bd6",
                    "created_date": "2023-02-02T16:25:23.119Z",
                    "updated_date": "2023-02-02T16:25:23.119Z",
                    "client_id": "VT008",
                    "username": "newgeofilter1"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "shift_id": "63dbe3f3fb2603001d1f958c",
                      "title": "New shift4",
                      "description": "updated description",
                      "start_date": "2022-12-14T09:00:00.000Z",
                      "end_date": "2022-12-14T16:00:00.000Z",
                      "user_id": "62c2adf1e926980025f9986f",
                      "store_id": "5f3e4cc1fe89be003bc29bd6",
                      "created_date": "2023-02-02T16:25:23.119Z",
                      "updated_date": "2023-02-02T16:25:23.119Z",
                      "client_id": "VT008",
                      "username": "newgeofilter1"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of a shift",
        "tags": [
          "Shifts"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the shifts",
            "required": true,
            "example": "5efd1157b2e93c96bc8ea071",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/shifts?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "shift_id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "start_date": {
                        "type": "string"
                      },
                      "end_date": {
                        "type": "string"
                      },
                      "user_id": {
                        "type": "string"
                      },
                      "store_id": {
                        "type": "string"
                      },
                      "tenant": {
                        "type": "string"
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      },
                      "client_id": {
                        "type": "string"
                      },
                      "username": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "shift_id",
                      "title",
                      "description",
                      "start_date",
                      "end_date",
                      "user_id",
                      "store_id",
                      "tenant",
                      "created_date",
                      "updated_date",
                      "client_id",
                      "username"
                    ]
                  },
                  "example": [
                    {
                      "shift_id": "63dbe3f3fb2603001d1f958c",
                      "title": "New shift4",
                      "description": "10:00 - 16:00",
                      "start_date": "2022-12-14T09:00:00.000Z",
                      "end_date": "2022-12-14T16:00:00.000Z",
                      "user_id": "62c2adf1e926980025f9986f",
                      "store_id": "5f3e4cc1fe89be003bc29bd6",
                      "tenant": "vitaltest",
                      "created_date": "2023-02-02T16:25:23.119Z",
                      "updated_date": "2023-02-02T16:25:23.119Z",
                      "client_id": "VT008",
                      "username": "newgeofilter1"
                    },
                    {
                      "shift_id": "63d1289f955423001dde00fc",
                      "title": "New shift8",
                      "description": "10:00 - 16:00",
                      "start_date": "2022-12-18T09:00:00.000Z",
                      "end_date": "2022-12-18T16:00:00.000Z",
                      "user_id": "62c2adf1e926980025f9986f",
                      "store_id": "5f3e4cc1fe89be003bc29bd6",
                      "tenant": "vitaltest",
                      "created_date": "2023-01-25T13:03:27.676Z",
                      "updated_date": "2023-01-25T13:03:27.676Z",
                      "client_id": "VT008",
                      "username": "newgeofilter1"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "shift_id": "63dbe3f3fb2603001d1f958c",
                        "title": "New shift4",
                        "description": "10:00 - 16:00",
                        "start_date": "2022-12-14T09:00:00.000Z",
                        "end_date": "2022-12-14T16:00:00.000Z",
                        "user_id": "62c2adf1e926980025f9986f",
                        "store_id": "5f3e4cc1fe89be003bc29bd6",
                        "tenant": "vitaltest",
                        "created_date": "2023-02-02T16:25:23.119Z",
                        "updated_date": "2023-02-02T16:25:23.119Z",
                        "client_id": "VT008",
                        "username": "newgeofilter1"
                      },
                      {
                        "shift_id": "63d1289f955423001dde00fc",
                        "title": "New shift8",
                        "description": "10:00 - 16:00",
                        "start_date": "2022-12-18T09:00:00.000Z",
                        "end_date": "2022-12-18T16:00:00.000Z",
                        "user_id": "62c2adf1e926980025f9986f",
                        "store_id": "5f3e4cc1fe89be003bc29bd6",
                        "tenant": "vitaltest",
                        "created_date": "2023-01-25T13:03:27.676Z",
                        "updated_date": "2023-01-25T13:03:27.676Z",
                        "client_id": "VT008",
                        "username": "newgeofilter1"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the shifts.",
        "tags": [
          "Shifts"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/shifts/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Shifts"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/shifts/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Shifts"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/shifts/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n### Fields\n\n| Field                    | Format  | Required | Description     |\n|--------------------------|---------|:--------:|-----------------|\n| shift_id                 | string  |    x     | The unique identifier of the shift.                                   |\n| username                 | string  |    x     | The unique username of the employee assigned to the shift.             |\n| user_id                  | string  |          | An external identifier for the employee                                |\n| title                    | string  |    x     | The title of the shift. (visible in the calendar of the user)         |\n| store_id                 | string  |          | An external identifier for the employee                                |\n| start_date               | string  |    x     | The start date and time of the shift.                                  |\n| end_date                 | string  |    x     | The end date and time of the shift.                                   |\n| description              | string  |          | The description of the shift.                                         |\n| client_id                | string  |    x     | The unique client_id of the location where the shift takes place.      |\n| _lmt                     | string  |          | The last modified time of the shift.                                  |\n| _ect                     | string  |          | The time when the shift was created.                                  |",
        "tags": [
          "Shifts"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/store-types/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "store_type_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "group_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "store_type_id": "56b0c262e9a22a4e5f02be7d",
                    "name": "ice-cream",
                    "group_ids": [
                      "managers"
                    ],
                    "created_date": "2016-02-02T14:51:14.644Z",
                    "updated_date": "2016-07-15T14:18:41.750Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "store_type_id": "56b0c262e9a22a4e5f02be7d",
                      "name": "ice-cream",
                      "group_ids": [
                        "managers"
                      ],
                      "created_date": "2016-02-02T14:51:14.644Z",
                      "updated_date": "2016-07-15T14:18:41.750Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a store type for the given id.",
        "tags": [
          "Store Types"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {}
          }
        },
        "summary": "Delete",
        "operationId": "Delete",
        "description": "Delete a store type by id.",
        "tags": [
          "Store Types"
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "store_type_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "group_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "store_type_id": "56b0c262e9a22a4e5f02be7d",
                    "name": "ice-cream",
                    "group_ids": [
                      "managers"
                    ],
                    "created_date": "2016-02-02T14:51:14.644Z",
                    "updated_date": "2016-07-15T14:18:41.750Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "store_type_id": "56b0c262e9a22a4e5f02be7d",
                      "name": "ice-cream",
                      "group_ids": [
                        "managers"
                      ],
                      "created_date": "2016-02-02T14:51:14.644Z",
                      "updated_date": "2016-07-15T14:18:41.750Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of a store type",
        "tags": [
          "Store Types"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  }
                },
                "example": {
                  "name": "ice-cream"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/store-types?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "store_type_id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "group_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "store_type_id",
                          "name",
                          "group_ids",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "store_type_id": "56b0c262e9a22a4e5f02be7d",
                        "name": "ice-cream",
                        "group_ids": [
                          "managers"
                        ],
                        "created_date": "2016-02-02T14:51:14.644Z",
                        "updated_date": "2016-07-15T14:18:41.750Z"
                      },
                      {
                        "store_type_id": "56b0c262e9a22a4e5f02be7e",
                        "name": "fruit",
                        "group_ids": [
                          "staf",
                          "managers"
                        ],
                        "created_date": "2016-02-02T14:51:14.644Z",
                        "updated_date": "2016-07-15T14:18:41.750Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "store_type_id": "56b0c262e9a22a4e5f02be7d",
                          "name": "ice-cream",
                          "group_ids": [
                            "managers"
                          ],
                          "created_date": "2016-02-02T14:51:14.644Z",
                          "updated_date": "2016-07-15T14:18:41.750Z"
                        },
                        {
                          "store_type_id": "56b0c262e9a22a4e5f02be7e",
                          "name": "fruit",
                          "group_ids": [
                            "staf",
                            "managers"
                          ],
                          "created_date": "2016-02-02T14:51:14.644Z",
                          "updated_date": "2016-07-15T14:18:41.750Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get all",
        "operationId": "Get all",
        "description": "Get all stores.",
        "tags": [
          "Store Types"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/store-types/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Store Types"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/store-types": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "store_type_id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "group_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "store_type_id",
                      "name",
                      "group_ids",
                      "created_date",
                      "updated_date"
                    ]
                  },
                  "example": [
                    {
                      "store_type_id": "56b0c262e9a22a4e5f02be7d",
                      "name": "ice-cream",
                      "group_ids": [
                        "managers"
                      ],
                      "created_date": "2016-02-02T14:51:14.644Z",
                      "updated_date": "2016-07-15T14:18:41.750Z"
                    },
                    {
                      "store_type_id": "56b0c262e9a22a4e5f02be7e",
                      "name": "fruit",
                      "group_ids": [
                        "managers",
                        "staf"
                      ],
                      "created_date": "2016-02-02T14:51:14.644Z",
                      "updated_date": "2016-07-15T14:18:41.750Z"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "store_type_id": "56b0c262e9a22a4e5f02be7d",
                        "name": "ice-cream",
                        "group_ids": [
                          "managers"
                        ],
                        "created_date": "2016-02-02T14:51:14.644Z",
                        "updated_date": "2016-07-15T14:18:41.750Z"
                      },
                      {
                        "store_type_id": "56b0c262e9a22a4e5f02be7e",
                        "name": "fruit",
                        "group_ids": [
                          "managers",
                          "staf"
                        ],
                        "created_date": "2016-02-02T14:51:14.644Z",
                        "updated_date": "2016-07-15T14:18:41.750Z"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "You may create a new single store type or multiple store types using this action.\nWhen creating a single store type, the body contains a json object, when creating multiple store types, the body contains an array of objects.    \n**Warning: a maximum of 1000 items can be sent in a single request.**",
        "tags": [
          "Store Types"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "group_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "name": "ice-cream",
                  "group_ids": [
                    "managers"
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/store-types/export?{filter}&type={type}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Store Types"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/store-types/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n### Fields\n\n| Field                    | Format  | Required | Description      |\n|--------------------------|---------|:--------:|------------------|\n|`store_type_id`           |  string |          | Unique store type id  |\n|`name`                    |  string |    x     | Name of the store type|\n|`group_ids`               |  array  |    x     | Group ids that can see this store type|",
        "tags": [
          "Store Types"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/stores/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "store_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "address": {
                      "type": "string"
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "client_id": {
                      "type": "string"
                    },
                    "store_type_name": {
                      "type": "string"
                    },
                    "latitude": {
                      "type": "number"
                    },
                    "longitude": {
                      "type": "number"
                    },
                    "contact_email": {
                      "type": "string"
                    },
                    "contact_phone": {
                      "type": "string"
                    },
                    "contact_name": {
                      "type": "string"
                    },
                    "notification_emails": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "country": {
                      "type": "string"
                    },
                    "timezone": {
                      "type": "string"
                    },
                    "vip": {
                      "type": "boolean"
                    },
                    "properties": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "values": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "string"
                                },
                                "value": {
                                  "oneOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ]
                                },
                                "isPercent": {
                                  "type": "boolean"
                                },
                                "colorHex": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "title",
                                "value",
                                "colorHex",
                                "isPercent"
                              ]
                            }
                          }
                        }
                      }
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "store_id": "5b2122014ebf5300360acae1",
                    "title": "ice-cream-store",
                    "address": "Statue of Liberty, New York, USA",
                    "tags": [
                      "The dream ice-cream",
                      "number 1 ice-cream"
                    ],
                    "client_id": "007",
                    "store_type_name": "ice-cream",
                    "latitude": 40.6895453,
                    "longitude": -74.0449292,
                    "contact_email": "support@store.com",
                    "contact_phone": "1800-007-007",
                    "contact_name": "james",
                    "notification_emails": [
                      "james@store.com",
                      "jane@store.com"
                    ],
                    "country": "United States",
                    "timezone": "America/New_York",
                    "vip": true,
                    "properties": [
                      {
                        "title": "KPI S27",
                        "type": "columns",
                        "values": [
                          {
                            "title": "Revenues",
                            "value": "1 456 $",
                            "isPercent": false,
                            "colorHex": "#00FF00"
                          },
                          {
                            "title": "Nb Hours",
                            "value": "7/66",
                            "colorHex": "#B404FF"
                          },
                          {
                            "title": "QP",
                            "value": 2.8,
                            "isPercent": true,
                            "colorHex": "#B40404"
                          }
                        ]
                      }
                    ],
                    "created_date": "2018-05-24T04:51:40.862Z",
                    "updated_date": "2018-05-24T04:51:40.862Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "store_id": "5b2122014ebf5300360acae1",
                      "title": "ice-cream-store",
                      "address": "Statue of Liberty, New York, USA",
                      "tags": [
                        "The dream ice-cream",
                        "number 1 ice-cream"
                      ],
                      "client_id": "007",
                      "store_type_name": "ice-cream",
                      "latitude": 40.6895453,
                      "longitude": -74.0449292,
                      "contact_email": "support@store.com",
                      "contact_phone": "1800-007-007",
                      "contact_name": "james",
                      "notification_emails": [
                        "james@store.com",
                        "jane@store.com"
                      ],
                      "country": "United States",
                      "timezone": "America/New_York",
                      "vip": true,
                      "properties": [
                        {
                          "title": "KPI S27",
                          "type": "columns",
                          "values": [
                            {
                              "title": "Revenues",
                              "value": "1 456 $",
                              "isPercent": false,
                              "colorHex": "#00FF00"
                            },
                            {
                              "title": "Nb Hours",
                              "value": "7/66",
                              "colorHex": "#B404FF"
                            },
                            {
                              "title": "QP",
                              "value": 2.8,
                              "isPercent": true,
                              "colorHex": "#B40404"
                            }
                          ]
                        }
                      ],
                      "created_date": "2018-05-24T04:51:40.862Z",
                      "updated_date": "2018-05-24T04:51:40.862Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a store for the given id.",
        "tags": [
          "Stores"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "store_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "address": {
                      "type": "string"
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "client_id": {
                      "type": "string"
                    },
                    "store_type_name": {
                      "type": "string"
                    },
                    "latitude": {
                      "type": "number"
                    },
                    "longitude": {
                      "type": "number"
                    },
                    "contact_email": {
                      "type": "string"
                    },
                    "contact_phone": {
                      "type": "string"
                    },
                    "contact_name": {
                      "type": "string"
                    },
                    "notification_emails": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "country": {
                      "type": "string"
                    },
                    "timezone": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "store_id": "5b2122014ebf5300360acae1",
                    "title": "ice-cream-store",
                    "address": "Statue of Liberty, New York, USA",
                    "tags": [
                      "ICE ICE BABY"
                    ],
                    "client_id": "007",
                    "store_type_name": "ice-cream",
                    "latitude": 40.6895453,
                    "longitude": -74.0449292,
                    "contact_email": "support@store.com",
                    "contact_phone": "1800-007-007",
                    "contact_name": "james",
                    "notification_emails": [
                      "james@store.com",
                      "jane@store.com"
                    ],
                    "country": "United States",
                    "timezone": "America/New_York",
                    "created_date": "2018-05-23T04:51:40.862Z",
                    "updated_date": "2018-07-20T09:51:40.862Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "store_id": "5b2122014ebf5300360acae1",
                      "title": "ice-cream-store",
                      "address": "Statue of Liberty, New York, USA",
                      "tags": [
                        "ICE ICE BABY"
                      ],
                      "client_id": "007",
                      "store_type_name": "ice-cream",
                      "latitude": 40.6895453,
                      "longitude": -74.0449292,
                      "contact_email": "support@store.com",
                      "contact_phone": "1800-007-007",
                      "contact_name": "james",
                      "notification_emails": [
                        "james@store.com",
                        "jane@store.com"
                      ],
                      "country": "United States",
                      "timezone": "America/New_York",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-07-20T09:51:40.862Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of a store",
        "tags": [
          "Stores"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "tags": [
                    "ICE ICE BABY"
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/stores/{id}/health-score?days{days}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "healthscore": {
                      "type": "object",
                      "properties": {
                        "today": {
                          "type": "number"
                        },
                        "yesterday": {
                          "type": "number"
                        }
                      }
                    },
                    "reactivity": {
                      "type": "object",
                      "properties": {
                        "today": {
                          "type": "number"
                        },
                        "yesterday": {
                          "type": "number"
                        }
                      }
                    },
                    "compliance": {
                      "type": "object",
                      "properties": {
                        "today": {
                          "type": "number"
                        },
                        "yesterday": {
                          "type": "number"
                        }
                      }
                    },
                    "accuracy": {
                      "type": "object",
                      "properties": {
                        "today": {
                          "type": "number"
                        },
                        "yesterday": {
                          "type": "number"
                        }
                      }
                    },
                    "review": {
                      "type": "object",
                      "properties": {
                        "today": {
                          "type": "number"
                        },
                        "yesterday": {
                          "type": "number"
                        }
                      }
                    },
                    "evolution": {
                      "type": "object",
                      "properties": {
                        "lowest": {
                          "type": "number"
                        },
                        "highest": {
                          "type": "number"
                        },
                        "evolution": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "date": {
                                "type": "string"
                              },
                              "value": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "date",
                              "value"
                            ]
                          }
                        },
                        "current": {
                          "type": "number"
                        }
                      }
                    }
                  },
                  "example": {
                    "healthscore": {
                      "today": 28,
                      "yesterday": 28
                    },
                    "reactivity": {
                      "today": 31,
                      "yesterday": 31
                    },
                    "compliance": {
                      "today": 9,
                      "yesterday": 9
                    },
                    "accuracy": {
                      "today": 38,
                      "yesterday": 38
                    },
                    "review": {
                      "today": 32,
                      "yesterday": 32
                    },
                    "evolution": {
                      "lowest": 25,
                      "highest": 30,
                      "evolution": [
                        {
                          "date": "2019-02-24T03:08:35.501Z",
                          "value": 28
                        },
                        {
                          "date": "2019-02-23T03:08:09.680Z",
                          "value": 28
                        },
                        {
                          "date": "2019-02-22T03:08:19.140Z",
                          "value": 28
                        },
                        {
                          "date": "2019-02-21T03:15:25.134Z",
                          "value": 29
                        },
                        {
                          "date": "2019-02-20T03:14:16.949Z",
                          "value": 27
                        },
                        {
                          "date": "2019-02-19T03:09:00.727Z",
                          "value": 25
                        },
                        {
                          "date": "2019-02-18T03:09:59.539Z",
                          "value": 30
                        },
                        {
                          "date": "2019-02-17T03:08:11.926Z",
                          "value": 28
                        },
                        {
                          "date": "2019-02-16T03:14:42.549Z",
                          "value": 28
                        }
                      ],
                      "current": 28
                    }
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "healthscore": {
                        "today": 28,
                        "yesterday": 28
                      },
                      "reactivity": {
                        "today": 31,
                        "yesterday": 31
                      },
                      "compliance": {
                        "today": 9,
                        "yesterday": 9
                      },
                      "accuracy": {
                        "today": 38,
                        "yesterday": 38
                      },
                      "review": {
                        "today": 32,
                        "yesterday": 32
                      },
                      "evolution": {
                        "lowest": 25,
                        "highest": 30,
                        "evolution": [
                          {
                            "date": "2019-02-24T03:08:35.501Z",
                            "value": 28
                          },
                          {
                            "date": "2019-02-23T03:08:09.680Z",
                            "value": 28
                          },
                          {
                            "date": "2019-02-22T03:08:19.140Z",
                            "value": 28
                          },
                          {
                            "date": "2019-02-21T03:15:25.134Z",
                            "value": 29
                          },
                          {
                            "date": "2019-02-20T03:14:16.949Z",
                            "value": 27
                          },
                          {
                            "date": "2019-02-19T03:09:00.727Z",
                            "value": 25
                          },
                          {
                            "date": "2019-02-18T03:09:59.539Z",
                            "value": 30
                          },
                          {
                            "date": "2019-02-17T03:08:11.926Z",
                            "value": 28
                          },
                          {
                            "date": "2019-02-16T03:14:42.549Z",
                            "value": 28
                          }
                        ],
                        "current": 28
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Health Score of a store API",
        "operationId": "Health Score of a store API",
        "description": "An in house KPI to help measure a store's condition.\nThe Health Score is determined according to 4 criteria:\n\n- `reactivity`: Percentage of completed missions on time.\n\n- `accuracy`: Percentage of compliant missions.\n\n- `compliance`: Percentage of compliant campaigns. Campaign compliancy is set when the last mission on the store is compliant.\n\n- `review`: This concept aims to integrate audits completed by managers over the store in the Health Score\n\nThe final score is then given with two additional parameters:\n\n- `healthscore`: Is the final grade calculated according to the average of the 4 criteria above.\n\n- `evolution`: This is the history of the store's `healthscore` (determined by the `days` parameter and defaults to `7`).",
        "tags": [
          "Stores"
        ],
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "description": "The number of days back to calculate the healthscore (defaults to 7)",
            "required": false,
            "example": "7",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/stores/{id}/archive": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "result": "success"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Archive",
        "operationId": "Archive",
        "description": "Archive a store",
        "tags": [
          "Stores"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/stores/{id}/unarchive": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "result": "success"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Unarchive",
        "operationId": "Unarchive",
        "description": "Restore an archived store.",
        "tags": [
          "Stores"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/stores?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "store_id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "address": {
                            "type": "string"
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "client_id": {
                            "type": "string"
                          },
                          "store_type_name": {
                            "type": "string"
                          },
                          "latitude": {
                            "type": "number"
                          },
                          "longitude": {
                            "type": "number"
                          },
                          "contact_email": {
                            "type": "string"
                          },
                          "contact_phone": {
                            "type": "string"
                          },
                          "contact_name": {
                            "type": "string"
                          },
                          "notification_emails": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "country": {
                            "type": "string"
                          },
                          "timezone": {
                            "type": "string"
                          },
                          "capacity": {
                            "type": "number"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "store_id",
                          "title",
                          "address",
                          "tags",
                          "client_id",
                          "store_type_name",
                          "latitude",
                          "longitude",
                          "contact_email",
                          "contact_phone",
                          "contact_name",
                          "notification_emails",
                          "country",
                          "timezone",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "store_id": "5b2122014ebf5300360acae1",
                        "title": "ice-cream-store",
                        "address": "Statue of Liberty, New York, USA",
                        "tags": [
                          "ICE ICE BABY"
                        ],
                        "client_id": "007",
                        "store_type_name": "ice-cream",
                        "latitude": 40.6895453,
                        "longitude": -74.0449292,
                        "contact_email": "support@store.com",
                        "contact_phone": "1800-007-007",
                        "contact_name": "james",
                        "notification_emails": [
                          "james@store.com",
                          "jane@store.com"
                        ],
                        "country": "United States",
                        "timezone": "America/New_York",
                        "capacity": 100,
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-07-20T09:51:40.862Z"
                      },
                      {
                        "store_id": "5b2122014ebf5300360acae2",
                        "title": "ice-cream-store-2",
                        "address": "Statue of Liberty, New York, USA",
                        "tags": [
                          "ICE ICE BABY"
                        ],
                        "client_id": "008",
                        "store_type_name": "ice-cream",
                        "latitude": 40.6895453,
                        "longitude": -74.0449292,
                        "contact_email": "support@store2.com",
                        "contact_phone": "1800-008-008",
                        "contact_name": "jane",
                        "notification_emails": [
                          "james@store2.com",
                          "jane@store2.com"
                        ],
                        "country": "United States",
                        "timezone": "America/New_York",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-07-20T09:51:40.862Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "store_id": "5b2122014ebf5300360acae1",
                          "title": "ice-cream-store",
                          "address": "Statue of Liberty, New York, USA",
                          "tags": [
                            "ICE ICE BABY"
                          ],
                          "client_id": "007",
                          "store_type_name": "ice-cream",
                          "latitude": 40.6895453,
                          "longitude": -74.0449292,
                          "contact_email": "support@store.com",
                          "contact_phone": "1800-007-007",
                          "contact_name": "james",
                          "notification_emails": [
                            "james@store.com",
                            "jane@store.com"
                          ],
                          "country": "United States",
                          "timezone": "America/New_York",
                          "capacity": 100,
                          "created_date": "2018-05-23T04:51:40.862Z",
                          "updated_date": "2018-07-20T09:51:40.862Z"
                        },
                        {
                          "store_id": "5b2122014ebf5300360acae2",
                          "title": "ice-cream-store-2",
                          "address": "Statue of Liberty, New York, USA",
                          "tags": [
                            "ICE ICE BABY"
                          ],
                          "client_id": "008",
                          "store_type_name": "ice-cream",
                          "latitude": 40.6895453,
                          "longitude": -74.0449292,
                          "contact_email": "support@store2.com",
                          "contact_phone": "1800-008-008",
                          "contact_name": "jane",
                          "notification_emails": [
                            "james@store2.com",
                            "jane@store2.com"
                          ],
                          "country": "United States",
                          "timezone": "America/New_York",
                          "created_date": "2018-05-23T04:51:40.862Z",
                          "updated_date": "2018-07-20T09:51:40.862Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get all",
        "operationId": "Get all",
        "description": "Get all stores.",
        "tags": [
          "Stores"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/stores/archives?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "store_id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "address": {
                            "type": "string"
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "client_id": {
                            "type": "string"
                          },
                          "store_type_name": {
                            "type": "string"
                          },
                          "latitude": {
                            "type": "number"
                          },
                          "longitude": {
                            "type": "number"
                          },
                          "contact_email": {
                            "type": "string"
                          },
                          "contact_phone": {
                            "type": "string"
                          },
                          "contact_name": {
                            "type": "string"
                          },
                          "notification_emails": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "country": {
                            "type": "string"
                          },
                          "timezone": {
                            "type": "string"
                          },
                          "capacity": {
                            "type": "number"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "store_id",
                          "title",
                          "address",
                          "tags",
                          "client_id",
                          "store_type_name",
                          "latitude",
                          "longitude",
                          "contact_email",
                          "contact_phone",
                          "contact_name",
                          "notification_emails",
                          "country",
                          "timezone",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "store_id": "5b2122014ebf5300360acbd4",
                        "title": "ice-cream-store",
                        "address": "Statue of Liberty, New York, USA",
                        "tags": [
                          "ICE ICE BABY"
                        ],
                        "client_id": "007",
                        "store_type_name": "ice-cream",
                        "latitude": 40.6895453,
                        "longitude": -74.0449292,
                        "contact_email": "support@store.com",
                        "contact_phone": "1800-007-007",
                        "contact_name": "james",
                        "notification_emails": [
                          "james@store.com",
                          "jane@store.com"
                        ],
                        "country": "United States",
                        "timezone": "America/New_York",
                        "capacity": 100,
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-07-20T09:51:40.862Z"
                      },
                      {
                        "store_id": "5b2122014ebf5300360acbde2",
                        "title": "ice-cream-store-2",
                        "address": "Statue of Liberty, New York, USA",
                        "tags": [
                          "ICE ICE BABY"
                        ],
                        "client_id": "008",
                        "store_type_name": "ice-cream",
                        "latitude": 40.6895453,
                        "longitude": -74.0449292,
                        "contact_email": "support@store2.com",
                        "contact_phone": "1800-008-008",
                        "contact_name": "jane",
                        "notification_emails": [
                          "james@store2.com",
                          "jane@store2.com"
                        ],
                        "country": "United States",
                        "timezone": "America/New_York",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-07-20T09:51:40.862Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "store_id": "5b2122014ebf5300360acbd4",
                          "title": "ice-cream-store",
                          "address": "Statue of Liberty, New York, USA",
                          "tags": [
                            "ICE ICE BABY"
                          ],
                          "client_id": "007",
                          "store_type_name": "ice-cream",
                          "latitude": 40.6895453,
                          "longitude": -74.0449292,
                          "contact_email": "support@store.com",
                          "contact_phone": "1800-007-007",
                          "contact_name": "james",
                          "notification_emails": [
                            "james@store.com",
                            "jane@store.com"
                          ],
                          "country": "United States",
                          "timezone": "America/New_York",
                          "capacity": 100,
                          "created_date": "2018-05-23T04:51:40.862Z",
                          "updated_date": "2018-07-20T09:51:40.862Z"
                        },
                        {
                          "store_id": "5b2122014ebf5300360acbde2",
                          "title": "ice-cream-store-2",
                          "address": "Statue of Liberty, New York, USA",
                          "tags": [
                            "ICE ICE BABY"
                          ],
                          "client_id": "008",
                          "store_type_name": "ice-cream",
                          "latitude": 40.6895453,
                          "longitude": -74.0449292,
                          "contact_email": "support@store2.com",
                          "contact_phone": "1800-008-008",
                          "contact_name": "jane",
                          "notification_emails": [
                            "james@store2.com",
                            "jane@store2.com"
                          ],
                          "country": "United States",
                          "timezone": "America/New_York",
                          "created_date": "2018-05-23T04:51:40.862Z",
                          "updated_date": "2018-07-20T09:51:40.862Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get all archives",
        "operationId": "Get all archives",
        "description": "Get all archived stores. You can use the same filters as for the regular “Get all stores” method",
        "tags": [
          "Stores"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/stores/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Stores"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/stores": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "store_id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "address": {
                        "type": "string"
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "client_id": {
                        "type": "string"
                      },
                      "store_type_name": {
                        "type": "string"
                      },
                      "latitude": {
                        "type": "number"
                      },
                      "longitude": {
                        "type": "number"
                      },
                      "country": {
                        "type": "string"
                      },
                      "timezone": {
                        "type": "string"
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "store_id",
                      "title",
                      "address",
                      "tags",
                      "client_id",
                      "store_type_name",
                      "latitude",
                      "longitude",
                      "country",
                      "timezone",
                      "created_date",
                      "updated_date"
                    ]
                  },
                  "example": [
                    {
                      "store_id": "5b2122014ebf5300360acae1",
                      "title": "ice-cream-store",
                      "address": "Statue of Liberty, New York, USA",
                      "tags": [
                        "The dream ice-cream",
                        "number 1 ice-cream"
                      ],
                      "client_id": "007",
                      "store_type_name": "ice-cream",
                      "latitude": 40.6895453,
                      "longitude": -74.0449292,
                      "country": "United States",
                      "timezone": "America/New_York",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z"
                    },
                    {
                      "store_id": "5b2122014ebf5300360acae2",
                      "title": "another-ice-cream-store",
                      "address": "77th Street, East Elmhurst, NY, USA",
                      "tags": [
                        "The dream ice-cream",
                        "number 1 ice-cream"
                      ],
                      "client_id": "007",
                      "store_type_name": "ice-cream",
                      "latitude": 40.765361,
                      "longitude": -73.8940281,
                      "country": "United States",
                      "timezone": "America/New_York",
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "store_id": "5b2122014ebf5300360acae1",
                        "title": "ice-cream-store",
                        "address": "Statue of Liberty, New York, USA",
                        "tags": [
                          "The dream ice-cream",
                          "number 1 ice-cream"
                        ],
                        "client_id": "007",
                        "store_type_name": "ice-cream",
                        "latitude": 40.6895453,
                        "longitude": -74.0449292,
                        "country": "United States",
                        "timezone": "America/New_York",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-05-23T04:51:40.862Z"
                      },
                      {
                        "store_id": "5b2122014ebf5300360acae2",
                        "title": "another-ice-cream-store",
                        "address": "77th Street, East Elmhurst, NY, USA",
                        "tags": [
                          "The dream ice-cream",
                          "number 1 ice-cream"
                        ],
                        "client_id": "007",
                        "store_type_name": "ice-cream",
                        "latitude": 40.765361,
                        "longitude": -73.8940281,
                        "country": "United States",
                        "timezone": "America/New_York",
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-05-23T04:51:40.862Z"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "You may create a new single store or multiple stores using this action.    \nWhen creating a single store the body contains a json object, when creating multiple stores the body contains an array of objects.    \n**Warning: a maximum of 1000 items can be sent in a single request.**",
        "tags": [
          "Stores"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "address": {
                    "type": "string"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "client_id": {
                    "type": "string"
                  },
                  "store_type_name": {
                    "type": "string"
                  },
                  "capacity": {
                    "type": "number"
                  }
                },
                "example": {
                  "title": "ice-cream-store",
                  "address": "Statue of Liberty, New York, USA",
                  "tags": [
                    "The dream ice-cream",
                    "number 1 ice-cream"
                  ],
                  "client_id": "007",
                  "store_type_name": "ice-cream",
                  "capacity": 100
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/stores_archived/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export archived stores",
        "operationId": "Export archived stores",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Stores"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/stores/archive/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import Stores To Archive",
        "operationId": "Import Stores To Archive",
        "description": "This method will archive all stores found from the imported file.\n\n### Fields\n\n| Field                    | Format  | Required | Description     |\n|--------------------------|---------|:--------:|-----------------|\n|`store_id`                |  string |    x     | Unique store id  |\n|`client_id`               |  string |    x     | The external unique id of the store as it may exists in your Information System|\n\nOnly one of store_id or client_id is required",
        "tags": [
          "Stores"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/stores/unarchive/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import Stores To Un Archive",
        "operationId": "Import Stores To Un Archive",
        "description": "This method will unarchive all stores found from the imported file.\n\n### Fields\n\n| Field                    | Format  | Required | Description     |\n|--------------------------|---------|:--------:|-----------------|\n|`store_id`                |  string |    x     | Unique store id  |\n|`client_id`               |  string |    x     | The external unique id of the store as it may exists in your Information System|\n\nOnly one of store_id or client_id is required",
        "tags": [
          "Stores"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/stores/export?{filter}&type={type}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Stores"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/stores/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n### Fields\n\n| Field                    | Format  | Required | Description     |\n|--------------------------|---------|:--------:|-----------------|\n|`store_id`                |  string |          | Unique store id  |\n|`title`                   |  string |    x     | Name of the store|\n|`address`                 |  string |    x     | The full address allows us to locate the store on the map. This is used to display the missions available near the user's position. |\n|`tags`                    |  string |          | Tags allow to specify additional information about the store in the form \"AAA,BBB\" - multiple tags are comma separated, and we only use capital letter by convention |\n|`latitude`                |  float  |          | Latitude of the store in the form \"0.00\"     |\n|`longitude`               |  float  |          | Longitude of the store in the form \"0.00\"    |\n|`client_id`               |  string |    x     | The external unique id of the store as it may exists in your Information System|\n|`store_type_name`         |  string |    x     | The name of the store type|\n|`store_type_id`           |  string |          | The id of the store type|\n|`info`                    |  string |          | Additional information regarding the store. Supports HTML layout |\n|`notification_emails`     |  array  |          | List of email(s) that will be notified when a mission is finished and/or a request is created/finished |\n|`contact_email`           |  string |          | Contact's email of the store i.e. store manager's email |\n|`contact_phone`           |  string |          | Contact's phone of the store i.e. store manager's phone |\n|`contact_name`            |  string |          | Contact's name of the store i.e. store manager's name |\n|`properties`              |  string |          | (.json format) Will enable you to customize the display of the data shown on the Store Activity Page. This can be split into 4 components (Columns, Grid, Chart and HTML |\n|`timezone`                |  string |          | The Time Zone allows to display the hourly sales data in the store insights in the local time of the store. |\n|`capacity`                |  number |          | Maximum number of customers which can be served at the same time |\n\nOne of either fields is required:\n\n- address\n\n- geoloc (latitude + longitude)\n\nIn the case one of the field is missing the other one will be inferred automatically by using Google Map API. Please note that the results may be incorrect and it is always recommanded to supply both fields.\n\nOne of either fields is required:\n\n- store_type_name\n\n- store_type_id\n\n**important**:\n\n- If you are using `custom_fields`, you can also add columns corresponding to the name of each of your `custom_fields` in your import file\n\n- the `client_id` is used as primary key when importing a store file. This means you don’t need to store the YOOBIC `store_id` in your systems. For each row in the import file, the import process will check if a store exists in the database with the same `client_id`:\n\n    * If the `client_id` is found and the store is not archived, then the store is updated\n    * If the `client_id` is not found, a new store is created\n    * If the `client_id` is found and the store is archived, an error is returned to indicate this store is archived",
        "tags": [
          "Stores"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/tenants?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get the tenant data.",
        "tags": [
          "Tenants"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/translations/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "translation_id": {
                      "type": "string"
                    },
                    "language": {
                      "type": "string"
                    },
                    "key": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "us": {
                      "type": "string"
                    },
                    "en": {
                      "type": "string"
                    },
                    "ca": {
                      "type": "string"
                    },
                    "fr": {
                      "type": "string"
                    },
                    "de": {
                      "type": "string"
                    },
                    "es": {
                      "type": "string"
                    },
                    "nl": {
                      "type": "string"
                    },
                    "pl": {
                      "type": "string"
                    },
                    "it": {
                      "type": "string"
                    },
                    "ru": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "group_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "example": {
                    "translation_id": "587de6c4e000eb001877e3a1",
                    "language": "fr",
                    "key": "ACTIONPLANCAMPAIGNDESCRIPTION",
                    "value": "Faites le tour du magasin avec cette fiche de visite",
                    "us": "Walk around the store with the visit sheet",
                    "en": "Walk around the store with the visit sheet",
                    "ca": "Walk around the store with the visit sheet",
                    "fr": "Faites le tour du magasin avec cette fiche de visite",
                    "de": "Gehen Sie um den Laden mit dem Besuch Blatt",
                    "es": "Paseo por la tienda con la hoja de visita",
                    "nl": "Loop rond de winkel met het bezoek vel",
                    "pl": "Spacer po sklepie z arkuszem wizyty",
                    "it": "Passeggiata intorno al negozio con la scheda di visita",
                    "ru": "Прогулка вокруг магазина с посещением листа",
                    "created_date": "2017-01-17T09:41:24.401Z",
                    "updated_date": "2017-01-18T15:27:49.026Z",
                    "group_ids": [
                      "yoobicprojectmanager"
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "translation_id": "587de6c4e000eb001877e3a1",
                      "language": "fr",
                      "key": "ACTIONPLANCAMPAIGNDESCRIPTION",
                      "value": "Faites le tour du magasin avec cette fiche de visite",
                      "us": "Walk around the store with the visit sheet",
                      "en": "Walk around the store with the visit sheet",
                      "ca": "Walk around the store with the visit sheet",
                      "fr": "Faites le tour du magasin avec cette fiche de visite",
                      "de": "Gehen Sie um den Laden mit dem Besuch Blatt",
                      "es": "Paseo por la tienda con la hoja de visita",
                      "nl": "Loop rond de winkel met het bezoek vel",
                      "pl": "Spacer po sklepie z arkuszem wizyty",
                      "it": "Passeggiata intorno al negozio con la scheda di visita",
                      "ru": "Прогулка вокруг магазина с посещением листа",
                      "created_date": "2017-01-17T09:41:24.401Z",
                      "updated_date": "2017-01-18T15:27:49.026Z",
                      "group_ids": [
                        "yoobicprojectmanager"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a translation for the given id.",
        "tags": [
          "Translations"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the translation",
            "required": true,
            "example": "54ab03c6546847ee0d30083e",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {}
          }
        },
        "summary": "Delete",
        "operationId": "Delete",
        "description": "Delete a translation by id.",
        "tags": [
          "Translations"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the translation",
            "required": true,
            "example": "54ab03c6546847ee0d30083e",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of a translation",
        "tags": [
          "Translations"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the translation",
            "required": true,
            "example": "54ab03c6546847ee0d30083e",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pr": {
                    "type": "string"
                  },
                  "ru": {
                    "type": "string"
                  }
                },
                "example": {
                  "pr": "personalizado",
                  "ru": "обычай"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/translations?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the translations.",
        "tags": [
          "Translations"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/translations": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "You may create a new single translation or multiple translations using this action.    \nWhen creating a single translation the body contains a json object, when creating multiple translations the body contains an array of objects.    \n**Warning: a maximum of 1000 items can be sent in a single request.**",
        "tags": [
          "Translations"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/translations/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Translations"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/translations/export?filter={filter}&type={type}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Translations"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/translations/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n### Fields\n\n| Column               | Format      | Required  | Description               |\n|----------------------|-------------|-----------|----------------|\n|`translation_id`      | string      |           | Unique id of the translations     |\n|`language`            | string      |    x      | Default language chosen for the key |\n|`key`                 | string      |    x      | The key that references this translation |\n|`value`               | string      |    x      | Translated key by the default language |\n|`group_ids`           | array       |    x      | Group ids that can see these translations      |\n|`us`                  | string      |           | English - United States           |\n|`en`                  | string      |           | English                                  |\n|`ca`                  | string      |           | English - Canada                                |\n|`fr`                  | string      |           | French                                  |\n|`de`                  | string      |           | German                                  |\n|`es`                  | string      |           | Spanish                                  |\n|`nl`                  | string      |           | Dutch                                  |\n|`pl`                  | string      |           | Polish                                  |\n|`it`                  | string      |           | Italian                                  |\n|`ru`                  | string      |           | Russian                                  |\n|`zhs`                 | string      |           | Simplified Chinese                                  |\n|`zht`                 | string      |           | Traditional Chinese                                  |\n|`pt`                  | string      |           | Portuguese                                  |\n|`kr`                  | string      |           | Kanuri                                  |\n|`ja`                  | string      |           | Japanese                                  |\n|`ua`                  | string      |           | Ukrainian                                  |\n|`he`                  | string      |           | Hebrew                                  |\n|`ar`                  | string      |           | Arabic                                  |\n|`cz`                  | string      |           | Czech                                  |\n|`th`                  | string      |           | Thai                                  |\n|`tr`                  | string      |           | Turkish                                  |\n|`bg`                  | string      |           | Bulgarian                                  |\n|`el`                  | string      |           | Greek                                  |\n|`sl`                  | string      |           | Slovanian                                  |\n|`sk`                  | string      |           | Slovak                                  |\n|`ro`                  | string      |           | Romanian                                  |\n|`hu`                  | string      |           | Hungarian                                  |\n|`br`                  | string      |           | Brazilian Portuguese                                  |\n|`et`                  | string      |           | Estonian                                  |\n|`au`                  | string      |           | Australian                                  |\n|`ido`                 | string      |           | Indonesian                                  |\n|`vi`                  | string      |           | Vietnamese                                  |\n|`da`                  | string      |           | Danish                                  |\n|`fi`                  | string      |           | Finnish                                  |\n|`nb`                  | string      |           | Norwegian                                  |\n|`sv`                  | string      |           | Swedish                                  |\n|`base_language`       |  string     |           | the base language code of the plan |\n|`updated_date`        |  date       |           | translations item last update date|\n|`created_date`        |  date       |           | translations item creation date   |",
        "tags": [
          "Translations"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/users/me": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "user_id": {
                      "type": "string"
                    },
                    "username": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    },
                    "groups": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "tenant": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "user_id": "53fb03c6546847fe0d30186b",
                    "username": "mycompany+yoobicserviceaccount@mycompany.com",
                    "email": "support+mycompany+yoobicserviceaccount@yoobic.com",
                    "groups": [
                      "mycompany_group"
                    ],
                    "created_date": "2019-02-10T17:20:11.531Z",
                    "updated_date": "2020-11-10T12:11:15.439Z",
                    "tenant": "mycompany"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "user_id": "53fb03c6546847fe0d30186b",
                      "username": "mycompany+yoobicserviceaccount@mycompany.com",
                      "email": "support+mycompany+yoobicserviceaccount@yoobic.com",
                      "groups": [
                        "mycompany_group"
                      ],
                      "created_date": "2019-02-10T17:20:11.531Z",
                      "updated_date": "2020-11-10T12:11:15.439Z",
                      "tenant": "mycompany"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get the serivce account user for the current token.\n\n**Important:**\nThe `tenant` property returned by this endpoint contains the string value of the company name that should be used as the prefix for new [Groups](#reference/groups/multiple-groups-api/create).",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/users/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "user_id": {
                      "type": "string"
                    },
                    "username": {
                      "type": "string"
                    },
                    "first_name": {
                      "type": "string"
                    },
                    "last_name": {
                      "type": "string"
                    },
                    "client_role": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    },
                    "groups": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "language": {
                      "type": "string"
                    },
                    "photo": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "allow_local_login": {
                      "type": "boolean"
                    },
                    "mobile_version": {
                      "type": "string"
                    },
                    "desktop_version": {
                      "type": "string"
                    },
                    "last_seen": {
                      "type": "string"
                    },
                    "client_id": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "user_id": "53fb03c6546847ee0d30086a",
                    "username": "johndoe9@houston.com",
                    "first_name": "John",
                    "last_name": "Doe",
                    "client_role": "ROLEVIEWER",
                    "email": "johndoe9@houston.com",
                    "groups": [
                      "test"
                    ],
                    "language": "en",
                    "photo": "https://www.w3schools.com/w3images/avatar2.png",
                    "store_id": "5739b18c6b8e2ac941fbee86",
                    "tags": [
                      "regional"
                    ],
                    "allow_local_login": true,
                    "mobile_version": "6.5.16",
                    "desktop_version": "7.0.16-9",
                    "last_seen": "2020-11-19T14:21:44.625Z",
                    "client_id": [
                      "SITE_1"
                    ],
                    "created_date": "2019-02-10T17:20:11.531Z",
                    "updated_date": "2020-11-10T12:11:15.439Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "user_id": "53fb03c6546847ee0d30086a",
                      "username": "johndoe9@houston.com",
                      "first_name": "John",
                      "last_name": "Doe",
                      "client_role": "ROLEVIEWER",
                      "email": "johndoe9@houston.com",
                      "groups": [
                        "test"
                      ],
                      "language": "en",
                      "photo": "https://www.w3schools.com/w3images/avatar2.png",
                      "store_id": "5739b18c6b8e2ac941fbee86",
                      "tags": [
                        "regional"
                      ],
                      "allow_local_login": true,
                      "mobile_version": "6.5.16",
                      "desktop_version": "7.0.16-9",
                      "last_seen": "2020-11-19T14:21:44.625Z",
                      "client_id": [
                        "SITE_1"
                      ],
                      "created_date": "2019-02-10T17:20:11.531Z",
                      "updated_date": "2020-11-10T12:11:15.439Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a user for the given id.",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the User",
            "required": true,
            "example": "53fb03c6546847ee0d30086a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {}
          }
        },
        "summary": "Delete",
        "operationId": "Delete",
        "description": "Delete an user by id.",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the User",
            "required": true,
            "example": "53fb03c6546847ee0d30086a",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "user_id": {
                      "type": "string"
                    },
                    "username": {
                      "type": "string"
                    },
                    "first_name": {
                      "type": "string"
                    },
                    "last_name": {
                      "type": "string"
                    },
                    "client_role": {
                      "type": "string"
                    },
                    "client_role_extension": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    },
                    "groups": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "language": {
                      "type": "string"
                    },
                    "photo": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "mobile_version": {
                      "type": "string"
                    },
                    "desktop_version": {
                      "type": "string"
                    },
                    "store_type_names": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "last_seen": {
                      "type": "string"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    },
                    "weekly_schedule": {
                      "type": "object",
                      "properties": {
                        "mon_hours": {
                          "type": "object",
                          "properties": {
                            "periods": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "from": {
                                    "type": "string"
                                  },
                                  "to": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "tue_hours": {
                          "type": "object",
                          "properties": {
                            "periods": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "from": {
                                    "type": "string"
                                  },
                                  "to": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "wed_hours": {
                          "type": "object",
                          "properties": {
                            "periods": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "from": {
                                    "type": "string"
                                  },
                                  "to": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "from",
                                  "to"
                                ]
                              }
                            }
                          }
                        },
                        "thu_hours": {
                          "type": "object",
                          "properties": {
                            "periods": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "from": {
                                    "type": "string"
                                  },
                                  "to": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "fri": {
                          "type": "object",
                          "properties": {
                            "periods": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "from": {
                                    "type": "string"
                                  },
                                  "to": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "example": {
                    "user_id": "53fb03c6546847ee0d30086a",
                    "username": "johndoe9@houston.com",
                    "first_name": "John",
                    "last_name": "Doe",
                    "client_role": "ROLEMANAGER",
                    "client_role_extension": "Super",
                    "email": "johndoe9@houston.com",
                    "groups": [
                      "test"
                    ],
                    "language": "en",
                    "photo": "https://www.w3schools.com/w3images/avatar2.png",
                    "store_id": "5739b18c6b8e2ac941fbee86",
                    "tags": [
                      "The Dream",
                      "Hakeem the Dream Olajuwon",
                      "The Dream Shake"
                    ],
                    "mobile_version": "6.5.16",
                    "desktop_version": "7.0.16-9",
                    "store_type_names": [
                      "ST1",
                      "ST2"
                    ],
                    "last_seen": "2020-11-19T14:21:44.625Z",
                    "created_date": "2019-02-10T17:20:11.531Z",
                    "updated_date": "2020-11-10T12:11:15.439Z",
                    "weekly_schedule": {
                      "mon_hours": {
                        "periods": [
                          {
                            "from": "08:00",
                            "to": "20:00"
                          }
                        ]
                      },
                      "tue_hours": {
                        "periods": [
                          {
                            "from": "08:00",
                            "to": "17:00"
                          }
                        ]
                      },
                      "wed_hours": {
                        "periods": [
                          {
                            "from": "08:20",
                            "to": "10:00"
                          },
                          {
                            "from": "11:00",
                            "to": "16:20"
                          }
                        ]
                      },
                      "thu_hours": {
                        "periods": [
                          {
                            "from": "08:00",
                            "to": "20:10"
                          }
                        ]
                      },
                      "fri": {
                        "periods": [
                          {
                            "from": "09:00",
                            "to": "13:00"
                          }
                        ]
                      }
                    }
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "user_id": "53fb03c6546847ee0d30086a",
                      "username": "johndoe9@houston.com",
                      "first_name": "John",
                      "last_name": "Doe",
                      "client_role": "ROLEMANAGER",
                      "client_role_extension": "Super",
                      "email": "johndoe9@houston.com",
                      "groups": [
                        "test"
                      ],
                      "language": "en",
                      "photo": "https://www.w3schools.com/w3images/avatar2.png",
                      "store_id": "5739b18c6b8e2ac941fbee86",
                      "tags": [
                        "The Dream",
                        "Hakeem the Dream Olajuwon",
                        "The Dream Shake"
                      ],
                      "mobile_version": "6.5.16",
                      "desktop_version": "7.0.16-9",
                      "store_type_names": [
                        "ST1",
                        "ST2"
                      ],
                      "last_seen": "2020-11-19T14:21:44.625Z",
                      "created_date": "2019-02-10T17:20:11.531Z",
                      "updated_date": "2020-11-10T12:11:15.439Z",
                      "weekly_schedule": {
                        "mon_hours": {
                          "periods": [
                            {
                              "from": "08:00",
                              "to": "20:00"
                            }
                          ]
                        },
                        "tue_hours": {
                          "periods": [
                            {
                              "from": "08:00",
                              "to": "17:00"
                            }
                          ]
                        },
                        "wed_hours": {
                          "periods": [
                            {
                              "from": "08:20",
                              "to": "10:00"
                            },
                            {
                              "from": "11:00",
                              "to": "16:20"
                            }
                          ]
                        },
                        "thu_hours": {
                          "periods": [
                            {
                              "from": "08:00",
                              "to": "20:10"
                            }
                          ]
                        },
                        "fri": {
                          "periods": [
                            {
                              "from": "09:00",
                              "to": "13:00"
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of an user.    \n**Important** - `password` cannot be updated (will be ignored) via this endpoint.",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the User",
            "required": true,
            "example": "53fb03c6546847ee0d30086a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "client_role_extension": {
                    "type": "string"
                  },
                  "store_type_names": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "weekly_schedule": {
                    "type": "object",
                    "properties": {
                      "fri": {
                        "type": "object",
                        "properties": {
                          "periods": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "to": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "tags": [
                    "The Dream",
                    "Hakeem the Dream Olajuwon",
                    "The Dream Shake"
                  ],
                  "client_role_extension": "Super",
                  "store_type_names": [
                    "ST1",
                    "ST2"
                  ],
                  "weekly_schedule": {
                    "fri": {
                      "periods": [
                        {
                          "from": "09:00",
                          "to": "13:00"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/users/{id}/password-change": {
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Change Password",
        "operationId": "Change Password",
        "description": "Update user's `password`.    \nNote - `dontSendMail` / boolean / not required / if `true` no email is sent to the user. If `false` or not specified, an email is sent to the user to inform them about the change.",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the user",
            "required": true,
            "example": "54ab03c6546847ee0d30086a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "password": {
                    "type": "string"
                  },
                  "dontSendMail": {
                    "type": "boolean"
                  }
                },
                "example": {
                  "password": "<the-new-password>",
                  "dontSendMail": true
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/users/{id}/password-change?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Password History",
        "operationId": "Password History",
        "description": "Get the dates on which a user changed his password.    \nNote - currently only the `date` field exists, thus filtering is done solely on it.",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the user",
            "required": true,
            "example": "54ab03c6546847ee0d30086a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/users/{id}/archive": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "result": "success"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Archive",
        "operationId": "Archive",
        "description": "Archive a user",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/users/{id}/unarchive": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "result": "success"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Unarchive",
        "operationId": "Unarchive",
        "description": "Restore an archived user.",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/users?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "user_id": {
                            "type": "string"
                          },
                          "username": {
                            "type": "string"
                          },
                          "first_name": {
                            "type": "string"
                          },
                          "last_name": {
                            "type": "string"
                          },
                          "client_role": {
                            "type": "string"
                          },
                          "client_role_extension": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "groups": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "language": {
                            "type": "string"
                          },
                          "photo": {
                            "type": "string"
                          },
                          "store_id": {
                            "type": "string"
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "allow_local_login": {
                            "type": "boolean"
                          },
                          "mobile_version": {
                            "type": "string"
                          },
                          "desktop_version": {
                            "type": "string"
                          },
                          "last_seen": {
                            "type": "string"
                          },
                          "client_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          },
                          "terms_of_acceptance_date": {
                            "type": "string"
                          },
                          "weekly_schedule": {
                            "type": "object",
                            "properties": {
                              "mon_hours": {
                                "type": "object",
                                "properties": {
                                  "periods": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "from": {
                                          "type": "string"
                                        },
                                        "to": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "tue_hours": {
                                "type": "object",
                                "properties": {
                                  "periods": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "from": {
                                          "type": "string"
                                        },
                                        "to": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "wed_hours": {
                                "type": "object",
                                "properties": {
                                  "periods": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "from": {
                                          "type": "string"
                                        },
                                        "to": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "from",
                                        "to"
                                      ]
                                    }
                                  }
                                }
                              },
                              "thu_hours": {
                                "type": "object",
                                "properties": {
                                  "periods": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "from": {
                                          "type": "string"
                                        },
                                        "to": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "fri_hours": {
                                "type": "object",
                                "properties": {
                                  "periods": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "from": {
                                          "type": "string"
                                        },
                                        "to": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "required": [
                          "user_id",
                          "username",
                          "first_name",
                          "last_name",
                          "client_role",
                          "email",
                          "groups",
                          "language",
                          "photo",
                          "store_id",
                          "tags",
                          "allow_local_login",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "user_id": "53fb03c6546847ee0d30086a",
                        "username": "johndoe9@houston.com",
                        "first_name": "John",
                        "last_name": "Doe",
                        "client_role": "ROLEMANAGER",
                        "client_role_extension": "Super",
                        "email": "johndoe9@houston.com",
                        "groups": [
                          "test"
                        ],
                        "language": "en",
                        "photo": "https://www.w3schools.com/w3images/avatar2.png",
                        "store_id": "5739b18c6b8e2ac941fbee86",
                        "tags": [
                          "The Dream"
                        ],
                        "allow_local_login": true,
                        "mobile_version": "6.5.16",
                        "desktop_version": "7.0.16-9",
                        "last_seen": "2020-11-19T14:21:44.625Z",
                        "client_ids": [
                          "CL1",
                          "CL2"
                        ],
                        "created_date": "2019-02-10T17:20:11.531Z",
                        "updated_date": "2020-11-10T12:11:15.439Z"
                      },
                      {
                        "user_id": "53fb03c6546847ee0d33386b",
                        "username": "dianedoe9@houston.com",
                        "first_name": "Diane",
                        "last_name": "Doe",
                        "client_role": "ROLEMANAGER",
                        "email": "dianedoe9@houston.com",
                        "groups": [
                          "test"
                        ],
                        "language": "en",
                        "photo": "https://www.w3schools.com/w3images/avatar2.png",
                        "store_id": "5739b18c6b8e2ac941fbee87",
                        "tags": [
                          "The Dream"
                        ],
                        "allow_local_login": true,
                        "terms_of_acceptance_date": "2019-01-23T10:18:32.977Z",
                        "weekly_schedule": {
                          "mon_hours": {
                            "periods": [
                              {
                                "from": "08:00",
                                "to": "20:00"
                              }
                            ]
                          },
                          "tue_hours": {
                            "periods": [
                              {
                                "from": "08:00",
                                "to": "17:00"
                              }
                            ]
                          },
                          "wed_hours": {
                            "periods": [
                              {
                                "from": "08:20",
                                "to": "10:00"
                              },
                              {
                                "from": "11:00",
                                "to": "16:20"
                              }
                            ]
                          },
                          "thu_hours": {
                            "periods": [
                              {
                                "from": "08:00",
                                "to": "20:10"
                              }
                            ]
                          },
                          "fri_hours": {
                            "periods": [
                              {
                                "from": "08:00",
                                "to": "20:05"
                              }
                            ]
                          }
                        },
                        "created_date": "2018-05-23T04:55:50.862Z",
                        "updated_date": "2018-05-23T04:55:50.862Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "user_id": "53fb03c6546847ee0d30086a",
                          "username": "johndoe9@houston.com",
                          "first_name": "John",
                          "last_name": "Doe",
                          "client_role": "ROLEMANAGER",
                          "client_role_extension": "Super",
                          "email": "johndoe9@houston.com",
                          "groups": [
                            "test"
                          ],
                          "language": "en",
                          "photo": "https://www.w3schools.com/w3images/avatar2.png",
                          "store_id": "5739b18c6b8e2ac941fbee86",
                          "tags": [
                            "The Dream"
                          ],
                          "allow_local_login": true,
                          "mobile_version": "6.5.16",
                          "desktop_version": "7.0.16-9",
                          "last_seen": "2020-11-19T14:21:44.625Z",
                          "client_ids": [
                            "CL1",
                            "CL2"
                          ],
                          "created_date": "2019-02-10T17:20:11.531Z",
                          "updated_date": "2020-11-10T12:11:15.439Z"
                        },
                        {
                          "user_id": "53fb03c6546847ee0d33386b",
                          "username": "dianedoe9@houston.com",
                          "first_name": "Diane",
                          "last_name": "Doe",
                          "client_role": "ROLEMANAGER",
                          "email": "dianedoe9@houston.com",
                          "groups": [
                            "test"
                          ],
                          "language": "en",
                          "photo": "https://www.w3schools.com/w3images/avatar2.png",
                          "store_id": "5739b18c6b8e2ac941fbee87",
                          "tags": [
                            "The Dream"
                          ],
                          "allow_local_login": true,
                          "terms_of_acceptance_date": "2019-01-23T10:18:32.977Z",
                          "weekly_schedule": {
                            "mon_hours": {
                              "periods": [
                                {
                                  "from": "08:00",
                                  "to": "20:00"
                                }
                              ]
                            },
                            "tue_hours": {
                              "periods": [
                                {
                                  "from": "08:00",
                                  "to": "17:00"
                                }
                              ]
                            },
                            "wed_hours": {
                              "periods": [
                                {
                                  "from": "08:20",
                                  "to": "10:00"
                                },
                                {
                                  "from": "11:00",
                                  "to": "16:20"
                                }
                              ]
                            },
                            "thu_hours": {
                              "periods": [
                                {
                                  "from": "08:00",
                                  "to": "20:10"
                                }
                              ]
                            },
                            "fri_hours": {
                              "periods": [
                                {
                                  "from": "08:00",
                                  "to": "20:05"
                                }
                              ]
                            }
                          },
                          "created_date": "2018-05-23T04:55:50.862Z",
                          "updated_date": "2018-05-23T04:55:50.862Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the users.    \n**Important:**    \nCombination of `client_role` and `client_role_extension` defines the user's permission. A wrong combination of these two will cause a validation error, specifying an invalid permission. If `client_role_extension` is not passed (optional), `client_role` will refer to the corresponding base permission.\nTo filter on user roles, always pass both the `client_role` and `client_role_extension`. Example:\n\n```json\nfilter={\"where\": { \"client_role\": \"ROLEVIEWER\",\"client_role_extension\": \"roleTitle\"}}\n```",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/users/archives?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "number"
                        },
                        "skip": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "user_id": {
                            "type": "string"
                          },
                          "username": {
                            "type": "string"
                          },
                          "first_name": {
                            "type": "string"
                          },
                          "last_name": {
                            "type": "string"
                          },
                          "client_role": {
                            "type": "string"
                          },
                          "client_role_extension": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "groups": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "language": {
                            "type": "string"
                          },
                          "photo": {
                            "type": "string"
                          },
                          "store_id": {
                            "type": "string"
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "allow_local_login": {
                            "type": "boolean"
                          },
                          "mobile_version": {
                            "type": "string"
                          },
                          "desktop_version": {
                            "type": "string"
                          },
                          "last_seen": {
                            "type": "string"
                          },
                          "created_date": {
                            "type": "string"
                          },
                          "updated_date": {
                            "type": "string"
                          },
                          "terms_of_acceptance_date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "user_id",
                          "username",
                          "first_name",
                          "last_name",
                          "client_role",
                          "email",
                          "groups",
                          "language",
                          "photo",
                          "store_id",
                          "tags",
                          "allow_local_login",
                          "created_date",
                          "updated_date"
                        ]
                      }
                    }
                  },
                  "example": {
                    "paging": {
                      "total": 2,
                      "skip": 0,
                      "limit": 1000
                    },
                    "data": [
                      {
                        "user_id": "53fb03c6546847ee0d30093f",
                        "username": "johndoe9@houston.com",
                        "first_name": "John",
                        "last_name": "Doe",
                        "client_role": "ROLEMANAGER",
                        "client_role_extension": "Super",
                        "email": "johndoe9@houston.com",
                        "groups": [
                          "test"
                        ],
                        "language": "en",
                        "photo": "https://www.w3schools.com/w3images/avatar2.png",
                        "store_id": "5739b18c6b8e2ac941fbee86",
                        "tags": [
                          "The Dream"
                        ],
                        "allow_local_login": true,
                        "mobile_version": "6.5.16",
                        "desktop_version": "7.0.16-9",
                        "last_seen": "2020-11-19T14:21:44.625Z",
                        "created_date": "2019-02-10T17:20:11.531Z",
                        "updated_date": "2020-11-10T12:11:15.439Z"
                      },
                      {
                        "user_id": "53fb03c6546847ee0d33394c",
                        "username": "dianedoe9@houston.com",
                        "first_name": "Diane",
                        "last_name": "Doe",
                        "client_role": "ROLEMANAGER",
                        "email": "dianedoe9@houston.com",
                        "groups": [
                          "test"
                        ],
                        "language": "en",
                        "photo": "https://www.w3schools.com/w3images/avatar2.png",
                        "store_id": "5739b18c6b8e2ac941fbee87",
                        "tags": [
                          "The Dream"
                        ],
                        "allow_local_login": true,
                        "terms_of_acceptance_date": "2019-01-23T10:18:32.977Z",
                        "created_date": "2018-05-23T04:55:50.862Z",
                        "updated_date": "2018-05-23T04:55:50.862Z"
                      }
                    ]
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "paging": {
                        "total": 2,
                        "skip": 0,
                        "limit": 1000
                      },
                      "data": [
                        {
                          "user_id": "53fb03c6546847ee0d30093f",
                          "username": "johndoe9@houston.com",
                          "first_name": "John",
                          "last_name": "Doe",
                          "client_role": "ROLEMANAGER",
                          "client_role_extension": "Super",
                          "email": "johndoe9@houston.com",
                          "groups": [
                            "test"
                          ],
                          "language": "en",
                          "photo": "https://www.w3schools.com/w3images/avatar2.png",
                          "store_id": "5739b18c6b8e2ac941fbee86",
                          "tags": [
                            "The Dream"
                          ],
                          "allow_local_login": true,
                          "mobile_version": "6.5.16",
                          "desktop_version": "7.0.16-9",
                          "last_seen": "2020-11-19T14:21:44.625Z",
                          "created_date": "2019-02-10T17:20:11.531Z",
                          "updated_date": "2020-11-10T12:11:15.439Z"
                        },
                        {
                          "user_id": "53fb03c6546847ee0d33394c",
                          "username": "dianedoe9@houston.com",
                          "first_name": "Diane",
                          "last_name": "Doe",
                          "client_role": "ROLEMANAGER",
                          "email": "dianedoe9@houston.com",
                          "groups": [
                            "test"
                          ],
                          "language": "en",
                          "photo": "https://www.w3schools.com/w3images/avatar2.png",
                          "store_id": "5739b18c6b8e2ac941fbee87",
                          "tags": [
                            "The Dream"
                          ],
                          "allow_local_login": true,
                          "terms_of_acceptance_date": "2019-01-23T10:18:32.977Z",
                          "created_date": "2018-05-23T04:55:50.862Z",
                          "updated_date": "2018-05-23T04:55:50.862Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get all archives",
        "operationId": "Get all archives",
        "description": "Get all archived users. You can use the same filters as for the regular “Get all users” method",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/users/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/users": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "user_id": {
                        "type": "string"
                      },
                      "username": {
                        "type": "string"
                      },
                      "first_name": {
                        "type": "string"
                      },
                      "last_name": {
                        "type": "string"
                      },
                      "client_role": {
                        "type": "string"
                      },
                      "email": {
                        "type": "string"
                      },
                      "groups": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "language": {
                        "type": "string"
                      },
                      "photo": {
                        "type": "string"
                      },
                      "store_id": {
                        "type": "string"
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "client_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "user_id",
                      "username",
                      "first_name",
                      "last_name",
                      "client_role",
                      "email",
                      "language",
                      "groups",
                      "photo",
                      "store_id",
                      "tags",
                      "created_date",
                      "updated_date"
                    ]
                  },
                  "example": [
                    {
                      "user_id": "53fb03c6546847ee0d30086a",
                      "username": "johndoe9@houston.com",
                      "first_name": "John",
                      "last_name": "Doe",
                      "client_role": "ROLEVIEWER",
                      "email": "johndoe9@houston.com",
                      "groups": [
                        "test"
                      ],
                      "language": "en",
                      "photo": "https://www.w3schools.com/w3images/avatar2.png",
                      "store_id": "5739b18c6b8e2ac941fbee86",
                      "tags": [
                        "The Dream"
                      ],
                      "client_ids": [
                        "CL1",
                        "CL2",
                        "CL3"
                      ],
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z"
                    },
                    {
                      "user_id": "53fb03c6546847fe0d30186b",
                      "username": "janedoe9@houston.com",
                      "first_name": "Jane",
                      "last_name": "Doe",
                      "client_role": "ROLEMANAGER",
                      "email": "janedoe9@houston.com",
                      "language": "en",
                      "groups": [
                        "test"
                      ],
                      "photo": "https://www.w3schools.com/w3images/avatar4.png",
                      "store_id": "5739b18c6b8e2ac941fbee86",
                      "tags": [
                        "The Dream"
                      ],
                      "created_date": "2018-05-23T04:51:40.862Z",
                      "updated_date": "2018-05-23T04:51:40.862Z"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "user_id": "53fb03c6546847ee0d30086a",
                        "username": "johndoe9@houston.com",
                        "first_name": "John",
                        "last_name": "Doe",
                        "client_role": "ROLEVIEWER",
                        "email": "johndoe9@houston.com",
                        "groups": [
                          "test"
                        ],
                        "language": "en",
                        "photo": "https://www.w3schools.com/w3images/avatar2.png",
                        "store_id": "5739b18c6b8e2ac941fbee86",
                        "tags": [
                          "The Dream"
                        ],
                        "client_ids": [
                          "CL1",
                          "CL2",
                          "CL3"
                        ],
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-05-23T04:51:40.862Z"
                      },
                      {
                        "user_id": "53fb03c6546847fe0d30186b",
                        "username": "janedoe9@houston.com",
                        "first_name": "Jane",
                        "last_name": "Doe",
                        "client_role": "ROLEMANAGER",
                        "email": "janedoe9@houston.com",
                        "language": "en",
                        "groups": [
                          "test"
                        ],
                        "photo": "https://www.w3schools.com/w3images/avatar4.png",
                        "store_id": "5739b18c6b8e2ac941fbee86",
                        "tags": [
                          "The Dream"
                        ],
                        "created_date": "2018-05-23T04:51:40.862Z",
                        "updated_date": "2018-05-23T04:51:40.862Z"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "You may create a new single user or multiple users using this action.    \nWhen creating a single user the body contains a json object, when creating multiple users the body contains an array of objects.    \n**Warning: a maximum of 1000 items can be sent in a single request.**",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "username": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  },
                  "first_name": {
                    "type": "string"
                  },
                  "last_name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "language": {
                    "type": "string"
                  },
                  "store_id": {
                    "type": "string"
                  },
                  "photo": {
                    "type": "string"
                  },
                  "client_role": {
                    "type": "string"
                  },
                  "client_role_extension": {
                    "type": "string"
                  },
                  "client_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "groups": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "username": "johndoe9@houston.com",
                  "password": "deqwfVFRE456",
                  "first_name": "John",
                  "last_name": "Doe",
                  "email": "johndoe9@houston.com",
                  "language": "en",
                  "store_id": "5739b18c6b8e2ac941fbee86",
                  "photo": "https://www.w3schools.com/w3images/avatar2.png",
                  "client_role": "ROLEVIEWER",
                  "client_role_extension": "ROLEVIEWER",
                  "client_ids": [
                    "CL1",
                    "CL2",
                    "CL3"
                  ],
                  "tags": [
                    "The Dream"
                  ],
                  "groups": [
                    "test"
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/users/reminders": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "Invite users",
        "operationId": "Invite users",
        "description": "Send account activation reminder\n\nSends a reminder email to users. Only users who have not already logged in the application and have a work email \n(`user.email`) will be notified. This email contains information for the user to log in the application with their account.",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "userIds": [
                    "53fb03c6546847ee0d30086a",
                    "53fb03c6546847ee0d30086b"
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/users/weekly-schedule/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export Weekly Schedule",
        "operationId": "Export Weekly Schedule",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/users/weekly-schedule/import?type={type}": {
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import Weekly Schedule",
        "operationId": "Import Weekly Schedule",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n### Fields\n\n| Field                    | Format  | Required  | Description     |\n|--------------------------|---------|:---------:|-----------------|\n|`user_id`                 |  string |           | Unique user id |\n|`username`                |  string |     x     | Username |\n|`mon_hours`               |  string |           | Contains data on the working hours for Monday i.e. 06:00-12:00,15:00-17:00|\n|`tue_hours`               |  string |           | Contains data on the working hours for Tuesday i.e. 09:00-17:00|\n|`wed_hours`               |  string |           | Contains data on the working hours for Wednesday i.e. 09:00-17:00|\n|`thu_hours`               |  string |           | Contains data on the working hours for Thursday i.e. 09:00-17:00|\n|`fri_hours`               |  string |           | Contains data on the working hours for Friday i.e. 09:00-16:00|\n|`sat_hours`               |  string |           | Contains data on the working hours for Saturday |\n|`sun_hours`               |  string |           | Contains data on the working hours for Sunday |",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/users/archive/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import Users To Archive",
        "operationId": "Import Users To Archive",
        "description": "This method will archive all users found from the imported file.\n\n### Fields\n\n| Field                    | Format  | Required  | Description     |\n|--------------------------|---------|:---------:|-----------------|\n|`user_id`                 |  string |     x     | Unique user id |\n|`username`                |  string |     x     | Username |\n\nOnly one of user_id or username is required.",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/users_archived/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export archived users",
        "operationId": "Export archived users",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/users/unarchive/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import Users To Un Archive",
        "operationId": "Import Users To Un Archive",
        "description": "This method will unarchive all users found from the imported file.\n\n### Fields\n\n| Field                    | Format  | Required  | Description     |\n|--------------------------|---------|:---------:|-----------------|\n|`user_id`                 |  string |     x     | Unique user id |\n|`username`                |  string |     x     | Username |\n\nOnly one of user_id or username is required.",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/users/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/users/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n### Fields\n\n| Field                    | Format  | Required  | Description     |\n|--------------------------|---------|:---------:|-----------------|\n|`user_id`                 |  string |           | Unique user id |\n|`username`                |  string |     x     | Username |\n|`password`                |  string |     x     | Password, required on creation only.|\n|`first_name`              |  string |     x     | First name|\n|`last_name`               |  string |     x     | Last name|\n|`client_role`             |  string |     x     | User roles: ROLEFIELD \\| ROLEMANAGER \\| ROLEEDITOR \\| ROLESTOREMANAGER \\| ROLESTORE \\| ROLEADMIN \\| ROLEVIEWER|\n|`client_role_extension`   |  string |           | Indicates an extension of a user role. Has to match an existing role extension in the database |\n|`email`                   |  string |           | Email |\n|`address`                 |  string |           | Address|\n|`groups`                  |  array  |     x     | The list of groups the user is in|\n|`language`                |  string |           | Preferred language |\n|`phone`                   |  string |           | Phone number|\n|`photo`                   |  string |           | Url of the user's picture |\n|`store_id`                |  string |           | Primary Store. Setting up a store_id on a user will create a geofilter on this user. |\n|`tags`                    |  string |           | Tags allow to specify additional information about the store in the form \"AAA,BBB\" - multiple tags are comma separated, and we only use capital letter by convention|\n|`last_seen`               |  date   |           | The date on which the user connected for the last time.  |\n|`terms_of_acceptance_date`|  date   |           | The date in which terms were last accepted.  |\n|`mobile_version`          |  string |           | Version of the App used on mobile by the user.  |\n|`desktop_version`         |  string |           | Version of the App used on desktop by the user. |    \n|`client_ids`             |  array  |           | List of stores that the user can have access to, selected with their client_id. Creates or updates the corresponding user's geofilter if not empty\n|`store_type_names`        |  array  |           | List of stores' store_types that the user can have access to, selected with their store_type_name. Creates or updates the corresponding user's geofilter if not empty\n\n**Important** -\n\n- Combination of `client_role` and `client_role_extension` defines the user's permission. A wrong combination of these two will cause a validation error, specifying an invalid permission. If `client_role_extension` is not passed (optional), `client_role` will refer to the corresponding base permission.\n\n- `password` cannot be updated (will be ignored) in case the row exists.\n\n- If you are using custom_fields, you can also add columns corresponding to the name of each of your custom_fields in your import file\n\n- The `username` is used as primary key when importing a user file. This means you don’t need to store the YOOBIC `user_id` in your systems. For each row in the import file, the import process will check if a user exists in the database with the same `username`:\n\n    * If the `username` is found and the user is not archived, then the user is updated\n    * If the `username` is not found, a new user is created\n    * If the `username` is found and the user is archived, an error is returned to indicate this user is archived\n\n- If the import type is `json`, the body should consist of an array of user objects for creation or update. The request payload must not exceed **15 MB** — the entire JSON input is stored as a single database record; larger payloads will be rejected, so split them into several requests.    \ne.g. here is a valid JSON body for the import action:\n```json\n[\n    {\n        \"username\": \"user1\",\n        \"password\": \"password\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"client_role\": \"ROLEFIELD\",\n        \"email\": \"john@company.com\"\n    },\n    {\n        \"user_id\": \"5b97e5954b99568b4b9101af\",\n        \"first_name\": \"Jane\"\n    },\n    {\n        \"username\": \"user2\",\n        \"email\": \"new_mail@company.com\"\n    }\n]\n```\nPlease note that there is no strict limit on the number of items that can be imported in a single request when using this action.",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value), `excel` or `json`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/users/managers/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export manager users",
        "operationId": "Export manager users",
        "description": "User managers are used to replicate real-life hierarchy within the YOOBIC app. This enables the use of the Org Chart tab, which provides users with search and visualisation tools to find relationships between managers and their direct reports.\n\nExport all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/users/managers/import?type={type}": {
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import manager users",
        "operationId": "Import manager users",
        "description": "### Fields\n\n| Field                    | Type    | Required  | Description     |\n|--------------------------|---------|:---------:|-----------------|\n|`manager_username`        |  string |     x     | Manager |\n|`direct_report_username`  |  string |     x     | Direct report of the manager |\n\n**Important:**\n\n- Each correspondance between a user and his manager should be entered as a single row in the import file\n\n- Each user can only have one manager\n\n- A user cannot be managed by another user who reports directly or indirectly to them",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/visits/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "visit_id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "visit_date": {
                      "type": "string"
                    },
                    "start_time": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "visit_id": "54ab03c6546847ee0d30084a",
                    "type": "stocktaking",
                    "description": "scheduled store visit",
                    "visit_date": "2019-09-04T00:00:00.000Z",
                    "start_time": "17:00"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "visit_id": "54ab03c6546847ee0d30084a",
                      "type": "stocktaking",
                      "description": "scheduled store visit",
                      "visit_date": "2019-09-04T00:00:00.000Z",
                      "start_time": "17:00"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a visit for the given id.",
        "tags": [
          "Visits"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the visit",
            "required": true,
            "example": "54ab03c6546847ee0d30084a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "visit_id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "creator_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "visit_date": {
                      "type": "string"
                    },
                    "start_time": {
                      "type": "string"
                    },
                    "end_time": {
                      "type": "string"
                    },
                    "compliant": {
                      "type": "boolean"
                    }
                  },
                  "example": {
                    "visit_id": "54ab03c6546847ee0d30084a",
                    "type": "stocktaking",
                    "description": "Approved store visit.",
                    "user_id": "5d160d2486191e003b3e538b",
                    "creator_id": "5d160d2486191e003b3e538b",
                    "store_id": "5d160a327411ab005c986216",
                    "visit_date": "2019-09-04T00:00:00.000Z",
                    "start_time": "17:00",
                    "end_time": "18:30",
                    "compliant": true
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "visit_id": "54ab03c6546847ee0d30084a",
                      "type": "stocktaking",
                      "description": "Approved store visit.",
                      "user_id": "5d160d2486191e003b3e538b",
                      "creator_id": "5d160d2486191e003b3e538b",
                      "store_id": "5d160a327411ab005c986216",
                      "visit_date": "2019-09-04T00:00:00.000Z",
                      "start_time": "17:00",
                      "end_time": "18:30",
                      "compliant": true
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of a visit",
        "tags": [
          "Visits"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the visit",
            "required": true,
            "example": "54ab03c6546847ee0d30084a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/visits?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "visit_id": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "user_id": {
                        "type": "string"
                      },
                      "creator_id": {
                        "type": "string"
                      },
                      "store_id": {
                        "type": "string"
                      },
                      "visit_date": {
                        "type": "string"
                      },
                      "start_time": {
                        "type": "string"
                      },
                      "end_time": {
                        "type": "string"
                      },
                      "compliant": {
                        "type": "boolean"
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "visit_id",
                      "type",
                      "user_id",
                      "creator_id",
                      "store_id",
                      "visit_date",
                      "start_time",
                      "end_time",
                      "created_date",
                      "updated_date"
                    ]
                  },
                  "example": [
                    {
                      "visit_id": "54ab03c6546847ee0d30084a",
                      "type": "stocktaking",
                      "description": "Approved store visit.",
                      "user_id": "5d160d2486191e003b3e538b",
                      "creator_id": "5aaf8a1bad9a1800354732bd",
                      "store_id": "5d160a327411ab005c986216",
                      "visit_date": "2019-09-04T00:00:00.000Z",
                      "start_time": "17:00",
                      "end_time": "18:30",
                      "compliant": true,
                      "created_date": "2019-09-04T08:24:30.793Z",
                      "updated_date": "2019-09-04T08:24:30.793Z"
                    },
                    {
                      "visit_id": "5d4bdc3e1fca0e003b469a7f",
                      "type": "stocktaking",
                      "user_id": "5d160d2486191e003b3e538b",
                      "creator_id": "5aaf8a1bad9a1800354732bd",
                      "store_id": "5ae065ec5d77d00035a6e9fb",
                      "visit_date": "2019-09-04T00:00:00.000Z",
                      "start_time": "12:00",
                      "end_time": "13:30",
                      "created_date": "2019-09-04T08:24:30.793Z",
                      "updated_date": "2019-09-04T08:24:30.793Z"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "visit_id": "54ab03c6546847ee0d30084a",
                        "type": "stocktaking",
                        "description": "Approved store visit.",
                        "user_id": "5d160d2486191e003b3e538b",
                        "creator_id": "5aaf8a1bad9a1800354732bd",
                        "store_id": "5d160a327411ab005c986216",
                        "visit_date": "2019-09-04T00:00:00.000Z",
                        "start_time": "17:00",
                        "end_time": "18:30",
                        "compliant": true,
                        "created_date": "2019-09-04T08:24:30.793Z",
                        "updated_date": "2019-09-04T08:24:30.793Z"
                      },
                      {
                        "visit_id": "5d4bdc3e1fca0e003b469a7f",
                        "type": "stocktaking",
                        "user_id": "5d160d2486191e003b3e538b",
                        "creator_id": "5aaf8a1bad9a1800354732bd",
                        "store_id": "5ae065ec5d77d00035a6e9fb",
                        "visit_date": "2019-09-04T00:00:00.000Z",
                        "start_time": "12:00",
                        "end_time": "13:30",
                        "created_date": "2019-09-04T08:24:30.793Z",
                        "updated_date": "2019-09-04T08:24:30.793Z"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the visits.",
        "tags": [
          "Visits"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/visits/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Visits"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/visits": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "*/*": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "visit_id": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "creator_id": {
                      "type": "string"
                    },
                    "store_id": {
                      "type": "string"
                    },
                    "visit_date": {
                      "type": "string"
                    },
                    "group_ids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "visit_id": "5e38279864bc4e003a2b56e0",
                    "user_id": "53fb03c6546847ee0d30086a",
                    "creator_id": "5caf51463a4a9a00547953f8",
                    "store_id": "5739b18c6b8e2ac941fbee86",
                    "visit_date": "2020-01-28T00:00:00.000Z",
                    "group_ids": [
                      "test"
                    ],
                    "created_date": "2020-02-03T14:00:56.976Z",
                    "updated_date": "2020-02-03T14:00:56.976Z"
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "You may create a new single visit or multiple visits using this action.    \nWhen creating a single visit the body contains a json object, when creating multiple visits the body contains an array of objects.    \n**Warning: a maximum of 1000 items can be sent in a single request.**",
        "tags": [
          "Visits"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/visits/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Visits"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/visits/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n### Fields\n\n| Field                          | Format       | Required | Readonly | Description     |\n|--------------------------------|--------------|:--------:|:--------:|-----------------|\n|`visit_id`                      |  string      |          |     x    | Unique id of the visit  |\n|`user_id`                       |  string      |     x    |          | Unique id of the user who will visit the store  |\n|`store_id`                      |  string      |     x    |          | Unique id of the associated store  |\n|`group_ids`                     |  array       |     x    |          | Group ids that can see this visit  |\n|`start_time`                    |  string      |     x    |          | The scheduled time of the visit. Format is HH:mm  |\n|`end_time`                      |  string      |          |          | The end time of the visit. Format is HH:mm  |\n|`visit_date`                    |  date        |     x    |          | The scheduled date of the visit. Format is YYYY-MM-DD |\n|`compliant`                     |  boolean     |          |          | The compliance of the visit as marked by an area manager: `true` if marked compliant, `false` if marked noncompliant |\n|`type`                          |  string      |          |          | Type of the visit chosen among a predefined list             |\n|`creator_id`                    |  string      |          |     x    | Unique id of the visit creator  |\n|`description`                   |  timestamp   |          |          | Description of the visit  |\n|`updated_date`                  |  timestamp   |          |     x    | Visit's last update date  |\n|`created_date`                  |  timestamp   |          |     x    | Visit's creation date     |",
        "tags": [
          "Visits"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/webhooks/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "webhook_id": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "topics": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "operations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "is_active": {
                      "type": "boolean"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "webhook_id": "5ea689b6bd436e37567caffe",
                    "url": "https://webhook.site/b258e106-5aa3-4b86-9eef-a942643243a8",
                    "topics": [
                      "stores",
                      "store-types",
                      "users",
                      "missions",
                      "campaigns"
                    ],
                    "operations": [
                      "create",
                      "update",
                      "delete"
                    ],
                    "is_active": true,
                    "created_date": "2020-04-27T07:28:54.324Z",
                    "updated_date": "2020-04-27T07:28:54.324Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "webhook_id": "5ea689b6bd436e37567caffe",
                      "url": "https://webhook.site/b258e106-5aa3-4b86-9eef-a942643243a8",
                      "topics": [
                        "stores",
                        "store-types",
                        "users",
                        "missions",
                        "campaigns"
                      ],
                      "operations": [
                        "create",
                        "update",
                        "delete"
                      ],
                      "is_active": true,
                      "created_date": "2020-04-27T07:28:54.324Z",
                      "updated_date": "2020-04-27T07:28:54.324Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get",
        "operationId": "Get",
        "description": "Get a webhook for the given id",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the webhooks",
            "required": true,
            "example": "5efd1157b2e93c96bc8ea071",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "patch": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "webhook_id": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "topics": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "is_active": {
                      "type": "boolean"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "webhook_id": "5ea689b6bd436e37567caffe",
                    "url": "https://webhook.site/b258e106-5aa3-4b86-9eef-a942643243a8",
                    "topics": [
                      "stores",
                      "store-types",
                      "users",
                      "missions",
                      "campaigns"
                    ],
                    "is_active": false,
                    "created_date": "2020-04-27T07:28:54.324Z",
                    "updated_date": "2020-04-27T07:28:54.324Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "webhook_id": "5ea689b6bd436e37567caffe",
                      "url": "https://webhook.site/b258e106-5aa3-4b86-9eef-a942643243a8",
                      "topics": [
                        "stores",
                        "store-types",
                        "users",
                        "missions",
                        "campaigns"
                      ],
                      "is_active": false,
                      "created_date": "2020-04-27T07:28:54.324Z",
                      "updated_date": "2020-04-27T07:28:54.324Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Partial Update",
        "operationId": "Partial Update",
        "description": "Update a subset of properties of a webhook",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the webhooks",
            "required": true,
            "example": "5efd1157b2e93c96bc8ea071",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "is_active": {
                    "type": "boolean"
                  }
                },
                "example": {
                  "is_active": false
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/webhooks?filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "webhook_id": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      },
                      "topics": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "is_active": {
                        "type": "boolean"
                      },
                      "created_date": {
                        "type": "string"
                      },
                      "updated_date": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "webhook_id",
                      "url",
                      "topics",
                      "is_active",
                      "created_date",
                      "updated_date"
                    ]
                  },
                  "example": [
                    {
                      "webhook_id": "5ea689b6bd436e37567caffe",
                      "url": "https://webhook.site/b258e106-5aa3-4b86-9eef-a942643243a8",
                      "topics": [
                        "missions"
                      ],
                      "is_active": true,
                      "created_date": "2020-04-27T07:28:54.324Z",
                      "updated_date": "2020-04-27T07:28:54.324Z"
                    },
                    {
                      "webhook_id": "5ea689b6bd436e37567caffe",
                      "url": "https://webhook.site/b258e106-5bb3-4b96-9ebf-a942743244a9",
                      "topics": [
                        "stores"
                      ],
                      "is_active": true,
                      "created_date": "2020-04-27T07:28:54.324Z",
                      "updated_date": "2020-04-27T07:28:54.324Z"
                    }
                  ]
                },
                "examples": {
                  "response": {
                    "value": [
                      {
                        "webhook_id": "5ea689b6bd436e37567caffe",
                        "url": "https://webhook.site/b258e106-5aa3-4b86-9eef-a942643243a8",
                        "topics": [
                          "missions"
                        ],
                        "is_active": true,
                        "created_date": "2020-04-27T07:28:54.324Z",
                        "updated_date": "2020-04-27T07:28:54.324Z"
                      },
                      {
                        "webhook_id": "5ea689b6bd436e37567caffe",
                        "url": "https://webhook.site/b258e106-5bb3-4b96-9ebf-a942743244a9",
                        "topics": [
                          "stores"
                        ],
                        "is_active": true,
                        "created_date": "2020-04-27T07:28:54.324Z",
                        "updated_date": "2020-04-27T07:28:54.324Z"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Get All",
        "operationId": "Get All",
        "description": "Get all the webhooks.",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/webhooks": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "webhook_id": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "topics": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "operations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "is_active": {
                      "type": "boolean"
                    },
                    "created_date": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "webhook_id": "5ea689b6bd436e37567caffe",
                    "url": "https://webhook.site/b258e106-5aa3-4b86-9eef-a942643243a8",
                    "topics": [
                      "missions"
                    ],
                    "operations": [
                      "create"
                    ],
                    "is_active": true,
                    "created_date": "2020-04-27T07:28:54.324Z",
                    "updated_date": "2020-04-27T07:28:54.324Z"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "webhook_id": "5ea689b6bd436e37567caffe",
                      "url": "https://webhook.site/b258e106-5aa3-4b86-9eef-a942643243a8",
                      "topics": [
                        "missions"
                      ],
                      "operations": [
                        "create"
                      ],
                      "is_active": true,
                      "created_date": "2020-04-27T07:28:54.324Z",
                      "updated_date": "2020-04-27T07:28:54.324Z"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Create",
        "operationId": "Create",
        "description": "Creating webhooks.\n\n- note: The body can accept a `filter` for the webhook based on the chosen topic. The `filter` can be about any filterable property of the objects from this topic (example: `campaign_id` for topic `missions`)",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "topics": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "operations": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "filter": {
                    "type": "object",
                    "properties": {
                      "campaign_id": {
                        "type": "string"
                      }
                    }
                  }
                },
                "example": {
                  "url": "https://webhook.site/b258e106-5aa3-4b86-9eef-a942643243a8",
                  "topics": [
                    "missions"
                  ],
                  "operations": [
                    "create"
                  ],
                  "filter": {
                    "campaign_id": "6548ec4dee43840028a59a56"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/public/api/webhooks/count?where={where}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number"
                    }
                  },
                  "example": {
                    "count": 10
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "count": 10
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count",
        "operationId": "Count",
        "description": "Count all the existing entities based on the where filter",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A valid JSON [Where filter](#section-api-requests-filter-where)",
            "required": false,
            "example": "{ \"property\": \"value\" }",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/webhooks/export?type={type}&filter={filter}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Export file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Export file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export",
        "operationId": "Export",
        "description": "Export all results as a file.    \nThis action is asynchronous and returns the id of a job. See [`jobs`](#group-jobs) endpoint to query the status of the job. The file will contain the results with all of the fields specified on the resource.",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "A valid JSON filter object (does not accept a `fields` filter)",
            "required": false,
            "example": "{}",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "description": "e.g. application/json",
            "required": false,
            "example": "application/json",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Get_AllBody"
        }
      }
    },
    "/public/api/webhooks/import?type={type}": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "number"
                    },
                    "nextRunAt": {
                      "type": "string"
                    },
                    "_id": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "name": "Import file",
                    "type": "normal",
                    "priority": 0,
                    "nextRunAt": "2018-09-11T15:56:05.387Z",
                    "_id": "5b97e5954b99568b4b9101af"
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "name": "Import file",
                      "type": "normal",
                      "priority": 0,
                      "nextRunAt": "2018-09-11T15:56:05.387Z",
                      "_id": "5b97e5954b99568b4b9101af"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Import",
        "operationId": "Import",
        "description": "See the [Import file section](#section-import-jobs) for more information.\n\n<!-- #include \"./src/webhooks/parts/csv-fields.md\" -->",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "description": "The type of file, either `csv` (default value) or `excel`",
            "required": true,
            "example": "csv",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Disposition",
            "in": "header",
            "description": "e.g. form-data; name=\"file\"; filename=\"file.csv\"",
            "required": false,
            "example": "form-data; name=\"file\"; filename=\"file.csv\"",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ImportBody"
        }
      }
    },
    "/public/api/jobs/{id}": {
      "get": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {}
          }
        },
        "summary": "View Status of a Job",
        "operationId": "View Status of a Job",
        "description": "",
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the job",
            "required": true,
            "example": "53fzs3c6546847ee0d33386a",
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    }
  },
  "components": {
    "requestBodies": {
      "ImportBody": {
        "content": {
          "multipart/form-data, boundary=AaB03x": {
            "schema": {
              "type": "object",
              "properties": {
                "Authorization": {
                  "$ref": "#/components/schemas/Default_Header"
                }
              }
            }
          }
        }
      },
      "Get_AllBody": {
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "Authorization": {
                  "$ref": "#/components/schemas/Default_Header"
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "/",
            "tokenUrl": "/",
            "scopes": {}
          }
        }
      }
    },
    "schemas": {
      "Authentication": {},
      "Deauthentication": {},
      "Paging": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number",
            "example": 10000
          },
          "skip": {
            "type": "number"
          },
          "limit": {
            "type": "number",
            "example": 1000
          }
        }
      },
      "Single_Answers_API": {},
      "Multiple_Answers_API": {},
      "Single_Badges_API": {},
      "Multiple_Badges_API": {},
      "Single_Bots_API": {},
      "Multiple_Bots_API": {},
      "Single_Bot_API": {},
      "Single_Salesdata_API": {},
      "Multiple_Salesdata_API": {},
      "Single_Campaign_API": {},
      "Multiple_Campaigns_API": {},
      "Single_Catalog_API": {},
      "Multiple_Catalogs_API": {},
      "Single_Chat_API": {},
      "Single_Comment_API": {},
      "Multiple_comments_API": {},
      "Single_Communities_API": {},
      "Multiple_communities_API": {},
      "Single_Community_Posts_API": {},
      "Multiple_Community_Posts_API": {},
      "Single_Competencies_API": {},
      "Multiple_Competencies_API": {},
      "Single_Course_Categories_API": {},
      "Multiple_Course_Categories_API": {},
      "Single_Courses_API": {},
      "Multiple_courses_API": {},
      "Multiple_Custom_Model_Instances_API": {},
      "Single_Events_API": {},
      "Multiple_Events_API": {},
      "Single_File_API": {},
      "Multiple_Files_API": {},
      "Single_Geofilter_API": {},
      "Multiple_geofilters_API": {},
      "Single_Groups_API": {},
      "Multiple_Groups_API": {},
      "Single_Incentives-Kpi_API": {},
      "Multiple_Incentives-Kpi_API": {},
      "Single_Inventory_API": {},
      "Multiple_Inventories_API": {},
      "Single_Lesson_API": {},
      "Multiple_lessons_API": {},
      "Single_Mission_API": {},
      "Multiple_Missions_API": {},
      "Multiple_Mission-Comments_API": {},
      "Single_News_API": {},
      "Multiple_News_API": {},
      "Single_Notification_API": {},
      "Multiple_Notifications_API": {},
      "Single_Photo_API": {},
      "Multiple_Photos_API": {},
      "Single_Plan_API": {},
      "Multiple_Plans_API": {},
      "Single_Product_API": {},
      "Multiple_Products_API": {},
      "Single_Questions_API": {},
      "Multiple_Questions_API": {},
      "Single_Roles_API": {},
      "Multiple_Roles_API": {},
      "Single_Shifts_API": {},
      "Multiple_Shifts_API": {},
      "Single_Store_Types_API": {},
      "Multiple_Store_Types_API": {},
      "Single_Store_API": {},
      "Multiple_Stores_API": {},
      "Multiple_Tenants_API": {},
      "Single_Translations_API": {},
      "Multiple_translations_API": {},
      "Current_User_API": {},
      "Single_User_API": {},
      "Multiple_Users_API": {},
      "Single_Visit_API": {},
      "Multiple_visits_API": {},
      "Single_Webhooks_API": {},
      "Multiple_Webhooks_API": {},
      "Jobs_Status": {},
      "Default_Header": {
        "type": "object",
        "required": [
          "Authorization"
        ],
        "properties": {
          "Authorization": {
            "type": "string",
            "example": "Bearer JWT"
          }
        }
      }
    }
  }
}