{"info":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","description":"<html><head></head><body><h2 id=\"introduction-to-labii-api\">Introduction to Labii API</h2>\n<p>Welcome to the Labii API! This powerful tool is designed to streamline your workflow and enhance your applications with robust data integration capabilities. Whether you're a developer looking to leverage our features or a business seeking to optimize your processes, the Labii API provides a comprehensive solution tailored to your needs.</p>\n<p>The Labii API is a RESTful API that provides programmatic access to the Labii platform, enabling developers to automate tasks and integrate Labii with other tools. The API supports all standard HTTP methods: GET, POST, PUT, and DELETE, offering flexibility and compatibility with various programming languages and tools.</p>\n<h2 id=\"overview\">Overview</h2>\n<p>The Labii API is designed for ease of use and provides extensive documentation on each endpoint. Each endpoint includes information on:</p>\n<ul>\n<li><p>HTTP Method: The HTTP verb to use (GET, POST, PUT, DELETE).</p>\n</li>\n<li><p>Endpoint URL: The unique path to the resource.</p>\n</li>\n<li><p>Parameters: Required and optional parameters for requests.</p>\n</li>\n<li><p>Responses: Expected response format and data.</p>\n</li>\n</ul>\n<h2 id=\"key-features\">Key Features</h2>\n<ul>\n<li><p>Resource-Based Architecture: Each endpoint in the Labii API represents a specific resource within the Labii platform, such as a project, experiment, or row.</p>\n</li>\n<li><p>Authentication &amp; Authorization: The Labii API uses OAuth 2.0 for secure authentication and authorization, ensuring that only authorized users can access data.</p>\n</li>\n<li><p>Pagination &amp; Filtering: Built-in support for pagination and filtering lets users retrieve specific data subsets based on various criteria, improving data retrieval efficiency.</p>\n</li>\n</ul>\n<h2 id=\"base-url-and-endpoint-structure\">Base URL and Endpoint Structure</h2>\n<p>The Labii API uses two primary types of URLs for resource access:</p>\n<p><strong>List and Detail Views</strong></p>\n<ol>\n<li><p>List View (for retrieving lists of objects): <code>{{base_url}}/{app}/{model}/list/{level}/{sid}/{serializer}/</code></p>\n</li>\n<li><p>Detail View (for retrieving details of a single object): <code>{{base_url}}/{app}/{model}/detail/{sid}/</code></p>\n</li>\n</ol>\n<p>The base_url is typically set to <code>https://www.labii.dev/</code> but can be customized for organizations with dedicated Labii servers: <code>https://[your-subdomain].labii.dev/</code></p>\n<h2 id=\"url-parameters\">URL Parameters</h2>\n<p>• app: The name of the application.<br>• model: The name of the data model (e.g., projects, experiments).<br>• level: Determines the scope of records to retrieve (see the Levels section in the Labii documentation for details).<br>• sid: A static, encrypted identifier for the object. It must align with the specified level (e.g., if level=organization, the sid must match the organization SID).<br>• serializer: Controls the detail level of returned data with three options:<br>• name: Returns only the SID and name of the object (fastest).<br>• list: Returns selected fields (fast).<br>• detail: Returns all fields (slowest).</p>\n<h2 id=\"api-objects\">API Objects</h2>\n<p>The Labii API includes multiple objects representing different entities within the Labii platform. Each object belongs to a specific app and model, with a corresponding set of methods available for interaction.</p>\n<h2 id=\"methods\">Methods</h2>\n<p>The Labii API supports the following HTTP methods:</p>\n<p>• <code>GET</code>: Retrieve one or more objects.<br>• <code>POST</code>: Create a new object.<br>• <code>PUT</code>: Update an existing object.<br>• <code>PATCH</code>: Partially update an existing object.<br>• <code>DELETE</code>: Delete an object.</p>\n<h2 id=\"permissions\">Permissions</h2>\n<p>User access is role-based. Permissions vary based on organizational and project-level roles.</p>\n<h3 id=\"organization-level-roles\">Organization-Level Roles</h3>\n<p>• <code>Admin</code>: Full access to organization resources.<br>• <code>Member</code>: Access as a standard organization member.<br>• <code>Alumni</code>: Limited access for former members.<br>• <code>User</code>: External users without organizational access.<br>• <code>Anonymous</code>: Unauthorized users.</p>\n<h3 id=\"project-level-roles\">Project-Level Roles</h3>\n<p>• <code>Project Manager</code>: Full project access.<br>• <code>Project Edit</code>: Edit permissions within the project.<br>• <code>Project View</code>: View-only access within the project.</p>\n<h2 id=\"serializer-options\">Serializer Options</h2>\n<p>The serializer defines the level of detail for returned data, each serving different use cases:</p>\n<p>• <code>name</code>: Returns only the SID and name.<br>• <code>list</code>: Provides basic fields relevant to each table.<br>• <code>detail</code>: Returns a comprehensive set of fields, offering the full record structure.</p>\n<p>By providing these serializers, Labii allows developers to optimize data retrieval according to their needs, balancing speed and detail.</p>\n<h2 id=\"get-started\">Get Started</h2>\n<p>To begin using the Labii API, you'll need to sign up for an account and obtain your API key. The following steps will guide you through the setup process:</p>\n<ol>\n<li><p><strong>Sign Up</strong>: Create an account on the Labii platform.</p>\n</li>\n<li><p><strong>Obtain API Key</strong>: After registration, navigate to your dashboard to generate your unique API key.</p>\n</li>\n<li><p><strong>Documentation</strong>: Review our detailed API documentation, which covers endpoints, request methods, and response formats.</p>\n</li>\n<li><p><strong>Test the API</strong>: Use our sandbox environment to experiment with API calls before going live.</p>\n</li>\n</ol>\n<h2 id=\"reporting-issues\">Reporting Issues</h2>\n<p>If you encounter any issues while using the Labii API, we’re here to help! To report a problem, please follow these steps:</p>\n<ol>\n<li><p><strong>Check the Documentation</strong>: Ensure that the issue isn't addressed in our documentation.</p>\n</li>\n<li><p><strong>Submit a Support Ticket</strong>: Use our support portal to submit a ticket with detailed information about the issue, including error messages and steps to reproduce the problem.</p>\n</li>\n<li><p><strong>Monitor Updates</strong>: Keep an eye on our status page for any ongoing incidents or maintenance updates that may affect API performance.</p>\n</li>\n</ol>\n<h2 id=\"help-and-support\">Help and Support</h2>\n<p>We provide several resources to assist you:</p>\n<ul>\n<li><p><strong>API Documentation</strong>: Comprehensive guides and examples to help you integrate and utilize the API effectively.</p>\n</li>\n<li><p><strong>Community Forum</strong>: Join our community forum to discuss with other users, share tips, and find solutions to common problems.</p>\n</li>\n<li><p><strong>Support Team</strong>: Reach out to our dedicated support team via email or the contact form on our website for personalized assistance.</p>\n</li>\n</ul>\n<p>We’re excited to see what you build with the Labii API! If you have any questions or need further assistance, don't hesitate to reach out. Happy coding!</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"38730820","collectionId":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","publishedId":"2sAY4xB29e","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"01579b"},"publishDate":"2024-11-03T05:50:08.000Z"},"item":[{"name":"Authentication","item":[{"name":"Get Access Token","event":[{"listen":"test","script":{"id":"6e92b1aa-ca7d-4d62-90f9-74238b0bbf2b","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    const requiredFields = [\"sid\", \"first_name\", \"last_name\", \"email\", \"phone\", \"timezone\", \"language\", \"token\", \"secret\"];","    requiredFields.forEach(field => {","        pm.expect(responseData).to.have.property(field);","    });","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.email).to.be.a('string').and.to.match(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/, \"Email is not in a valid format\");","});","","","pm.test(\"Phone is in a valid format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.phone).to.match(/^\\+\\d{1,3}-\\d{3}-\\d{3}-\\d{4}$/);","});",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"packages":{},"type":"text/javascript"}}],"id":"4801925e-8f01-4fa5-84a1-d1974fc76dc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{email}}\",\n    \"password\": \"{{password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/accounts/auth/","description":"<h3 id=\"account-authentication\">Account Authentication</h3>\n<p>This endpoint allows the user to authenticate their account by providing their username (email) and password.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>username</code> (string): The username or email of the user.</p>\n</li>\n<li><p><code>password</code> (string): The password for the user's account.</p>\n</li>\n</ul>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response will be a JSON object with the following fields:</p>\n<ul>\n<li><p><code>sid</code> (string): The session ID.</p>\n</li>\n<li><p><code>first_name</code> (string): The first name of the user.</p>\n</li>\n<li><p><code>last_name</code> (string): The last name of the user.</p>\n</li>\n<li><p><code>full_name</code> (string): The full name of the user.</p>\n</li>\n<li><p><code>email</code> (string): The email address of the user.</p>\n</li>\n<li><p><code>phone</code> (string): The phone number of the user.</p>\n</li>\n<li><p><code>timezone</code> (string): The timezone of the user.</p>\n</li>\n<li><p><code>language</code> (string): The language preference of the user.</p>\n</li>\n<li><p><code>token</code> (string): The authentication token.</p>\n</li>\n<li><p><code>secret</code> (string): A secret associated with the user's account.</p>\n</li>\n</ul>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sid\": {\"type\": \"string\"},\n    \"first_name\": {\"type\": \"string\"},\n    \"last_name\": {\"type\": \"string\"},\n    \"full_name\": {\"type\": \"string\"},\n    \"email\": {\"type\": \"string\"},\n    \"phone\": {\"type\": \"string\"},\n    \"timezone\": {\"type\": \"string\"},\n    \"language\": {\"type\": \"string\"},\n    \"token\": {\"type\": \"string\"},\n    \"secret\": {\"type\": \"string\"}\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["accounts","auth",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"76f372c6-17bb-429f-bdc2-ef841a1cac7c","name":"Token Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{email}}\",\n    \"password\": \"{{password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/accounts/auth/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sat, 02 Nov 2024 23:20:44 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Allow","value":"POST, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"frame-src 'none'; font-src 'self' data: *.amazonaws.com; script-src 'self' *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000; style-src 'self' *.amazonaws.com 'unsafe-inline'; img-src 'self' *.amazonaws.com","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"323","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"knqt0a40xffmrwBGLQV\",\n    \"first_name\": \"Test\",\n    \"last_name\": \"Labii\",\n    \"full_name\": \"Test Labii\",\n    \"email\": \"test@labii.com\",\n    \"phone\": \"+1 (650) 275-2928\",\n    \"timezone\": \"America/Los_Angeles\",\n    \"language\": \"en\",\n    \"token\": \"fe218bfe567b0126723b2b904b2b879aa393c413\",\n    \"secret\": \"Qm1YbmZlMjE4YmZlNTY3YjAxMjY3MjNiMmI5MDRiMmI4NzlhYTM5M2M0MTNIYlR1\"\n}"},{"id":"6f47b38c-968f-4e38-b428-3d3c5667d2e0","name":"Error Missing Username","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/accounts/auth/"},"status":"Not Acceptable","code":406,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sat, 02 Nov 2024 23:18:51 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"POST, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"frame-src 'none'; font-src 'self' data: *.amazonaws.com; script-src 'self' *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000; style-src 'self' *.amazonaws.com 'unsafe-inline'; img-src 'self' *.amazonaws.com","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"41","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Error: Username is required!\"\n}"},{"id":"b396bd48-413d-4b36-b8db-96c8c1bc6b5c","name":"Error Missing Password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{email}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/accounts/auth/"},"status":"Not Acceptable","code":406,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sat, 02 Nov 2024 23:20:01 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"POST, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"frame-src 'none'; font-src 'self' data: *.amazonaws.com; script-src 'self' *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000; style-src 'self' *.amazonaws.com 'unsafe-inline'; img-src 'self' *.amazonaws.com","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"41","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Error: Password is required!\"\n}"},{"id":"139a65ea-3ea0-4a12-bfe5-1f25ec270a24","name":"Error Wrong Password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{email}}\",\n    \"password\": \"123\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/accounts/auth/"},"status":"Not Acceptable","code":406,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sat, 02 Nov 2024 23:20:14 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"POST, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"frame-src 'none'; font-src 'self' data: *.amazonaws.com; script-src 'self' *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000; style-src 'self' *.amazonaws.com 'unsafe-inline'; img-src 'self' *.amazonaws.com","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"136","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Error: Unable to log in with provided credentials. We have notified the account (test@labii.com) about this failed attempt!\"\n}"},{"id":"5b4c483b-18fc-42a2-ab77-3690db626b0c","name":"Error Email Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{email}}\",\n    \"password\": \"123\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/accounts/auth/"},"status":"Not Acceptable","code":406,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sat, 02 Nov 2024 23:20:25 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"POST, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"frame-src 'none'; font-src 'self' data: *.amazonaws.com; script-src 'self' *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000; style-src 'self' *.amazonaws.com 'unsafe-inline'; img-src 'self' *.amazonaws.com","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"136","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Error: Unable to log in with provided credentials. We have notified the account (test@labii.com) about this failed attempt!\"\n}"},{"id":"0fdfbdba-9453-46af-a904-30f5578329d6","name":"Error User Not Activated","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{email_inactive}}\",\n    \"password\": \"123\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/accounts/auth/"},"status":"Not Acceptable","code":406,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sat, 02 Nov 2024 23:20:34 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"POST, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"frame-src 'none'; font-src 'self' data: *.amazonaws.com; script-src 'self' *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000; style-src 'self' *.amazonaws.com 'unsafe-inline'; img-src 'self' *.amazonaws.com","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"271","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Error: You have not activated your account or your account has been deactivated. Click the link in your labii access email to complete the activation. If you cannot find such an email, please check the spam folder or ask your administrator to send it again.!\"\n}"}],"_postman_id":"4801925e-8f01-4fa5-84a1-d1974fc76dc0"},{"name":"Create API Key","event":[{"listen":"prerequest","script":{"id":"fd8d400f-7336-43ce-b94e-1c339236756e","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);","","// update next week date","const nextWeekDate = js.getNextWeekDate();","pm.environment.set(\"nextWeekDate\", nextWeekDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"76a018db-36ed-4c3c-aefc-9b1a051ff65b","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.name).to.exist;","    pm.expect(responseData.key).to.exist;","    pm.expect(responseData.user).to.exist;","    pm.expect(responseData.created).to.exist;","    pm.expect(responseData.expiry_date).to.exist;","    pm.expect(responseData.help_text).to.exist;","    pm.expect(responseData.change_permission).to.exist;","});",""],"type":"text/javascript","packages":{}}}],"id":"ab34226c-1ec3-4886-8d29-6b129a45ebb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test APIKey {{currentDate}}\",\n    \"expiry_date\": \"{{nextWeekDate}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/accounts/apikey/list/organization/{{organization_sid_test_edit}}/detail/","description":"<h3 id=\"post-accountsapikeylistorganizationorganization_sid_test_editdetail\">POST /accounts/apikey/list/organization/{{organization_sid_test_edit}}/detail/</h3>\n<p>This endpoint allows you to create a new API key for the specified organization.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>name (string, required): The name of the API key.</p>\n</li>\n<li><p>expiry_date (string, required): The expiry date of the API key.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following properties:</p>\n<ul>\n<li><p>sid (string): The unique identifier of the API key.</p>\n</li>\n<li><p>name (string): The name of the API key.</p>\n</li>\n<li><p>key (string): The API key value.</p>\n</li>\n<li><p>user (string): The user associated with the API key.</p>\n</li>\n<li><p>created (string): The creation date of the API key.</p>\n</li>\n<li><p>expiry_date (string): The expiry date of the API key.</p>\n</li>\n<li><p>help_text (object): Additional information about the API key, including name, revoked status, expiry date, and unique identifier (sid).</p>\n</li>\n<li><p>change_permission (boolean): Indicates whether the user has permission to change the API key.</p>\n</li>\n</ul>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sid\": {\"type\": \"string\"},\n    \"name\": {\"type\": \"string\"},\n    \"key\": {\"type\": \"string\"},\n    \"user\": {\"type\": \"string\"},\n    \"created\": {\"type\": \"string\"},\n    \"expiry_date\": {\"type\": \"string\"},\n    \"help_text\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\"type\": \"string\"},\n        \"revoked\": {\"type\": \"string\"},\n        \"expiry_date\": {\"type\": \"string\"},\n        \"sid\": {\"type\": \"string\"}\n      }\n    },\n    \"change_permission\": {\"type\": \"boolean\"}\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["accounts","apikey","list","organization","{{organization_sid_test_edit}}","detail",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"5692c30e-efc3-46c4-a6a3-55ecc15a5ca1","name":"Create API Key","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test APIKey {{currentDate}}\",\n    \"expiry_date\": \"{{nextWeekDate}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/accounts/apikey/list/organization/{{organization_sid_test_edit}}/detail/"},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 04:17:15 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"frame-src 'none'; font-src 'self' data: *.amazonaws.com; script-src 'self' *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000; style-src 'self' *.amazonaws.com 'unsafe-inline'; img-src 'self' *.amazonaws.com","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"531","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"V7tj0x70xffYuiklNxt\",\n    \"name\": \"Test APIKey 2024-11-03\",\n    \"key\": \"D0G1zMU0.R8ltezKPU9fEf3Cril13Xw48FU8QQBV6\",\n    \"user\": \"Test Labii\",\n    \"created\": \"2024-11-03T04:17:13.409207Z\",\n    \"expiry_date\": \"2024-11-09T00:00:00Z\",\n    \"help_text\": {\n        \"name\": \"A free-form name for the API key. Need not be unique. 50 characters max.\",\n        \"revoked\": \"If the API key is revoked, clients cannot use it anymore. (This cannot be undone.)\",\n        \"expiry_date\": \"Once API key expires, clients cannot use it anymore.\",\n        \"sid\": \"Static encrypted identifier. \"\n    },\n    \"change_permission\": true\n}"}],"_postman_id":"ab34226c-1ec3-4886-8d29-6b129a45ebb9"},{"name":"Log Out","event":[{"listen":"test","script":{"id":"11f641d1-10a1-49b0-b219-7b9c7de9c80d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"58d4e93d-51a6-4ffa-b58d-62fdf074c4da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://www.labii.dev/accounts/logout/","description":"<h3 id=\"get-accountslogout\">GET /accounts/logout/</h3>\n<p>This endpoint is used to log out the user from their account.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this endpoint.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": \"string\"\n}\n\n</code></pre>\n<ul>\n<li><code>message</code>: A string indicating the status of the logout operation.</li>\n</ul>\n","urlObject":{"path":["accounts","logout",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"58d4e93d-51a6-4ffa-b58d-62fdf074c4da"}],"id":"32fb0dfd-6b34-4960-a814-078112558ce2","description":"<p>Labii Authentication provides a secure and flexible framework for accessing our APIs, supporting both token authentication and API key authentication methods. Token authentication ensures that users can securely access resources by verifying their identity through dynamically generated tokens, while API key authentication allows for straightforward access using unique keys assigned to each user or application. This dual approach offers developers the flexibility to choose the authentication method that best suits their needs, ensuring robust security and seamless integration with Labii's powerful API services.</p>\n","_postman_id":"32fb0dfd-6b34-4960-a814-078112558ce2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Organization","item":[{"name":"Get Organization List","event":[{"listen":"test","script":{"id":"44007761-2fb3-49be-8d7d-b6a7cad81d2f","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('page_size');","    pm.expect(responseData).to.have.property('page_number');","    pm.expect(responseData).to.have.property('page_count');","    pm.expect(responseData).to.have.property('count');","    pm.expect(responseData).to.have.property('next');","    pm.expect(responseData).to.have.property('previous');","    pm.expect(responseData).to.have.property('add_permission');","    pm.expect(responseData).to.have.property('results');","});","","","pm.test(\"Validate the results array\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array');","    responseData.results.forEach(function(result) {","        pm.expect(result).to.be.an('object');","        pm.expect(result.sid).to.be.a('string');","        pm.expect(result.name).to.be.a('string');","        pm.expect(result.username).to.be.a('string');","        pm.expect(result.description).to.be.a('string');","        pm.expect(result.logo_icon).to.exist; // Can be null","        pm.expect(result.logo_wordmark).to.exist; // Can be null","        pm.expect(result.is_academic).to.be.a('boolean');","        pm.expect(result.plan).to.be.a('string');","        pm.expect(result.change_permission).to.be.a('boolean');","    });","});","","","pm.test(\"Verify response attributes\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    ","    responseData.results.forEach(function(result) {","        pm.expect(result.sid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"sid should be a non-empty string\");","        pm.expect(result.name).to.be.a('string').and.to.have.lengthOf.at.least(1, \"name should be a non-empty string\");","        pm.expect(result.username).to.be.a('string').and.to.have.lengthOf.at.least(1, \"username should be a non-empty string\");","        pm.expect(result.is_academic).to.be.a('boolean', \"is_academic should be a boolean\");","        pm.expect(result.change_permission).to.be.a('boolean', \"change_permission should be a boolean\");","    });","});",""],"type":"text/javascript"}}],"id":"6b6618f7-cf93-4bd5-a37c-de020bc524a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/organization/list/user/{{user_sid}}/list/","description":"<p>This endpoint retrieves a list of organizations associated with the specified user.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>All active organization members are authorized to make API calls.</p>\n<h4 id=\"url-parameters\">URL Parameters</h4>\n<ul>\n<li><p><strong><code>level</code></strong>: Specifies the scope of records to retrieve. Only the <code>user</code> level is allowed in this case.</p>\n</li>\n<li><p><strong><code>sid</code></strong>: The static, encrypted ID associated with a Labii object. Here, it should refer specifically to the user's SID.</p>\n</li>\n<li><p><strong><code>serializer</code></strong>: Defines the extent of fields included in the returned data, with three available options:</p>\n<ul>\n<li><p><strong><code>name</code></strong>: Returns only the SID and name of the object, optimized for speed.</p>\n</li>\n<li><p><strong><code>list</code></strong>: Provides selected fields from the object, offering a quick response.</p>\n</li>\n<li><p><strong><code>detail</code></strong>: Retrieves all fields from the object, which is slower.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"page_size\": {\"type\": \"integer\"},\n        \"page_number\": {\"type\": \"integer\"},\n        \"page_count\": {\"type\": \"integer\"},\n        \"count\": {\"type\": \"integer\"},\n        \"next\": {\"type\": [\"string\", \"null\"]},\n        \"previous\": {\"type\": [\"string\", \"null\"]},\n        \"add_permission\": {\"type\": \"boolean\"},\n        \"results\": {\n            \"type\": \"array\",\n            \"items\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"sid\": {\"type\": \"string\"},\n                    \"name\": {\"type\": \"string\"},\n                    \"username\": {\"type\": \"string\"},\n                    \"description\": {\"type\": \"string\"},\n                    \"logo_icon\": {\"type\": [\"string\", \"null\"]},\n                    \"logo_wordmark\": {\"type\": [\"string\", \"null\"]},\n                    \"is_academic\": {\"type\": \"boolean\"},\n                    \"plan\": {\"type\": \"string\"},\n                    \"change_permission\": {\"type\": \"boolean\"}\n                }\n            }\n        }\n    }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","organization","list","user","{{user_sid}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"80fa1345-2088-4461-834a-bc8b829f3a94","name":"Get Organization List","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/organization/list/user/{{user_sid}}/list/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 05:07:24 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"frame-src 'none'; font-src 'self' data: *.amazonaws.com; script-src 'self' *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000; style-src 'self' *.amazonaws.com 'unsafe-inline'; img-src 'self' *.amazonaws.com","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"928","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 4,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": false,\n    \"results\": [\n        {\n            \"sid\": \"GJMP0a40x2987INSX38ch\",\n            \"name\": \"Labii Demo\",\n            \"username\": \"jg2h0x70x02daohwei\",\n            \"description\": \"\",\n            \"logo_icon\": null,\n            \"logo_wordmark\": null,\n            \"is_academic\": false,\n            \"plan\": \"Trial\",\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"HKNQ0a40x2988JOTY49di\",\n            \"name\": \"Test Administrator\",\n            \"username\": \"drfm0x70x0zubuj2tk\",\n            \"description\": \"\",\n            \"logo_icon\": null,\n            \"logo_wordmark\": null,\n            \"is_academic\": false,\n            \"plan\": \"Trial\",\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"ILOR0a40x2989KPUZ50ej\",\n            \"name\": \"Test Edit\",\n            \"username\": \"bytg0x70x0uteyovmh\",\n            \"description\": \"\",\n            \"logo_icon\": null,\n            \"logo_wordmark\": null,\n            \"is_academic\": false,\n            \"plan\": \"Trial\",\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"JMPS0a40x298aLQV16afk\",\n            \"name\": \"Test Readonly\",\n            \"username\": \"46gg0x70x0sbfzkuje\",\n            \"description\": \"\",\n            \"logo_icon\": null,\n            \"logo_wordmark\": null,\n            \"is_academic\": false,\n            \"plan\": \"Trial\",\n            \"change_permission\": false\n        }\n    ]\n}"}],"_postman_id":"6b6618f7-cf93-4bd5-a37c-de020bc524a5"},{"name":"Get Organization Detail","event":[{"listen":"test","script":{"id":"e66c0865-8465-466f-9848-f8cbb8eb212a","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the schema for the response body\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('sid');","    pm.expect(responseData).to.have.property('name');","    pm.expect(responseData).to.have.property('username');","    pm.expect(responseData).to.have.property('description');","    pm.expect(responseData).to.have.property('language');","    pm.expect(responseData).to.have.property('logo_icon');","    pm.expect(responseData).to.have.property('logo_wordmark');","    pm.expect(responseData).to.have.property('navbar_background_color');","    pm.expect(responseData).to.have.property('navbar_text_color');","    pm.expect(responseData).to.have.property('print_header');","    pm.expect(responseData).to.have.property('permission_structure');","    pm.expect(responseData).to.have.property('plan');","    pm.expect(responseData).to.have.property('enable_antivirus_scan');","    pm.expect(responseData).to.have.property('enable_password_expiration');","    pm.expect(responseData).to.have.property('password_expiration_days');","    pm.expect(responseData).to.have.property('backup_frequency');","    pm.expect(responseData).to.have.property('backup_rate');","    pm.expect(responseData).to.have.property('metadata');","    pm.expect(responseData).to.have.property('credits');","    pm.expect(responseData).to.have.property('user_quota');","    pm.expect(responseData).to.have.property('project_quota');","    pm.expect(responseData).to.have.property('table_quota');","    pm.expect(responseData).to.have.property('is_academic');","    pm.expect(responseData).to.have.property('close_account');","    pm.expect(responseData).to.have.property('update_reference');","    pm.expect(responseData).to.have.property('updated_by');","    pm.expect(responseData).to.have.property('date_updated');","    pm.expect(responseData).to.have.property('date_created');","    pm.expect(responseData).to.have.property('personnel');","    pm.expect(responseData).to.have.property('is_archived');","    pm.expect(responseData).to.have.property('help_text');","    pm.expect(responseData).to.have.property('change_permission');","});","","","pm.test(\"All required fields are present in the response\", function () {","    const requiredFields = [\"sid\", \"name\", \"username\", \"description\", \"language\", \"enable_antivirus_scan\", \"enable_password_expiration\", \"is_archived\"];","    const responseData = pm.response.json();","","    requiredFields.forEach(field => {","        pm.expect(responseData).to.have.property(field);","    });","});","","","pm.test(\"Boolean fields must be either true or false\", function () {","    const responseData = pm.response.json();","    ","    Object.keys(responseData).forEach(key => {","        if (typeof responseData[key] === 'boolean') {","            pm.expect(responseData[key]).to.be.oneOf([true, false]);","        }","    });","});",""],"type":"text/javascript"}}],"id":"7e8949a3-da65-4e99-a98e-629db4a924ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/organization/detail/{{organization_sid_test_edit}}/","description":"<h3 id=\"get-organizationsorganizationdetailorganization_sid_test_edit\">GET /organizations/organization/detail/{{organization_sid_test_edit}}/</h3>\n<p>This endpoint retrieves the detailed information about a specific organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>All active organization members are authorized to make API calls.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this request.</p>\n<ul>\n<li><code>organization_sid_test_edit</code> (path parameter) - The unique identifier for the organization.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sid\": { \"type\": \"string\" },\n    \"name\": { \"type\": \"string\" },\n    \"username\": { \"type\": \"string\" },\n    \"description\": { \"type\": \"string\" },\n    \"language\": { \"type\": \"string\" },\n    \"logo_icon\": { \"type\": [\"string\", \"null\"] },\n    \"logo_wordmark\": { \"type\": [\"string\", \"null\"] },\n    \"navbar_background_color\": { \"type\": [\"string\", \"null\"] },\n    \"navbar_text_color\": { \"type\": [\"string\", \"null\"] },\n    \"print_header\": { \"type\": \"string\" },\n    \"permission_structure\": { \"type\": \"string\" },\n    \"plan\": { \"type\": \"string\" },\n    \"enable_antivirus_scan\": { \"type\": \"boolean\" },\n    \"enable_password_expiration\": { \"type\": \"boolean\" },\n    \"password_expiration_days\": { \"type\": \"integer\" },\n    \"backup_frequency\": { \"type\": \"string\" },\n    \"backup_rate\": { \"type\": \"integer\" },\n    \"metadata\": { \"type\": \"array\" },\n    \"credits\": { \"type\": \"string\" },\n    \"user_quota\": { \"type\": \"integer\" },\n    \"project_quota\": { \"type\": \"integer\" },\n    \"table_quota\": { \"type\": \"integer\" },\n    \"is_academic\": { \"type\": \"boolean\" },\n    \"close_account\": { \"type\": \"string\" },\n    \"update_reference\": { \"type\": \"string\" },\n    \"updated_by\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": { \"type\": \"string\" },\n        \"name\": { \"type\": \"string\" }\n      }\n    },\n    \"date_updated\": { \"type\": \"string\" },\n    \"date_created\": { \"type\": \"string\" },\n    \"personnel\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"count\": { \"type\": \"integer\" },\n        \"sid\": { \"type\": \"string\" },\n        \"name\": { \"type\": \"string\" }\n      }\n    },\n    \"is_archived\": { \"type\": \"boolean\" },\n    \"help_text\": {\n      \"type\": \"object\",\n      \"properties\": {\n        // Properties omitted for brevity\n      }\n    },\n    \"change_permission\": { \"type\": \"boolean\" }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","organization","detail","{{organization_sid_test_edit}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"6ff4ddcd-b235-4d3d-94a2-f4103c7303b7","name":"Get Organization Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/organization/detail/{{organization_sid_test_edit}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 05:23:42 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"frame-src 'none'; font-src 'self' data: *.amazonaws.com; script-src 'self' *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000; style-src 'self' *.amazonaws.com 'unsafe-inline'; img-src 'self' *.amazonaws.com","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"4279","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"ILOR0a40x2989KPUZ50ej\",\n    \"name\": \"Test Edit\",\n    \"username\": \"bytg0x70x0uteyovmh\",\n    \"description\": \"\",\n    \"language\": \"\",\n    \"logo_icon\": null,\n    \"logo_wordmark\": null,\n    \"navbar_background_color\": null,\n    \"navbar_text_color\": null,\n    \"print_header\": \"\",\n    \"permission_structure\": \"top-down\",\n    \"plan\": \"Trial\",\n    \"enable_antivirus_scan\": false,\n    \"enable_password_expiration\": false,\n    \"password_expiration_days\": 90,\n    \"backup_frequency\": \"Monthly\",\n    \"backup_rate\": 1,\n    \"metadata\": [],\n    \"credits\": \"0.0000\",\n    \"user_quota\": 500,\n    \"project_quota\": 500,\n    \"table_quota\": 500,\n    \"is_academic\": false,\n    \"close_account\": \"Contact sales@labii.com to close your account.\",\n    \"update_reference\": \"\",\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-02T08:02:24.940771Z\",\n    \"date_created\": \"2024-11-02T08:02:24.940775Z\",\n    \"personnel\": {\n        \"count\": 5,\n        \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n        \"name\": \"Test Labii\"\n    },\n    \"is_archived\": false,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"username\": \"Username of Organization. It is unique in labii, letters and numbers only.\",\n        \"logo_icon\": \"A logo in round or square shape that represents your business.\",\n        \"logo_wordmark\": \"Logo with the written name of an organization in a rectangular shape. The logo wordmark will appear on the side menu and header of print pages.\",\n        \"print_header\": \"Customize the header of the print page. Use HTML code for formatting.\",\n        \"plan\": \"Subscription plan. For details, click on Subscriptions in the sidebar menu. \",\n        \"is_subscription\": \"If checked, pay via Subscription. Otherwise, Pay Per Use. <br><b>Subscription</b>, pay for the number of seats subscribed per month and the storage fee. Get discount (or free of use) for majority of widgets. The account will switch to <i>Pay Per Use</i> when subscription ends.<br /><b>Pay Per Use</b>, pay for the number of records created, the widgets fee, and the storage fee. No limit on the number of seats.\",\n        \"price_subscription\": \"Subscription price per month, In US dollar. \",\n        \"price_ppu\": \"PPU price per record. In US Dollar. \",\n        \"price_storage_record\": \"Record storage fee. In US Dollar. \",\n        \"price_storage_file\": \"File storage fee. In US Dollar. \",\n        \"price_backup_version\": \"Cost to backup one version. In US Dollar. \",\n        \"price_backup_file\": \"Cost to backup one file. In US Dollar. \",\n        \"credits\": \"In US Dollar. \",\n        \"seats\": \"Number of members expected to use in your organization. \",\n        \"is_academic\": \"Academic organization get 50% discount in subscription fee. But the organization can only add emails end with *.edu. Non-profit companies might check this item to get discount.\",\n        \"user_quota\": \"Number of users can add in your organization.\",\n        \"project_quota\": \"Number of projects can add in your organization.\",\n        \"application_quota\": \"Number of applications can add in your organization.\",\n        \"table_quota\": \"Number of tables can add in your organization.\",\n        \"enable_antivirus_scan\": \"If enabled, an antivirus scan will be performed during the uploading process, and this can lead to a delay of around 20 seconds during the uploading process.\",\n        \"enable_password_expiration\": \"If enabled, users' passwords will expire every specific number of days according to the password_expiration_days configuration.\",\n        \"password_expiration_days\": \"Number of days to expire password. Needs to be between 1 and 1095 days.\",\n        \"permission_structure\": \"Permission structure to use. <a href='https://www.labii.com/blogs/AOx6HddQfw8j5IVv2v7-managing-permissions-sharing-and-collaborating-in-labii-eln--lims/' target='_blank'>Learn more</a><br>- Top-down permission allows the PI or administrator to control everyone's permission. <br>- While for the bottom-up, everyone control the permission of the folder they created.\",\n        \"backup_frequency\": \"How often do you want to backup your data.\",\n        \"backup_rate\": \"The occurring times of the backup.\",\n        \"language\": \"Preferred language for your Organization.\",\n        \"metadata\": \"Use <b>metadata</b> to store additional values.<br>SIGNATURE_MESSAGE, to display additional message to your signers.\",\n        \"is_archived\": \"If checked, the organization is not available for editing. \",\n        \"is_onhold\": \"If checked, the organization is not available for visiting. \",\n        \"update_reference\": \"Labii employs '##' encoded references to link objects during configuration when resources are unavailable. This field enables updating references for all objects across the organization.\"\n    },\n    \"change_permission\": false\n}"}],"_postman_id":"7e8949a3-da65-4e99-a98e-629db4a924ed"},{"name":"Edit Organization","event":[{"listen":"test","script":{"id":"574b5ff0-0601-4345-99d4-4abe8abda931","exec":["pm.test(\"Response status code is 404\", function () {","    pm.expect(pm.response.code).to.equal(404);","});","","","pm.test(\"Response time is within acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});","","","pm.test(\"Response schema matches the expected schema for a PATCH request\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.have.property('id');","    pm.expect(responseData).to.have.property('message');","});",""],"type":"text/javascript"}}],"id":"9c2900d3-a5f0-40a8-a34c-a66cdd1bf1b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Administrator\",\n    \"description\": \"\",\n    \"language\": \"\",\n    \"logo_icon\": null,\n    \"logo_wordmark\": null,\n    \"navbar_background_color\": null,\n    \"navbar_text_color\": null,\n    \"print_header\": \"\",\n    \"enable_antivirus_scan\": false,\n    \"enable_password_expiration\": false,\n    \"password_expiration_days\": 90,\n    \"metadata\": []\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/organization/detail/{{organization_sid_test_edit}}/","description":"<h3 id=\"http-patch-request\">HTTP PATCH Request</h3>\n<p>This endpoint allows the user to update specific fields of the resource.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can edit organization details.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code>: (text) The name of the resource.</p>\n</li>\n<li><p><code>description</code>: (text) The description of the resource.</p>\n</li>\n<li><p><code>language</code>: (text) The language of the resource.</p>\n</li>\n<li><p><code>logo_icon</code>: (text) The URL or path of the icon for the resource's logo.</p>\n</li>\n<li><p><code>logo_wordmark</code>: (text) The URL or path of the wordmark for the resource's logo.</p>\n</li>\n<li><p><code>navbar_background_color</code>: (text) The background color of the navigation bar.</p>\n</li>\n<li><p><code>navbar_text_color</code>: (text) The text color of the navigation bar.</p>\n</li>\n<li><p><code>print_header</code>: (text) The header for printing.</p>\n</li>\n<li><p><code>enable_antivirus_scan</code>: (boolean) Indicates whether antivirus scan is enabled or not.</p>\n</li>\n<li><p><code>enable_password_expiration</code>: (boolean) Indicates whether password expiration is enabled or not.</p>\n</li>\n<li><p><code>password_expiration_days</code>: (number) The number of days after which the password will expire.</p>\n</li>\n<li><p><code>metadata</code>: (array) Additional metadata for the resource.</p>\n</li>\n</ul>\n<h4 id=\"response-body\">Response Body</h4>\n<ul>\n<li><p><code>status</code>: (string) The status of the update operation.</p>\n</li>\n<li><p><code>message</code>: (string) A message indicating the result of the update operation.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","organization","detail","{{organization_sid_test_edit}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"06f9b30b-0c87-4dc0-b1cc-0ddd47325eca","name":"Edit Organization Detail","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Administrator\",\n    \"description\": \"\",\n    \"language\": \"\",\n    \"logo_icon\": null,\n    \"logo_wordmark\": null,\n    \"navbar_background_color\": null,\n    \"navbar_text_color\": null,\n    \"print_header\": \"\",\n    \"enable_antivirus_scan\": false,\n    \"enable_password_expiration\": false,\n    \"password_expiration_days\": 90,\n    \"metadata\": []\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/organization/detail/{{organization_sid_test_administrator}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 07:44:08 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"4127","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"HKNQ0a40x2988JOTY49di\",\n    \"name\": \"Test Administrator\",\n    \"username\": \"drfm0x70x0zubuj2tk\",\n    \"description\": \"\",\n    \"language\": \"\",\n    \"logo_icon\": null,\n    \"logo_wordmark\": null,\n    \"navbar_background_color\": null,\n    \"navbar_text_color\": null,\n    \"print_header\": \"\",\n    \"permission_structure\": \"top-down\",\n    \"plan\": \"Trial\",\n    \"enable_antivirus_scan\": false,\n    \"enable_password_expiration\": false,\n    \"password_expiration_days\": 90,\n    \"metadata\": [],\n    \"credits\": \"1.0000\",\n    \"user_quota\": 500,\n    \"project_quota\": 500,\n    \"table_quota\": 500,\n    \"is_academic\": false,\n    \"close_account\": \"Contact sales@labii.com to close your account.\",\n    \"update_reference\": \"\",\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-02T08:01:54.949968Z\",\n    \"date_created\": \"2024-11-02T08:01:54.949973Z\",\n    \"personnel\": {\n        \"count\": 5,\n        \"sid\": \"GJMP0a40x31c3INSX38ch\",\n        \"name\": \"Test Labii\"\n    },\n    \"is_archived\": false,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"username\": \"Username of Organization. It is unique in labii, letters and numbers only.\",\n        \"logo_icon\": \"A logo in round or square shape that represents your business.\",\n        \"logo_wordmark\": \"Logo with the written name of an organization in a rectangular shape. The logo wordmark will appear on the side menu and header of print pages.\",\n        \"print_header\": \"Customize the header of the print page. Use HTML code for formatting.\",\n        \"plan\": \"Subscription plan. For details, click on Subscriptions in the sidebar menu. \",\n        \"is_subscription\": \"If checked, pay via Subscription. Otherwise, Pay Per Use. <br><b>Subscription</b>, pay for the number of seats subscribed per month and the storage fee. Get discount (or free of use) for majority of widgets. The account will switch to <i>Pay Per Use</i> when subscription ends.<br /><b>Pay Per Use</b>, pay for the number of records created, the widgets fee, and the storage fee. No limit on the number of seats.\",\n        \"price_subscription\": \"Subscription price per month, In US dollar. \",\n        \"price_ppu\": \"PPU price per record. In US Dollar. \",\n        \"price_storage_record\": \"Record storage fee. In US Dollar. \",\n        \"price_storage_file\": \"File storage fee. In US Dollar. \",\n        \"price_backup_version\": \"Cost to backup one version. In US Dollar. \",\n        \"price_backup_file\": \"Cost to backup one file. In US Dollar. \",\n        \"credits\": \"In US Dollar. \",\n        \"seats\": \"Number of members expected to use in your organization. \",\n        \"is_academic\": \"Academic organization get 50% discount in subscription fee. But the organization can only add emails end with *.edu. Non-profit companies might check this item to get discount.\",\n        \"user_quota\": \"Number of users can add in your organization.\",\n        \"project_quota\": \"Number of projects can add in your organization.\",\n        \"application_quota\": \"Number of applications can add in your organization.\",\n        \"table_quota\": \"Number of tables can add in your organization.\",\n        \"enable_antivirus_scan\": \"If enabled, an antivirus scan will be performed during the uploading process, and this can lead to a delay of around 20 seconds during the uploading process.\",\n        \"enable_password_expiration\": \"If enabled, users' passwords will expire every specific number of days according to the password_expiration_days configuration.\",\n        \"password_expiration_days\": \"Number of days to expire password. Needs to be between 1 and 1095 days.\",\n        \"permission_structure\": \"Permission structure to use. <a href='https://www.labii.com/blogs/AOx6HddQfw8j5IVv2v7-managing-permissions-sharing-and-collaborating-in-labii-eln--lims/' target='_blank'>Learn more</a><br>- Top-down permission allows the PI or administrator to control everyone's permission. <br>- While for the bottom-up, everyone control the permission of the folder they created.\",\n        \"language\": \"Preferred language for your Organization.\",\n        \"metadata\": \"Use <b>metadata</b> to store additional values.<br>SIGNATURE_MESSAGE, to display additional message to your signers.\",\n        \"is_archived\": \"If checked, the organization is not available for editing. \",\n        \"is_onhold\": \"If checked, the organization is not available for visiting. \",\n        \"update_reference\": \"Labii employs '##' encoded references to link objects during configuration when resources are unavailable. This field enables updating references for all objects across the organization.\"\n    },\n    \"change_permission\": true\n}"}],"_postman_id":"9c2900d3-a5f0-40a8-a34c-a66cdd1bf1b6"}],"id":"ff291f74-2640-4b6c-af4c-e6d1c1f170b0","description":"<p>The Labii Organization API allows users to manage and interact with organizations within the Labii platform programmatically. With this API, users can retrieve a list of all organizations they belong to, which is useful for quick access to their affiliated groups and associated resources. Additionally, users can obtain detailed information about a specific organization by providing the organization’s identifier, enabling them to access metadata and settings specific to that organization. However, the API does not allow users to create new organizations, ensuring that organization creation remains restricted to specific administrative channels. This design prioritizes controlled access while enabling efficient organization management for existing users.</p>\n","_postman_id":"ff291f74-2640-4b6c-af4c-e6d1c1f170b0","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"People","item":[{"name":"Get People List","event":[{"listen":"test","script":{"id":"013ef499-962a-4caa-bbe8-efab7be7e1e5","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('page_size');","    pm.expect(responseData).to.have.property('page_number');","    pm.expect(responseData).to.have.property('page_count');","    pm.expect(responseData).to.have.property('count');","    pm.expect(responseData).to.have.property('next');","    pm.expect(responseData).to.have.property('previous');","    pm.expect(responseData).to.have.property('add_permission');","    pm.expect(responseData).to.have.property('results');","});","","","pm.test(\"Validate the results array and its elements\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.results).to.be.an('array');","  responseData.results.forEach(function(result) {","    pm.expect(result).to.be.an('object');","    pm.expect(result.sid).to.be.a('string');","    pm.expect(result.name).to.be.a('string');","    pm.expect(result.email).to.be.a('string');","    pm.expect(result.title).to.be.a('string');","    pm.expect(result.is_administrator).to.be.a('boolean');","    pm.expect(result.date_start).to.be.a('string');","    pm.expect(result.date_end).to.be.a('string').or.to.be.null;","    pm.expect(result.is_archived).to.be.a('boolean');","    pm.expect(result.change_permission).to.be.a('boolean');","  });","});","","","pm.test(\"Verify presence and data types of specific fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    ","    responseData.results.forEach(function(result) {","        pm.expect(result.sid).to.be.a('string');","        pm.expect(result.name).to.be.a('string');","        pm.expect(result.email).to.be.a('string');","        pm.expect(result.title).to.be.a('string');","        pm.expect(result.date_start).to.be.a('string');","        pm.expect(result.is_archived).to.be.a('boolean');","    });","});",""],"type":"text/javascript"}}],"id":"ec886f88-f1f1-4fb0-86c3-364e67313d3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/personnel/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h3 id=\"http-get-request-to-retrieve-data\">HTTP GET Request to Retrieve Data</h3>\n<p>This endpoint makes an HTTP GET request to retrieve the data. The request does not include a request body.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>All active organization members are authorized to make API calls.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response body will contain the data requested by the client in the following JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"page_size\": 0,\n    \"page_number\": 0,\n    \"page_count\": 0,\n    \"count\": 0,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": true,\n    \"results\": [\n        {\n            \"sid\": \"\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"title\": \"\",\n            \"is_administrator\": true,\n            \"date_start\": \"\",\n            \"date_end\": null,\n            \"is_archived\": true,\n            \"change_permission\": true\n        }\n    ]\n}\n\n</code></pre>\n<h4 id=\"permission-1\">Permission</h4>\n<p>Only the Administrators can edit organization details.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","personnel","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"f0eec1fb-bed4-4008-9048-eac3406c836b","name":"Get People List","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/personnel/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 07:58:42 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1173","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 5,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": true,\n    \"results\": [\n        {\n            \"sid\": \"GJMP0a40x31c3INSX38ch\",\n            \"name\": \"Test Labii\",\n            \"email\": \"test@labii.com\",\n            \"title\": \"Administrator\",\n            \"is_administrator\": true,\n            \"date_start\": \"2024-11-02\",\n            \"date_end\": null,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"JMPS0a40x31c6LQV16afk\",\n            \"name\": \"Developer Labii\",\n            \"email\": \"developer@labii.com\",\n            \"title\": null,\n            \"is_administrator\": false,\n            \"date_start\": \"2024-11-02\",\n            \"date_end\": null,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"KNQT0a40x31c7MRW27bgl\",\n            \"name\": \"Inactive Labii\",\n            \"email\": \"inactive@labii.com\",\n            \"title\": null,\n            \"is_administrator\": false,\n            \"date_start\": \"2024-11-02\",\n            \"date_end\": null,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"LORU0a40x31c8NSX38chm\",\n            \"name\": \"Business Labii\",\n            \"email\": \"test_business@labii.com\",\n            \"title\": null,\n            \"is_administrator\": false,\n            \"date_start\": \"2024-11-02\",\n            \"date_end\": null,\n            \"is_archived\": false,\n            \"change_permission\": true\n        }\n    ]\n}"}],"_postman_id":"ec886f88-f1f1-4fb0-86c3-364e67313d3f"},{"name":"Create People","event":[{"listen":"prerequest","script":{"id":"b967b83f-b305-42ec-a496-e3e31444e51c","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript"}},{"listen":"test","script":{"id":"652f7fe5-589b-430d-b920-4057a55c513b","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"people_sid\", jsonData.sid);","","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the schema for the response JSON\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.have.property('sid');","    pm.expect(responseData).to.have.property('user__sid');","    pm.expect(responseData).to.have.property('name');","    pm.expect(responseData).to.have.property('email');","    pm.expect(responseData).to.have.property('first_name');","    pm.expect(responseData).to.have.property('last_name');","    pm.expect(responseData).to.have.property('title');","    pm.expect(responseData).to.have.property('date_start');","    pm.expect(responseData).to.have.property('date_end');","    pm.expect(responseData).to.have.property('is_administrator');","    pm.expect(responseData).to.have.property('should_receive_mention_notification');","    pm.expect(responseData).to.have.property('should_receive_notification_email');","    pm.expect(responseData).to.have.property('metadata');","    pm.expect(responseData).to.have.property('calendar');","    pm.expect(responseData).to.have.property('teams');","    pm.expect(responseData).to.have.property('permissions');","    pm.expect(responseData).to.have.property('certifications');","    pm.expect(responseData).to.have.property('status');","    pm.expect(responseData).to.have.property('is_archived');","    pm.expect(responseData).to.have.property('updated_by');","    pm.expect(responseData).to.have.property('date_updated');","    pm.expect(responseData).to.have.property('change_permission');","    pm.expect(responseData).to.have.property('help_text');","});","","","pm.test(\"All required fields are present in the response\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.user__sid).to.exist;","    pm.expect(responseData.email).to.exist;","    pm.expect(responseData.first_name).to.exist;","    pm.expect(responseData.last_name).to.exist;","    pm.expect(responseData.title).to.exist;","    pm.expect(responseData.date_start).to.exist;","    pm.expect(responseData.is_administrator).to.exist;","    pm.expect(responseData.should_receive_mention_notification).to.exist;","    pm.expect(responseData.should_receive_notification_email).to.exist;","    pm.expect(responseData.teams).to.exist;","    pm.expect(responseData.permissions).to.exist;","    pm.expect(responseData.certifications).to.exist;","    pm.expect(responseData.status).to.exist;","    pm.expect(responseData.is_archived).to.exist;","    pm.expect(responseData.updated_by).to.exist;","    pm.expect(responseData.date_updated).to.exist;","    pm.expect(responseData.change_permission).to.exist;","    pm.expect(responseData.help_text).to.exist;","});","","","pm.test(\"Date start and date end should be in valid format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.date_start).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","    pm.expect(responseData.date_end).to.be.oneOf([null, null, /^\\d{4}-\\d{2}-\\d{2}$/]);","});",""],"type":"text/javascript"}}],"id":"fc9b5150-bfc1-4946-b60a-57262e8c97d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"new@labii.com\",\n    \"first_name\": \"New\",\n    \"last_name\": \"Labii\",\n    \"title\": \"Tester\",\n    \"date_start\": \"{{currentDate}}\",\n    \"is_administrator\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/personnel/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h3 id=\"post-organizationspersonnellistorganizationorganization_sid_test_administratorlist\">POST /organizations/personnel/list/organization/{{organization_sid_test_administrator}}/list/</h3>\n<p>This endpoint allows the creation of a new personnel entry within the specified organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can edit organization details.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>email</code> (string): The email address of the personnel.</p>\n</li>\n<li><p><code>first_name</code> (string): The first name of the personnel.</p>\n</li>\n<li><p><code>last_name</code> (string): The last name of the personnel.</p>\n</li>\n<li><p><code>title</code> (string): The job title of the personnel.</p>\n</li>\n<li><p><code>date_start</code> (string): The start date of the personnel's employment.</p>\n</li>\n<li><p><code>is_administrator</code> (boolean): Indicates if the personnel is an administrator.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"\",\n  \"user__sid\": \"\",\n  \"name\": \"\",\n  \"email\": \"\",\n  \"first_name\": \"\",\n  \"last_name\": \"\",\n  \"title\": \"\",\n  \"date_start\": \"\",\n  \"date_end\": null,\n  \"is_administrator\": true,\n  \"should_receive_mention_notification\": true,\n  \"should_receive_notification_email\": true,\n  \"metadata\": [],\n  \"calendar\": null,\n  \"teams\": [\n    {\n      \"sid\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"permissions\": [\"\"],\n  \"certifications\": [],\n  \"status\": \"\",\n  \"is_archived\": true,\n  \"updated_by\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"date_updated\": \"\",\n  \"change_permission\": true,\n  \"help_text\": {\n    \"sid\": \"\",\n    \"title\": \"\",\n    \"date_start\": \"\",\n    \"date_end\": \"\",\n    \"calendar\": \"\",\n    \"is_administrator\": \"\",\n    \"should_receive_mention_notification\": \"\",\n    \"should_receive_notification_email\": \"\",\n    \"metadata\": \"\",\n    \"is_archived\": \"\"\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","personnel","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"b4072ea6-5f52-40cb-b2e6-cdb437bd7f5c","name":"Create People","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"new@labii.com\",\n    \"first_name\": \"New\",\n    \"last_name\": \"Labii\",\n    \"title\": \"Tester\",\n    \"date_start\": \"{{currentDate}}\",\n    \"is_administrator\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/personnel/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 08:21:45 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1440","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"VY250a40x31d2X38chmrw\",\n    \"user__sid\": \"ruxA0a40x106tyDINSX3\",\n    \"name\": \"New Labii\",\n    \"email\": \"new@labii.com\",\n    \"first_name\": \"New\",\n    \"last_name\": \"Labii\",\n    \"title\": \"Tester\",\n    \"date_start\": \"2024-11-03\",\n    \"date_end\": null,\n    \"is_administrator\": false,\n    \"should_receive_mention_notification\": true,\n    \"should_receive_notification_email\": true,\n    \"metadata\": [],\n    \"calendar\": null,\n    \"teams\": [\n        {\n            \"sid\": \"9beh0a40x3fadafkpuzEJ\",\n            \"name\": \"Active Labii users\"\n        }\n    ],\n    \"permissions\": [\n        \"Sample Project - Edit\",\n        \"Child Project - None\"\n    ],\n    \"certifications\": [],\n    \"status\": \"Not activated\",\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T08:21:43.387934Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"title\": \"The occupation of the employee at the organization.\",\n        \"date_start\": \"The Date the employee joined.\",\n        \"date_end\": \"The Date the employee left. The user's access will be blocked after this date. It will take 24 hours for the change to take effect.\",\n        \"calendar\": \"Calendar settings.\",\n        \"is_administrator\": \"Check to set the user as the organization administrator.\",\n        \"should_receive_mention_notification\": \"If checked, you will receive an email when your co-worker mentioned you in a record.\",\n        \"should_receive_notification_email\": \"If checked, the member will receive the notification email.\",\n        \"metadata\": \"Use <b>metadata</b> to store additional values.\",\n        \"is_archived\": \"If checked, the member's access will be blocked.\"\n    }\n}"}],"_postman_id":"fc9b5150-bfc1-4946-b60a-57262e8c97d2"},{"name":"Get People Detail","event":[{"listen":"test","script":{"id":"3e3eb8d0-fcc5-449e-bd63-8593d5e78e7f","exec":["pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.user__sid).to.exist;","    pm.expect(responseData.name).to.exist;","    pm.expect(responseData.email).to.exist;","    pm.expect(responseData.first_name).to.exist;","    pm.expect(responseData.last_name).to.exist;","    pm.expect(responseData.title).to.exist;","    pm.expect(responseData.date_start).to.exist;","    pm.expect(responseData.date_end).to.exist;","    pm.expect(responseData.is_administrator).to.exist;","    pm.expect(responseData.should_receive_mention_notification).to.exist;","    pm.expect(responseData.should_receive_notification_email).to.exist;","    pm.expect(responseData.metadata).to.exist;","    pm.expect(responseData.calendar).to.exist;","    pm.expect(responseData.teams).to.exist;","    pm.expect(responseData.permissions).to.exist;","    pm.expect(responseData.certifications).to.exist;","    pm.expect(responseData.status).to.exist;","    pm.expect(responseData.is_archived).to.exist;","    pm.expect(responseData.updated_by).to.exist;","    pm.expect(responseData.date_updated).to.exist;","    pm.expect(responseData.change_permission).to.exist;","    pm.expect(responseData.help_text).to.exist;","});","","","pm.test(\"Date_start and date_updated are in a valid date format\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.date_start).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","  pm.expect(responseData.date_updated).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});",""],"type":"text/javascript"}}],"id":"56a0b6fb-86dd-459a-a0c9-1c60c84ba7a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/personnel/detail/{{people_sid}}/","description":"<h3 id=\"get-organizationspersonneldetailpeople_sid_test_administrator\">GET /organizations/personnel/detail/{{people_sid_test_administrator}}/</h3>\n<p>This endpoint retrieves detailed information about a specific personnel in the organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>All active organization members are authorized to make API calls.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body parameters are required for this request.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following properties:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier for the personnel.</p>\n</li>\n<li><p><code>user__sid</code> (string): The unique identifier for the user associated with the personnel.</p>\n</li>\n<li><p><code>name</code> (string): The name of the personnel.</p>\n</li>\n<li><p><code>email</code> (string): The email address of the personnel.</p>\n</li>\n<li><p><code>first_name</code> (string): The first name of the personnel.</p>\n</li>\n<li><p><code>last_name</code> (string): The last name of the personnel.</p>\n</li>\n<li><p><code>title</code> (string): The job title of the personnel.</p>\n</li>\n<li><p><code>date_start</code> (string): The start date of the personnel's employment.</p>\n</li>\n<li><p><code>date_end</code> (string): The end date of the personnel's employment, if applicable.</p>\n</li>\n<li><p><code>is_administrator</code> (boolean): Indicates if the personnel is an administrator.</p>\n</li>\n<li><p><code>should_receive_mention_notification</code> (boolean): Indicates if the personnel should receive mention notifications.</p>\n</li>\n<li><p><code>should_receive_notification_email</code> (boolean): Indicates if the personnel should receive notification emails.</p>\n</li>\n<li><p><code>metadata</code> (array): Additional metadata associated with the personnel.</p>\n</li>\n<li><p><code>calendar</code> (object): The calendar details for the personnel.</p>\n</li>\n<li><p><code>teams</code> (array): An array of teams the personnel is associated with, each containing <code>sid</code> (string) and <code>name</code> (string) properties.</p>\n</li>\n<li><p><code>permissions</code> (array): An array of permissions granted to the personnel.</p>\n</li>\n<li><p><code>certifications</code> (array): An array of certifications held by the personnel.</p>\n</li>\n<li><p><code>status</code> (string): The status of the personnel.</p>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates if the personnel is archived.</p>\n</li>\n<li><p><code>updated_by</code> (object): Details of the user who last updated the personnel, containing <code>sid</code> (string) and <code>name</code> (string) properties.</p>\n</li>\n<li><p><code>date_updated</code> (string): The date when the personnel information was last updated.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates if the personnel has permission to make changes.</p>\n</li>\n<li><p><code>help_text</code> (object): Additional help text details, containing various properties related to the personnel.</p>\n</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"\",\n  \"user__sid\": \"\",\n  \"name\": \"\",\n  \"email\": \"\",\n  \"first_name\": \"\",\n  \"last_name\": \"\",\n  \"title\": \"\",\n  \"date_start\": \"\",\n  \"date_end\": null,\n  \"is_administrator\": true,\n  \"should_receive_mention_notification\": true,\n  \"should_receive_notification_email\": true,\n  \"metadata\": [],\n  \"calendar\": null,\n  \"teams\": [{\"sid\": \"\", \"name\": \"\"}],\n  \"permissions\": [\"\"],\n  \"certifications\": [],\n  \"status\": \"\",\n  \"is_archived\": true,\n  \"updated_by\": {\"sid\": \"\", \"name\": \"\"},\n  \"date_updated\": \"\",\n  \"change_permission\": true,\n  \"help_text\": {\n    \"sid\": \"\",\n    \"title\": \"\",\n    \"date_start\": \"\",\n    \"date_end\": \"\",\n    \"calendar\": \"\",\n    \"is_administrator\": \"\",\n    \"should_receive_mention_notification\": \"\",\n    \"should_receive_notification_email\": \"\",\n    \"metadata\": \"\",\n    \"is_archived\": \"\"\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","personnel","detail","{{people_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"ad90974f-cbaa-4b8b-9af3-3954250109ea","name":"Get People Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/personnel/detail/{{people_sid_test_administrator}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 08:32:03 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1504","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"GJMP0a40x31c3INSX38ch\",\n    \"user__sid\": \"knqt0a40xffmrwBGLQV\",\n    \"name\": \"Test Labii\",\n    \"email\": \"test@labii.com\",\n    \"first_name\": \"Test\",\n    \"last_name\": \"Labii\",\n    \"title\": \"Administrator\",\n    \"date_start\": \"2024-11-02\",\n    \"date_end\": null,\n    \"is_administrator\": true,\n    \"should_receive_mention_notification\": true,\n    \"should_receive_notification_email\": false,\n    \"metadata\": [],\n    \"calendar\": null,\n    \"teams\": [\n        {\n            \"sid\": \"8adg0a40x3fac0ejotyDI\",\n            \"name\": \"Administrators\"\n        },\n        {\n            \"sid\": \"9beh0a40x3fadafkpuzEJ\",\n            \"name\": \"Active Labii users\"\n        }\n    ],\n    \"permissions\": [\n        \"Sample Project - Manager\",\n        \"Child Project - Manager\"\n    ],\n    \"certifications\": [],\n    \"status\": \"Active\",\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-02T08:01:54.953654Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"title\": \"The occupation of the employee at the organization.\",\n        \"date_start\": \"The Date the employee joined.\",\n        \"date_end\": \"The Date the employee left. The user's access will be blocked after this date. It will take 24 hours for the change to take effect.\",\n        \"calendar\": \"Calendar settings.\",\n        \"is_administrator\": \"Check to set the user as the organization administrator.\",\n        \"should_receive_mention_notification\": \"If checked, you will receive an email when your co-worker mentioned you in a record.\",\n        \"should_receive_notification_email\": \"If checked, the member will receive the notification email.\",\n        \"metadata\": \"Use <b>metadata</b> to store additional values.\",\n        \"is_archived\": \"If checked, the member's access will be blocked.\"\n    }\n}"}],"_postman_id":"56a0b6fb-86dd-459a-a0c9-1c60c84ba7a3"},{"name":"Edit People","event":[{"listen":"test","script":{"id":"b038bc0f-866c-4551-b662-3102abc74ba0","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.have.property('sid');","    pm.expect(responseData).to.have.property('user__sid');","    pm.expect(responseData).to.have.property('name');","    pm.expect(responseData).to.have.property('email');","    pm.expect(responseData).to.have.property('first_name');","    pm.expect(responseData).to.have.property('last_name');","    pm.expect(responseData).to.have.property('title');","    pm.expect(responseData).to.have.property('date_start');","    pm.expect(responseData).to.have.property('date_end');","    pm.expect(responseData).to.have.property('is_administrator');","    pm.expect(responseData).to.have.property('should_receive_mention_notification');","    pm.expect(responseData).to.have.property('should_receive_notification_email');","    pm.expect(responseData).to.have.property('metadata');","    pm.expect(responseData).to.have.property('calendar');","    pm.expect(responseData).to.have.property('teams');","    pm.expect(responseData).to.have.property('permissions');","    pm.expect(responseData).to.have.property('certifications');","    pm.expect(responseData).to.have.property('status');","    pm.expect(responseData).to.have.property('is_archived');","    pm.expect(responseData).to.have.property('updated_by');","    pm.expect(responseData).to.have.property('date_updated');","    pm.expect(responseData).to.have.property('change_permission');","    pm.expect(responseData).to.have.property('help_text');","});","","","pm.test(\"Date_start and date_end are in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.date_start).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","    pm.expect(responseData.date_end).to.satisfy((date) => date === null || date.match(/^\\d{4}-\\d{2}-\\d{2}$/));","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Teams array is present and contains expected number of elements\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.teams).to.exist;","    pm.expect(responseData.teams).to.be.an('array');","    pm.expect(responseData.teams).to.have.lengthOf(1);","});",""],"type":"text/javascript"}}],"id":"459c6403-7a21-4d63-86cf-55919c3359e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"first_name\": \"Test\",\n    \"last_name\": \"Labii\",\n    \"title\": \"Administrator\",\n    \"date_start\": \"2024-11-02\",\n    \"date_end\": null,\n    \"is_administrator\": true,\n    \"should_receive_mention_notification\": true,\n    \"should_receive_notification_email\": false,\n    \"metadata\": []\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/personnel/detail/{{people_sid_test_administrator}}/","description":"<h3 id=\"patch-organizationspersonneldetailpeople_sid_test_administrator\">PATCH /organizations/personnel/detail/{{people_sid_test_administrator}}/</h3>\n<p>This endpoint is used to update the details of a personnel in the organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can edit organization details.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><strong>first_name</strong> (string, required): The first name of the personnel.</p>\n</li>\n<li><p><strong>last_name</strong> (string, required): The last name of the personnel.</p>\n</li>\n<li><p><strong>title</strong> (string, required): The title or designation of the personnel.</p>\n</li>\n<li><p><strong>date_start</strong> (string, required): The start date of the personnel's role.</p>\n</li>\n<li><p><strong>date_end</strong> (string, optional): The end date of the personnel's role.</p>\n</li>\n<li><p><strong>is_administrator</strong> (boolean, required): Indicates if the personnel is an administrator.</p>\n</li>\n<li><p><strong>should_receive_mention_notification</strong> (boolean, required): Specifies whether the personnel should receive mention notifications.</p>\n</li>\n<li><p><strong>should_receive_notification_email</strong> (boolean, required): Specifies whether the personnel should receive notification emails.</p>\n</li>\n<li><p><strong>metadata</strong> (array, required): Additional metadata associated with the personnel.</p>\n</li>\n</ul>\n<h4 id=\"response-body-json-schema\">Response Body (JSON Schema)</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sid\": {\"type\": \"string\"},\n    \"user__sid\": {\"type\": \"string\"},\n    \"name\": {\"type\": \"string\"},\n    \"email\": {\"type\": \"string\"},\n    \"first_name\": {\"type\": \"string\"},\n    \"last_name\": {\"type\": \"string\"},\n    \"title\": {\"type\": \"string\"},\n    \"date_start\": {\"type\": \"string\"},\n    \"date_end\": {\"type\": [\"string\", \"null\"]},\n    \"is_administrator\": {\"type\": \"boolean\"},\n    \"should_receive_mention_notification\": {\"type\": \"boolean\"},\n    \"should_receive_notification_email\": {\"type\": \"boolean\"},\n    \"metadata\": {\"type\": \"array\"},\n    \"calendar\": {\"type\": [\"object\", \"null\"]},\n    \"teams\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"sid\": {\"type\": \"string\"},\n          \"name\": {\"type\": \"string\"}\n        }\n      }\n    },\n    \"permissions\": {\n      \"type\": \"array\",\n      \"items\": {\"type\": \"string\"}\n    },\n    \"certifications\": {\"type\": \"array\"},\n    \"status\": {\"type\": \"string\"},\n    \"is_archived\": {\"type\": \"boolean\"},\n    \"updated_by\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\"type\": \"string\"},\n        \"name\": {\"type\": \"string\"}\n      }\n    },\n    \"date_updated\": {\"type\": \"string\"},\n    \"change_permission\": {\"type\": \"boolean\"},\n    \"help_text\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\"type\": \"string\"},\n        \"title\": {\"type\": \"string\"},\n        \"date_start\": {\"type\": \"string\"},\n        \"date_end\": {\"type\": \"string\"},\n        \"calendar\": {\"type\": [\"string\", \"null\"]},\n        \"is_administrator\": {\"type\": \"string\"},\n        \"should_receive_mention_notification\": {\"type\": \"string\"},\n        \"should_receive_notification_email\": {\"type\": \"string\"},\n        \"metadata\": {\"type\": \"string\"},\n        \"is_archived\": {\"type\": \"string\"}\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","personnel","detail","{{people_sid_test_administrator}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"f8bec6c1-cab7-40b3-a5df-efd1e3d3ac15","name":"Edit People Detail","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"first_name\": \"Test\",\n    \"last_name\": \"Labii\",\n    \"title\": \"Administrator\",\n    \"date_start\": \"2024-11-02\",\n    \"date_end\": null,\n    \"is_administrator\": true,\n    \"should_receive_mention_notification\": true,\n    \"should_receive_notification_email\": false,\n    \"metadata\": []\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/personnel/detail/{{people_sid_test_administrator}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 08:34:28 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1504","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"GJMP0a40x31c3INSX38ch\",\n    \"user__sid\": \"knqt0a40xffmrwBGLQV\",\n    \"name\": \"Test Labii\",\n    \"email\": \"test@labii.com\",\n    \"first_name\": \"Test\",\n    \"last_name\": \"Labii\",\n    \"title\": \"Administrator\",\n    \"date_start\": \"2024-11-02\",\n    \"date_end\": null,\n    \"is_administrator\": true,\n    \"should_receive_mention_notification\": true,\n    \"should_receive_notification_email\": false,\n    \"metadata\": [],\n    \"calendar\": null,\n    \"teams\": [\n        {\n            \"sid\": \"8adg0a40x3fac0ejotyDI\",\n            \"name\": \"Administrators\"\n        },\n        {\n            \"sid\": \"9beh0a40x3fadafkpuzEJ\",\n            \"name\": \"Active Labii users\"\n        }\n    ],\n    \"permissions\": [\n        \"Sample Project - Manager\",\n        \"Child Project - Manager\"\n    ],\n    \"certifications\": [],\n    \"status\": \"Active\",\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-02T08:01:54.953654Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"title\": \"The occupation of the employee at the organization.\",\n        \"date_start\": \"The Date the employee joined.\",\n        \"date_end\": \"The Date the employee left. The user's access will be blocked after this date. It will take 24 hours for the change to take effect.\",\n        \"calendar\": \"Calendar settings.\",\n        \"is_administrator\": \"Check to set the user as the organization administrator.\",\n        \"should_receive_mention_notification\": \"If checked, you will receive an email when your co-worker mentioned you in a record.\",\n        \"should_receive_notification_email\": \"If checked, the member will receive the notification email.\",\n        \"metadata\": \"Use <b>metadata</b> to store additional values.\",\n        \"is_archived\": \"If checked, the member's access will be blocked.\"\n    }\n}"}],"_postman_id":"459c6403-7a21-4d63-86cf-55919c3359e7"}],"id":"4af31c7b-ed54-479c-9199-06bfe072f7e9","description":"<p>The Labii People API provides functionality to manage and interact with user accounts within an organization. Through this API, users can retrieve a list of all members, add new users to the organization, access detailed information about specific users, and edit user details as needed. This API enables streamlined user management, making it easier to keep team information up-to-date and ensure that all necessary personnel have access to relevant organizational resources on the Labii platform.</p>\n","_postman_id":"4af31c7b-ed54-479c-9199-06bfe072f7e9","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Team","item":[{"name":"Get Team List","event":[{"listen":"test","script":{"id":"b9ea32e0-375b-45fa-aa6e-63e2943210c7","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Response has the required fields\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.page_size).to.exist;","  pm.expect(responseData.page_number).to.exist;","  pm.expect(responseData.page_count).to.exist;","  pm.expect(responseData.count).to.exist;","  pm.expect(responseData.next).to.exist;","  pm.expect(responseData.previous).to.exist;","  pm.expect(responseData.add_permission).to.exist;","});","","","pm.test(\"Validate the results array\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.results).to.be.an('array');","    responseData.results.forEach(function(result) {","        pm.expect(result).to.be.an('object');","        pm.expect(result.sid).to.be.a('string');","        pm.expect(result.name).to.be.a('string');","        pm.expect(result.description).to.be.a('string');","        pm.expect(result.is_archived).to.be.a('boolean');","        pm.expect(result.change_permission).to.be.a('boolean');","    });","});","","","pm.test(\"Verify the properties of results\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array');","    ","    responseData.results.forEach(function(result) {","        pm.expect(result.sid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"sid should be a non-empty string\");","        pm.expect(result.name).to.be.a('string').and.to.have.lengthOf.at.least(1, \"name should be a non-empty string\");","        pm.expect(result.description).to.be.a('string').and.to.have.lengthOf.at.least(1, \"description should be a non-empty string\");","        pm.expect(result.is_archived).to.be.a('boolean', \"is_archived should be a boolean\");","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"c96ba3cf-e1d2-490c-9fe0-2dd5dbdf17a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/team/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h3 id=\"get-organizationsteamlistorganizationorganization_sid_test_administratorlist\">GET /organizations/team/list/organization/{{organization_sid_test_administrator}}/list/</h3>\n<p>This endpoint retrieves a list of teams within the specified organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body parameters are required for this endpoint.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"page_size\": integer,\n    \"page_number\": integer,\n    \"page_count\": integer,\n    \"count\": integer,\n    \"next\": string or null,\n    \"previous\": string or null,\n    \"add_permission\": boolean,\n    \"results\": [\n        {\n            \"sid\": string,\n            \"name\": string,\n            \"description\": string,\n            \"is_archived\": boolean,\n            \"change_permission\": boolean\n        }\n    ]\n}\n\n</code></pre>\n<ul>\n<li><p><code>page_size</code>: The number of items per page.</p>\n</li>\n<li><p><code>page_number</code>: The current page number.</p>\n</li>\n<li><p><code>page_count</code>: The total number of pages.</p>\n</li>\n<li><p><code>count</code>: The total count of teams.</p>\n</li>\n<li><p><code>next</code>: The URL for the next page of results, or null if there are no more pages.</p>\n</li>\n<li><p><code>previous</code>: The URL for the previous page of results, or null if this is the first page.</p>\n</li>\n<li><p><code>add_permission</code>: Indicates whether the user has permission to add teams.</p>\n</li>\n<li><p><code>results</code>: An array of team objects containing their unique ID, name, description, archived status, and change permission.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","team","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"06e8c158-8f04-4ca3-9c3b-a85b1ddc4b63","name":"Get Team List","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/team/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 08:48:21 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"532","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": true,\n    \"results\": [\n        {\n            \"sid\": \"8adg0a40x3fac0ejotyDI\",\n            \"name\": \"Administrators\",\n            \"description\": \"Admin group to manage the Labii account. Please keep the name as it is used by other functions.\",\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"9beh0a40x3fadafkpuzEJ\",\n            \"name\": \"Active Labii users\",\n            \"description\": \"All active Labii users. Please keep the name as it is used by other functions.\",\n            \"is_archived\": false,\n            \"change_permission\": true\n        }\n    ]\n}"}],"_postman_id":"c96ba3cf-e1d2-490c-9fe0-2dd5dbdf17a4"},{"name":"Create Team","event":[{"listen":"prerequest","script":{"id":"8444cb60-cf20-401d-b0a8-3c68d340b2bd","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"7b5fa5fd-6182-48ac-8317-7bf4ff90a622","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"team_sid\", jsonData.sid);","","// Test for the existence of properties in the response object","pm.test(\"Response object has the required properties\", function () {","    pm.expect(jsonData).to.have.property('sid');","    pm.expect(jsonData).to.have.property('name');","    pm.expect(jsonData).to.have.property('description');","    pm.expect(jsonData).to.have.property('members');","    pm.expect(jsonData).to.have.property('is_archived');","    pm.expect(jsonData).to.have.property('updated_by');","    pm.expect(jsonData).to.have.property('date_updated');","    pm.expect(jsonData).to.have.property('date_created');","    pm.expect(jsonData).to.have.property('change_permission');","    pm.expect(jsonData).to.have.property('help_text');","});","","// Set the variable","pm.environment.set(\"team_sid\", jsonData.sid);"],"type":"text/javascript","packages":{}}}],"id":"84a1b89d-904f-4a6a-a7c4-1a56a42e60ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Team {{currentDate}}\",\n    \"description\": \"Test team created by postman\",\n    \"members\": [\n        {\"sid\": \"{{people_sid_test_administrator}}\", \"name\": \"Test Labii\"}\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/team/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h3 id=\"post-organizationsteamlistorganizationorganization_sid_test_administratorlist\">POST /organizations/team/list/organization/{{organization_sid_test_administrator}}/list/</h3>\n<p>This endpoint is used to create a new team within a specific organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>name (string, required): The name of the team. It should be unique within the organization.</p>\n</li>\n<li><p>description (string, optional): A brief description of the team.</p>\n</li>\n<li><p>members (array, required): An array of objects containing details of the team members.</p>\n<ul>\n<li><p>sid (string, required): The unique identifier of the member.</p>\n</li>\n<li><p>name (string, required): The name of the member.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"name\": \"Test Team {{currentDate}}\",\n  \"description\": \"Test team created by postman\",\n  \"members\": [\n    {\n      \"sid\": \"{{people_sid_test_administrato ...\",\n      \"name\": \"Test Labii\"\n    }\n  ]\n}\n#### Response\nThe response for this request will be a JSON object with the following schema:\n```json\n{\n  \"sid\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"members\": [\n    {\n      \"sid\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"is_archived\": true,\n  \"updated_by\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"date_updated\": \"\",\n  \"date_created\": \"\",\n  \"change_permission\": true,\n  \"help_text\": {\n    \"sid\": \"\",\n    \"is_archived\": \"\",\n    \"members\": \"\"\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","team","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"827f517c-d2e4-411e-af74-ed02ad80fadc","name":"Create Team","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Team {{currentDate}}\",\n    \"description\": \"Test team created by postman\",\n    \"members\": [\n        {\"sid\": \"{{people_sid_test_administrator}}\", \"name\": \"Test Labii\"}\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/team/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 08:52:10 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"551","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"dgjm0a40x3fb2fkpuzEJO\",\n    \"name\": \"Test Team 2024-11-03\",\n    \"description\": \"Test team created by postman\",\n    \"members\": [\n        {\n            \"sid\": \"GJMP0a40x31c3INSX38ch\",\n            \"name\": \"Test Labii\"\n        }\n    ],\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T08:52:09.146761Z\",\n    \"date_created\": \"2024-11-03T08:52:09.146771Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"is_archived\": \"If checked, all members' access will be blocked.\",\n        \"members\": \"Select one or more members. Use search box to search.\"\n    }\n}"}],"_postman_id":"84a1b89d-904f-4a6a-a7c4-1a56a42e60ec"},{"name":"Get Team Detail","event":[{"listen":"test","script":{"id":"351ef364-963a-40da-8fbb-9b5ffec6e814","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.name).to.exist;","    pm.expect(responseData.description).to.exist;","    pm.expect(responseData.members).to.exist;","    pm.expect(responseData.is_archived).to.exist;","    pm.expect(responseData.updated_by).to.exist;","    pm.expect(responseData.date_updated).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.change_permission).to.exist;","    pm.expect(responseData.help_text).to.exist;","});","","","pm.test(\"Members array contains objects with sid and name\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.members).to.be.an('array');","    responseData.members.forEach(function(member) {","        pm.expect(member).to.be.an('object');","        pm.expect(member.sid).to.exist.and.to.be.a('string');","        pm.expect(member.name).to.exist.and.to.be.a('string');","    });","});","","","pm.test(\"Updated_by object contains sid and name\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.updated_by).to.exist;","    pm.expect(responseData.updated_by.sid).to.be.a('string');","    pm.expect(responseData.updated_by.name).to.be.a('string');","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});",""],"type":"text/javascript","packages":{}}}],"id":"7b3aec8d-36c9-4fd1-91d8-829d166debf5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/team/detail/{{team_sid}}/","description":"<h3 id=\"get-team-details\">Get Team Details</h3>\n<p>This endpoint retrieves the details of a specific team within the organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the team.</p>\n</li>\n<li><p><code>name</code> (string): The name of the team.</p>\n</li>\n<li><p><code>description</code> (string): The description of the team.</p>\n</li>\n<li><p><code>members</code> (array): An array of objects containing the details of team members, including their unique identifier and name.</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the team member.</p>\n</li>\n<li><p><code>name</code> (string): The name of the team member.</p>\n</li>\n</ul>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates whether the team is archived.</p>\n</li>\n<li><p><code>updated_by</code> (object): An object containing the details of the user who last updated the team.</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the user.</p>\n</li>\n<li><p><code>name</code> (string): The name of the user.</p>\n</li>\n</ul>\n</li>\n<li><p><code>date_updated</code> (string): The date when the team was last updated.</p>\n</li>\n<li><p><code>date_created</code> (string): The date when the team was created.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates whether the user has permission to make changes to the team.</p>\n</li>\n<li><p><code>help_text</code> (object): An object containing additional help text related to the team.</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the help text.</p>\n</li>\n<li><p><code>is_archived</code> (string): Indicates whether the help text is archived.</p>\n</li>\n<li><p><code>members</code> (string): Additional information about team members provided in the help text.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","team","detail","{{team_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"8fe8a798-f727-4aea-a575-05949fee67c0","name":"Get Team Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/team/detail/{{team_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 08:55:37 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"551","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"dgjm0a40x3fb2fkpuzEJO\",\n    \"name\": \"Test Team 2024-11-03\",\n    \"description\": \"Test team created by postman\",\n    \"members\": [\n        {\n            \"sid\": \"GJMP0a40x31c3INSX38ch\",\n            \"name\": \"Test Labii\"\n        }\n    ],\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T08:52:09.146761Z\",\n    \"date_created\": \"2024-11-03T08:52:09.146771Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"is_archived\": \"If checked, all members' access will be blocked.\",\n        \"members\": \"Select one or more members. Use search box to search.\"\n    }\n}"}],"_postman_id":"7b3aec8d-36c9-4fd1-91d8-829d166debf5"},{"name":"Edit Team","event":[{"listen":"prerequest","script":{"id":"32c454ad-5f4a-43c6-a6ee-87a6590b6860","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"407374e5-0749-408e-81d9-22dff53404bb","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.name).to.exist;","    pm.expect(responseData.description).to.exist;","    pm.expect(responseData.members).to.exist;","    pm.expect(responseData.is_archived).to.exist;","    pm.expect(responseData.updated_by).to.exist;","    pm.expect(responseData.date_updated).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.change_permission).to.exist;","    pm.expect(responseData.help_text).to.exist;","});","","","pm.test(\"Members array should contain objects with sid and name properties\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.members).to.be.an('array');","    responseData.members.forEach(function(member) {","        pm.expect(member).to.be.an('object');","        pm.expect(member.sid).to.exist.and.to.be.a('string');","        pm.expect(member.name).to.exist.and.to.be.a('string');","    });","});","","","pm.test(\"Help_text object should contain sid, is_archived, and members properties\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.help_text).to.exist;","    pm.expect(responseData.help_text.sid).to.exist;","    pm.expect(responseData.help_text.is_archived).to.exist;","    pm.expect(responseData.help_text.members).to.exist;","});",""],"type":"text/javascript","packages":{}}}],"id":"2eed3a66-c27d-4e2e-915f-6e164565b462","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Team {{currentDate}}\",\n    \"description\": \"Test team edited by postman\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/team/detail/{{team_sid}}/","description":"<h3 id=\"patch-organizationsteamdetailteam_sid\">PATCH /organizations/team/detail/{{team_sid}}/</h3>\n<p>This endpoint is used to update the details of a specific team within an organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>name (string, required): The updated name of the team.</p>\n</li>\n<li><p>description (string, required): The updated description of the team.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request can be represented as a JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sid\": {\"type\": \"string\"},\n    \"name\": {\"type\": \"string\"},\n    \"description\": {\"type\": \"string\"},\n    \"members\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"sid\": {\"type\": \"string\"},\n          \"name\": {\"type\": \"string\"}\n        }\n      }\n    },\n    \"is_archived\": {\"type\": \"boolean\"},\n    \"updated_by\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\"type\": \"string\"},\n        \"name\": {\"type\": \"string\"}\n      }\n    },\n    \"date_updated\": {\"type\": \"string\"},\n    \"date_created\": {\"type\": \"string\"},\n    \"change_permission\": {\"type\": \"boolean\"},\n    \"help_text\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\"type\": \"string\"},\n        \"is_archived\": {\"type\": \"string\"},\n        \"members\": {\"type\": \"string\"}\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","team","detail","{{team_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"f6952578-39ba-4b4f-9be2-ded2711d22aa","name":"Edit Team","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Team {{currentDate}}\",\n    \"description\": \"Test team edited by postman\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/team/detail/{{team_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 08:57:48 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"550","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"dgjm0a40x3fb2fkpuzEJO\",\n    \"name\": \"Test Team 2024-11-03\",\n    \"description\": \"Test team edited by postman\",\n    \"members\": [\n        {\n            \"sid\": \"GJMP0a40x31c3INSX38ch\",\n            \"name\": \"Test Labii\"\n        }\n    ],\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T08:52:09.146761Z\",\n    \"date_created\": \"2024-11-03T08:52:09.146771Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"is_archived\": \"If checked, all members' access will be blocked.\",\n        \"members\": \"Select one or more members. Use search box to search.\"\n    }\n}"}],"_postman_id":"2eed3a66-c27d-4e2e-915f-6e164565b462"},{"name":"Delete Team","event":[{"listen":"test","script":{"id":"a5e8a6dc-894a-40ba-abde-5d58148d69f6","exec":["pm.test(\"Response status code is 204\", function () {","    pm.response.to.have.status(204);","});",""],"type":"text/javascript","packages":{}}}],"id":"a7895277-c492-4317-84df-782cc24176ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://www.labii.dev/organizations/team/detail/{{team_sid}}/","description":"<p>This endpoint sends an HTTP DELETE request to delete the details of a specific team within an organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response of this request is a JSON schema representing the data structure of the response. The schema will outline the properties and their data types that will be returned upon successful deletion of the team details.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","team","detail","{{team_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7895277-c492-4317-84df-782cc24176ff"}],"id":"0279b64f-ed55-48c4-bf9c-d91e7630c0c7","description":"<p>The Labii Team API provides a comprehensive set of features for managing teams, allowing users to effortlessly retrieve a list of teams, create new teams, access detailed information about specific teams, edit existing teams, and delete teams as needed. This ultimate toolkit simplifies team management and collaboration, enabling users to delve into the organizational structure with ease and efficiency.</p>\n","_postman_id":"0279b64f-ed55-48c4-bf9c-d91e7630c0c7","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Backup","item":[{"name":"Get Backup List","event":[{"listen":"test","script":{"id":"2370bb97-b374-48d8-befc-9ab1ae09f0f9","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.results).to.be.an('array');","","    responseData.results.forEach(function(result) {","        pm.expect(result.sid).to.be.a('string');","        pm.expect(result.name).to.be.a('string');","        pm.expect(result.status).to.exist;","        pm.expect(result.number_of_versions).to.be.a('number');","        pm.expect(result.number_of_files).to.be.a('number');","        pm.expect(result.file_size).to.exist;","        pm.expect(result.date_created).to.exist;","        pm.expect(result.date_expired).to.be.null;","        pm.expect(result.change_permission).to.be.true;","    });","});","","","pm.test(\"Date created is in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    responseData.results.forEach(function(result) {","        pm.expect(result.date_created).to.match(/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$/, \"Date created should be in valid date format\");","    });","});","","","pm.test(\"File size is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array');","    ","    responseData.results.forEach(function(result) {","        pm.expect(result.file_size).to.be.a('string').and.to.have.lengthOf.at.least(1, \"File size should not be empty\");","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"a1b909fd-d926-4bc3-98e7-995d601a98ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/backup/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h3 id=\"get-organization-backup-list\">Get Organization Backup List</h3>\n<p>This endpoint retrieves the list of backups for a specific organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p><code>page_size</code> (number): The number of items per page.</p>\n</li>\n<li><p><code>page_number</code> (number): The current page number.</p>\n</li>\n<li><p><code>page_count</code> (number): The total number of pages.</p>\n</li>\n<li><p><code>count</code> (number): The total count of backups.</p>\n</li>\n<li><p><code>next</code> (string): The URL for the next page of backups.</p>\n</li>\n<li><p><code>previous</code> (string): The URL for the previous page of backups.</p>\n</li>\n<li><p><code>add_permission</code> (boolean): Indicates if the user has permission to add backups.</p>\n</li>\n<li><p><code>results</code> (array): An array of backup objects with the following properties:</p>\n<ul>\n<li><p><code>sid</code> (string): The backup ID.</p>\n</li>\n<li><p><code>name</code> (string): The name of the backup.</p>\n</li>\n<li><p><code>status</code> (string): The status of the backup.</p>\n</li>\n<li><p><code>number_of_versions</code> (number): The number of versions for the backup.</p>\n</li>\n<li><p><code>number_of_files</code> (number): The number of files in the backup.</p>\n</li>\n<li><p><code>file_size</code> (string): The total size of the backup files.</p>\n</li>\n<li><p><code>date_created</code> (string): The date when the backup was created.</p>\n</li>\n<li><p><code>date_expired</code> (string): The date when the backup will expire, if applicable.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates if the user has permission to change the backup.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","backup","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"872d7f5a-0acd-413c-8299-1afe2f2e57e7","name":"Get Backup List","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/backup/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 09:08:27 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"567","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": true,\n    \"results\": [\n        {\n            \"sid\": \"TWZ30a40x68V16afkpu\",\n            \"name\": \"Test Backup\",\n            \"status\": \"Error\",\n            \"number_of_versions\": 0,\n            \"number_of_files\": 0,\n            \"file_size\": \"0 bytes\",\n            \"date_created\": \"2024-11-02T08:03:50.813390Z\",\n            \"date_expired\": null,\n            \"change_permission\": true\n        }\n    ]\n}"}],"_postman_id":"a1b909fd-d926-4bc3-98e7-995d601a98ba"},{"name":"Create Backup","event":[{"listen":"prerequest","script":{"id":"c3acf12a-be30-4336-9c26-44477d36ec4c","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);","","// update next week date","const nextWeekDate = js.getNextWeekDate();","pm.environment.set(\"nextWeekDate\", nextWeekDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"37e12800-b8d3-4ac3-9957-66075ae989a4","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"backup_sid\", jsonData.sid);","","","pm.test(\"Response status code is 201\", function () {","  pm.response.to.have.status(201);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for the fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.be.a('string');","    pm.expect(responseData.name).to.be.a('string');","    pm.expect(responseData.description).to.be.a('string');","    pm.expect(responseData.status).to.be.a('string');","    pm.expect(responseData.number_of_versions).to.be.a('number');","    pm.expect(responseData.number_of_files).to.be.a('number');","    pm.expect(responseData.price).to.be.a('string');","    pm.expect(responseData.file_size).to.be.a('string');","    pm.expect(responseData.download).to.be.a('string');","    pm.expect(responseData.date_expired).to.be.a('string');","    pm.expect(responseData.date_created).to.be.a('string');","    pm.expect(responseData.help_text).to.be.an('object');","    pm.expect(responseData.change_permission).to.be.a('boolean');","});","",""],"type":"text/javascript","packages":{}}}],"id":"f2d65329-f4f7-405a-abd5-aafb29c08afe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Backup {{currentDate}}\",\n    \"description\": \"Test backup created by postman\",\n    \"date_expired\": \"{{nextWeekDate}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/backup/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h3 id=\"create-organization-backup\">Create Organization Backup</h3>\n<p>This endpoint allows you to create a backup for a specific organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code> (string): The name of the backup.</p>\n</li>\n<li><p><code>description</code> (string): A description for the backup.</p>\n</li>\n<li><p><code>date_expired</code> (string): The expiration date for the backup.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"Test Backup {{currentDate}}\",\n    \"description\": \"Test backup created by postman\",\n    \"date_expired\": \"{{nextWeekDate}}\"\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p><code>sid</code> (string): The ID of the backup.</p>\n</li>\n<li><p><code>name</code> (string): The name of the backup.</p>\n</li>\n<li><p><code>description</code> (string): A description for the backup.</p>\n</li>\n<li><p><code>status</code> (string): The status of the backup.</p>\n</li>\n<li><p><code>number_of_versions</code> (integer): The number of versions of the backup.</p>\n</li>\n<li><p><code>number_of_files</code> (integer): The number of files in the backup.</p>\n</li>\n<li><p><code>price</code> (string): The price of the backup.</p>\n</li>\n<li><p><code>file_size</code> (string): The size of the backup files.</p>\n</li>\n<li><p><code>download</code> (string): The download link for the backup.</p>\n</li>\n<li><p><code>date_expired</code> (string): The expiration date for the backup.</p>\n</li>\n<li><p><code>date_created</code> (string): The date when the backup was created.</p>\n</li>\n<li><p><code>help_text</code> (object): Additional information about the backup.</p>\n<ul>\n<li><p><code>sid</code> (string): The ID of the help text.</p>\n</li>\n<li><p><code>status</code> (string): The status of the help text.</p>\n</li>\n<li><p><code>number_of_versions</code> (string): The number of versions in the help text.</p>\n</li>\n<li><p><code>number_of_files</code> (string): The number of files in the help text.</p>\n</li>\n<li><p><code>file_size</code> (string): The size of the files in the help text.</p>\n</li>\n<li><p><code>price</code> (string): The price of the help text.</p>\n</li>\n<li><p><code>date_expired</code> (string): The expiration date for the help text.</p>\n</li>\n<li><p><code>download</code> (string): The download link for the help text.</p>\n</li>\n</ul>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates whether permission to change the backup is allowed.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"sid\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"status\": \"\",\n    \"number_of_versions\": 0,\n    \"number_of_files\": 0,\n    \"price\": \"\",\n    \"file_size\": \"\",\n    \"download\": \"\",\n    \"date_expired\": \"\",\n    \"date_created\": \"\",\n    \"help_text\": {\n        \"sid\": \"\",\n        \"status\": \"\",\n        \"number_of_versions\": \"\",\n        \"number_of_files\": \"\",\n        \"file_size\": \"\",\n        \"price\": \"\",\n        \"date_expired\": \"\",\n        \"download\": \"\"\n    },\n    \"change_permission\": true\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","backup","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"c76c0872-e1e5-4c23-8837-624b21466b3d","name":"Create Backup","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Backup {{currentDate}}\",\n    \"date_expired\": \"{{nextWeekDate}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/backup/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 09:13:05 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1154","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"UX140a40x69W27bglqv\",\n    \"name\": \"Test Backup 2024-11-03\",\n    \"description\": \"\",\n    \"status\": \"In Progress\",\n    \"number_of_versions\": 0,\n    \"number_of_files\": 0,\n    \"price\": \"$0.0000\",\n    \"file_size\": \"0 bytes\",\n    \"download\": \"\",\n    \"date_expired\": \"2024-11-10\",\n    \"date_created\": \"2024-11-03T09:13:05.377171Z\",\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"status\": \"The status of the backup. A notification will be sent to you via email once the backup process has been completed. In case of error, please submit a support ticket. \",\n        \"number_of_versions\": \"In the backup, all versions of the records are included. The number indicated the number of versions. \",\n        \"number_of_files\": \"Describes how many uploaded files have been included in this backup. \",\n        \"file_size\": \"The size of the backup file in BP. Numbers indicate file sizes before zip. It might not match the value in the zip file you downloaded. \",\n        \"price\": \"The price to create the backup, in US Dollar. \",\n        \"date_expired\": \"The date on which to delete the backup. Leave it blank to keep it forever.\",\n        \"download\": \"The file path of the backup. When the backup is ready for download, a download button will appear.\"\n    },\n    \"change_permission\": true\n}"}],"_postman_id":"f2d65329-f4f7-405a-abd5-aafb29c08afe"},{"name":"Get Backup Detail","event":[{"listen":"test","script":{"id":"337cb7c0-7a5a-465c-b8b9-92b6d16bb192","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist.and.to.be.a('string');","    pm.expect(responseData.name).to.exist.and.to.be.a('string');","    pm.expect(responseData.description).to.exist.and.to.be.a('string');","    pm.expect(responseData.status).to.exist.and.to.be.a('string');","    pm.expect(responseData.number_of_versions).to.exist.and.to.be.a('number');","    pm.expect(responseData.number_of_files).to.exist.and.to.be.a('number');","    pm.expect(responseData.price).to.exist.and.to.be.a('string');","    pm.expect(responseData.file_size).to.exist.and.to.be.a('string');","    pm.expect(responseData.download).to.exist.and.to.be.a('string');","    pm.expect(responseData.date_expired).to.exist.and.to.be.a('string');","    pm.expect(responseData.date_created).to.exist.and.to.be.a('string');","    pm.expect(responseData.help_text).to.exist.and.to.be.an('object');","    pm.expect(responseData.change_permission).to.exist.and.to.be.true;","});",""],"type":"text/javascript","packages":{}}}],"id":"146091c8-29fa-4f31-b4bb-76cc2e3820c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/backup/detail/{{backup_sid}}/","description":"<h3 id=\"get-organizationsbackupdetailbackup_sid\">GET /organizations/backup/detail/{{backup_sid}}/</h3>\n<p>This endpoint retrieves detailed information about a specific backup within an organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this endpoint.</p>\n<ul>\n<li><code>backup_sid</code> (path parameter) : The unique identifier of the backup for which details are to be retrieved.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following properties:</p>\n<ul>\n<li><p><code>sid</code> : The unique identifier of the backup.</p>\n</li>\n<li><p><code>name</code> : The name of the backup.</p>\n</li>\n<li><p><code>description</code> : Description of the backup.</p>\n</li>\n<li><p><code>status</code> : Current status of the backup.</p>\n</li>\n<li><p><code>number_of_versions</code> : The number of versions available for the backup.</p>\n</li>\n<li><p><code>number_of_files</code> : The total number of files in the backup.</p>\n</li>\n<li><p><code>price</code> : The price of the backup.</p>\n</li>\n<li><p><code>file_size</code> : The size of the backup files.</p>\n</li>\n<li><p><code>download</code> : URL for downloading the backup.</p>\n</li>\n<li><p><code>date_expired</code> : Expiry date of the backup.</p>\n</li>\n<li><p><code>date_created</code> : Date when the backup was created.</p>\n</li>\n<li><p><code>help_text</code> : Additional help text with the following properties:</p>\n<ul>\n<li><p><code>sid</code> : The unique identifier of the help text.</p>\n</li>\n<li><p><code>status</code> : Status of the help text.</p>\n</li>\n<li><p><code>number_of_versions</code> : Number of versions in the help text.</p>\n</li>\n<li><p><code>number_of_files</code> : Number of files in the help text.</p>\n</li>\n<li><p><code>file_size</code> : Size of the files in the help text.</p>\n</li>\n<li><p><code>price</code> : Price of the help text.</p>\n</li>\n<li><p><code>date_expired</code> : Expiry date of the help text.</p>\n</li>\n<li><p><code>download</code> : URL for downloading the help text.</p>\n</li>\n</ul>\n</li>\n<li><p><code>change_permission</code> : Indicates whether the permission to change the backup is allowed (true/false).</p>\n</li>\n</ul>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sid\": {\"type\": \"string\"},\n    \"name\": {\"type\": \"string\"},\n    \"description\": {\"type\": \"string\"},\n    \"status\": {\"type\": \"string\"},\n    \"number_of_versions\": {\"type\": \"integer\"},\n    \"number_of_files\": {\"type\": \"integer\"},\n    \"price\": {\"type\": \"string\"},\n    \"file_size\": {\"type\": \"string\"},\n    \"download\": {\"type\": \"string\"},\n    \"date_expired\": {\"type\": \"string\"},\n    \"date_created\": {\"type\": \"string\"},\n    \"help_text\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\"type\": \"string\"},\n        \"status\": {\"type\": \"string\"},\n        \"number_of_versions\": {\"type\": \"string\"},\n        \"number_of_files\": {\"type\": \"string\"},\n        \"file_size\": {\"type\": \"string\"},\n        \"price\": {\"type\": \"string\"},\n        \"date_expired\": {\"type\": \"string\"},\n        \"download\": {\"type\": \"string\"}\n      }\n    },\n    \"change_permission\": {\"type\": \"boolean\"}\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","backup","detail","{{backup_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"5ac1724a-d259-479c-88f3-a51f3e2c4ecc","name":"Get Backup Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/backup/detail/{{backup_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 09:13:58 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1154","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"UX140a40x69W27bglqv\",\n    \"name\": \"Test Backup 2024-11-03\",\n    \"description\": \"\",\n    \"status\": \"In Progress\",\n    \"number_of_versions\": 0,\n    \"number_of_files\": 0,\n    \"price\": \"$0.0000\",\n    \"file_size\": \"0 bytes\",\n    \"download\": \"\",\n    \"date_expired\": \"2024-11-10\",\n    \"date_created\": \"2024-11-03T09:13:05.377171Z\",\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"status\": \"The status of the backup. A notification will be sent to you via email once the backup process has been completed. In case of error, please submit a support ticket. \",\n        \"number_of_versions\": \"In the backup, all versions of the records are included. The number indicated the number of versions. \",\n        \"number_of_files\": \"Describes how many uploaded files have been included in this backup. \",\n        \"file_size\": \"The size of the backup file in BP. Numbers indicate file sizes before zip. It might not match the value in the zip file you downloaded. \",\n        \"price\": \"The price to create the backup, in US Dollar. \",\n        \"date_expired\": \"The date on which to delete the backup. Leave it blank to keep it forever.\",\n        \"download\": \"The file path of the backup. When the backup is ready for download, a download button will appear.\"\n    },\n    \"change_permission\": true\n}"}],"_postman_id":"146091c8-29fa-4f31-b4bb-76cc2e3820c9"},{"name":"Edit Backup","event":[{"listen":"prerequest","script":{"id":"c07853c7-5e0f-4159-8eb2-866259190c64","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"e537e083-8cb4-4780-9761-fe927ea7b166","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist.and.to.be.a('string');","    pm.expect(responseData.name).to.exist.and.to.be.a('string');","    pm.expect(responseData.description).to.exist.and.to.be.a('string');","    pm.expect(responseData.status).to.exist.and.to.be.a('string');","    pm.expect(responseData.number_of_versions).to.exist.and.to.be.a('number');","    pm.expect(responseData.number_of_files).to.exist.and.to.be.a('number');","    pm.expect(responseData.price).to.exist.and.to.be.a('string');","    pm.expect(responseData.file_size).to.exist.and.to.be.a('string');","    pm.expect(responseData.download).to.exist.and.to.be.a('string');","    pm.expect(responseData.date_expired).to.exist.and.to.be.a('string');","    pm.expect(responseData.date_created).to.exist.and.to.be.a('string');","    pm.expect(responseData.help_text).to.exist.and.to.be.an('object');","    pm.expect(responseData.change_permission).to.exist.and.to.be.a('boolean');","});",""],"type":"text/javascript","packages":{}}}],"id":"0f35079d-d0b4-4f61-a64f-ee4662e10d71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Backup {{currentDate}}\",\n    \"description\": \"Test backup edited by postman\",\n    \"date_expired\": \"{{currentDate}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/backup/detail/{{backup_sid}}/","description":"<h3 id=\"patch-organizationsbackupdetailbackup_sid\">PATCH /organizations/backup/detail/{{backup_sid}}/</h3>\n<p>This endpoint is used to update the details of a specific backup in an organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>name (string, required): The updated name of the backup.</p>\n</li>\n<li><p>description (string, required): The updated description of the backup.</p>\n</li>\n<li><p>date_expired (string, required): The updated expiration date of the backup.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request will be a JSON object with the following properties:</p>\n<ul>\n<li><p>sid (string): The unique identifier of the backup.</p>\n</li>\n<li><p>name (string): The name of the backup.</p>\n</li>\n<li><p>description (string): The description of the backup.</p>\n</li>\n<li><p>status (string): The status of the backup.</p>\n</li>\n<li><p>number_of_versions (integer): The number of versions of the backup.</p>\n</li>\n<li><p>number_of_files (integer): The number of files in the backup.</p>\n</li>\n<li><p>price (string): The price of the backup.</p>\n</li>\n<li><p>file_size (string): The size of the backup files.</p>\n</li>\n<li><p>download (string): The download link for the backup.</p>\n</li>\n<li><p>date_expired (string): The expiration date of the backup.</p>\n</li>\n<li><p>date_created (string): The creation date of the backup.</p>\n</li>\n<li><p>help_text (object): Additional help text related to the backup, with properties sid, status, number_of_versions, number_of_files, file_size, price, date_expired, and download.</p>\n</li>\n<li><p>change_permission (boolean): Indicates whether the permission to change the backup is granted.</p>\n</li>\n</ul>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"sid\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"status\": \"\",\n    \"number_of_versions\": 0,\n    \"number_of_files\": 0,\n    \"price\": \"\",\n    \"file_size\": \"\",\n    \"download\": \"\",\n    \"date_expired\": \"\",\n    \"date_created\": \"\",\n    \"help_text\": {\n        \"sid\": \"\",\n        \"status\": \"\",\n        \"number_of_versions\": \"\",\n        \"number_of_files\": \"\",\n        \"file_size\": \"\",\n        \"price\": \"\",\n        \"date_expired\": \"\",\n        \"download\": \"\"\n    },\n    \"change_permission\": true\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","backup","detail","{{backup_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"9c3755b0-4443-47e2-906c-7053a6bc55e5","name":"Edit Backup","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Backup {{currentDate}}\",\n    \"description\": \"Test backup edited by postman\",\n    \"date_expired\": \"{{currentDate}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/backup/detail/{{backup_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 09:17:09 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1183","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"UX140a40x69W27bglqv\",\n    \"name\": \"Test Backup 2024-11-03\",\n    \"description\": \"Test backup edited by postman\",\n    \"status\": \"In Progress\",\n    \"number_of_versions\": 0,\n    \"number_of_files\": 0,\n    \"price\": \"$0.0000\",\n    \"file_size\": \"0 bytes\",\n    \"download\": \"\",\n    \"date_expired\": \"2024-11-03\",\n    \"date_created\": \"2024-11-03T09:13:05.377171Z\",\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"status\": \"The status of the backup. A notification will be sent to you via email once the backup process has been completed. In case of error, please submit a support ticket. \",\n        \"number_of_versions\": \"In the backup, all versions of the records are included. The number indicated the number of versions. \",\n        \"number_of_files\": \"Describes how many uploaded files have been included in this backup. \",\n        \"file_size\": \"The size of the backup file in BP. Numbers indicate file sizes before zip. It might not match the value in the zip file you downloaded. \",\n        \"price\": \"The price to create the backup, in US Dollar. \",\n        \"date_expired\": \"The date on which to delete the backup. Leave it blank to keep it forever.\",\n        \"download\": \"The file path of the backup. When the backup is ready for download, a download button will appear.\"\n    },\n    \"change_permission\": true\n}"}],"_postman_id":"0f35079d-d0b4-4f61-a64f-ee4662e10d71"},{"name":"Delete Backup","event":[{"listen":"test","script":{"id":"285f8b1b-9f01-4124-b13e-e5a6b4d858b4","exec":["pm.test(\"Response status code is 204\", function () {","  pm.response.to.have.status(204);","});","","","pm.test(\"Response time is less than 500ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});","","","pm.test(\"Validate the response schema for the fields present in the deleted organization backup detail\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('id');","    pm.expect(responseData).to.have.property('name');","    pm.expect(responseData).to.have.property('status');","    pm.expect(responseData).to.have.property('created_at');","    pm.expect(responseData).to.have.property('updated_at');","});",""],"type":"text/javascript","packages":{}}}],"id":"5b644102-2e05-4baf-b52c-a3f30088bb95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://www.labii.dev/organizations/backup/detail/{{backup_sid}}/","description":"<p>The HTTP DELETE request is used to delete a specific backup detail belonging to an organization. The <code>backup_sid</code> path parameter in the URL specifies the unique identifier of the backup detail to be deleted.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response of this request is a JSON schema representing the structure of the response data. The schema will outline the properties and their data types that can be expected in the response upon successful deletion of the backup detail.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","backup","detail","{{backup_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b644102-2e05-4baf-b52c-a3f30088bb95"}],"id":"f8d9bc56-fb60-47a1-bea9-1faa5e8c16d6","description":"<p>The Labii Backup API offers robust functionality for managing data backups, allowing users to create backups of their data, retrieve a list of existing backups, edit backup configurations, and delete backups as required. This API ensures that users can maintain data integrity and security with ease, providing a seamless way to safeguard important information and streamline backup management processes.</p>\n","_postman_id":"f8d9bc56-fb60-47a1-bea9-1faa5e8c16d6","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Certification","item":[{"name":"Get Certification List","event":[{"listen":"test","script":{"id":"65dcb2cc-08e7-4f3a-bd69-52a677d17779","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is in an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for the fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.page_size).to.exist.and.to.be.a('number');","    pm.expect(responseData.page_number).to.exist.and.to.be.a('number');","    pm.expect(responseData.page_count).to.exist.and.to.be.a('number');","    pm.expect(responseData.count).to.exist.and.to.be.a('number');","    pm.expect(responseData.next).to.exist.and.to.satisfy((value) => value === null || typeof value === 'string');","    pm.expect(responseData.previous).to.exist.and.to.satisfy((value) => value === null || typeof value === 'string');","    pm.expect(responseData.add_permission).to.exist.and.to.be.a('boolean');","    pm.expect(responseData.results).to.exist.and.to.be.an('array');","});","","","pm.test(\"Results array is present and contains the expected number of elements\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.have.property('results').that.is.an('array').and.to.have.lengthOf(responseData.count);","});","","","pm.test(\"Each 'results' object has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array');","    responseData.results.forEach(function(result) {","        pm.expect(result).to.have.property('sid').that.is.a('string');","        pm.expect(result).to.have.property('name').that.is.a('string');","        pm.expect(result).to.have.property('people').that.is.an('object');","        pm.expect(result).to.have.property('date_initiated').that.is.a('string');","        pm.expect(result).to.have.property('date_expired').that.is.a('string');","        pm.expect(result).to.have.property('is_archived').that.is.a('boolean');","        pm.expect(result).to.have.property('change_permission').that.is.a('boolean');","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"89aeffcf-6921-47a3-b5e5-8189fca75cda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/certification/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h3 id=\"get-certification-list-for-organization\">Get Certification List for Organization</h3>\n<p>This endpoint retrieves a list of certifications for a specific organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/organizations/certification/list/organization/{{organization_sid_test_administrator}}/list/</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will contain the following fields:</p>\n<ul>\n<li><p><code>page_size</code> (number): The number of items per page</p>\n</li>\n<li><p><code>page_number</code> (number): The current page number</p>\n</li>\n<li><p><code>page_count</code> (number): The total number of pages</p>\n</li>\n<li><p><code>count</code> (number): The total count of certifications</p>\n</li>\n<li><p><code>next</code> (string): Link to the next page of certifications</p>\n</li>\n<li><p><code>previous</code> (string): Link to the previous page of certifications</p>\n</li>\n<li><p><code>add_permission</code> (boolean): Indicates if the user has permission to add certifications</p>\n</li>\n<li><p><code>results</code> (array): An array of certification objects, each containing the following fields:</p>\n<ul>\n<li><p><code>sid</code> (string): The certification ID</p>\n</li>\n<li><p><code>name</code> (string): The name of the certification</p>\n</li>\n<li><p><code>people</code> (object): Details of the people associated with the certification</p>\n<ul>\n<li><p><code>sid</code> (string): The person's ID</p>\n</li>\n<li><p><code>name</code> (string): The person's name</p>\n</li>\n</ul>\n</li>\n<li><p><code>date_initiated</code> (string): The date when the certification was initiated</p>\n</li>\n<li><p><code>date_expired</code> (string): The expiration date of the certification</p>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates if the certification is archived</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates if the user has permission to change the certification</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","certification","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"41c453d2-6cfa-4284-a452-11dd98f3b5b7","name":"Get Certification List","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/certification/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 09:29:04 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"351","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": true,\n    \"results\": [\n        {\n            \"sid\": \"ehkn0a40x1glqvAFKP\",\n            \"name\": \"Test Certification 2024-11-03\",\n            \"people\": {\n                \"sid\": \"GJMP0a40x31c3INSX38ch\",\n                \"name\": \"Test Labii\"\n            },\n            \"date_initiated\": \"2024-11-03\",\n            \"date_expired\": \"2024-11-10\",\n            \"is_archived\": false,\n            \"change_permission\": true\n        }\n    ]\n}"}],"_postman_id":"89aeffcf-6921-47a3-b5e5-8189fca75cda"},{"name":"Create Certification","event":[{"listen":"prerequest","script":{"id":"81f2afc9-5d6c-4419-8501-987964a88d46","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);","","// update next week date","const nextWeekDate = js.getNextWeekDate();","pm.environment.set(\"nextWeekDate\", nextWeekDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"ddcfcc4d-6dff-4d91-b8f4-3e296f19917a","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"certification_sid\", jsonData.sid);","","","pm.test(\"Response status code is 201\", function () {","  pm.response.to.have.status(201);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the schema of the response\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.be.a('string');","    pm.expect(responseData.name).to.be.a('string');","    pm.expect(responseData.description).to.be.a('string');","    pm.expect(responseData.people).to.be.an('object');","    pm.expect(responseData.people.sid).to.be.a('string');","    pm.expect(responseData.people.name).to.be.a('string');","    pm.expect(responseData.date_initiated).to.be.a('string');","    pm.expect(responseData.date_expired).to.be.a('string');","    pm.expect(responseData.is_archived).to.be.a('boolean');","    pm.expect(responseData.change_permission).to.be.a('boolean');","    pm.expect(responseData.updated_by).to.be.an('object');","    pm.expect(responseData.updated_by.sid).to.be.a('string');","    pm.expect(responseData.updated_by.name).to.be.a('string');","    pm.expect(responseData.date_updated).to.be.a('string');","    pm.expect(responseData.date_created).to.be.a('string');","    pm.expect(responseData.help_text).to.be.an('object');","    pm.expect(responseData.help_text.sid).to.be.a('string');","    pm.expect(responseData.help_text.name).to.be.a('string');","    pm.expect(responseData.help_text.date_initiated).to.be.a('string');","    pm.expect(responseData.help_text.date_expired).to.be.a('string');","    pm.expect(responseData.help_text.is_archived).to.be.a('string');","});","","","pm.test(\"All required fields are present in the response\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.sid).to.exist;","  pm.expect(responseData.name).to.exist;","  pm.expect(responseData.description).to.exist;","  pm.expect(responseData.people).to.exist;","  pm.expect(responseData.date_initiated).to.exist;","  pm.expect(responseData.date_expired).to.exist;","  pm.expect(responseData.is_archived).to.exist;","  pm.expect(responseData.change_permission).to.exist;","  pm.expect(responseData.updated_by).to.exist;","  pm.expect(responseData.date_updated).to.exist;","  pm.expect(responseData.date_created).to.exist;","  pm.expect(responseData.help_text).to.exist;","});","","","pm.test(\"Validate the people, updated_by, and help_text objects within the response\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.people).to.exist.and.to.be.an('object');","    pm.expect(responseData.updated_by).to.exist.and.to.be.an('object');","    pm.expect(responseData.help_text).to.exist.and.to.be.an('object');","});","",""],"type":"text/javascript","packages":{}}}],"id":"ead80719-ef65-4c86-9660-8f3e3fe7632f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Certification {{currentDate}}\",\n    \"description\": \"Test certification created by postman\",\n    \"people\": {\"sid\": \"{{people_sid_test_administrator}}\", \"name\": \"Test Labii\"},\n    \"date_expired\": \"{{nextWeekDate}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/certification/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h3 id=\"post-organizationscertificationlistorganizationorganization_sid_test_administratorlist\">POST /organizations/certification/list/organization/{{organization_sid_test_administrator}}/list/</h3>\n<p>This endpoint allows the creation of a new certification within the specified organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code> (string): The name of the test certification.</p>\n</li>\n<li><p><code>description</code> (string): Description of the test certification.</p>\n</li>\n<li><p><code>people</code> (object):</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the person associated with the certification.</p>\n</li>\n<li><p><code>name</code> (string): The name of the person associated with the certification.</p>\n</li>\n</ul>\n</li>\n<li><p><code>date_expired</code> (string): The expiration date of the certification.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be in JSON format and will include the following fields:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the certification.</p>\n</li>\n<li><p><code>name</code> (string): The name of the certification.</p>\n</li>\n<li><p><code>description</code> (string): Description of the certification.</p>\n</li>\n<li><p><code>people</code> (object):</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the person associated with the certification.</p>\n</li>\n<li><p><code>name</code> (string): The name of the person associated with the certification.</p>\n</li>\n</ul>\n</li>\n<li><p><code>date_initiated</code> (string): The date when the certification was initiated.</p>\n</li>\n<li><p><code>date_expired</code> (string): The expiration date of the certification.</p>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates whether the certification is archived.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates the permission to change the certification.</p>\n</li>\n<li><p><code>updated_by</code> (object):</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the user who updated the certification.</p>\n</li>\n<li><p><code>name</code> (string): The name of the user who updated the certification.</p>\n</li>\n</ul>\n</li>\n<li><p><code>date_updated</code> (string): The date when the certification was last updated.</p>\n</li>\n<li><p><code>date_created</code> (string): The date when the certification was created.</p>\n</li>\n<li><p><code>help_text</code> (object):</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the help text associated with the certification.</p>\n</li>\n<li><p><code>name</code> (string): The name of the help text associated with the certification.</p>\n</li>\n<li><p><code>date_initiated</code> (string): The date when the help text was initiated.</p>\n</li>\n<li><p><code>date_expired</code> (string): The expiration date of the help text.</p>\n</li>\n<li><p><code>is_archived</code> (string): Indicates whether the help text is archived.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"people\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"date_initiated\": \"\",\n  \"date_expired\": \"\",\n  \"is_archived\": true,\n  \"change_permission\": true,\n  \"updated_by\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"date_updated\": \"\",\n  \"date_created\": \"\",\n  \"help_text\": {\n    \"sid\": \"\",\n    \"name\": \"\",\n    \"date_initiated\": \"\",\n    \"date_expired\": \"\",\n    \"is_archived\": \"\"\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","certification","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"2b1579f1-1a3c-4213-a8c2-be6215548d72","name":"Create Certification","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Certification {{currentDate}}\",\n    \"description\": \"Test certification created by postman\",\n    \"people\": {\"sid\": \"{{people_sid_test_administrator}}\", \"name\": \"Test Labii\"},\n    \"date_expired\": \"{{nextWeekDate}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/certification/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 09:27:41 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"940","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"ehkn0a40x1glqvAFKP\",\n    \"name\": \"Test Certification 2024-11-03\",\n    \"description\": \"Test certification created by postman\",\n    \"people\": {\n        \"sid\": \"GJMP0a40x31c3INSX38ch\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_initiated\": \"2024-11-03\",\n    \"date_expired\": \"2024-11-10\",\n    \"is_archived\": false,\n    \"change_permission\": true,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T09:27:40.977000Z\",\n    \"date_created\": \"2024-11-03T09:27:40.977008Z\",\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"name\": \"Ensure that the spelling of the certification name is accurate, as it will be utilized to control the user's access, limiting it to individuals possessing the same type of certification.\",\n        \"date_initiated\": \"The date of certification initiation. Default to today.\",\n        \"date_expired\": \"The expiration date of the certification. Expired certifications will be automatically archived.\",\n        \"is_archived\": \"If checked, all members' access will be blocked.\"\n    }\n}"}],"_postman_id":"ead80719-ef65-4c86-9660-8f3e3fe7632f"},{"name":"Get Certification Detail","event":[{"listen":"test","script":{"id":"99a76bee-8212-47a5-9e76-017a3e3a3c4b","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the schema for the response\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('sid').that.is.a('string');","    pm.expect(responseData).to.have.property('name').that.is.a('string');","    pm.expect(responseData).to.have.property('description').that.is.a('string');","    pm.expect(responseData).to.have.property('people').that.is.an('object');","    pm.expect(responseData.people).to.have.property('sid').that.is.a('string');","    pm.expect(responseData.people).to.have.property('name').that.is.a('string');","    pm.expect(responseData).to.have.property('date_initiated').that.is.a('string');","    pm.expect(responseData).to.have.property('date_expired').that.is.a('string');","    pm.expect(responseData).to.have.property('is_archived').that.is.a('boolean');","    pm.expect(responseData).to.have.property('change_permission').that.is.a('boolean');","    pm.expect(responseData).to.have.property('updated_by').that.is.an('object');","    pm.expect(responseData.updated_by).to.have.property('sid').that.is.a('string');","    pm.expect(responseData.updated_by).to.have.property('name').that.is.a('string');","    pm.expect(responseData).to.have.property('date_updated').that.is.a('string');","    pm.expect(responseData).to.have.property('date_created').that.is.a('string');","    pm.expect(responseData).to.have.property('help_text').that.is.an('object');","    pm.expect(responseData.help_text).to.have.property('sid').that.is.a('string');","    pm.expect(responseData.help_text).to.have.property('name').that.is.a('string');","    pm.expect(responseData.help_text).to.have.property('date_initiated').that.is.a('string');","    pm.expect(responseData.help_text).to.have.property('date_expired').that.is.a('string');","    pm.expect(responseData.help_text).to.have.property('is_archived').that.is.a('string');","});","","","pm.test(\"Ensure the required fields are present in the response\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.name).to.exist;","    pm.expect(responseData.description).to.exist;","    pm.expect(responseData.people).to.exist;","    pm.expect(responseData.date_initiated).to.exist;","    pm.expect(responseData.date_expired).to.exist;","    pm.expect(responseData.is_archived).to.exist;","    pm.expect(responseData.change_permission).to.exist;","    pm.expect(responseData.updated_by).to.exist;","    pm.expect(responseData.date_updated).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.help_text).to.exist;","});","","","pm.test(\"Date fields are in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.date_initiated).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","    pm.expect(responseData.date_expired).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","    pm.expect(responseData.date_updated).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","    pm.expect(responseData.date_created).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","});",""],"type":"text/javascript","packages":{}}}],"id":"b0296c28-07d4-454f-97da-a73d810d1bc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/certification/detail/{{certification_sid}}/","description":"<h3 id=\"get-certification-detail\">Get Certification Detail</h3>\n<p>This endpoint retrieves the details of a specific certification within an organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/organizations/certification/detail/{{certification_sid}}/</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will include the following fields:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the certification.</p>\n</li>\n<li><p><code>name</code> (string): The name of the certification.</p>\n</li>\n<li><p><code>description</code> (string): The description of the certification.</p>\n</li>\n<li><p><code>people</code> (object): Details of the people associated with the certification, including their unique identifier and name.</p>\n</li>\n<li><p><code>date_initiated</code> (string): The date when the certification was initiated.</p>\n</li>\n<li><p><code>date_expired</code> (string): The expiration date of the certification.</p>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates if the certification is archived.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates whether permission to change the certification is granted.</p>\n</li>\n<li><p><code>updated_by</code> (object): Details of the user who last updated the certification, including their unique identifier and name.</p>\n</li>\n<li><p><code>date_updated</code> (string): The date when the certification was last updated.</p>\n</li>\n<li><p><code>date_created</code> (string): The date when the certification was created.</p>\n</li>\n<li><p><code>help_text</code> (object): Additional help text related to the certification, including its unique identifier, name, initiation date, expiration date, and archived status.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","certification","detail","{{certification_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"43f19d83-0c26-49db-ac38-79ca6cf3e07d","name":"Get Certification Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/organizations/certification/detail/{{certification_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 09:28:49 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"940","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"ehkn0a40x1glqvAFKP\",\n    \"name\": \"Test Certification 2024-11-03\",\n    \"description\": \"Test certification created by postman\",\n    \"people\": {\n        \"sid\": \"GJMP0a40x31c3INSX38ch\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_initiated\": \"2024-11-03\",\n    \"date_expired\": \"2024-11-10\",\n    \"is_archived\": false,\n    \"change_permission\": true,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T09:27:40.977000Z\",\n    \"date_created\": \"2024-11-03T09:27:40.977008Z\",\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"name\": \"Ensure that the spelling of the certification name is accurate, as it will be utilized to control the user's access, limiting it to individuals possessing the same type of certification.\",\n        \"date_initiated\": \"The date of certification initiation. Default to today.\",\n        \"date_expired\": \"The expiration date of the certification. Expired certifications will be automatically archived.\",\n        \"is_archived\": \"If checked, all members' access will be blocked.\"\n    }\n}"}],"_postman_id":"b0296c28-07d4-454f-97da-a73d810d1bc1"},{"name":"Edit Certification","event":[{"listen":"test","script":{"id":"e3842198-6b94-41c8-9ab5-70f11dcf91b0","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Schema validation for response fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.be.a('string');","    pm.expect(responseData.name).to.be.a('string');","    pm.expect(responseData.description).to.be.a('string');","    pm.expect(responseData.people).to.be.an('object');","    pm.expect(responseData.date_initiated).to.be.a('string');","    pm.expect(responseData.date_expired).to.be.a('string');","    pm.expect(responseData.is_archived).to.be.a('boolean');","    pm.expect(responseData.change_permission).to.be.a('boolean');","    pm.expect(responseData.updated_by).to.be.an('object');","    pm.expect(responseData.date_updated).to.be.a('string');","    pm.expect(responseData.date_created).to.be.a('string');","    pm.expect(responseData.help_text).to.be.an('object');","});",""],"type":"text/javascript","packages":{}}}],"id":"11479768-5eb2-4c1a-b865-979c96fc3dcf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Certification {{currentDate}}\",\n    \"description\": \"Test certification edited by postman\",\n    \"date_expired\": \"{{nextWeekDate}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/certification/detail/{{certification_sid}}/","description":"<h3 id=\"update-organization-certification-detail\">Update Organization Certification Detail</h3>\n<p>This endpoint allows the user to update the details of a specific certification within an organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code> (string): The updated name of the certification.</p>\n</li>\n<li><p><code>description</code> (string): The updated description of the certification.</p>\n</li>\n<li><p><code>date_expired</code> (string): The updated expiration date of the certification.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"name\": \"Test Certification Updated\",\n  \"description\": \"Test certification edited by user\",\n  \"date_expired\": \"2023-12-31\"\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the certification.</p>\n</li>\n<li><p><code>name</code> (string): The name of the certification.</p>\n</li>\n<li><p><code>description</code> (string): The description of the certification.</p>\n</li>\n<li><p><code>people</code> (object): Details of the people associated with the certification.</p>\n</li>\n<li><p><code>date_initiated</code> (string): The date when the certification was initiated.</p>\n</li>\n<li><p><code>date_expired</code> (string): The expiration date of the certification.</p>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates if the certification is archived.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates the permission to change the certification.</p>\n</li>\n<li><p><code>updated_by</code> (object): Details of the user who updated the certification.</p>\n</li>\n<li><p><code>date_updated</code> (string): The date when the certification was last updated.</p>\n</li>\n<li><p><code>date_created</code> (string): The date when the certification was created.</p>\n</li>\n<li><p><code>help_text</code> (object): Additional help text for the certification.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"abc123\",\n  \"name\": \"Test Certification Updated\",\n  \"description\": \"Updated description\",\n  \"people\": {\n    \"sid\": \"xyz789\",\n    \"name\": \"John Doe\"\n  },\n  \"date_initiated\": \"2022-01-01\",\n  \"date_expired\": \"2023-12-31\",\n  \"is_archived\": false,\n  \"change_permission\": true,\n  \"updated_by\": {\n    \"sid\": \"user123\",\n    \"name\": \"Jane Smith\"\n  },\n  \"date_updated\": \"2022-09-15\",\n  \"date_created\": \"2021-01-01\",\n  \"help_text\": {\n    \"sid\": \"def456\",\n    \"name\": \"Certification Help\",\n    \"date_initiated\": \"2021-01-01\",\n    \"date_expired\": \"2023-12-31\",\n    \"is_archived\": false\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","certification","detail","{{certification_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"bbe7f99e-dedb-46ad-821a-28d855e45e62","name":"Edit Certification","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Certification {{currentDate}}\",\n    \"description\": \"Test certification edited by postman\",\n    \"date_expired\": \"{{nextWeekDate}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/certification/detail/{{certification_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 09:31:39 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"939","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"ehkn0a40x1glqvAFKP\",\n    \"name\": \"Test Certification 2024-11-03\",\n    \"description\": \"Test certification edited by postman\",\n    \"people\": {\n        \"sid\": \"GJMP0a40x31c3INSX38ch\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_initiated\": \"2024-11-03\",\n    \"date_expired\": \"2024-11-10\",\n    \"is_archived\": false,\n    \"change_permission\": true,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T09:27:40.977000Z\",\n    \"date_created\": \"2024-11-03T09:27:40.977008Z\",\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"name\": \"Ensure that the spelling of the certification name is accurate, as it will be utilized to control the user's access, limiting it to individuals possessing the same type of certification.\",\n        \"date_initiated\": \"The date of certification initiation. Default to today.\",\n        \"date_expired\": \"The expiration date of the certification. Expired certifications will be automatically archived.\",\n        \"is_archived\": \"If checked, all members' access will be blocked.\"\n    }\n}"}],"_postman_id":"11479768-5eb2-4c1a-b865-979c96fc3dcf"}],"id":"2405c0c0-2c9d-44e2-8021-26dc099124e7","description":"<p>The Labii Certification API is designed to empower organizations by enabling them to manage certifications effectively. Users can retrieve a list of available certifications, create new certifications, access detailed information about specific certifications, and edit existing ones. This API is crucial for companies that need to ensure that only trained users have access to certain tables or applications, enhancing security and compliance while streamlining the certification management process.</p>\n","_postman_id":"2405c0c0-2c9d-44e2-8021-26dc099124e7","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Project","item":[{"name":"Get Project List","event":[{"listen":"test","script":{"id":"545f3ee7-7ab8-472a-a797-a1762cb8650c","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 500ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});","","","pm.test(\"Validate the response schema for fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.page_size).to.exist.and.to.be.a('number');","    pm.expect(responseData.page_number).to.exist.and.to.be.a('number');","    pm.expect(responseData.page_count).to.exist.and.to.be.a('number');","    pm.expect(responseData.count).to.exist.and.to.be.a('number');","    pm.expect(responseData.next).to.exist;","    pm.expect(responseData.previous).to.exist;","    pm.expect(responseData.add_permission).to.exist.and.to.be.a('boolean');","    pm.expect(responseData.results).to.exist.and.to.be.an('array');","});","","","pm.test(\"Results array is present and contains the expected number of elements\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.results).to.be.an('array');","    pm.expect(responseData.results).to.have.lengthOf(responseData.count);","});","","","pm.test(\"Validate properties in results\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array').that.is.not.empty;","    ","    responseData.results.forEach(function(result) {","        pm.expect(result.sid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"sid should be a non-empty string\");","        pm.expect(result.name).to.be.a('string').and.to.have.lengthOf.at.least(1, \"name should be a non-empty string\");","        pm.expect(result.order).to.be.a('number').and.to.satisfy((val) => val >= 0, \"order should be a non-negative integer\");","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"4efdd1a7-026b-4e3d-8973-b29daf52d3af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/projects/project/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h3 id=\"get-projectsprojectlistorganizationorganization_sid_test_administratorlist\">GET /projects/project/list/organization/{{organization_sid_test_administrator}}/list/</h3>\n<p>This endpoint retrieves a list of projects within the specified organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this endpoint.</p>\n<ul>\n<li><code>organization_sid_test_administrator</code> (path parameter) - The unique identifier of the organization.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following properties:</p>\n<ul>\n<li><p><code>page_size</code> (number) - The number of results per page.</p>\n</li>\n<li><p><code>page_number</code> (number) - The current page number.</p>\n</li>\n<li><p><code>page_count</code> (number) - The total number of pages.</p>\n</li>\n<li><p><code>count</code> (number) - The total count of projects.</p>\n</li>\n<li><p><code>next</code> (string) - The URL for the next page of results, if available.</p>\n</li>\n<li><p><code>previous</code> (string) - The URL for the previous page of results, if available.</p>\n</li>\n<li><p><code>add_permission</code> (boolean) - Indicates if the user has permission to add projects.</p>\n</li>\n<li><p><code>results</code> (array) - An array of project objects with the following properties:</p>\n<ul>\n<li><p><code>sid</code> (string) - The unique identifier of the project.</p>\n</li>\n<li><p><code>name</code> (string) - The name of the project.</p>\n</li>\n<li><p><code>parent</code> (string) - The parent project, if applicable.</p>\n</li>\n<li><p><code>description</code> (string) - The description of the project.</p>\n</li>\n<li><p><code>date_start</code> (string) - The start date of the project.</p>\n</li>\n<li><p><code>date_end</code> (string) - The end date of the project, if applicable.</p>\n</li>\n<li><p><code>order</code> (number) - The order of the project.</p>\n</li>\n<li><p><code>color</code> (string) - The color code associated with the project.</p>\n</li>\n<li><p><code>is_archived</code> (boolean) - Indicates if the project is archived.</p>\n</li>\n<li><p><code>change_permission</code> (boolean) - Indicates if the user has permission to change the project.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"page_size\": { \"type\": \"number\" },\n    \"page_number\": { \"type\": \"number\" },\n    \"page_count\": { \"type\": \"number\" },\n    \"count\": { \"type\": \"number\" },\n    \"next\": { \"type\": [\"string\", \"null\"] },\n    \"previous\": { \"type\": [\"string\", \"null\"] },\n    \"add_permission\": { \"type\": \"boolean\" },\n    \"results\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"sid\": { \"type\": \"string\" },\n          \"name\": { \"type\": \"string\" },\n          \"parent\": { \"type\": [\"string\", \"null\"] },\n          \"description\": { \"type\": \"string\" },\n          \"date_start\": { \"type\": \"string\" },\n          \"date_end\": { \"type\": [\"string\", \"null\"] },\n          \"order\": { \"type\": \"number\" },\n          \"color\": { \"type\": [\"string\", \"null\"] },\n          \"is_archived\": { \"type\": \"boolean\" },\n          \"change_permission\": { \"type\": \"boolean\" }\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["projects","project","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"2f43ba06-e1c7-4fcf-8896-cda7d86a970f","name":"Get Project List","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/projects/project/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 20:53:55 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"684","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": true,\n    \"results\": [\n        {\n            \"sid\": \"hknq0a40x2cd2jotyDINS\",\n            \"name\": \"Sample Project\",\n            \"parent\": null,\n            \"description\": \"This is a sample project created automatically. Please archive it on your production data.\",\n            \"date_start\": \"2024-11-02\",\n            \"date_end\": null,\n            \"order\": 1,\n            \"color\": null,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"knqt0a40x2cd5mrwBGLQV\",\n            \"name\": \"Child Project\",\n            \"parent\": {\n                \"sid\": \"hknq0a40x2cd2jotyDINS\",\n                \"name\": \"Sample Project\"\n            },\n            \"description\": \"Child project of sample project\",\n            \"date_start\": \"2024-11-02\",\n            \"date_end\": null,\n            \"order\": 2,\n            \"color\": null,\n            \"is_archived\": false,\n            \"change_permission\": true\n        }\n    ]\n}"}],"_postman_id":"4efdd1a7-026b-4e3d-8973-b29daf52d3af"},{"name":"Create Project","event":[{"listen":"prerequest","script":{"id":"41d06cc7-b037-4281-9ca2-a326f5dc891d","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);","","// update next week date","const nextWeekDate = js.getNextWeekDate();","pm.environment.set(\"nextWeekDate\", nextWeekDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"c7780bc9-ea9b-44b0-9020-e0bc6758fe11","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"project_sid\", jsonData.sid);","","","pm.test(\"Response status code is 201\", function () {","  pm.response.to.have.status(201);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the schema of the response\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.be.a('string');","    pm.expect(responseData.name).to.be.a('string');","    pm.expect(responseData.parent).to.be.oneOf([null, '']);","    pm.expect(responseData.description).to.be.a('string');","    pm.expect(responseData.date_start).to.be.a('string');","    pm.expect(responseData.date_end).to.be.a('string');","    pm.expect(responseData.order).to.be.a('number');","    pm.expect(responseData.color).to.be.a('string');","    pm.expect(responseData.open_to_organization).to.be.a('boolean');","    pm.expect(responseData.open_to_public).to.be.a('boolean');","    pm.expect(responseData.metadata).to.be.an('array');","    pm.expect(responseData.is_archived).to.be.a('boolean');","    pm.expect(responseData.updated_by).to.be.an('object');","    pm.expect(responseData.updated_by.sid).to.be.a('string');","    pm.expect(responseData.updated_by.name).to.be.a('string');","    pm.expect(responseData.date_updated).to.be.a('string');","    pm.expect(responseData.date_created).to.be.a('string');","    pm.expect(responseData.change_permission).to.be.a('boolean');","    pm.expect(responseData.help_text).to.be.an('object');","    pm.expect(responseData.help_text.sid).to.be.a('string');","    pm.expect(responseData.help_text.parent).to.be.a('string');","    pm.expect(responseData.help_text.order).to.be.a('string');","    pm.expect(responseData.help_text.color).to.be.a('string');","    pm.expect(responseData.help_text.metadata).to.be.a('string');","    pm.expect(responseData.help_text.open_to_organization).to.be.a('string');","    pm.expect(responseData.help_text.open_to_public).to.be.a('string');","    pm.expect(responseData.help_text.is_archived).to.be.a('string');","});","","","pm.test(\"Ensure the 'sid' field is a non-empty string\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.sid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Value should be a non-empty string\");","});","","","pm.test(\"Name field is a non-empty string\", function () {","    const responseData = pm.response.json();","    pm.expect(responseData.name).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Name should not be empty\");","});","","pm.test(\"Date_start and date_end are in valid date format\", function () {","    const responseData = pm.response.json();","    pm.expect(responseData.date_start).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","    pm.expect(responseData.date_end).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","});","",""],"type":"text/javascript","packages":{}}}],"id":"aab94a7b-706b-4e76-9587-4cec8cb5c9d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Project {{currentDate}}\",\n    \"description\": \"Test project created by postman.\",\n    \"date_start\": \"{{currentDate}}\",\n    \"date_end\": \"{{nextWeekDate}}\",\n    \"color\": \"#000000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/projects/project/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h2 id=\"create-project\">Create Project</h2>\n<p>This endpoint allows the user to create a new project within the specified organization.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p>name (string, required): The name of the project.</p>\n</li>\n<li><p>description (string, required): A brief description of the project.</p>\n</li>\n<li><p>date_start (string, required): The start date of the project.</p>\n</li>\n<li><p>date_end (string, required): The end date of the project.</p>\n</li>\n<li><p>color (string, required): The color code associated with the project.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"name\": \"Test Project {{currentDate}}\",\n  \"description\": \"Test project created by postman\",\n  \"date_start\": \"{{currentDate}}\",\n  \"date_end\": \"{{nextWeekDate}}\",\n  \"color\": \"#000000\"\n}\n\n</code></pre>\n<h3 id=\"response\">Response</h3>\n<p>The response for this request is a JSON object with the following properties:</p>\n<ul>\n<li><p>sid (string): The unique identifier for the project.</p>\n</li>\n<li><p>name (string): The name of the project.</p>\n</li>\n<li><p>parent (string): The parent project, if any.</p>\n</li>\n<li><p>description (string): A brief description of the project.</p>\n</li>\n<li><p>date_start (string): The start date of the project.</p>\n</li>\n<li><p>date_end (string): The end date of the project.</p>\n</li>\n<li><p>order (integer): The order of the project.</p>\n</li>\n<li><p>color (string): The color code associated with the project.</p>\n</li>\n<li><p>open_to_organization (boolean): Indicates if the project is open to the organization.</p>\n</li>\n<li><p>open_to_public (boolean): Indicates if the project is open to the public.</p>\n</li>\n<li><p>metadata (array): Additional metadata associated with the project.</p>\n</li>\n<li><p>is_archived (boolean): Indicates if the project is archived.</p>\n</li>\n<li><p>updated_by (object): Details of the user who last updated the project.</p>\n</li>\n<li><p>date_updated (string): The date when the project was last updated.</p>\n</li>\n<li><p>date_created (string): The date when the project was created.</p>\n</li>\n<li><p>change_permission (boolean): Indicates the change permission for the project.</p>\n</li>\n<li><p>help_text (object): Additional help text for the project.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"\",\n  \"name\": \"\",\n  \"parent\": null,\n  \"description\": \"\",\n  \"date_start\": \"\",\n  \"date_end\": \"\",\n  \"order\": 0,\n  \"color\": \"\",\n  \"open_to_organization\": true,\n  \"open_to_public\": true,\n  \"metadata\": [],\n  \"is_archived\": true,\n  \"updated_by\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"date_updated\": \"\",\n  \"date_created\": \"\",\n  \"change_permission\": true,\n  \"help_text\": {\n    \"sid\": \"\",\n    \"parent\": \"\",\n    \"order\": \"\",\n    \"color\": \"\",\n    \"metadata\": \"\",\n    \"open_to_organization\": \"\",\n    \"open_to_public\": \"\",\n    \"is_archived\": \"\"\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["projects","project","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"c4681012-6797-45c1-96b1-f6c6813d89c5","name":"Create Project","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Project {{currentDate}}\",\n    \"description\": \"Test project created by postman.\",\n    \"date_start\": \"{{currentDate}}\",\n    \"date_end\": \"{{nextWeekDate}}\",\n    \"color\": \"#000000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/projects/project/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 20:58:01 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1790","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"nqtw0a40x2cd8puzEJOTY\",\n    \"name\": \"Test Project 2024-11-03\",\n    \"parent\": null,\n    \"description\": \"Test project created by postman.\",\n    \"date_start\": \"2024-11-03\",\n    \"date_end\": \"2024-11-10\",\n    \"order\": 3,\n    \"color\": \"#000000\",\n    \"open_to_organization\": false,\n    \"open_to_public\": false,\n    \"metadata\": [],\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T20:58:01.319544Z\",\n    \"date_created\": \"2024-11-03T20:58:01.319555Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"parent\": \"Choose a parent project. Users at the parent project have access to all records at the child projects. In cases where parent and child projects have different permissions, the higher permission will be used.\",\n        \"order\": \"The order to display this project. Integer only. Drag the project to a preferred position at the list view to update the order. \",\n        \"color\": \"Color of folder icon\",\n        \"metadata\": \"Use <b>metadata</b> to store additional values.\",\n        \"open_to_organization\": \"If checked, your organization's members can view/use it. Check this box if you want the whole organization to see this project. To keep this project private, set value to false. The default value is False. \",\n        \"open_to_public\": \"If checked, anyone with a labii account can access it. Ensure that this option is checked if you are a vendor or reagent supplier and you want your customers to be able to copy the record for their own records. The default value is False. \",\n        \"is_archived\": \"The project will be archived if the checkbox is checked. In accordance with GLP and FDA CFR 21 Part 11, data deletion is highly restricted. You cannot delete a project, but you can archive it to hide it. The default value is False.<br><br>As part of the archive, all of the child projects will also be archived.\"\n    }\n}"}],"_postman_id":"aab94a7b-706b-4e76-9587-4cec8cb5c9d8"},{"name":"Get Project Detail","event":[{"listen":"test","script":{"id":"0a0b33da-c166-4b73-be71-9c6749ec157a","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.name).to.exist;","    pm.expect(responseData.parent).to.exist;","    pm.expect(responseData.description).to.exist;","    pm.expect(responseData.date_start).to.exist;","    pm.expect(responseData.date_end).to.exist;","    pm.expect(responseData.order).to.exist;","    pm.expect(responseData.color).to.exist;","    pm.expect(responseData.open_to_organization).to.exist;","    pm.expect(responseData.open_to_public).to.exist;","    pm.expect(responseData.metadata).to.exist;","    pm.expect(responseData.is_archived).to.exist;","    pm.expect(responseData.updated_by).to.exist;","    pm.expect(responseData.date_updated).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.change_permission).to.exist;","    pm.expect(responseData.help_text).to.exist;","});","","","pm.test(\"Date_start and date_end are in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.date_start).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","    pm.expect(responseData.date_end).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","});","","","pm.test(\"Validate the schema of the response JSON\", function () {","  const responseData = pm.response.json();","","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.sid).to.be.a('string');","  pm.expect(responseData.name).to.be.a('string');","  pm.expect(responseData.parent).to.be.null;","  pm.expect(responseData.description).to.be.a('string');","  pm.expect(responseData.date_start).to.be.a('string');","  pm.expect(responseData.date_end).to.be.a('string');","  pm.expect(responseData.order).to.be.a('number');","  pm.expect(responseData.color).to.be.a('string');","  pm.expect(responseData.open_to_organization).to.be.true;","  pm.expect(responseData.open_to_public).to.be.true;","  pm.expect(responseData.metadata).to.be.an('array');","  pm.expect(responseData.is_archived).to.be.true;","  pm.expect(responseData.updated_by).to.be.an('object');","  pm.expect(responseData.date_updated).to.be.a('string');","  pm.expect(responseData.date_created).to.be.a('string');","  pm.expect(responseData.change_permission).to.be.true;","  pm.expect(responseData.help_text).to.be.an('object');","});",""],"type":"text/javascript","packages":{}}}],"id":"c71fd54f-3c0d-48e3-810d-bb18fd9b9ff2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/projects/project/detail/{{project_sid}}/","description":"<p>The endpoint retrieves the details of a specific project identified by the project_sid parameter.</p>\n<h4 id=\"permission\">Permission</h4>\n<p>Only the Administrators can make this api call.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response will be a JSON object with the following properties:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the project.</p>\n</li>\n<li><p><code>name</code> (string): The name of the project.</p>\n</li>\n<li><p><code>parent</code> (object): The parent project, if any.</p>\n</li>\n<li><p><code>description</code> (string): The description of the project.</p>\n</li>\n<li><p><code>date_start</code> (string): The start date of the project.</p>\n</li>\n<li><p><code>date_end</code> (string): The end date of the project.</p>\n</li>\n<li><p><code>order</code> (number): The order of the project.</p>\n</li>\n<li><p><code>color</code> (string): The color associated with the project.</p>\n</li>\n<li><p><code>open_to_organization</code> (boolean): Indicates if the project is open to the organization.</p>\n</li>\n<li><p><code>open_to_public</code> (boolean): Indicates if the project is open to the public.</p>\n</li>\n<li><p><code>metadata</code> (array): Additional metadata associated with the project.</p>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates if the project is archived.</p>\n</li>\n<li><p><code>updated_by</code> (object): Details of the user who last updated the project.</p>\n</li>\n<li><p><code>date_updated</code> (string): The date when the project was last updated.</p>\n</li>\n<li><p><code>date_created</code> (string): The date when the project was created.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates if the user has permission to change the project.</p>\n</li>\n<li><p><code>help_text</code> (object): Additional help text related to the project.</p>\n</li>\n</ul>\n<p>The response of this request can be documented as a JSON schema.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["projects","project","detail","{{project_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"f3f87230-48ac-4721-86c3-9e8aafe83c96","name":"Get Project Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/projects/project/detail/{{project_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 20:58:56 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1790","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"nqtw0a40x2cd8puzEJOTY\",\n    \"name\": \"Test Project 2024-11-03\",\n    \"parent\": null,\n    \"description\": \"Test project created by postman.\",\n    \"date_start\": \"2024-11-03\",\n    \"date_end\": \"2024-11-10\",\n    \"order\": 3,\n    \"color\": \"#000000\",\n    \"open_to_organization\": false,\n    \"open_to_public\": false,\n    \"metadata\": [],\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T20:58:01.319544Z\",\n    \"date_created\": \"2024-11-03T20:58:01.319555Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"parent\": \"Choose a parent project. Users at the parent project have access to all records at the child projects. In cases where parent and child projects have different permissions, the higher permission will be used.\",\n        \"order\": \"The order to display this project. Integer only. Drag the project to a preferred position at the list view to update the order. \",\n        \"color\": \"Color of folder icon\",\n        \"metadata\": \"Use <b>metadata</b> to store additional values.\",\n        \"open_to_organization\": \"If checked, your organization's members can view/use it. Check this box if you want the whole organization to see this project. To keep this project private, set value to false. The default value is False. \",\n        \"open_to_public\": \"If checked, anyone with a labii account can access it. Ensure that this option is checked if you are a vendor or reagent supplier and you want your customers to be able to copy the record for their own records. The default value is False. \",\n        \"is_archived\": \"The project will be archived if the checkbox is checked. In accordance with GLP and FDA CFR 21 Part 11, data deletion is highly restricted. You cannot delete a project, but you can archive it to hide it. The default value is False.<br><br>As part of the archive, all of the child projects will also be archived.\"\n    }\n}"}],"_postman_id":"c71fd54f-3c0d-48e3-810d-bb18fd9b9ff2"},{"name":"Edit Project","event":[{"listen":"prerequest","script":{"id":"3054ec28-4c1b-472f-999d-2b25b75f2606","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);","","// update next week date","const nextWeekDate = js.getNextWeekDate();","pm.environment.set(\"nextWeekDate\", nextWeekDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"1cbcb218-ac76-4d9c-a3ca-67db30258527","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    const requiredFields = [","        \"sid\", \"name\", \"parent\", \"description\", \"date_start\", \"date_end\",","        \"order\", \"color\", \"open_to_organization\", \"open_to_public\", \"metadata\",","        \"is_archived\", \"updated_by\", \"date_updated\", \"date_created\",","        \"change_permission\", \"help_text\"","    ];","","    requiredFields.forEach(field => {","        pm.expect(responseData).to.have.property(field);","    });","});","","","pm.test(\"Date start and date end are in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.date_start).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","    pm.expect(responseData.date_end).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(300);","});","","","pm.test(\"Metadata array is present and contains expected number of elements\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.metadata).to.exist.and.to.be.an('array');","    pm.expect(responseData.metadata).to.have.lengthOf(0); // Replace 0 with the expected number of elements","});",""],"type":"text/javascript","packages":{}}}],"id":"de206a7e-f916-4e0c-a3b4-f62587bad12c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Project {{currentDate}}\",\n    \"description\": \"Test project edited by postman.\",\n    \"date_start\": \"{{currentDate}}\",\n    \"date_end\": \"{{nextWeekDate}}\",\n    \"color\": \"#000000\",\n    \"is_archived\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/projects/project/detail/{{project_sid}}/","description":"<h3 id=\"patch-projectsprojectdetailproject_sid\">PATCH /projects/project/detail/{{project_sid}}/</h3>\n<p>This endpoint is used to update the details of a specific project.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code> (string): The updated name of the project.</p>\n</li>\n<li><p><code>description</code> (string): The updated description of the project.</p>\n</li>\n<li><p><code>date_start</code> (string): The updated start date of the project.</p>\n</li>\n<li><p><code>date_end</code> (string): The updated end date of the project.</p>\n</li>\n<li><p><code>color</code> (string): The updated color code for the project.</p>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates whether the project is archived or not.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request can be represented as a JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sid\": {\"type\": \"string\"},\n    \"name\": {\"type\": \"string\"},\n    \"parent\": {\"type\": [\"object\", \"null\"]},\n    \"description\": {\"type\": \"string\"},\n    \"date_start\": {\"type\": \"string\"},\n    \"date_end\": {\"type\": \"string\"},\n    \"order\": {\"type\": \"integer\"},\n    \"color\": {\"type\": \"string\"},\n    \"open_to_organization\": {\"type\": \"boolean\"},\n    \"open_to_public\": {\"type\": \"boolean\"},\n    \"metadata\": {\"type\": \"array\"},\n    \"is_archived\": {\"type\": \"boolean\"},\n    \"updated_by\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\"type\": \"string\"},\n        \"name\": {\"type\": \"string\"}\n      }\n    },\n    \"date_updated\": {\"type\": \"string\"},\n    \"date_created\": {\"type\": \"string\"},\n    \"change_permission\": {\"type\": \"boolean\"},\n    \"help_text\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\"type\": \"string\"},\n        \"parent\": {\"type\": \"string\"},\n        \"order\": {\"type\": \"string\"},\n        \"color\": {\"type\": \"string\"},\n        \"metadata\": {\"type\": \"string\"},\n        \"open_to_organization\": {\"type\": \"string\"},\n        \"open_to_public\": {\"type\": \"string\"},\n        \"is_archived\": {\"type\": \"string\"}\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["projects","project","detail","{{project_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"d85cc324-31a1-4a1b-bf56-39ebd41fe3f1","name":"Edit Project","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Project {{currentDate}}\",\n    \"description\": \"Test project edited by postman.\",\n    \"date_start\": \"{{currentDate}}\",\n    \"date_end\": \"{{nextWeekDate}}\",\n    \"color\": \"#000000\",\n    \"is_archived\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/projects/project/detail/{{project_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 21:00:42 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1788","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"nqtw0a40x2cd8puzEJOTY\",\n    \"name\": \"Test Project 2024-11-03\",\n    \"parent\": null,\n    \"description\": \"Test project edited by postman.\",\n    \"date_start\": \"2024-11-03\",\n    \"date_end\": \"2024-11-10\",\n    \"order\": 3,\n    \"color\": \"#000000\",\n    \"open_to_organization\": false,\n    \"open_to_public\": false,\n    \"metadata\": [],\n    \"is_archived\": true,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T20:58:01.319544Z\",\n    \"date_created\": \"2024-11-03T20:58:01.319555Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"parent\": \"Choose a parent project. Users at the parent project have access to all records at the child projects. In cases where parent and child projects have different permissions, the higher permission will be used.\",\n        \"order\": \"The order to display this project. Integer only. Drag the project to a preferred position at the list view to update the order. \",\n        \"color\": \"Color of folder icon\",\n        \"metadata\": \"Use <b>metadata</b> to store additional values.\",\n        \"open_to_organization\": \"If checked, your organization's members can view/use it. Check this box if you want the whole organization to see this project. To keep this project private, set value to false. The default value is False. \",\n        \"open_to_public\": \"If checked, anyone with a labii account can access it. Ensure that this option is checked if you are a vendor or reagent supplier and you want your customers to be able to copy the record for their own records. The default value is False. \",\n        \"is_archived\": \"The project will be archived if the checkbox is checked. In accordance with GLP and FDA CFR 21 Part 11, data deletion is highly restricted. You cannot delete a project, but you can archive it to hide it. The default value is False.<br><br>As part of the archive, all of the child projects will also be archived.\"\n    }\n}"}],"_postman_id":"de206a7e-f916-4e0c-a3b4-f62587bad12c"}],"id":"faff6ac5-3256-406f-a378-232420d5a1f4","description":"<p>The Labii Project API serves as a foundational tool for managing project-based permissions, allowing users to efficiently handle their projects. With this API, users can retrieve a comprehensive list of projects, create new ones, access detailed information about specific projects, and make edits as needed. By facilitating streamlined project management, it ensures that permission control is effectively maintained, enhancing both organization and security within workflows.</p>\n","_postman_id":"faff6ac5-3256-406f-a378-232420d5a1f4","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Project Member","item":[{"name":"Get Member List","event":[{"listen":"test","script":{"id":"646de684-a0d5-439e-9a50-a9277795250b","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.include.all.keys('page_size', 'page_number', 'page_count', 'count', 'next', 'previous', 'add_permission');","});","","","pm.test(\"Validate the results array and its elements\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.results).to.be.an('array');","","    responseData.results.forEach(function(result) {","        pm.expect(result).to.have.property('sid').that.is.a('string');","        pm.expect(result).to.have.property('name').that.is.a('string');","        pm.expect(result).to.have.property('team').that.is.null;","        pm.expect(result).to.have.property('personnel').that.is.an('object');","        pm.expect(result.personnel).to.have.property('sid').that.is.a('string');","        pm.expect(result.personnel).to.have.property('name').that.is.a('string');","        pm.expect(result).to.have.property('project').that.is.an('object');","        pm.expect(result.project).to.have.property('sid').that.is.a('string');","        pm.expect(result.project).to.have.property('name').that.is.a('string');","        pm.expect(result).to.have.property('permission').that.is.a('string');","        pm.expect(result).to.have.property('is_archived').that.is.a('boolean');","        pm.expect(result).to.have.property('change_permission').that.is.a('boolean');","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"6097102d-5e32-4b5a-ae94-ef87e90e9f63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/projects/member/list/organization/{{organization_sid_test_administrator}}/list/?project__sid={{project_sid_test_administrator}}","description":"<h3 id=\"get-project-members-list\">Get Project Members List</h3>\n<p>This endpoint retrieves the list of members associated with a specific project within the organization.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/projects/member/list/organization/{{organization_sid_test_administrator}}/list/?project__sid={{project_sid_test_administrator}}</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will include the following fields:</p>\n<ul>\n<li><p><code>page_size</code> (number): The number of results per page</p>\n</li>\n<li><p><code>page_number</code> (number): The current page number</p>\n</li>\n<li><p><code>page_count</code> (number): The total number of pages</p>\n</li>\n<li><p><code>count</code> (number): The total count of members</p>\n</li>\n<li><p><code>next</code> (string): URL for the next page</p>\n</li>\n<li><p><code>previous</code> (string): URL for the previous page</p>\n</li>\n<li><p><code>add_permission</code> (boolean): Indicates if the user has permission to add members</p>\n</li>\n<li><p><code>results</code> (array): An array of member objects, each containing the following fields:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the member</p>\n</li>\n<li><p><code>name</code> (string): The name of the member</p>\n</li>\n<li><p><code>team</code> (object): The team details</p>\n</li>\n<li><p><code>personnel</code> (object): The personnel details</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the personnel</p>\n</li>\n<li><p><code>name</code> (string): The name of the personnel</p>\n</li>\n</ul>\n</li>\n<li><p><code>project</code> (object): The project details</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the project</p>\n</li>\n<li><p><code>name</code> (string): The name of the project</p>\n</li>\n</ul>\n</li>\n<li><p><code>permission</code> (string): The permission level of the member</p>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates if the member is archived</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates if the user has permission to change the member's details</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["projects","member","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"project__sid","value":"{{project_sid_test_administrator}}"}],"variable":[]}},"response":[{"id":"f478c506-7da1-4886-a618-0bb1eba263c0","name":"Get Member List","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://www.labii.dev/projects/member/list/organization/{{organization_sid_test_administrator}}/list/?project__sid={{project_sid_test_administrator}}","host":["https://www.labii.dev"],"path":["projects","member","list","organization","{{organization_sid_test_administrator}}","list",""],"query":[{"key":"project__sid","value":"{{project_sid_test_administrator}}","sortOrder":0}]}},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 21:08:46 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1546","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 5,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": true,\n    \"results\": [\n        {\n            \"sid\": \"vyBE0a40x374axCHMRW27\",\n            \"name\": \"Manager permission for Test Labii\",\n            \"team\": null,\n            \"personnel\": {\n                \"sid\": \"GJMP0a40x31c3INSX38ch\",\n                \"name\": \"Test Labii\"\n            },\n            \"project\": {\n                \"sid\": \"hknq0a40x2cd2jotyDINS\",\n                \"name\": \"Sample Project\"\n            },\n            \"permission\": \"Manager\",\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"yBEH0a40x374dAFKPUZ50\",\n            \"name\": \"Edit permission for Developer Labii\",\n            \"team\": null,\n            \"personnel\": {\n                \"sid\": \"JMPS0a40x31c6LQV16afk\",\n                \"name\": \"Developer Labii\"\n            },\n            \"project\": {\n                \"sid\": \"hknq0a40x2cd2jotyDINS\",\n                \"name\": \"Sample Project\"\n            },\n            \"permission\": \"Edit\",\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"zCFI0a40x374eBGLQV16a\",\n            \"name\": \"Edit permission for Inactive Labii\",\n            \"team\": null,\n            \"personnel\": {\n                \"sid\": \"KNQT0a40x31c7MRW27bgl\",\n                \"name\": \"Inactive Labii\"\n            },\n            \"project\": {\n                \"sid\": \"hknq0a40x2cd2jotyDINS\",\n                \"name\": \"Sample Project\"\n            },\n            \"permission\": \"Edit\",\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"ADGJ0a40x374fCHMRW27b\",\n            \"name\": \"Edit permission for Business Labii\",\n            \"team\": null,\n            \"personnel\": {\n                \"sid\": \"LORU0a40x31c8NSX38chm\",\n                \"name\": \"Business Labii\"\n            },\n            \"project\": {\n                \"sid\": \"hknq0a40x2cd2jotyDINS\",\n                \"name\": \"Sample Project\"\n            },\n            \"permission\": \"Edit\",\n            \"is_archived\": false,\n            \"change_permission\": true\n        }\n    ]\n}"}],"_postman_id":"6097102d-5e32-4b5a-ae94-ef87e90e9f63"},{"name":"Create Member","event":[{"listen":"test","script":{"id":"6dbafffc-3071-4c25-a6c0-53a86e1727ac","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"member_sid\", jsonData.sid);","","","pm.test(\"Response status code is 201\", function () {","    pm.response.to.have.status(201);","});","","","pm.test(\"Response time is within the acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for the presence of required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.name).to.exist;","    pm.expect(responseData.personnel).to.exist;","    pm.expect(responseData.project).to.exist;","    pm.expect(responseData.permission).to.exist;","    pm.expect(responseData.is_archived).to.exist;","    pm.expect(responseData.updated_by).to.exist;","    pm.expect(responseData.date_updated).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.change_permission).to.exist;","    pm.expect(responseData.help_text).to.exist;","});","","","pm.test(\"Validate the structure and format of personnel, project, updated_by, and help_text objects\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    ","    // Check personnel object","    pm.expect(responseData.personnel).to.be.an('object');","    pm.expect(responseData.personnel.sid).to.be.a('string');","    pm.expect(responseData.personnel.name).to.be.a('string');","","    // Check project object","    pm.expect(responseData.project).to.be.an('object');","    pm.expect(responseData.project.sid).to.be.a('string');","    pm.expect(responseData.project.name).to.be.a('string');","","    // Check updated_by object","    pm.expect(responseData.updated_by).to.be.an('object');","    pm.expect(responseData.updated_by.sid).to.be.a('string');","    pm.expect(responseData.updated_by.name).to.be.a('string');","","    // Check help_text object","    pm.expect(responseData.help_text).to.be.an('object');","    pm.expect(responseData.help_text.sid).to.be.a('string');","    pm.expect(responseData.help_text.permission).to.be.a('string');","    pm.expect(responseData.help_text.is_archived).to.be.a('string');","});","","","pm.test(\"Is_archived field is a boolean value\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.is_archived).to.be.a('boolean');","});","",""],"type":"text/javascript","packages":{}}}],"id":"c419e48f-806f-4a98-9d0b-b8ebb910001d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test member for Test Labii\",\n    \"team\": null,\n    \"personnel\": {\n        \"sid\": \"{{people_sid_test_administrator}}\",\n        \"name\": \"Test Labii\"\n    },\n    \"permission\": \"Edit\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/projects/member/list/organization/{{organization_sid_test_administrator}}/list/?project__sid={{project_sid_test_administrator}}","description":"<p>The endpoint makes an HTTP POST request to retrieve a list of members for a specific project within an organization. The request includes a payload in raw JSON format, containing the member's name, team, personnel details, and permission level.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p><code>name</code> (string): The name of the member.</p>\n</li>\n<li><p><code>team</code> (null): The team to which the member belongs.</p>\n</li>\n<li><p><code>personnel</code> (object): Details of the personnel, including their unique identifier (sid) and name.</p>\n</li>\n<li><p><code>permission</code> (string): The permission level for the member.</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"\",\n  \"name\": \"\",\n  \"team\": null,\n  \"personnel\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"project\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"permission\": \"\",\n  \"is_archived\": true,\n  \"updated_by\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"date_updated\": \"\",\n  \"date_created\": \"\",\n  \"change_permission\": true,\n  \"help_text\": {\n    \"sid\": \"\",\n    \"permission\": \"\",\n    \"is_archived\": \"\"\n  }\n}\n\n</code></pre>\n<p>The response object includes fields such as member's unique identifier (sid), name, team, personnel details, project details, permission level, archived status, updated by details, creation and update dates, change permission status, and help text details.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["projects","member","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"project__sid","value":"{{project_sid_test_administrator}}"}],"variable":[]}},"response":[{"id":"14105177-50e7-4d18-863b-3ee438bc5ca0","name":"Create Member","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test member for Test Labii\",\n    \"team\": null,\n    \"personnel\": {\n        \"sid\": \"{{people_sid_test_administrator}}\",\n        \"name\": \"Test Labii\"\n    },\n    \"permission\": \"Edit\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://www.labii.dev/projects/member/list/organization/{{organization_sid_test_administrator}}/list/?project__sid={{project_sid_test_administrator}}","host":["https://www.labii.dev"],"path":["projects","member","list","organization","{{organization_sid_test_administrator}}","list",""],"query":[{"key":"project__sid","value":"{{project_sid_test_administrator}}","sortOrder":0}]}},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 21:14:14 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"765","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"258a0a40x376a49dinsxC\",\n    \"name\": \"Edit permission for Test Labii\",\n    \"team\": null,\n    \"personnel\": {\n        \"sid\": \"GJMP0a40x31c3INSX38ch\",\n        \"name\": \"Test Labii\"\n    },\n    \"project\": {\n        \"sid\": \"hknq0a40x2cd2jotyDINS\",\n        \"name\": \"Sample Project\"\n    },\n    \"permission\": \"Edit\",\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T21:14:12.740063Z\",\n    \"date_created\": \"2024-11-03T21:14:12.740076Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"permission\": \"<b>Manager</b>, managers of the project.<br><b>Edit</b>, Able to Add/Change records belong to this project. <br><b>View</b>, read-only to the project items (default). Provide witness view permission to co-sign.\",\n        \"is_archived\": \"If checked, the access will be blocked.\"\n    }\n}"}],"_postman_id":"c419e48f-806f-4a98-9d0b-b8ebb910001d"},{"name":"Get Member Detail","event":[{"listen":"test","script":{"id":"b0a7f291-c71c-4b83-8e62-192084682b05","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist.and.to.be.a('string');","    pm.expect(responseData.name).to.exist.and.to.be.a('string');","    pm.expect(responseData.personnel).to.exist.and.to.be.an('object');","    pm.expect(responseData.project).to.exist.and.to.be.an('object');","    pm.expect(responseData.permission).to.exist.and.to.be.a('string');","    pm.expect(responseData.is_archived).to.exist.and.to.be.a('boolean');","    pm.expect(responseData.updated_by).to.exist.and.to.be.an('object');","    pm.expect(responseData.date_updated).to.exist.and.to.be.a('string');","    pm.expect(responseData.date_created).to.exist.and.to.be.a('string');","    pm.expect(responseData.change_permission).to.exist.and.to.be.a('boolean');","    pm.expect(responseData.help_text).to.exist.and.to.be.an('object');","});",""],"type":"text/javascript","packages":{}}}],"id":"582e6814-7cf8-49b8-89b6-7e8e359dbb25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/projects/member/detail/{{member_sid}}/","description":"<p>This endpoint retrieves the details of a specific member within a project. It makes an HTTP GET request to the specified URL with the member's unique identifier in the path parameter.</p>\n<h3 id=\"request\">Request</h3>\n<p>No request body is required for this endpoint.</p>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the member.</p>\n</li>\n<li><p><code>name</code> (string): The name of the member.</p>\n</li>\n<li><p><code>team</code> (object): Details of the team to which the member belongs.</p>\n</li>\n<li><p><code>personnel</code> (object): Details of the personnel associated with the member.</p>\n</li>\n<li><p><code>project</code> (object): Details of the project to which the member is assigned.</p>\n</li>\n<li><p><code>permission</code> (string): The permission level of the member.</p>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates whether the member is archived.</p>\n</li>\n<li><p><code>updated_by</code> (object): Details of the user who last updated the member.</p>\n</li>\n<li><p><code>date_updated</code> (string): The date when the member was last updated.</p>\n</li>\n<li><p><code>date_created</code> (string): The date when the member was created.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates whether the member has permission to change settings.</p>\n</li>\n<li><p><code>help_text</code> (object): Additional help text related to the member.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["projects","member","detail","{{member_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"8fbebcc8-6763-4578-b7a8-8748adb84f57","name":"Get Member Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/projects/member/detail/{{member_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 21:14:53 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"765","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"258a0a40x376a49dinsxC\",\n    \"name\": \"Edit permission for Test Labii\",\n    \"team\": null,\n    \"personnel\": {\n        \"sid\": \"GJMP0a40x31c3INSX38ch\",\n        \"name\": \"Test Labii\"\n    },\n    \"project\": {\n        \"sid\": \"hknq0a40x2cd2jotyDINS\",\n        \"name\": \"Sample Project\"\n    },\n    \"permission\": \"Edit\",\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T21:14:12.740063Z\",\n    \"date_created\": \"2024-11-03T21:14:12.740076Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"permission\": \"<b>Manager</b>, managers of the project.<br><b>Edit</b>, Able to Add/Change records belong to this project. <br><b>View</b>, read-only to the project items (default). Provide witness view permission to co-sign.\",\n        \"is_archived\": \"If checked, the access will be blocked.\"\n    }\n}"}],"_postman_id":"582e6814-7cf8-49b8-89b6-7e8e359dbb25"},{"name":"Edit Member","event":[{"listen":"test","script":{"id":"51e022d5-4f67-4931-a708-e1e8c35adc13","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.name).to.exist;","    pm.expect(responseData.personnel).to.exist;","    pm.expect(responseData.project).to.exist;","    pm.expect(responseData.permission).to.exist;","    pm.expect(responseData.is_archived).to.exist;","    pm.expect(responseData.updated_by).to.exist;","    pm.expect(responseData.date_updated).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.change_permission).to.exist;","    pm.expect(responseData.help_text).to.exist;","});","","","pm.test(\"Validate the date_updated format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.have.property('date_updated');","    pm.expect(responseData.date_updated).to.match(/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$/);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});","","","pm.test(\"Verify the team field is either null or an object with expected properties\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.team).to.satisfy(function (team) {","        return team === null || (typeof team === 'object' && team.hasOwnProperty('sid') && team.hasOwnProperty('name'));","    }, \"Team field should be either null or an object with 'sid' and 'name' properties\");","});",""],"type":"text/javascript","packages":{}}}],"id":"f5a785cc-9166-4e8f-a90e-80430eb487d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Manager permission for Test Labii\",\n    \"team\": null,\n    \"personnel\": {\n        \"sid\": \"{{people_sid_test_administrator}}\",\n        \"name\": \"Test Labii\"\n    },\n    \"permission\": \"Manager\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/projects/member/detail/{{member_sid}}/","description":"<h3 id=\"patch-projectsmemberdetailmember_sid\">PATCH /projects/member/detail/{{member_sid}}/</h3>\n<p>This endpoint is used to update the details of a specific member within a project.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>name (string, required): The updated name for the member's permission.</p>\n</li>\n<li><p>team (string): The updated team for the member.</p>\n</li>\n<li><p>personnel (object, required): The updated personnel details including sid and name.</p>\n<ul>\n<li><p>sid (string, required): The SID of the personnel.</p>\n</li>\n<li><p>name (string, required): The name of the personnel.</p>\n</li>\n</ul>\n</li>\n<li><p>permission (string, required): The updated permission for the member.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"\",\n  \"name\": \"\",\n  \"team\": null,\n  \"personnel\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"project\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"permission\": \"\",\n  \"is_archived\": true,\n  \"updated_by\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"date_updated\": \"\",\n  \"date_created\": \"\",\n  \"change_permission\": true,\n  \"help_text\": {\n    \"sid\": \"\",\n    \"permission\": \"\",\n    \"is_archived\": \"\"\n  }\n}\n\n</code></pre>\n<p>The response includes the updated details of the member within the project.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["projects","member","detail","{{member_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"2dfb4a4b-064b-442f-b804-9f0236fad3f1","name":"Edit Member","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Manager permission for Test Labii\",\n    \"team\": null,\n    \"personnel\": {\n        \"sid\": \"{{people_sid_test_administrator}}\",\n        \"name\": \"Test Labii\"\n    },\n    \"permission\": \"Manager\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/projects/member/detail/{{member_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 21:17:22 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"771","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"258a0a40x376a49dinsxC\",\n    \"name\": \"Manager permission for Test Labii\",\n    \"team\": null,\n    \"personnel\": {\n        \"sid\": \"GJMP0a40x31c3INSX38ch\",\n        \"name\": \"Test Labii\"\n    },\n    \"project\": {\n        \"sid\": \"hknq0a40x2cd2jotyDINS\",\n        \"name\": \"Sample Project\"\n    },\n    \"permission\": \"Manager\",\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T21:14:12.740063Z\",\n    \"date_created\": \"2024-11-03T21:14:12.740076Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"permission\": \"<b>Manager</b>, managers of the project.<br><b>Edit</b>, Able to Add/Change records belong to this project. <br><b>View</b>, read-only to the project items (default). Provide witness view permission to co-sign.\",\n        \"is_archived\": \"If checked, the access will be blocked.\"\n    }\n}"}],"_postman_id":"f5a785cc-9166-4e8f-a90e-80430eb487d8"},{"name":"Delete Member","event":[{"listen":"test","script":{"id":"c3431e19-54e7-4c56-9dbe-65d0f106ea7a","exec":["pm.test(\"Response status code is 204\", function () {","    pm.response.to.have.status(204);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(300);","});",""],"type":"text/javascript","packages":{}}}],"id":"25acee7c-f523-46df-94f5-ded86b59dad3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://www.labii.dev/projects/member/detail/{{member_sid}}/","description":"<h3 id=\"delete-project-member-detail\">Delete Project Member Detail</h3>\n<p>This endpoint is used to delete the details of a specific member within a project.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This endpoint does not require a request body.</p>\n<h4 id=\"response\">Response</h4>\n<p>Upon successful deletion, the response will not contain any content, and the status code will indicate a successful deletion (2xx). If the deletion is unsuccessful, an error response will be returned.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["projects","member","detail","{{member_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"25acee7c-f523-46df-94f5-ded86b59dad3"}],"id":"30d1fc36-6f85-4a38-a779-ea8f3bb947a9","description":"<p>The Labii Project Member API is essential for managing user permissions within projects, allowing administrators and project managers to efficiently oversee project membership. This API enables users to retrieve a list of project members, create new members, access detailed information about specific members, and edit or delete member entries as necessary. By providing these capabilities, the API streamlines the process of granting and managing permissions, ensuring that the right users have appropriate access to project resources.</p>\n","_postman_id":"30d1fc36-6f85-4a38-a779-ea8f3bb947a9","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Widget","item":[{"name":"Get Widget List","event":[{"listen":"test","script":{"id":"90458102-94f8-42ba-b2de-ab64c36434d4","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.page_size).to.exist.and.to.be.a('number');","    pm.expect(responseData.page_number).to.exist.and.to.be.a('number');","    pm.expect(responseData.count).to.exist.and.to.be.a('number');","    pm.expect(responseData.results).to.exist.and.to.be.an('array');","});","","","pm.test(\"Results array is present and contains expected number of elements\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.results).to.exist.and.to.be.an('array');","    pm.expect(responseData.results).to.have.lengthOf(1); // Replace 1 with the expected number of elements","});","","","pm.test(\"Validate the 'status' object within the 'results' array for the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array');","    responseData.results.forEach(function(result) {","        pm.expect(result.status.sid).to.be.a('string');","        pm.expect(result.status.is_archived).to.be.a('boolean');","        pm.expect(result.status.change_permission).to.be.a('boolean');","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"267ff4d2-7096-474c-904b-9f3c409d483e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/widgets/widget/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h3 id=\"get-widgetswidgetlistorganizationorganization_sid_test_administratorlist\">GET /widgets/widget/list/organization/{{organization_sid_test_administrator}}/list/</h3>\n<p>This endpoint retrieves a list of widgets associated with the specified organization.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this endpoint.</p>\n<ul>\n<li><code>organization_sid_test_administrator</code> (path parameter) - The unique identifier of the organization.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"page_size\": { \"type\": \"integer\" },\n    \"page_number\": { \"type\": \"integer\" },\n    \"page_count\": { \"type\": \"integer\" },\n    \"count\": { \"type\": \"integer\" },\n    \"next\": { \"type\": \"string\" },\n    \"previous\": { \"type\": [\"string\", \"null\"] },\n    \"add_permission\": { \"type\": \"boolean\" },\n    \"results\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"sid\": { \"type\": \"string\" },\n          \"icon\": { \"type\": \"string\" },\n          \"name\": { \"type\": \"string\" },\n          \"type\": { \"type\": \"string\" },\n          \"category\": { \"type\": \"string\" },\n          \"sub_category\": { \"type\": \"string\" },\n          \"company\": { \"type\": \"string\" },\n          \"version\": { \"type\": \"string\" },\n          \"release_date\": { \"type\": \"string\" },\n          \"subscription_price\": { \"type\": \"string\" },\n          \"PPU_price\": { \"type\": \"string\" },\n          \"notes\": { \"type\": \"string\" },\n          \"related_to\": { \"type\": \"string\" },\n          \"allow_multiple\": { \"type\": \"boolean\" },\n          \"is_readonly\": { \"type\": \"boolean\" },\n          \"is_public\": { \"type\": \"boolean\" },\n          \"status\": {\n            \"type\": \"object\",\n            \"properties\": {\n              \"sid\": { \"type\": \"string\" },\n              \"is_archived\": { \"type\": \"boolean\" },\n              \"change_permission\": { \"type\": \"boolean\" }\n            }\n          },\n          \"documentation_url\": { \"type\": \"string\" },\n          \"screenshot_url\": { \"type\": \"string\" },\n          \"change_permission\": { \"type\": \"boolean\" }\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["widgets","widget","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"ddba209d-9647-4de3-b3bd-8b63171e5aac","name":"Get Widget List","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/widgets/widget/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 21:33:08 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"6882","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 15,\n    \"count\": 147,\n    \"next\": \"http://127.0.0.1:8000/widgets/widget/list/organization/HKNQ0a40x2988JOTY49di/list/?page=2\",\n    \"previous\": null,\n    \"add_permission\": true,\n    \"results\": [\n        {\n            \"sid\": \"EHKN0a40x1bGLQV16af\",\n            \"icon\": \"title\",\n            \"name\": \"Text\",\n            \"type\": \"Column\",\n            \"category\": \"Form\",\n            \"sub_category\": \"Text inputs\",\n            \"company\": \"Labii Inc.\",\n            \"version\": \"0.01\",\n            \"release_date\": \"2019-06-09\",\n            \"subscription_price\": \"Free\",\n            \"PPU_price\": \"Free\",\n            \"notes\": \"Edit text value\",\n            \"related_to\": \"MultilineText, RichText, Number, RangeUnit, Secret, Link, Address\",\n            \"allow_multiple\": true,\n            \"is_readonly\": false,\n            \"is_public\": true,\n            \"status\": {\n                \"sid\": \"xADG0a40xee1eezEJOTY49\",\n                \"is_archived\": false,\n                \"change_permission\": true\n            },\n            \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/text-inputs/text\",\n            \"screenshot_url\": \"/media/widgets/column-text.webp\",\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"58ad0a40x357bglqvAF\",\n            \"icon\": \"notes\",\n            \"name\": \"MultilineText\",\n            \"type\": \"Column\",\n            \"category\": \"Form\",\n            \"sub_category\": \"Text inputs\",\n            \"company\": \"Labii Inc.\",\n            \"version\": \"0.01\",\n            \"release_date\": \"2021-02-21\",\n            \"subscription_price\": \"Free\",\n            \"PPU_price\": \"Free\",\n            \"notes\": \"Edit text with multiline\",\n            \"related_to\": \"Text, RichText, Number, RangeUnit, Secret, Link, Address\",\n            \"allow_multiple\": true,\n            \"is_readonly\": false,\n            \"is_public\": true,\n            \"status\": {\n                \"sid\": \"yBEH0a40xee1efAFKPUZ50\",\n                \"is_archived\": false,\n                \"change_permission\": true\n            },\n            \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/text-inputs/multilinetext\",\n            \"screenshot_url\": \"/media/widgets/column-multiline-text.webp\",\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"69be0a40x368chmrwBG\",\n            \"icon\": \"format_color_text\",\n            \"name\": \"RichText\",\n            \"type\": \"Column\",\n            \"category\": \"Form\",\n            \"sub_category\": \"Text inputs\",\n            \"company\": \"Labii Inc.\",\n            \"version\": \"0.01\",\n            \"release_date\": \"2021-03-15\",\n            \"subscription_price\": \"Free\",\n            \"PPU_price\": \"Free\",\n            \"notes\": \"Rich text editor\",\n            \"related_to\": \"Text, MultilineText, Number, RangeUnit, Secret, Link, Address\",\n            \"allow_multiple\": true,\n            \"is_readonly\": false,\n            \"is_public\": true,\n            \"status\": {\n                \"sid\": \"zCFI0a40xee1f0BGLQV16a\",\n                \"is_archived\": false,\n                \"change_permission\": true\n            },\n            \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/text-inputs/richtext\",\n            \"screenshot_url\": \"/media/widgets/column-richtext.webp\",\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"FILO0a40x1cHMRW27bg\",\n            \"icon\": \"123\",\n            \"name\": \"Number\",\n            \"type\": \"Column\",\n            \"category\": \"Form\",\n            \"sub_category\": \"Text inputs\",\n            \"company\": \"Labii Inc.\",\n            \"version\": \"1.00\",\n            \"release_date\": \"2020-12-09\",\n            \"subscription_price\": \"Free\",\n            \"PPU_price\": \"Free\",\n            \"notes\": \"Edit numeric value\",\n            \"related_to\": \"Text, MultilineText, RichText, RangeUnit, Secret, Link, Address\",\n            \"allow_multiple\": true,\n            \"is_readonly\": false,\n            \"is_public\": true,\n            \"status\": {\n                \"sid\": \"ADGJ0a40xee1f1CHMRW27b\",\n                \"is_archived\": false,\n                \"change_permission\": true\n            },\n            \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/text-inputs/number\",\n            \"screenshot_url\": \"/media/widgets/column-number.webp\",\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"adgj0a40x79chmrwBGL\",\n            \"icon\": \"straighten\",\n            \"name\": \"RangeUnit\",\n            \"type\": \"Column\",\n            \"category\": \"Form\",\n            \"sub_category\": \"Text inputs\",\n            \"company\": \"Labii Inc.\",\n            \"version\": \"0.1.0\",\n            \"release_date\": \"2023-10-02\",\n            \"subscription_price\": \"Free\",\n            \"PPU_price\": \"Free\",\n            \"notes\": \"Displaying numerical values in a series of predefined units\",\n            \"related_to\": \"Text, MultilineText, RichText, Number, Secret, Link, Address\",\n            \"allow_multiple\": true,\n            \"is_readonly\": false,\n            \"is_public\": true,\n            \"status\": {\n                \"sid\": \"BEHK0a40xee1f2DINSX38c\",\n                \"is_archived\": false,\n                \"change_permission\": true\n            },\n            \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/text-inputs/rangeunit\",\n            \"screenshot_url\": \"/media/widgets/column-rangeunit.webp\",\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"knqt0a40x7mrwBGLQV\",\n            \"icon\": \"password\",\n            \"name\": \"Secret\",\n            \"type\": \"Column\",\n            \"category\": \"Form\",\n            \"sub_category\": \"Text inputs\",\n            \"company\": \"Labii Inc.\",\n            \"version\": \"0.01\",\n            \"release_date\": \"2019-06-09\",\n            \"subscription_price\": \"Free\",\n            \"PPU_price\": \"$0.05\",\n            \"notes\": \"Display sensitive value as *\",\n            \"related_to\": \"Text, MultilineText, RichText, Number, RangeUnit, Link, Address\",\n            \"allow_multiple\": true,\n            \"is_readonly\": false,\n            \"is_public\": true,\n            \"status\": {\n                \"sid\": \"CFIL0a40xee1f3EJOTY49d\",\n                \"is_archived\": false,\n                \"change_permission\": true\n            },\n            \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/text-inputs/secret\",\n            \"screenshot_url\": \"/media/widgets/column-secret.webp\",\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"vyBE0a40x8exCHMRW27\",\n            \"icon\": \"email\",\n            \"name\": \"Email\",\n            \"type\": \"Column\",\n            \"category\": \"Form\",\n            \"sub_category\": \"Test inputs\",\n            \"company\": \"Labii Inc.\",\n            \"version\": \"0.01\",\n            \"release_date\": \"2023-02-24\",\n            \"subscription_price\": \"Free\",\n            \"PPU_price\": \"Free\",\n            \"notes\": \"Stores and verifies email addresses. Additional fees might apply.\",\n            \"related_to\": \"Phone\",\n            \"allow_multiple\": true,\n            \"is_readonly\": false,\n            \"is_public\": true,\n            \"status\": {\n                \"sid\": \"DGJM0a40xee1f4FKPUZ50e\",\n                \"is_archived\": false,\n                \"change_permission\": true\n            },\n            \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/text-inputs/email\",\n            \"screenshot_url\": \"/media/widgets/column-email.webp\",\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"ADGJ0a40x93CHMRW27b\",\n            \"icon\": \"call\",\n            \"name\": \"Phone\",\n            \"type\": \"Column\",\n            \"category\": \"Form\",\n            \"sub_category\": \"Test inputs\",\n            \"company\": \"Labii Inc.\",\n            \"version\": \"0.1.0\",\n            \"release_date\": \"2024-03-17\",\n            \"subscription_price\": \"Free\",\n            \"PPU_price\": \"Free\",\n            \"notes\": \"Formatting input strings into the standard phone number format\",\n            \"related_to\": \"Email\",\n            \"allow_multiple\": true,\n            \"is_readonly\": false,\n            \"is_public\": true,\n            \"status\": {\n                \"sid\": \"EHKN0a40xee1f5GLQV16af\",\n                \"is_archived\": false,\n                \"change_permission\": true\n            },\n            \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/form/text-inputs/phone\",\n            \"screenshot_url\": \"/media/widgets/column-phone.webp\",\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"cfil0a40x7bejotyDIN\",\n            \"icon\": \"link\",\n            \"name\": \"Link\",\n            \"type\": \"Column\",\n            \"category\": \"Form\",\n            \"sub_category\": \"Text inputs\",\n            \"company\": \"Labii Inc.\",\n            \"version\": \"0.01\",\n            \"release_date\": \"2022-09-12\",\n            \"subscription_price\": \"Free\",\n            \"PPU_price\": \"Free\",\n            \"notes\": \"Create links to external data.\",\n            \"related_to\": \"Text, MultilineText, RichText, Number, RangeUnit, Secret, Address\",\n            \"allow_multiple\": true,\n            \"is_readonly\": false,\n            \"is_public\": true,\n            \"status\": {\n                \"sid\": \"FILO0a40xee1f6HMRW27bg\",\n                \"is_archived\": false,\n                \"change_permission\": true\n            },\n            \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/text-inputs/link\",\n            \"screenshot_url\": \"/media/widgets/column-link.webp\",\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"vyBE0a40x50xCHMRW27\",\n            \"icon\": \"home\",\n            \"name\": \"Address\",\n            \"type\": \"Column\",\n            \"category\": \"Form\",\n            \"sub_category\": \"Text inputs\",\n            \"company\": \"Labii Inc.\",\n            \"version\": \"0.01\",\n            \"release_date\": \"2022-03-07\",\n            \"subscription_price\": \"Free\",\n            \"PPU_price\": \"Free\",\n            \"notes\": \"Display address information\",\n            \"related_to\": \"Text, MultilineText, RichText, Number, RangeUnit, Secret, Link\",\n            \"allow_multiple\": true,\n            \"is_readonly\": false,\n            \"is_public\": true,\n            \"status\": {\n                \"sid\": \"GJMP0a40xee1f7INSX38ch\",\n                \"is_archived\": false,\n                \"change_permission\": true\n            },\n            \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/text-inputs/address\",\n            \"screenshot_url\": \"/media/widgets/column-address.webp\",\n            \"change_permission\": false\n        }\n    ]\n}"}],"_postman_id":"267ff4d2-7096-474c-904b-9f3c409d483e"},{"name":"Get Widget Detail","event":[{"listen":"test","script":{"id":"f23f8aef-c585-46e4-8c3f-7c2475004d1a","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Response is an array\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('array');","});","","","pm.test(\"Response array is empty\", function () {","    const responseData = pm.response.json();","    pm.expect(responseData).to.be.an('array').that.is.empty;","});","","","pm.test(\"Schema validation for the response is successful\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('array');","});",""],"type":"text/javascript","packages":{}}}],"id":"889e33e1-1305-428f-a4f0-aca7cbf23b58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/widgets/widget/detail/{{widget_sid}}/","description":"<h3 id=\"get-widget-detail\">Get Widget Detail</h3>\n<p>This endpoint retrieves the details of a specific widget identified by the <code>widget_sid</code>.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>Endpoint: <code>https://www.labii.dev/widgets/widget/detail/{{widget_sid}}/</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is an empty array <code>[]</code>.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response for this request does not contain any data.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["widgets","widget","detail","{{widget_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"16e6223a-820c-44d1-be8a-c3eaae05112a","name":"Get Widget Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/widgets/widget/detail/{{widget_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 21:35:40 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"2555","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"[]"}],"_postman_id":"889e33e1-1305-428f-a4f0-aca7cbf23b58"},{"name":"Install Widget","event":[{"listen":"test","script":{"id":"97fd6982-32b4-4c78-9d31-d5ddd50c050f","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"organizationwidget_sid\", jsonData.sid);","","","pm.test(\"Response status code is 201\", function () {","    pm.response.to.have.status(201);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the sid field in the response\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.have.property('sid');","});","","","pm.test(\"Widget object contains sid and name fields\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.widget).to.exist.and.to.be.an('object');","  pm.expect(responseData.widget.sid).to.exist.and.to.be.a('string');","  pm.expect(responseData.widget.name).to.exist.and.to.be.a('string');","});","","","pm.test(\"Verify the 'updated_by' object contains 'sid' and 'name' fields\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.updated_by).to.exist;","  pm.expect(responseData.updated_by.sid).to.exist;","  pm.expect(responseData.updated_by.name).to.exist;","});","",""],"type":"text/javascript","packages":{}}}],"id":"b50b6683-5407-48b0-ab6d-c4a0138a88bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"widget\": {\n        \"sid\": \"EHKN0a40x1bGLQV16af\", \n        \"name\": \"Text\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/organizationwidget/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h3 id=\"create-organization-widget\">Create Organization Widget</h3>\n<p>This endpoint allows you to create a new widget for a specific organization.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>widget.sid</code> (string): The unique identifier for the widget.</p>\n</li>\n<li><p><code>widget.name</code> (string): The name of the widget.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"widget\": {\n    \"sid\": \"EHKN0a40x1bGLQV16af\",\n    \"name\": \"Text\"\n  }\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier for the organization widget.</p>\n</li>\n<li><p><code>widget.sid</code> (string): The unique identifier for the widget.</p>\n</li>\n<li><p><code>widget.name</code> (string): The name of the widget.</p>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates if the widget is archived.</p>\n</li>\n<li><p><code>updated_by.sid</code> (string): The unique identifier of the user who updated the widget.</p>\n</li>\n<li><p><code>updated_by.name</code> (string): The name of the user who updated the widget.</p>\n</li>\n<li><p><code>date_updated</code> (string): The date when the widget was last updated.</p>\n</li>\n<li><p><code>date_created</code> (string): The date when the widget was created.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates if the user has permission to change the widget.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"\",\n  \"widget\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"is_archived\": true,\n  \"updated_by\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"date_updated\": \"\",\n  \"date_created\": \"\",\n  \"change_permission\": true\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","organizationwidget","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"f8eb82ad-5a72-47f6-b548-43fc0a1fe185","name":"Install Widget","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"widget\": {\n        \"sid\": \"EHKN0a40x1bGLQV16af\", \n        \"name\": \"Text\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/organizationwidget/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 21:54:30 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"283","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"EHKN0a40xee3a7GLQV16af\",\n    \"widget\": {\n        \"sid\": \"EHKN0a40x1bGLQV16af\",\n        \"name\": \"Text\"\n    },\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T21:54:30.904574Z\",\n    \"date_created\": \"2024-11-03T21:54:30.904583Z\",\n    \"change_permission\": true\n}"}],"_postman_id":"b50b6683-5407-48b0-ab6d-c4a0138a88bc"},{"name":"Activate Widget","event":[{"listen":"test","script":{"id":"14107343-90a7-47a4-8a8f-d8d68ede7b1c","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.be.a('string');","    pm.expect(responseData.widget).to.be.an('object');","    pm.expect(responseData.is_archived).to.be.a('boolean');","    pm.expect(responseData.updated_by).to.be.an('object');","    pm.expect(responseData.date_updated).to.be.a('string');","    pm.expect(responseData.date_created).to.be.a('string');","    pm.expect(responseData.change_permission).to.be.a('boolean');","});",""],"type":"text/javascript","packages":{}}}],"id":"773ef43f-d36a-426f-9d28-758446a18e37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"is_archived\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/organizationwidget/detail/{{organizationwidget_sid}}/","description":"<p>This endpoint allows you to update the details of a specific organization widget using an HTTP PATCH request. The request should be sent to https://www.labii.dev/organizations/organizationwidget/detail/{{organizationwidget_sid}}/.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>The request should include a raw JSON payload with the following parameter:</p>\n<ul>\n<li><code>is_archived</code> (boolean): Indicates whether the organization widget is archived or not.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response will include the updated details of the organization widget, including the following parameters:</p>\n<ul>\n<li><p><code>sid</code> (string): The ID of the organization widget.</p>\n</li>\n<li><p><code>widget</code> (object): Details of the widget.</p>\n<ul>\n<li><p><code>sid</code> (string): The ID of the widget.</p>\n</li>\n<li><p><code>name</code> (string): The name of the widget.</p>\n</li>\n</ul>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates whether the organization widget is archived or not.</p>\n</li>\n<li><p><code>updated_by</code> (object): Details of the user who updated the organization widget.</p>\n<ul>\n<li><p><code>sid</code> (string): The ID of the user.</p>\n</li>\n<li><p><code>name</code> (string): The name of the user.</p>\n</li>\n</ul>\n</li>\n<li><p><code>date_updated</code> (string): The date when the organization widget was updated.</p>\n</li>\n<li><p><code>date_created</code> (string): The date when the organization widget was created.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates whether the user has permission to change the organization widget.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","organizationwidget","detail","{{organizationwidget_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"18dc479f-ac34-4447-9bc6-b2add0f4b64e","name":"Activate Widget","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"is_archived\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/organizationwidget/detail/{{organizationwidget_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 21:58:47 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"283","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"EHKN0a40xee3a7GLQV16af\",\n    \"widget\": {\n        \"sid\": \"EHKN0a40x1bGLQV16af\",\n        \"name\": \"Text\"\n    },\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T21:54:30.904574Z\",\n    \"date_created\": \"2024-11-03T21:54:30.904583Z\",\n    \"change_permission\": true\n}"}],"_postman_id":"773ef43f-d36a-426f-9d28-758446a18e37"},{"name":"Inactivate Widget","event":[{"listen":"test","script":{"id":"6275d7d8-d9a0-43bb-9912-d5c1fcea7e0a","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.widget).to.exist;","    pm.expect(responseData.is_archived).to.exist;","    pm.expect(responseData.updated_by).to.exist;","    pm.expect(responseData.date_updated).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.change_permission).to.exist;","});","","","pm.test(\"Date_updated is in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.date_updated).to.match(/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$/);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Widget object contains the required fields - sid, name\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.widget).to.exist;","    pm.expect(responseData.widget.sid).to.exist;","    pm.expect(responseData.widget.name).to.exist;","});",""],"type":"text/javascript","packages":{}}}],"id":"2cb4fec9-8d71-4826-8190-2d4e5da9304a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"is_archived\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/organizationwidget/detail/{{organizationwidget_sid}}/","description":"<p>This HTTP PATCH request is used to update the details of a specific organization widget. The request should be made to https://www.labii.dev/organizations/organizationwidget/detail/{{organizationwidget_sid}}/.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>The request should include a raw JSON payload with the following parameter:</p>\n<ul>\n<li><code>is_archived</code>: A boolean value indicating whether the organization widget is archived or not.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response will include the updated details of the organization widget, including the following parameters:</p>\n<ul>\n<li><p><code>sid</code>: The ID of the organization widget.</p>\n</li>\n<li><p><code>widget</code>: Details of the widget.</p>\n</li>\n<li><p><code>is_archived</code>: A boolean value indicating whether the organization widget is archived or not.</p>\n</li>\n<li><p><code>updated_by</code>: Details of the user who updated the organization widget.</p>\n</li>\n<li><p><code>date_updated</code>: The date when the organization widget was updated.</p>\n</li>\n<li><p><code>date_created</code>: The date when the organization widget was created.</p>\n</li>\n<li><p><code>change_permission</code>: A boolean value indicating whether the user has permission to change the organization widget.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["organizations","organizationwidget","detail","{{organizationwidget_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"412981c3-0e17-48bc-92a0-3346d2f16d08","name":"Inactivate Widget","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"is_archived\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/organizations/organizationwidget/detail/{{organizationwidget_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 21:57:55 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"282","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"EHKN0a40xee3a7GLQV16af\",\n    \"widget\": {\n        \"sid\": \"EHKN0a40x1bGLQV16af\",\n        \"name\": \"Text\"\n    },\n    \"is_archived\": true,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T21:54:30.904574Z\",\n    \"date_created\": \"2024-11-03T21:54:30.904583Z\",\n    \"change_permission\": true\n}"}],"_postman_id":"2cb4fec9-8d71-4826-8190-2d4e5da9304a"}],"id":"8d08a2ed-45a6-455b-aa21-f93f3a139f85","description":"<p>The Labii Widget API offers users a powerful tool for managing widgets within their applications. With this API, users can easily retrieve a list of available widgets or access detailed information about specific widgets. Additionally, it allows for seamless installation, activation, or inactivation of widgets, providing flexibility and control over the widget functionality within their projects. This API enhances user experience by enabling efficient widget management tailored to individual needs.</p>\n","_postman_id":"8d08a2ed-45a6-455b-aa21-f93f3a139f85","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Workflow","item":[{"name":"Get Workflow List","event":[{"listen":"test","script":{"id":"139f84fc-4da0-4167-b6b7-83a2689f7bfe","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.page_size).to.exist;","    pm.expect(responseData.page_number).to.exist;","    pm.expect(responseData.page_count).to.exist;","    pm.expect(responseData.count).to.exist;","    pm.expect(responseData.next).to.exist;","    pm.expect(responseData.previous).to.exist;","    pm.expect(responseData.add_permission).to.exist;","});","","","pm.test(\"Results array is present and contains the expected number of elements\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.results).to.exist.and.to.be.an('array');","    pm.expect(responseData.results).to.have.lengthOf(responseData.count);","});","","","pm.test(\"Validate response attributes\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    ","    responseData.results.forEach(function(result) {","        pm.expect(result.sid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"sid should be a non-empty string\");","        pm.expect(result.name).to.be.a('string').and.to.have.lengthOf.at.least(1, \"name should be a non-empty string\");","        pm.expect(result.description).to.be.a('string').and.to.have.lengthOf.at.least(1, \"description should be a non-empty string\");","        pm.expect(result.order).to.be.a('number').and.to.be.at.least(0, \"order should be a non-negative integer\");","        pm.expect(result.is_archived).to.be.a('boolean', \"is_archived should be a boolean\");","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"3bbaaa97-7e92-40eb-9d3d-24047eb83453","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/workflows/workflow/list/organization/{{organization_sid_test_administrator}}/list/","description":"<p>This endpoint retrieves a list of workflows for a specific organization.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>This request does not require a request body.</p>\n<h3 id=\"response-body\">Response Body</h3>\n<ul>\n<li><p><code>page_size</code> (integer): The number of items per page.</p>\n</li>\n<li><p><code>page_number</code> (integer): The current page number.</p>\n</li>\n<li><p><code>page_count</code> (integer): The total number of pages.</p>\n</li>\n<li><p><code>count</code> (integer): The total count of workflows.</p>\n</li>\n<li><p><code>next</code> (string): The URL for the next page of workflows.</p>\n</li>\n<li><p><code>previous</code> (string): The URL for the previous page of workflows.</p>\n</li>\n<li><p><code>add_permission</code> (boolean): Indicates if the user has permission to add workflows.</p>\n</li>\n<li><p><code>results</code> (array): An array of workflow objects containing the following fields:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier for the workflow.</p>\n</li>\n<li><p><code>name</code> (string): The name of the workflow.</p>\n</li>\n<li><p><code>description</code> (string): The description of the workflow.</p>\n</li>\n<li><p><code>order</code> (integer): The order of the workflow.</p>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates if the workflow is archived.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates if the user has permission to change the workflow.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["workflows","workflow","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"ce1047d3-8c39-4721-a96b-163640b1d02c","name":"Get Workflow List","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/workflows/workflow/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 22:22:51 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"2383","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 10,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": true,\n    \"results\": [\n        {\n            \"sid\": \"RUX10a40x446TY49dins\",\n            \"name\": \"Create extract\",\n            \"description\": \"This workflow will generate an extract with biospecimen consumption as the triggering event.\",\n            \"order\": 1,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"SVY20a40x447UZ50ejot\",\n            \"name\": \"Create library\",\n            \"description\": \"This workflow will generate an library with extract consumption as the triggering event.\",\n            \"order\": 1,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"TWZ30a40x448V16afkpu\",\n            \"name\": \"Create Fastq\",\n            \"description\": \"This workflow will generate an Fastq with library consumption as the triggering event.\",\n            \"order\": 1,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"UX140a40x449W27bglqv\",\n            \"name\": \"Create biospecimen consumption\",\n            \"description\": \"This workflow will generate consumption based on the provided biospecimen. Triggered by the biospecimen material.\",\n            \"order\": 1,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"VY250a40x44aX38chmrw\",\n            \"name\": \"Create extract consumption\",\n            \"description\": \"This workflow will generate consumption based on the provided extract. Triggered by the extract material.\",\n            \"order\": 1,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"WZ360a40x44bY49dinsx\",\n            \"name\": \"Create library consumption\",\n            \"description\": \"This workflow will generate consumption based on the provided library. Triggered by the library material.\",\n            \"order\": 1,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"X1470a40x44cZ50ejoty\",\n            \"name\": \"Update invoice items from quote\",\n            \"description\": \"This workflow will update invoice items when creating a invoice. When a quote is converted to an invoice, the items in the quote will be copied to the invoice.\",\n            \"order\": 1,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"filo0a40x45ehmrwBGLQ\",\n            \"name\": \"Test workflow\",\n            \"description\": \"Test workflow\",\n            \"order\": 9,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"gjmp0a40x45finsxCHMR\",\n            \"name\": \"Test workflow without trigger\",\n            \"description\": \"Test workflow without trigger\",\n            \"order\": 10,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"Y2580a40x44d16afkpuz\",\n            \"name\": \"Create 4 glucose tracker\",\n            \"description\": \"A daily glucose record will be created for each of the following four meal periods (Feasting, Breakfast, Lunch, and Dinner).\",\n            \"order\": 1,\n            \"is_archived\": true,\n            \"change_permission\": true\n        }\n    ]\n}"}],"_postman_id":"3bbaaa97-7e92-40eb-9d3d-24047eb83453"},{"name":"Create Workflow","event":[{"listen":"prerequest","script":{"id":"de3a8ad8-9e11-449c-b500-c4c07ebe2aac","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"7584eddb-1a8c-4b5e-94a2-164602151793","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"workflow_sid\", jsonData.sid);","","","pm.test(\"Response status code is 201\", function () {","    pm.response.to.have.status(201);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate schema of the response\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.be.a('string');","    pm.expect(responseData.name).to.be.a('string');","    pm.expect(responseData.description).to.be.a('string');","    pm.expect(responseData.trigger).to.be.an('object');","    pm.expect(responseData.trigger.events).to.be.a('string');","    pm.expect(responseData.trigger.interval_value).to.be.a('number');","    pm.expect(responseData.trigger.interval_unit).to.be.a('string');","    pm.expect(responseData.actions).to.be.an('array');","    responseData.actions.forEach(action => {","        pm.expect(action.name).to.be.a('string');","        pm.expect(action.body).to.be.a('string');","    });","    pm.expect(responseData.order).to.be.a('number');","    pm.expect(responseData.execution_log).to.be.an('object');","    pm.expect(responseData.execution_log.name_plural).to.be.a('string');","    pm.expect(responseData.execution_log.query).to.be.a('string');","    pm.expect(responseData.execution_log.is_readonly).to.be.a('boolean');","    pm.expect(responseData.is_archived).to.be.a('boolean');","    pm.expect(responseData.updated_by).to.be.an('object');","    pm.expect(responseData.updated_by.sid).to.be.a('string');","    pm.expect(responseData.updated_by.name).to.be.a('string');","    pm.expect(responseData.date_updated).to.be.a('string');","    pm.expect(responseData.date_created).to.be.a('string');","    pm.expect(responseData.change_permission).to.be.a('boolean');","    pm.expect(responseData.help_text).to.be.an('object');","    pm.expect(responseData.help_text.sid).to.be.a('string');","    pm.expect(responseData.help_text.name).to.be.a('string');","    pm.expect(responseData.help_text.description).to.be.a('string');","    pm.expect(responseData.help_text.order).to.be.a('string');","    pm.expect(responseData.help_text.trigger).to.be.a('string');","    pm.expect(responseData.help_text.actions).to.be.a('string');","    pm.expect(responseData.help_text.is_archived).to.be.a('string');","});","","","pm.test(\"Date_updated field should be in a specific format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.have.property('date_updated').that.is.a('string').and.matches(/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$/, \"Date_updated should be in ISO 8601 format\");","});","","","pm.test(\"Verify that the trigger object contains the required fields events, interval_value, and interval_unit\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.trigger).to.exist;","    pm.expect(responseData.trigger.events).to.exist;","    pm.expect(responseData.trigger.interval_value).to.exist;","    pm.expect(responseData.trigger.interval_unit).to.exist;","});","",""],"type":"text/javascript","packages":{}}}],"id":"94cc2c60-bafd-474c-b422-eb5d717a22f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Workflow {{currentDate}}\",\n    \"description\": \"Test workflow created by postman.\",\n    \"trigger\": {\n        \"events\": \"interval\",\n        \"interval_value\": 1,\n        \"interval_unit\": \"days\"\n    },\n    \"actions\": [{\n        \"name\": \"Test\",\n        \"body\": \"Test\"\n    }]\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/workflows/workflow/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h3 id=\"create-workflow-list\">Create Workflow List</h3>\n<p>This endpoint allows the user to create a new workflow list for the specified organization.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code> (string): The name of the workflow.</p>\n</li>\n<li><p><code>description</code> (string): Description of the workflow.</p>\n</li>\n<li><p><code>trigger</code> (object): Object containing trigger details.</p>\n<ul>\n<li><p><code>events</code> (string): Type of trigger events.</p>\n</li>\n<li><p><code>interval_value</code> (number): Value for the interval trigger.</p>\n</li>\n<li><p><code>interval_unit</code> (string): Unit for the interval trigger.</p>\n</li>\n</ul>\n</li>\n<li><p><code>actions</code> (array of objects): Array containing action details.</p>\n<ul>\n<li><p><code>name</code> (string): Name of the action.</p>\n</li>\n<li><p><code>body</code> (string): Body of the action.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"trigger\": {\n    \"events\": \"\",\n    \"interval_value\": 0,\n    \"interval_unit\": \"\"\n  },\n  \"actions\": [\n    {\n      \"name\": \"\",\n      \"body\": \"\"\n    }\n  ],\n  \"order\": 0,\n  \"execution_log\": {\n    \"name_plural\": \"\",\n    \"query\": \"\",\n    \"is_readonly\": true\n  },\n  \"is_archived\": true,\n  \"updated_by\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"date_updated\": \"\",\n  \"date_created\": \"\",\n  \"change_permission\": true,\n  \"help_text\": {\n    \"sid\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"order\": \"\",\n    \"trigger\": \"\",\n    \"actions\": \"\",\n    \"is_archived\": \"\"\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["workflows","workflow","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"2f72f64e-147a-4fbf-8e48-10924053eaf4","name":"Create Workflow","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Workflow {{currentDate}}\",\n    \"description\": \"Test workflow created by postman.\",\n    \"trigger\": {\n        \"events\": \"interval\",\n        \"interval_value\": 1,\n        \"interval_unit\": \"days\"\n    },\n    \"actions\": [{\n        \"name\": \"Test\",\n        \"body\": \"Test\"\n    }]\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/workflows/workflow/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 22:35:21 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1345","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"ilor0a40x461kpuzEJOT\",\n    \"name\": \"Test Workflow 2024-11-03\",\n    \"description\": \"Test workflow created by postman.\",\n    \"trigger\": {\n        \"events\": \"interval\",\n        \"interval_value\": 1,\n        \"interval_unit\": \"days\"\n    },\n    \"actions\": [\n        {\n            \"name\": \"Test\",\n            \"body\": \"Test\"\n        }\n    ],\n    \"order\": 11,\n    \"execution_log\": {\n        \"name_plural\": \"executionlog\",\n        \"query\": \"workflow__sid=ilor0a40x461kpuzEJOT\",\n        \"is_readonly\": true\n    },\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T22:35:21.568241Z\",\n    \"date_created\": \"2024-11-03T22:35:21.568250Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"name\": \"Name of workflow. Make it easy to identify so that others can find it.\",\n        \"description\": \"Description of the workflow.\",\n        \"order\": \"The order to display this workflow. \",\n        \"trigger\": \"Workflow triggers are events that cause a workflow to execute. The trigger is optional. The workflow will be executed automatically if trigger is provided. In the absence of a trigger, the workflow can be manually triggered.\",\n        \"actions\": \"Actions are the functions that the workflow will execute. Labii use API calls to perform the actions. Learn more at <a href='https://docs.labii.com/api/sdk' target='_blank'>https://docs.labii.com/api/sdk</a>.\",\n        \"is_archived\": \"By checking this box, the workflow will be archived. Archived workflow is not available for use.\"\n    }\n}"}],"_postman_id":"94cc2c60-bafd-474c-b422-eb5d717a22f7"},{"name":"Get Workflow Detail","event":[{"listen":"test","script":{"id":"d13d44e3-65a2-4128-96e2-3c3669a1edd5","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});","","","pm.test(\"Validate the schema for the response fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.be.a('string');","    pm.expect(responseData.name).to.be.a('string');","    pm.expect(responseData.description).to.be.a('string');","    pm.expect(responseData.trigger).to.be.an('object');","    pm.expect(responseData.actions).to.be.an('array');","    pm.expect(responseData.order).to.be.a('number');","    pm.expect(responseData.execution_log).to.be.an('object');","    pm.expect(responseData.is_archived).to.be.a('boolean');","    pm.expect(responseData.updated_by).to.be.an('object');","    pm.expect(responseData.date_updated).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.change_permission).to.be.a('boolean');","    pm.expect(responseData.help_text).to.be.an('object');","});",""],"type":"text/javascript","packages":{}}}],"id":"ddd8f7f5-234d-4ec9-99e7-1fdf2af6d782","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/workflows/workflow/detail/{{workflow_sid}}/","description":"<h3 id=\"get-workflow-detail\">Get Workflow Detail</h3>\n<p>This endpoint retrieves the details of a specific workflow identified by its <code>workflow_sid</code>.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/workflows/workflow/detail/{{workflow_sid}}/</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will include the following fields:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the workflow.</p>\n</li>\n<li><p><code>name</code> (string): The name of the workflow.</p>\n</li>\n<li><p><code>description</code> (string): The description of the workflow.</p>\n</li>\n<li><p><code>trigger</code> (object): An object containing trigger details including <code>events</code> (string), <code>interval_unit</code> (string), and <code>interval_value</code> (number).</p>\n</li>\n<li><p><code>actions</code> (array): An array of objects containing <code>body</code> (string) and <code>name</code> (string) for each action.</p>\n</li>\n<li><p><code>order</code> (number): The order of the workflow.</p>\n</li>\n<li><p><code>execution_log</code> (object): An object containing <code>name_plural</code> (string), <code>query</code> (string), and <code>is_readonly</code> (boolean) fields.</p>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates if the workflow is archived.</p>\n</li>\n<li><p><code>updated_by</code> (object): An object containing <code>sid</code> (string) and <code>name</code> (string) of the user who last updated the workflow.</p>\n</li>\n<li><p><code>date_updated</code> (string): The date when the workflow was last updated.</p>\n</li>\n<li><p><code>date_created</code> (string): The date when the workflow was created.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates if the user has permission to change the workflow.</p>\n</li>\n<li><p><code>help_text</code> (object): An object containing <code>sid</code> (string), <code>name</code> (string), <code>description</code> (string), <code>order</code> (string), <code>trigger</code> (string), <code>actions</code> (string), and <code>is_archived</code> (string) fields.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["workflows","workflow","detail","{{workflow_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"2d8c4acf-0c4b-40e8-8a1c-7713e0f0c6c6","name":"Get Workflow Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/workflows/workflow/detail/{{workflow_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 22:36:24 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1345","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"ilor0a40x461kpuzEJOT\",\n    \"name\": \"Test Workflow 2024-11-03\",\n    \"description\": \"Test workflow created by postman.\",\n    \"trigger\": {\n        \"events\": \"interval\",\n        \"interval_unit\": \"days\",\n        \"interval_value\": 1\n    },\n    \"actions\": [\n        {\n            \"body\": \"Test\",\n            \"name\": \"Test\"\n        }\n    ],\n    \"order\": 11,\n    \"execution_log\": {\n        \"name_plural\": \"executionlog\",\n        \"query\": \"workflow__sid=ilor0a40x461kpuzEJOT\",\n        \"is_readonly\": true\n    },\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T22:35:21.568241Z\",\n    \"date_created\": \"2024-11-03T22:35:21.568250Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"name\": \"Name of workflow. Make it easy to identify so that others can find it.\",\n        \"description\": \"Description of the workflow.\",\n        \"order\": \"The order to display this workflow. \",\n        \"trigger\": \"Workflow triggers are events that cause a workflow to execute. The trigger is optional. The workflow will be executed automatically if trigger is provided. In the absence of a trigger, the workflow can be manually triggered.\",\n        \"actions\": \"Actions are the functions that the workflow will execute. Labii use API calls to perform the actions. Learn more at <a href='https://docs.labii.com/api/sdk' target='_blank'>https://docs.labii.com/api/sdk</a>.\",\n        \"is_archived\": \"By checking this box, the workflow will be archived. Archived workflow is not available for use.\"\n    }\n}"}],"_postman_id":"ddd8f7f5-234d-4ec9-99e7-1fdf2af6d782"},{"name":"Edit Workflow","event":[{"listen":"prerequest","script":{"id":"2ce3df26-9207-4ef3-91a9-0180736f540d","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"bf992157-18f7-4adc-82e3-0161a051d2c3","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.name).to.exist;","    pm.expect(responseData.description).to.exist;","    pm.expect(responseData.trigger).to.exist;","    pm.expect(responseData.actions).to.exist;","    pm.expect(responseData.order).to.exist;","    pm.expect(responseData.execution_log).to.exist;","    pm.expect(responseData.is_archived).to.exist;","    pm.expect(responseData.updated_by).to.exist;","    pm.expect(responseData.date_updated).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.change_permission).to.exist;","    pm.expect(responseData.help_text).to.exist;","});","","","pm.test(\"Trigger events is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.trigger.events).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Value should not be empty\");","});","","","pm.test(\"Actions array contains at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.actions).to.be.an('array').that.is.not.empty;","});","","","pm.test(\"Execution log properties are as expected\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.execution_log).to.be.an('object');","    pm.expect(responseData.execution_log.name_plural).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Name_plural should not be empty\");","    pm.expect(responseData.execution_log.query).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Query should not be empty\");","    pm.expect(responseData.execution_log.is_readonly).to.be.a('boolean');","});",""],"type":"text/javascript","packages":{}}}],"id":"8a1dc949-934c-47fc-9c70-6778fbf1337d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Workflow {{currentDate}}\",\n    \"description\": \"Test workflow edit by postman.\",\n    \"trigger\": {\n        \"events\": \"interval\",\n        \"interval_value\": 1,\n        \"interval_unit\": \"days\"\n    },\n    \"actions\": [{\n        \"name\": \"Test\",\n        \"body\": \"Test\"\n    }]\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/workflows/workflow/detail/{{workflow_sid}}/","description":"<h3 id=\"update-workflow-details\">Update Workflow Details</h3>\n<p>This endpoint allows the user to update the details of a specific workflow.</p>\n<h4 id=\"request\">Request</h4>\n<p>The request should be sent as an HTTP PATCH to <code>https://www.labii.dev/workflows/workflow/detail/{{workflow_sid}}/</code> with the following JSON payload in the raw request body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"name\": \"Test Workflow {{currentDate}}\",\n  \"description\": \"Test workflow edit by postman.\",\n  \"trigger\": {\n    \"events\": \"interval\",\n    \"interval_value\": 1,\n    \"interval_unit\": \"days\"\n  },\n  \"actions\": [\n    {\n      \"name\": \"Test\",\n      \"body\": \"Test\"\n    }\n  ]\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the updated workflow details. Here is an example response schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"trigger\": {\n    \"events\": \"\",\n    \"interval_value\": 0,\n    \"interval_unit\": \"\"\n  },\n  \"actions\": [\n    {\n      \"name\": \"\",\n      \"body\": \"\"\n    }\n  ],\n  \"order\": 0,\n  \"execution_log\": {\n    \"name_plural\": \"\",\n    \"query\": \"\",\n    \"is_readonly\": true\n  },\n  \"is_archived\": true,\n  \"updated_by\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"date_updated\": \"\",\n  \"date_created\": \"\",\n  \"change_permission\": true,\n  \"help_text\": {\n    \"sid\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"order\": \"\",\n    \"trigger\": \"\",\n    \"actions\": \"\",\n    \"is_archived\": \"\"\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["workflows","workflow","detail","{{workflow_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"3b891276-ca08-4368-9f18-ced4f11219d7","name":"Edit Workflow","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Workflow {{currentDate}}\",\n    \"description\": \"Test workflow edit by postman.\",\n    \"trigger\": {\n        \"events\": \"interval\",\n        \"interval_value\": 1,\n        \"interval_unit\": \"days\"\n    },\n    \"actions\": [{\n        \"name\": \"Test\",\n        \"body\": \"Test\"\n    }]\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/workflows/workflow/detail/{{workflow_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 22:38:41 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1342","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"ilor0a40x461kpuzEJOT\",\n    \"name\": \"Test Workflow 2024-11-03\",\n    \"description\": \"Test workflow edit by postman.\",\n    \"trigger\": {\n        \"events\": \"interval\",\n        \"interval_value\": 1,\n        \"interval_unit\": \"days\"\n    },\n    \"actions\": [\n        {\n            \"name\": \"Test\",\n            \"body\": \"Test\"\n        }\n    ],\n    \"order\": 11,\n    \"execution_log\": {\n        \"name_plural\": \"executionlog\",\n        \"query\": \"workflow__sid=ilor0a40x461kpuzEJOT\",\n        \"is_readonly\": true\n    },\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T22:35:21.568241Z\",\n    \"date_created\": \"2024-11-03T22:35:21.568250Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"name\": \"Name of workflow. Make it easy to identify so that others can find it.\",\n        \"description\": \"Description of the workflow.\",\n        \"order\": \"The order to display this workflow. \",\n        \"trigger\": \"Workflow triggers are events that cause a workflow to execute. The trigger is optional. The workflow will be executed automatically if trigger is provided. In the absence of a trigger, the workflow can be manually triggered.\",\n        \"actions\": \"Actions are the functions that the workflow will execute. Labii use API calls to perform the actions. Learn more at <a href='https://docs.labii.com/api/sdk' target='_blank'>https://docs.labii.com/api/sdk</a>.\",\n        \"is_archived\": \"By checking this box, the workflow will be archived. Archived workflow is not available for use.\"\n    }\n}"}],"_postman_id":"8a1dc949-934c-47fc-9c70-6778fbf1337d"},{"name":"Trigger Workflow","event":[{"listen":"prerequest","script":{"id":"d5a94154-1854-4193-bc56-db3310294dbf","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"d789bef8-8c91-419d-a599-2b082513dff0","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.name).to.exist;","    pm.expect(responseData.description).to.exist;","    pm.expect(responseData.trigger).to.exist;","    pm.expect(responseData.actions).to.exist;","    pm.expect(responseData.order).to.exist;","    pm.expect(responseData.execution_log).to.exist;","    pm.expect(responseData.is_archived).to.exist;","    pm.expect(responseData.updated_by).to.exist;","    pm.expect(responseData.date_updated).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.change_permission).to.exist;","    pm.expect(responseData.help_text).to.exist;","});","","","pm.test(\"Trigger events is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.trigger.events).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Value should not be empty\");","});","","","pm.test(\"Interval value is a non-negative integer\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.trigger.interval_value).to.be.a('number').and.to.be.at.least(0);","});","","","pm.test(\"Interval unit is a valid unit of time\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.have.property('trigger');","    pm.expect(responseData.trigger.interval_unit).to.be.a('string').and.to.satisfy(unit => ['seconds', 'minutes', 'hours'].includes(unit));","});",""],"type":"text/javascript","packages":{}}}],"id":"7bbdcd95-133f-4190-9fb8-d234fbe1d3e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://www.labii.dev/workflows/workflow/detail/{{workflow_sid}}/?trigger__sid={{row__sid}}","description":"<h3 id=\"update-workflow-detail\">Update Workflow Detail</h3>\n<p>This endpoint allows the user to update the details of a specific workflow, identified by the <code>workflow_sid</code>, and trigger it using the <code>row__sid</code>.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li>No request body is required for this request.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"string\",\n  \"name\": \"string\",\n  \"description\": \"string\",\n  \"trigger\": {\n    \"events\": \"string\",\n    \"interval_value\": 0,\n    \"interval_unit\": \"string\"\n  },\n  \"actions\": [\n    {\n      \"name\": \"string\",\n      \"body\": \"string\"\n    }\n  ],\n  \"order\": 0,\n  \"execution_log\": {\n    \"name_plural\": \"string\",\n    \"query\": \"string\",\n    \"is_readonly\": true\n  },\n  \"is_archived\": true,\n  \"updated_by\": {\n    \"sid\": \"string\",\n    \"name\": \"string\"\n  },\n  \"date_updated\": \"string\",\n  \"date_created\": \"string\",\n  \"change_permission\": true,\n  \"help_text\": {\n    \"sid\": \"string\",\n    \"name\": \"string\",\n    \"description\": \"string\",\n    \"order\": \"string\",\n    \"trigger\": \"string\",\n    \"actions\": \"string\",\n    \"is_archived\": \"string\"\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["workflows","workflow","detail","{{workflow_sid}}",""],"host":["https://www.labii.dev"],"query":[{"key":"trigger__sid","value":"{{row__sid}}"}],"variable":[]}},"response":[{"id":"e57a2f4a-32a3-491a-a757-69ca06a3a777","name":"Edit Workflow","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Workflow {{currentDate}}\",\n    \"description\": \"Test workflow edit by postman.\",\n    \"trigger\": {\n        \"events\": \"interval\",\n        \"interval_value\": 1,\n        \"interval_unit\": \"days\"\n    },\n    \"actions\": [{\n        \"name\": \"Test\",\n        \"body\": \"Test\"\n    }]\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/workflows/workflow/detail/{{workflow_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 03 Nov 2024 22:38:41 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1342","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"ilor0a40x461kpuzEJOT\",\n    \"name\": \"Test Workflow 2024-11-03\",\n    \"description\": \"Test workflow edit by postman.\",\n    \"trigger\": {\n        \"events\": \"interval\",\n        \"interval_value\": 1,\n        \"interval_unit\": \"days\"\n    },\n    \"actions\": [\n        {\n            \"name\": \"Test\",\n            \"body\": \"Test\"\n        }\n    ],\n    \"order\": 11,\n    \"execution_log\": {\n        \"name_plural\": \"executionlog\",\n        \"query\": \"workflow__sid=ilor0a40x461kpuzEJOT\",\n        \"is_readonly\": true\n    },\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-03T22:35:21.568241Z\",\n    \"date_created\": \"2024-11-03T22:35:21.568250Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"name\": \"Name of workflow. Make it easy to identify so that others can find it.\",\n        \"description\": \"Description of the workflow.\",\n        \"order\": \"The order to display this workflow. \",\n        \"trigger\": \"Workflow triggers are events that cause a workflow to execute. The trigger is optional. The workflow will be executed automatically if trigger is provided. In the absence of a trigger, the workflow can be manually triggered.\",\n        \"actions\": \"Actions are the functions that the workflow will execute. Labii use API calls to perform the actions. Learn more at <a href='https://docs.labii.com/api/sdk' target='_blank'>https://docs.labii.com/api/sdk</a>.\",\n        \"is_archived\": \"By checking this box, the workflow will be archived. Archived workflow is not available for use.\"\n    }\n}"}],"_postman_id":"7bbdcd95-133f-4190-9fb8-d234fbe1d3e5"},{"name":"Delete Workflow","event":[{"listen":"test","script":{"id":"8300ecd4-2707-4437-b70c-3fa06f0145bd","exec":["pm.test(\"Response status code is 204\", function () {","  pm.response.to.have.status(204);","});","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.lessThan(100);","});",""],"type":"text/javascript","packages":{}}}],"id":"1c71c169-ce11-40b4-b4a4-865b9d4895a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://www.labii.dev/workflows/workflow/detail/{{workflow_sid}}/","description":"<h3 id=\"delete-workflow-detail\">Delete Workflow Detail</h3>\n<p>This endpoint is used to delete a specific workflow detail identified by its unique identifier (workflow_sid).</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: <code>DELETE</code></p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/workflows/workflow/detail/{{workflow_sid}}/</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request follows the JSON schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"message\": {\n      \"type\": \"string\"\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["workflows","workflow","detail","{{workflow_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"1c71c169-ce11-40b4-b4a4-865b9d4895a2"}],"id":"d3fa3d16-0812-459a-b875-9a406b6ddc34","description":"<p>The Labii Workflow Widget API is designed to facilitate the management of workflows, which represent orchestrated and repeatable patterns of activity that transform resources into processes. This API empowers administrators to efficiently oversee their workflows by providing capabilities to retrieve a comprehensive list of workflows, create new workflows, access detailed information about specific workflows, edit existing ones, trigger workflows, and delete workflows as needed. By streamlining workflow management, this API enhances operational efficiency and supports the systematic organization of resources for various activities.</p>\n","_postman_id":"d3fa3d16-0812-459a-b875-9a406b6ddc34","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Workflow ExecutionLog","item":[{"name":"Get ExecutionLog List","event":[{"listen":"test","script":{"id":"0777fcfe-dbf2-4675-981b-7685a2483e32","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the schema of the response body\", function () {","  const responseData = pm.response.json();","","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData).to.have.property('execution_logs').that.is.an('array');","  responseData.execution_logs.forEach(function(log) {","    pm.expect(log).to.have.property('timestamp').that.is.a('string');","    pm.expect(log).to.have.property('status').that.is.a('string');","    pm.expect(log).to.have.property('details').that.is.an('object');","  });","});",""],"type":"text/javascript","packages":{}}}],"id":"1a1dac56-d8fc-4c17-aec1-bb09a7ffbe81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/workflows/executionlog/list/organization/{{organization_sid_test_administrator}}/list/?workflow__sid={{workflow_sid}}","description":"<h1 id=\"retrieve-workflow-execution-logs\">Retrieve Workflow Execution Logs</h1>\n<p>This endpoint retrieves the execution logs for a specific workflow within the organization.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"request-url\">Request URL</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">GET https://www.labii.dev/workflows/executionlog/list/organization/{{organization_sid_test_administrator}}/list/?workflow__sid={{workflow_sid}}\n\n</code></pre>\n<h3 id=\"request-description\">Request Description</h3>\n<p>This GET request fetches the execution logs for a specific workflow within the organization.</p>\n<h2 id=\"response\">Response</h2>\n<p>The response for this request is a JSON object conforming to the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"log_id\": {\n      \"type\": \"string\"\n    },\n    \"timestamp\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"details\": {\n      \"type\": \"string\"\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["workflows","executionlog","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"workflow__sid","value":"{{workflow_sid}}"}],"variable":[]}},"response":[],"_postman_id":"1a1dac56-d8fc-4c17-aec1-bb09a7ffbe81"},{"name":"Get ExecutionLog Detail","event":[{"listen":"test","script":{"id":"85a4fc9a-1f46-47a3-a28b-1ee010bc81a0","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 500ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});","","","pm.test(\"Response body has the expected fields and data types\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('executionlog_sid').that.is.a('string');","    pm.expect(responseData).to.have.property('workflow_name').that.is.a('string');","    pm.expect(responseData).to.have.property('status').that.is.a('string');","    pm.expect(responseData).to.have.property('start_time').that.is.a('string');","    pm.expect(responseData).to.have.property('end_time').that.is.a('string');","    pm.expect(responseData).to.have.property('steps').that.is.an('array');","    responseData.steps.forEach(function(step) {","        pm.expect(step).to.be.an('object');","        pm.expect(step).to.have.property('step_name').that.is.a('string');","        pm.expect(step).to.have.property('status').that.is.a('string');","        pm.expect(step).to.have.property('start_time').that.is.a('string');","        pm.expect(step).to.have.property('end_time').that.is.a('string');","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"292d5492-3395-4ac2-96bc-ebf6c233e74f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/workflows/executionlog/detail/{{executionlog_sid}}/","description":"<p>This endpoint makes an HTTP GET request to retrieve the detailed execution log for a specific workflow. The request should include the execution log's unique identifier in the URL.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>This request does not require a request body.</p>\n<h3 id=\"response-body\">Response Body</h3>\n<p>The response will contain detailed information about the execution log, including timestamps, status, and any relevant data associated with the workflow execution.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["workflows","executionlog","detail","{{executionlog_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"292d5492-3395-4ac2-96bc-ebf6c233e74f"}],"id":"b60e74ee-2a1c-4c8e-b54c-ab1a3a89b392","description":"<p>The Labii Workflow Execution Log API is a valuable tool for monitoring and analyzing the performance of workflows by providing detailed logs of each execution. This API enables users to display a comprehensive list of workflows and access detailed information about specific workflow executions. By offering insights into workflow performance, this API aids in troubleshooting, optimization, and ensuring that processes are running smoothly and efficiently.</p>\n","_postman_id":"b60e74ee-2a1c-4c8e-b54c-ab1a3a89b392","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Application","item":[{"name":"Get Application List","event":[{"listen":"test","script":{"id":"90df2b45-a88d-4b16-8728-25242da44c92","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is acceptable\", function () {","    pm.expect(pm.response.responseTime).to.be.below(300);","});","","","pm.test(\"Validate the response schema for page_size, page_number, page_count, count, next, previous, add_permission, and results array\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.page_size).to.be.a('number');","    pm.expect(responseData.page_number).to.be.a('number');","    pm.expect(responseData.page_count).to.be.a('number');","    pm.expect(responseData.count).to.be.a('number');","    pm.expect(responseData.next).to.be.a('string');","    pm.expect(responseData.previous).to.satisfy((value) => typeof value === 'string' || value === null);","    pm.expect(responseData.add_permission).to.be.a('boolean');","    pm.expect(responseData.results).to.be.an('array');","});","","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON object\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","});","","pm.test(\"Each table object in 'results' array contains required properties\", function () {","    const responseData = pm.response.json();","    ","    responseData.results.forEach(function(table) {","        pm.expect(table).to.have.property('icon');","        pm.expect(table).to.have.property('name_singular');","        pm.expect(table).to.have.property('name_plural');","        pm.expect(table).to.have.property('sid');","        pm.expect(table).to.have.property('tables');","        pm.expect(table).to.have.property('teams');","        pm.expect(table).to.have.property('order');","        pm.expect(table).to.have.property('is_archived');","    });","});","","","pm.test(\"Results array is not empty\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array').that.is.not.empty;","});",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"packages":{},"type":"text/javascript"}}],"id":"814654b1-0aba-4d63-b575-a11902dbd807","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/applications/application/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h3 id=\"get-applicationsapplicationlistorganizationorganization_sid_test_administratorlist\">GET /applications/application/list/organization/{{organization_sid_test_administrator}}/list/</h3>\n<p>This endpoint retrieves a list of applications for a specific organization.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this endpoint.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"page_size\": {\"type\": \"integer\"},\n        \"page_number\": {\"type\": \"integer\"},\n        \"page_count\": {\"type\": \"integer\"},\n        \"count\": {\"type\": \"integer\"},\n        \"next\": {\"type\": \"string\"},\n        \"previous\": {\"type\": [\"string\", \"null\"]},\n        \"add_permission\": {\"type\": \"boolean\"},\n        \"results\": {\n            \"type\": \"array\",\n            \"items\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"sid\": {\"type\": \"string\"},\n                    \"icon\": {\"type\": \"string\"},\n                    \"name\": {\"type\": \"string\"},\n                    \"tables\": {\n                        \"type\": \"array\",\n                        \"items\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                                \"sid\": {\"type\": \"string\"},\n                                \"name\": {\"type\": \"string\"}\n                            }\n                        }\n                    },\n                    \"teams\": {\n                        \"type\": \"array\",\n                        \"items\": {\"type\": \"string\"}\n                    },\n                    \"order\": {\"type\": \"integer\"},\n                    \"is_archived\": {\"type\": \"boolean\"},\n                    \"change_permission\": {\"type\": \"boolean\"}\n                }\n            }\n        }\n    }\n}\n\n</code></pre>\n<p>The response will contain the list of applications with their details such as name, icon, permissions, and associated tables.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["applications","application","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"9ad1908e-e46b-4c57-b642-9216279e3996","name":"Get Application List","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/applications/application/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Thu, 28 Nov 2024 21:41:28 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"font-src 'self' data: *.amazonaws.com; img-src 'self' *.amazonaws.com; frame-src 'none'; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000; script-src 'self' *.amazonaws.com; style-src 'self' *.amazonaws.com 'unsafe-inline'","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"4780","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 2,\n    \"count\": 19,\n    \"next\": \"http://127.0.0.1:8000/applications/application/list/organization/HKNQ0a40x2988JOTY49di/list/?page=2\",\n    \"previous\": null,\n    \"add_permission\": true,\n    \"results\": [\n        {\n            \"sid\": \"369b0a40x54950ejotyD\",\n            \"icon\": \"article\",\n            \"name\": \"ELN\",\n            \"tables\": [\n                {\n                    \"sid\": \"ADGJ0a40x124a7CHMRW27b\",\n                    \"name\": \"protocols\"\n                },\n                {\n                    \"sid\": \"BEHK0a40x124a8DINSX38c\",\n                    \"name\": \"experiments\"\n                },\n                {\n                    \"sid\": \"CFIL0a40x124a9EJOTY49d\",\n                    \"name\": \"ELISA\"\n                },\n                {\n                    \"sid\": \"DGJM0a40x124aaFKPUZ50e\",\n                    \"name\": \"DRC\"\n                }\n            ],\n            \"teams\": [\n                \"Available to All\"\n            ],\n            \"order\": 1,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"470c0a40x54a6afkpuzE\",\n            \"icon\": \"lab_panel\",\n            \"name\": \"Sample Management\",\n            \"tables\": [\n                {\n                    \"sid\": \"EHKN0a40x124abGLQV16af\",\n                    \"name\": \"sample receiving\"\n                },\n                {\n                    \"sid\": \"FILO0a40x124acHMRW27bg\",\n                    \"name\": \"samples\"\n                },\n                {\n                    \"sid\": \"GJMP0a40x124adINSX38ch\",\n                    \"name\": \"aliquots\"\n                },\n                {\n                    \"sid\": \"HKNQ0a40x124aeJOTY49di\",\n                    \"name\": \"consumptions\"\n                },\n                {\n                    \"sid\": \"ILOR0a40x124afKPUZ50ej\",\n                    \"name\": \"storages\"\n                }\n            ],\n            \"teams\": [\n                \"Available to All\"\n            ],\n            \"order\": 2,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"58ad0a40x54b7bglqvAF\",\n            \"icon\": \"precision_manufacturing\",\n            \"name\": \"Equipment Management\",\n            \"tables\": [\n                {\n                    \"sid\": \"ILOR0a40x124afKPUZ50ej\",\n                    \"name\": \"storages\"\n                },\n                {\n                    \"sid\": \"JMPS0a40x124b0LQV16afk\",\n                    \"name\": \"equipment\"\n                },\n                {\n                    \"sid\": \"KNQT0a40x124b1MRW27bgl\",\n                    \"name\": \"equipment usage\"\n                },\n                {\n                    \"sid\": \"LORU0a40x124b2NSX38chm\",\n                    \"name\": \"equipment maintenance\"\n                }\n            ],\n            \"teams\": [\n                \"Available to All\"\n            ],\n            \"order\": 3,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"69be0a40x54c8chmrwBG\",\n            \"icon\": \"inventory_2\",\n            \"name\": \"Inventory Management\",\n            \"tables\": [\n                {\n                    \"sid\": \"EHKN0a40x124abGLQV16af\",\n                    \"name\": \"sample receiving\"\n                },\n                {\n                    \"sid\": \"HKNQ0a40x124aeJOTY49di\",\n                    \"name\": \"consumptions\"\n                },\n                {\n                    \"sid\": \"ILOR0a40x124afKPUZ50ej\",\n                    \"name\": \"storages\"\n                },\n                {\n                    \"sid\": \"MPSV0a40x124b3OTY49din\",\n                    \"name\": \"reagents\"\n                },\n                {\n                    \"sid\": \"NQTW0a40x124b4PUZ50ejo\",\n                    \"name\": \"stock\"\n                },\n                {\n                    \"sid\": \"ORUX0a40x124b5QV16afkp\",\n                    \"name\": \"checkin\"\n                },\n                {\n                    \"sid\": \"PSVY0a40x124b6RW27bglq\",\n                    \"name\": \"checkout\"\n                },\n                {\n                    \"sid\": \"QTWZ0a40x124b7SX38chmr\",\n                    \"name\": \"vendors\"\n                }\n            ],\n            \"teams\": [\n                \"Available to All\"\n            ],\n            \"order\": 4,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"70cf0a40x54d9dinsxCH\",\n            \"icon\": \"science\",\n            \"name\": \"LIMS for Sample Testing\",\n            \"tables\": [\n                {\n                    \"sid\": \"EHKN0a40x124abGLQV16af\",\n                    \"name\": \"sample receiving\"\n                },\n                {\n                    \"sid\": \"FILO0a40x124acHMRW27bg\",\n                    \"name\": \"samples\"\n                },\n                {\n                    \"sid\": \"RUX10a40x124b8TY49dins\",\n                    \"name\": \"testings\"\n                },\n                {\n                    \"sid\": \"SVY20a40x124b9UZ50ejot\",\n                    \"name\": \"reports\"\n                },\n                {\n                    \"sid\": \"TWZ30a40x124baV16afkpu\",\n                    \"name\": \"quality control\"\n                }\n            ],\n            \"teams\": [\n                \"Available to All\"\n            ],\n            \"order\": 5,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"8adg0a40x54e0ejotyDI\",\n            \"icon\": \"animation\",\n            \"name\": \"LIMS for Molecular Cloning\",\n            \"tables\": [\n                {\n                    \"sid\": \"HKNQ0a40x124aeJOTY49di\",\n                    \"name\": \"consumptions\"\n                },\n                {\n                    \"sid\": \"NQTW0a40x124b4PUZ50ejo\",\n                    \"name\": \"stock\"\n                },\n                {\n                    \"sid\": \"ORUX0a40x124b5QV16afkp\",\n                    \"name\": \"checkin\"\n                },\n                {\n                    \"sid\": \"PSVY0a40x124b6RW27bglq\",\n                    \"name\": \"checkout\"\n                },\n                {\n                    \"sid\": \"UX140a40x124bbW27bglqv\",\n                    \"name\": \"clonings\"\n                },\n                {\n                    \"sid\": \"VY250a40x124bcX38chmrw\",\n                    \"name\": \"plasmids\"\n                },\n                {\n                    \"sid\": \"WZ360a40x124bdY49dinsx\",\n                    \"name\": \"vectors\"\n                },\n                {\n                    \"sid\": \"X1470a40x124beZ50ejoty\",\n                    \"name\": \"sequences\"\n                },\n                {\n                    \"sid\": \"Y2580a40x124bf16afkpuz\",\n                    \"name\": \"cells\"\n                }\n            ],\n            \"teams\": [\n                \"Available to All\"\n            ],\n            \"order\": 6,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"9beh0a40x54fafkpuzEJ\",\n            \"icon\": \"genetics\",\n            \"name\": \"LIMS for NGS\",\n            \"tables\": [\n                {\n                    \"sid\": \"ADGJ0a40x124a7CHMRW27b\",\n                    \"name\": \"protocols\"\n                },\n                {\n                    \"sid\": \"HKNQ0a40x124aeJOTY49di\",\n                    \"name\": \"consumptions\"\n                },\n                {\n                    \"sid\": \"ILOR0a40x124afKPUZ50ej\",\n                    \"name\": \"storages\"\n                },\n                {\n                    \"sid\": \"Z3690a40x124c027bglqvA\",\n                    \"name\": \"NGS experiments\"\n                },\n                {\n                    \"sid\": \"14700a40x124c138chmrwB\",\n                    \"name\": \"hosts\"\n                },\n                {\n                    \"sid\": \"258a0a40x124c249dinsxC\",\n                    \"name\": \"NGS Materials\"\n                }\n            ],\n            \"teams\": [\n                \"Available to All\"\n            ],\n            \"order\": 7,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"0cfi0a40x550bglqvAFK\",\n            \"icon\": \"content_cut\",\n            \"name\": \"LIMS for CRISPR\",\n            \"tables\": [\n                {\n                    \"sid\": \"369b0a40x124c350ejotyD\",\n                    \"name\": \"CRISPR\"\n                },\n                {\n                    \"sid\": \"470c0a40x124c46afkpuzE\",\n                    \"name\": \"sgRNAs\"\n                }\n            ],\n            \"teams\": [\n                \"Available to All\"\n            ],\n            \"order\": 8,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"adgj0a40x551chmrwBGL\",\n            \"icon\": \"coronavirus\",\n            \"name\": \"Diagnostic Testing\",\n            \"tables\": [\n                {\n                    \"sid\": \"58ad0a40x124c57bglqvAF\",\n                    \"name\": \"qPCR CT Ranges\"\n                },\n                {\n                    \"sid\": \"69be0a40x124c68chmrwBG\",\n                    \"name\": \"qPCR Cq\"\n                },\n                {\n                    \"sid\": \"70cf0a40x124c79dinsxCH\",\n                    \"name\": \"qPCR Reports\"\n                }\n            ],\n            \"teams\": [\n                \"Available to All\"\n            ],\n            \"order\": 9,\n            \"is_archived\": false,\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"behk0a40x552dinsxCHM\",\n            \"icon\": \"gesture\",\n            \"name\": \"LIMS for Protein Expression\",\n            \"tables\": [\n                {\n                    \"sid\": \"HKNQ0a40x124aeJOTY49di\",\n                    \"name\": \"consumptions\"\n                },\n                {\n                    \"sid\": \"ILOR0a40x124afKPUZ50ej\",\n                    \"name\": \"storages\"\n                },\n                {\n                    \"sid\": \"NQTW0a40x124b4PUZ50ejo\",\n                    \"name\": \"stock\"\n                },\n                {\n                    \"sid\": \"ORUX0a40x124b5QV16afkp\",\n                    \"name\": \"checkin\"\n                },\n                {\n                    \"sid\": \"PSVY0a40x124b6RW27bglq\",\n                    \"name\": \"checkout\"\n                },\n                {\n                    \"sid\": \"QTWZ0a40x124b7SX38chmr\",\n                    \"name\": \"vendors\"\n                },\n                {\n                    \"sid\": \"8adg0a40x124c80ejotyDI\",\n                    \"name\": \"protein\"\n                },\n                {\n                    \"sid\": \"9beh0a40x124c9afkpuzEJ\",\n                    \"name\": \"antibodies\"\n                }\n            ],\n            \"teams\": [\n                \"Available to All\"\n            ],\n            \"order\": 10,\n            \"is_archived\": false,\n            \"change_permission\": true\n        }\n    ]\n}"}],"_postman_id":"814654b1-0aba-4d63-b575-a11902dbd807"},{"name":"Create Application","event":[{"listen":"prerequest","script":{"id":"85ee6d87-96d1-4e44-9b93-19804b7e5d4b","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"49424aab-a741-4835-8987-b903a1cb5d52","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"application_sid\", jsonData.sid);","","","pm.test(\"Response status code is 201\", function () {","  pm.response.to.have.status(201);","});","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.be.a('string');","    pm.expect(responseData.name).to.be.a('string');","    pm.expect(responseData.icon).to.be.a('string');","    pm.expect(responseData.order).to.be.a('number');","    pm.expect(responseData.tables).to.be.an('array');","    pm.expect(responseData.teams).to.be.an('array');","    pm.expect(responseData.updated_by).to.be.an('object');","    pm.expect(responseData.date_updated).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.change_permission).to.be.a('boolean');","    pm.expect(responseData.help_text).to.be.an('object');","});","",""],"type":"text/javascript","packages":{}}}],"id":"325f560b-dc50-4ff2-a757-b7f7c296c8f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"icon\": \"star\",\n    \"name\": \"Test Application {{currentDate}}\",\n    \"tables\": []\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/applications/application/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This endpoint makes an HTTP POST request to create a new application within the specified organization. The request payload includes parameters such as icon, name, and tables.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p>icon (string): The icon for the application.</p>\n</li>\n<li><p>name (string): The name of the application.</p>\n</li>\n<li><p>tables (array): An array of tables for the application.</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"string\",\n  \"name\": \"string\",\n  \"icon\": \"string\",\n  \"order\": 0,\n  \"tables\": [],\n  \"teams\": [],\n  \"updated_by\": {\n    \"sid\": \"string\",\n    \"name\": \"string\"\n  },\n  \"date_updated\": \"string\",\n  \"date_created\": \"string\",\n  \"change_permission\": true,\n  \"help_text\": {\n    \"sid\": \"string\",\n    \"name\": \"string\",\n    \"description\": \"string\",\n    \"icon\": \"string\",\n    \"order\": \"string\",\n    \"is_archived\": \"string\",\n    \"tables\": \"string\",\n    \"teams\": \"string\"\n  }\n}\n\n</code></pre>\n<p>The response includes various details about the created application, such as the application's SID, icon, names, order, tables, teams, update details, date created, change permission, and help text.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["applications","application","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"93e84490-15d1-427f-81ed-3e801f600c2f","name":"Create Application","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"icon\": \"star\",\n    \"name\": \"Test Application {{currentDate}}\",\n    \"tables\": []\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/applications/application/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Fri, 29 Nov 2024 02:43:09 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000; font-src 'self' data: *.amazonaws.com; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"955","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"loru0a40x59ansxCHMRW\",\n    \"name\": \"Test Application 2024-11-28\",\n    \"icon\": \"star\",\n    \"order\": 20,\n    \"tables\": [],\n    \"teams\": [],\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-29T02:43:09.532073Z\",\n    \"date_created\": \"2024-11-29T02:43:09.532078Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"name\": \"Name of the application\",\n        \"description\": \"What is this application about?\",\n        \"icon\": \"Icon of the application. Choose one at <a href='https://material.io/icons/' target='_blank'>https://material.io/icons/</a>. Replace blanks with '_'. For example: 'account_circle'\",\n        \"order\": \"The order to display the application. \",\n        \"is_archived\": \"If checked, the application is not available to use.\",\n        \"tables\": \"Choose one or more tables to be grouped into this application.\",\n        \"teams\": \"Choose one or more teams to have access to this application. If you don't choose any team, all teams will have access to this application.\"\n    }\n}"}],"_postman_id":"325f560b-dc50-4ff2-a757-b7f7c296c8f8"},{"name":"Get Application Detail","event":[{"listen":"test","script":{"id":"10b3e430-7d84-4e3c-be95-eceb2a97c24c","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is within acceptable range\", function () {","    pm.expect(pm.response.responseTime).to.be.below(300);","});","","","pm.test(\"Validate the presence of required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('sid').that.is.a('string');","    pm.expect(responseData).to.have.property('icon').that.is.a('string');","    pm.expect(responseData).to.have.property('name').that.is.a('string');","    pm.expect(responseData).to.have.property('name_singular').that.is.a('string');","    pm.expect(responseData).to.have.property('name_plural').that.is.a('string');","    pm.expect(responseData).to.have.property('name_system').that.is.a('string').or.to.be.a('null');","    pm.expect(responseData).to.have.property('type').that.is.a('string');","    pm.expect(responseData).to.have.property('description').that.is.a('string');","    pm.expect(responseData).to.have.property('unique_code').that.is.a('string');","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Validate the data types of the fields according to the provided JSON schema\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.sid).to.be.a('string');","  pm.expect(responseData.icon).to.be.a('string');","  pm.expect(responseData.name).to.be.a('string');","  pm.expect(responseData.name_singular).to.be.a('string');","  pm.expect(responseData.name_plural).to.be.a('string');","  pm.expect(responseData.name_system).to.satisfy((value) => typeof value === 'string' || value === null);","  pm.expect(responseData.type).to.be.a('string');","  pm.expect(responseData.description).to.be.a('string');","  pm.expect(responseData.unique_code).to.satisfy((value) => typeof value === 'string');","});","","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Check that the 'tables' and 'teams' arrays are present in the response\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.tables).to.be.an('array').and.to.not.be.empty;","    pm.expect(responseData.teams).to.be.an('array').and.to.not.be.empty;","});","",""],"type":"text/javascript","packages":{}}}],"id":"a9dbc830-a2b1-412e-88f2-eb9dfaefd13c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/applications/application/detail/{{application_sid}}/","description":"<h3 id=\"request\">Request</h3>\n<p>This endpoint makes an HTTP GET request to retrieve details of a specific application. The endpoint URL should include the <code>application_sid</code> path parameter, which represents the unique identifier of the application.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response for this request is a JSON object representing the details of the specified application. Below is a JSON schema representing the structure of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sid\": { \"type\": \"string\" },\n    \"name\": { \"type\": \"string\" },\n    \"icon\": { \"type\": \"string\" },\n    \"order\": { \"type\": \"integer\" },\n    \"tables\": { \"type\": \"array\" },\n    \"teams\": { \"type\": \"array\" },\n    \"updated_by\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": { \"type\": \"string\" },\n        \"name\": { \"type\": \"string\" }\n      }\n    },\n    \"date_updated\": { \"type\": \"string\" },\n    \"date_created\": { \"type\": \"string\" },\n    \"change_permission\": { \"type\": \"boolean\" },\n    \"help_text\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": { \"type\": \"string\" },\n        \"name\": { \"type\": \"string\" },\n        \"description\": { \"type\": \"string\" },\n        \"icon\": { \"type\": \"string\" },\n        \"order\": { \"type\": \"string\" },\n        \"is_archived\": { \"type\": \"string\" },\n        \"tables\": { \"type\": \"string\" },\n        \"teams\": { \"type\": \"string\" }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["applications","application","detail","{{application_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"2396f03b-5a80-44e0-a0f6-5f88b5f83ab9","name":"Get Application Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/applications/application/detail/{{application_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Fri, 29 Nov 2024 02:46:17 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000; font-src 'self' data: *.amazonaws.com; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"955","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"loru0a40x59ansxCHMRW\",\n    \"name\": \"Test Application 2024-11-28\",\n    \"icon\": \"star\",\n    \"order\": 20,\n    \"tables\": [],\n    \"teams\": [],\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-29T02:43:09.532073Z\",\n    \"date_created\": \"2024-11-29T02:43:09.532078Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"name\": \"Name of the application\",\n        \"description\": \"What is this application about?\",\n        \"icon\": \"Icon of the application. Choose one at <a href='https://material.io/icons/' target='_blank'>https://material.io/icons/</a>. Replace blanks with '_'. For example: 'account_circle'\",\n        \"order\": \"The order to display the application. \",\n        \"is_archived\": \"If checked, the application is not available to use.\",\n        \"tables\": \"Choose one or more tables to be grouped into this application.\",\n        \"teams\": \"Choose one or more teams to have access to this application. If you don't choose any team, all teams will have access to this application.\"\n    }\n}"}],"_postman_id":"a9dbc830-a2b1-412e-88f2-eb9dfaefd13c"},{"name":"Delete Application","event":[{"listen":"test","script":{"id":"8651bd06-b4a8-4f60-aaa0-ae97908d2ca1","exec":["pm.test(\"Response status code is 204\", function () {","  pm.response.to.have.status(204);","});","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Response body schema is as expected\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('message').that.is.a('string');","    pm.expect(responseData).to.have.property('status').that.is.a('number');","});","",""],"type":"text/javascript","packages":{}}}],"id":"cf49c3e8-e880-4771-a2d8-3cdb2401c251","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://www.labii.dev/applications/application/detail/{{application_sid}}/","description":"<h3 id=\"delete-table-filter-detail\">Delete Table Filter Detail</h3>\n<p>This endpoint is used to delete a specific table filter detail.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: DELETE</p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/tables/filter/detail/{{filter_sid}}/</code></p>\n</li>\n</ul>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON schema, which will include the details of the deletion operation. The schema will outline the structure of the response body, including the properties and their data types.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["applications","application","detail","{{application_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf49c3e8-e880-4771-a2d8-3cdb2401c251"}],"id":"9ccd1bae-aed9-4a97-932e-b8ca5c11dd32","description":"<p>Labii applications are domain-specific data management solutions built by combining configurable tables to address specialized needs. Each application is tailored to organize, track, and analyze professional data, whether for scientific research, business operations, or other purposes. For example, Labii can serve as an Electronic Lab Notebook (ELN) to manage experiment entries and document research activities or function as a Laboratory Information Management System (LIMS) to streamline workflows and sample tracking. This modular approach enables Labii to replace single-function platforms with versatile, integrated applications.</p>\n","_postman_id":"9ccd1bae-aed9-4a97-932e-b8ca5c11dd32","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Table","item":[{"name":"Get Table List","event":[{"listen":"test","script":{"id":"4358b675-4f04-4d96-a602-df58bcac1136","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the top-level fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('page_size');","    pm.expect(responseData).to.have.property('page_number');","    pm.expect(responseData).to.have.property('page_count');","    pm.expect(responseData).to.have.property('count');","    pm.expect(responseData).to.have.property('next');","    pm.expect(responseData).to.have.property('previous');","    pm.expect(responseData).to.have.property('add_permission');","});","","","pm.test(\"Results array is present and contains expected number of elements\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.have.property('results').that.is.an('array').with.lengthOf(1);","});","","","pm.test(\"Validate the 'results' array elements have the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.results).to.be.an('array');","    responseData.results.forEach(function(result) {","        pm.expect(result).to.have.property('icon').that.is.a('string');","        pm.expect(result).to.have.property('name_singular').that.is.a('string');","        pm.expect(result).to.have.property('name_plural').that.is.a('string');","        pm.expect(result).to.have.property('sid').that.is.a('string');","        pm.expect(result).to.have.property('unique_code').that.is.a('string');","        pm.expect(result).to.have.property('order').that.is.a('number');","        pm.expect(result).to.have.property('is_archived');","        pm.expect(result).to.have.property('change_permission');","        pm.expect(result).to.have.property('readonly_fields').that.is.an('array');","        pm.expect(result).to.have.property('clickable_field').that.is.a('string');","        pm.expect(result).to.have.property('hidden_fields').that.is.an('array');","        pm.expect(result).to.have.property('hidden_fields_detail').that.is.an('array');","        pm.expect(result).to.have.property('groups').that.is.an('array');","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"af0d9015-33af-4bfb-b169-beff76db1333","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/table/list/organization/{{organization_sid_test_administrator}}/list/","description":"<h3 id=\"get-tablestablelistorganizationorganization_sid_test_administratorlist\">GET /tables/table/list/organization/{{organization_sid_test_administrator}}/list/</h3>\n<p>This endpoint retrieves a list of tables for a specific organization.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this endpoint.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"page_size\": {\"type\": \"integer\"},\n        \"page_number\": {\"type\": \"integer\"},\n        \"page_count\": {\"type\": \"integer\"},\n        \"count\": {\"type\": \"integer\"},\n        \"next\": {\"type\": \"string\"},\n        \"previous\": {\"type\": [\"string\", \"null\"]},\n        \"add_permission\": {\"type\": \"boolean\"},\n        \"results\": {\n            \"type\": \"array\",\n            \"items\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"icon\": {\"type\": \"string\"},\n                    \"name_singular\": {\"type\": \"string\"},\n                    \"name_plural\": {\"type\": \"string\"},\n                    \"sid\": {\"type\": \"string\"},\n                    \"unique_code\": {\"type\": \"string\"},\n                    \"order\": {\"type\": \"integer\"},\n                    \"is_archived\": {\"type\": \"boolean\"},\n                    \"change_permission\": {\"type\": \"boolean\"},\n                    \"readonly_fields\": {\n                        \"type\": \"array\",\n                        \"items\": {\"type\": \"string\"}\n                    },\n                    \"clickable_field\": {\"type\": \"string\"},\n                    \"hidden_fields\": {\n                        \"type\": \"array\",\n                        \"items\": {\"type\": \"string\"}\n                    },\n                    \"hidden_fields_detail\": {\n                        \"type\": \"array\",\n                        \"items\": {\"type\": \"string\"}\n                    },\n                    \"groups\": {\n                        \"type\": \"array\",\n                        \"items\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                                \"name\": {\"type\": \"string\"},\n                                \"fields\": {\n                                    \"type\": \"array\",\n                                    \"items\": {\"type\": \"string\"}\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\n</code></pre>\n<p>The response will contain the list of tables with their details such as name, icon, permissions, and fields.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","table","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"7296987c-dfbd-4909-96f5-0a962c3eba2f","name":"Get Table List","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/table/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 00:26:58 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"14909","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 6,\n    \"count\": 57,\n    \"next\": \"http://127.0.0.1:8000/tables/table/list/organization/HKNQ0a40x2988JOTY49di/list/?page=2\",\n    \"previous\": null,\n    \"add_permission\": true,\n    \"results\": [\n        {\n            \"icon\": \"sticky_note_2\",\n            \"name_singular\": \"entry\",\n            \"name_plural\": \"entries\",\n            \"sid\": \"zCFI0a40x124a6BGLQV16a\",\n            \"unique_code\": \"ET\",\n            \"order\": 2,\n            \"is_archived\": false,\n            \"change_permission\": true,\n            \"readonly_fields\": [\n                \"sid\",\n                \"uid\",\n                \"version\",\n                \"table\",\n                \"owner\",\n                \"date_created\",\n                \"date_updated\",\n                \"updated_by\",\n                \"is_locked\"\n            ],\n            \"clickable_field\": \"name\",\n            \"hidden_fields\": [\n                \"sid\",\n                \"is_locked\",\n                \"section_set\",\n                \"uid\",\n                \"change_permission\",\n                \"data\",\n                \"help_text\"\n            ],\n            \"hidden_fields_detail\": [\n                \"is_locked\",\n                \"column_set\",\n                \"section_set\",\n                \"change_permission\",\n                \"data\",\n                \"help_text\"\n            ],\n            \"groups\": [\n                {\n                    \"name\": \"Overview\",\n                    \"fields\": [\n                        \"sid\",\n                        \"uid\",\n                        \"version\",\n                        \"table\",\n                        \"projects\",\n                        \"owner\",\n                        \"updated_by\",\n                        \"date_updated\",\n                        \"date_created\"\n                    ]\n                },\n                {\n                    \"name\": \"Columns\",\n                    \"description\": \"These are custom columns in this table that are not grouped. Group the columns using the column widget of the <b>Subtitle</b>.\",\n                    \"fields\": [\n                        \"JMPS0a40x55c9aLQV16afk\"\n                    ],\n                    \"is_column\": true\n                },\n                {\n                    \"name\": \"Use this entry as a template\",\n                    \"fields\": [\n                        \"is_template\"\n                    ]\n                },\n                {\n                    \"name\": \"Metadata\",\n                    \"fields\": [\n                        \"metadata\"\n                    ]\n                },\n                {\n                    \"name\": \"Archive this entry\",\n                    \"description\": \"It is not possible to delete a record, but you can archive it or rename it.\",\n                    \"color\": \"red lighten-5 red-text\",\n                    \"fields\": [\n                        \"is_archived\"\n                    ]\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"af0d9015-33af-4bfb-b169-beff76db1333"},{"name":"Create Table","event":[{"listen":"test","script":{"id":"f0323b74-f7a7-4749-be55-54724922e939","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"table_sid\", jsonData.sid);","","","pm.test(\"Response status code is 201\", function () {","  pm.response.to.have.status(201);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Response body schema is correct\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.be.a('string');","    pm.expect(responseData.icon).to.be.a('string');","    pm.expect(responseData.name).to.be.a('string');","    pm.expect(responseData.name_singular).to.be.a('string');","    pm.expect(responseData.name_plural).to.be.a('string');","    pm.expect(responseData.name_system).to.be.a('null');","    pm.expect(responseData.type).to.be.a('string');","    pm.expect(responseData.description).to.be.a('string');","    pm.expect(responseData.unique_code).to.be.a('string');","    pm.expect(responseData.uid_format).to.be.a('null');","    pm.expect(responseData.should_support_custom_uid).to.be.a('boolean');","    pm.expect(responseData.default_list_view).to.be.a('string');","    pm.expect(responseData.default_filters).to.be.an('array');","    pm.expect(responseData.default_detail_view).to.be.a('string');","    pm.expect(responseData.default_add_query).to.be.a('string');","    pm.expect(responseData.should_display_workflow).to.be.a('boolean');","    pm.expect(responseData.should_limit_edit_to_owner).to.be.a('boolean');","    pm.expect(responseData.fields_to_display).to.be.an('array');","    pm.expect(responseData.fields_to_display_for_detail).to.be.an('array');","    pm.expect(responseData.should_enable_section_complete_action).to.be.a('boolean');","    pm.expect(responseData.ordering).to.be.a('string');","    pm.expect(responseData.minimum_number_of_signers).to.be.a('number');","    pm.expect(responseData.columns).to.be.an('array');","    pm.expect(responseData.order).to.be.a('number');","    pm.expect(responseData.number_of_records).to.be.a('number');","    pm.expect(responseData.print_header).to.be.a('string');","    pm.expect(responseData.metadata).to.be.an('array');","    pm.expect(responseData.required_certifications).to.be.a('null');","    pm.expect(responseData.application).to.be.an('object');","    pm.expect(responseData.is_archived).to.be.a('boolean');","    pm.expect(responseData.updated_by).to.be.an('object');","    pm.expect(responseData.date_updated).to.be.a('string');","    pm.expect(responseData.date_created).to.be.a('string');","    pm.expect(responseData.change_permission).to.be.a('boolean');","    pm.expect(responseData.readonly_fields).to.be.an('array');","    pm.expect(responseData.clickable_field).to.be.a('string');","    pm.expect(responseData.hidden_fields).to.be.an('array');","    pm.expect(responseData.hidden_fields_detail).to.be.an('array');","    pm.expect(responseData.groups).to.be.an('array');","    pm.expect(responseData.help_text).to.be.an('object');","});","","","pm.test(\"Verify that the 'table_sid' variable is set in the environment\", function () {","    pm.expect(pm.environment.get(\"table_sid\")).to.exist;","});","",""],"type":"text/javascript","packages":{}}}],"id":"5fa91e4f-5784-465b-ad9a-67ad91bdaea5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"icon\": \"star\",\n    \"name_singular\": \"postman\",\n    \"name_plural\": \"postmans\",\n    \"description\": \"Test table created by postman.\",\n    \"unique_code\": \"POST\",\n    \"uid_format\": null,\n    \"should_support_custom_uid\": false,\n    \"default_list_view\": \"records\",\n    \"default_filters\": [\n        \"all\",\n        \"active\",\n        \"archived\",\n        \"my\",\n        \"my_unsigned\",\n        \"templates\"\n    ],\n    \"default_detail_view\": \"workflow_toc\",\n    \"default_add_query\": \"\",\n    \"should_display_workflow\": false,\n    \"should_limit_edit_to_owner\": false,\n    \"fields_to_display\": [\n        \"projects\",\n        \"owner\"\n    ],\n    \"fields_to_display_for_detail\": [],\n    \"should_enable_section_complete_action\": true,\n    \"ordering\": \"-date_updated\",\n    \"minimum_number_of_signers\": 0,\n    \"print_header\": \"\",\n    \"metadata\": []\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/table/list/organization/{{organization_sid_test_administrator}}/list/","description":"<p>This endpoint makes an HTTP POST request to create a new table within the specified organization. The request payload includes parameters such as icon, name_singular, name_plural, description, unique_code, default_list_view, default_filters, default_detail_view, should_display_workflow, should_limit_edit_to_owner, fields_to_display, should_enable_section_complete_action, ordering, minimum_number_of_signers, and metadata.</p>\n<h3 id=\"request-payload\">Request Payload</h3>\n<ul>\n<li><p>icon (string): The icon for the table.</p>\n</li>\n<li><p>name_singular (string): The singular name for the table.</p>\n</li>\n<li><p>name_plural (string): The plural name for the table.</p>\n</li>\n<li><p>description (string): Description of the table.</p>\n</li>\n<li><p>unique_code (string): Unique code for the table.</p>\n</li>\n<li><p>default_list_view (string): Default view for the table list.</p>\n</li>\n<li><p>default_filters (array of strings): Default filters for the table.</p>\n</li>\n<li><p>default_detail_view (string): Default view for table details.</p>\n</li>\n<li><p>should_display_workflow (boolean): Indicates if the workflow should be displayed.</p>\n</li>\n<li><p>should_limit_edit_to_owner (boolean): Indicates if editing is limited to the owner.</p>\n</li>\n<li><p>fields_to_display (array of strings): Fields to be displayed in the table.</p>\n</li>\n<li><p>should_enable_section_complete_action (boolean): Indicates if section complete action is enabled.</p>\n</li>\n<li><p>ordering (string): Ordering of the table records.</p>\n</li>\n<li><p>minimum_number_of_signers (number): Minimum number of signers required.</p>\n</li>\n<li><p>metadata (array): Additional metadata for the table.</p>\n</li>\n</ul>\n<h3 id=\"example-response\">Example Response</h3>\n<p>The response includes various details about the created table, such as the table's SID, icon, names, type, description, default views, fields to display, ordering, minimum number of signers, and metadata. Additionally, it provides information about the application, update details, permissions, and group fields.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","table","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"2ae96f57-0f6c-4c9f-80c2-e365c96f826a","name":"Create Table","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"icon\": \"star\",\n    \"name_singular\": \"postman\",\n    \"name_plural\": \"postmans\",\n    \"description\": \"Test table created by postman.\",\n    \"unique_code\": \"POST\",\n    \"uid_format\": null,\n    \"should_support_custom_uid\": false,\n    \"default_list_view\": \"records\",\n    \"default_filters\": [\n        \"all\",\n        \"active\",\n        \"archived\",\n        \"my\",\n        \"my_unsigned\",\n        \"templates\"\n    ],\n    \"default_detail_view\": \"workflow_toc\",\n    \"default_add_query\": \"\",\n    \"should_display_workflow\": false,\n    \"should_limit_edit_to_owner\": false,\n    \"fields_to_display\": [\n        \"projects\",\n        \"owner\"\n    ],\n    \"fields_to_display_for_detail\": [],\n    \"should_enable_section_complete_action\": true,\n    \"ordering\": \"-date_updated\",\n    \"minimum_number_of_signers\": 0,\n    \"print_header\": \"\",\n    \"metadata\": []\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/table/list/organization/{{organization_sid_test_administrator}}/list/"},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 00:55:22 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"6792","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"jmps0a40x12550lqvAFKPU\",\n    \"icon\": \"star\",\n    \"name\": \"postmans\",\n    \"name_singular\": \"postman\",\n    \"name_plural\": \"postmans\",\n    \"name_system\": null,\n    \"type\": \"blank\",\n    \"description\": \"Test table created by postman.\",\n    \"unique_code\": \"POST\",\n    \"uid_format\": null,\n    \"should_support_custom_uid\": false,\n    \"default_list_view\": \"records\",\n    \"default_filters\": [\n        \"all\",\n        \"active\",\n        \"archived\",\n        \"my\",\n        \"my_unsigned\",\n        \"templates\"\n    ],\n    \"default_detail_view\": \"workflow_toc\",\n    \"default_add_query\": \"\",\n    \"should_display_workflow\": false,\n    \"should_limit_edit_to_owner\": false,\n    \"fields_to_display\": [\n        \"projects\",\n        \"owner\"\n    ],\n    \"fields_to_display_for_detail\": [],\n    \"should_enable_section_complete_action\": true,\n    \"ordering\": \"-date_updated\",\n    \"minimum_number_of_signers\": 0,\n    \"columns\": [],\n    \"order\": 58,\n    \"number_of_records\": 0,\n    \"print_header\": \"\",\n    \"metadata\": [],\n    \"required_certifications\": null,\n    \"application\": {\n        \"sid\": \"Other Tables\",\n        \"name\": \"Other Tables\"\n    },\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-04T00:55:22.652322Z\",\n    \"date_created\": \"2024-11-04T00:55:22.652332Z\",\n    \"change_permission\": true,\n    \"readonly_fields\": [\n        \"sid\",\n        \"uid\",\n        \"version\",\n        \"table\",\n        \"owner\",\n        \"date_created\",\n        \"date_updated\",\n        \"updated_by\",\n        \"is_locked\"\n    ],\n    \"clickable_field\": \"name\",\n    \"hidden_fields\": [\n        \"sid\",\n        \"is_locked\",\n        \"section_set\",\n        \"uid\",\n        \"change_permission\",\n        \"data\",\n        \"help_text\"\n    ],\n    \"hidden_fields_detail\": [\n        \"is_locked\",\n        \"column_set\",\n        \"section_set\",\n        \"change_permission\",\n        \"data\",\n        \"help_text\"\n    ],\n    \"groups\": [\n        {\n            \"name\": \"Overview\",\n            \"fields\": [\n                \"sid\",\n                \"uid\",\n                \"version\",\n                \"table\",\n                \"projects\",\n                \"owner\",\n                \"updated_by\",\n                \"date_updated\",\n                \"date_created\"\n            ]\n        },\n        {\n            \"name\": \"Use this postman as a template\",\n            \"fields\": [\n                \"is_template\"\n            ]\n        },\n        {\n            \"name\": \"Metadata\",\n            \"fields\": [\n                \"metadata\"\n            ]\n        },\n        {\n            \"name\": \"Archive this postman\",\n            \"description\": \"It is not possible to delete a record, but you can archive it or rename it.\",\n            \"color\": \"red lighten-5 red-text\",\n            \"fields\": [\n                \"is_archived\"\n            ]\n        }\n    ],\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"type\": \"Choose a table template. After the table is created, it will also create the columns, sections, and filters associated with it. These parameters can be updated at a later time.\",\n        \"name_singular\": \"Table name, in singular format. Letters and Numbers only.\",\n        \"name_plural\": \"Table name, in plural format. Letters and Numbers only.\",\n        \"name_system\": \"The name for system to identify a particular table. \",\n        \"description\": \"Description of the table. Provide enough information for other users in your organization to understand. Table descriptions will be displayed in table list views.\",\n        \"icon\": \"Icon of the table. Choose one at <a href='https://fonts.google.com/icons' target='_blank'>https://fonts.google.com/icons</a>. In order to use an icon, simply copy its lowercase name and replace blank spaces with '_'. For example: 'account_circle'\",\n        \"order\": \"The order to display this table. Integer only. Drag the table to a preferred position at the list view to update the order. \",\n        \"unique_code\": \"The abbreviation term of table name. The code must be at least 2 characters long and contain only uppercase letters. The unique code will be used to reference an object. Changes to the unique code will update the unique identifier of all records associated with the table.\",\n        \"uid_format\": \"You have the option to personalize the UID by specifying your preferred UID format, which by default consists of '{Unique Code}{RID}'.\",\n        \"should_support_custom_uid\": \"If true, users must supply their unique identifier (UID) for each record. This works well for reagents where you prefer to utilize the vendor's barcode as the UID. <br>Notes: Users must guarantee the uniqueness of the provided UID, as failure to do so will result in the newly created record replacing the existing one.\",\n        \"default_list_view\": \"Default list view when opening the list view. <br>- <b>Records</b>, displays a list of records.<br>- <b>Dashboard</b>, show the dashboard of the table.\",\n        \"default_filters\": \"Select the default filters to be included in the list view.\",\n        \"fields_to_display\": \"Select fields to display in the list view. Default to Projects, Owner.\",\n        \"ordering\": \"The ordering to display records in the list view. \",\n        \"default_detail_view\": \"Default tab view when opening a record. <br>- <b>Columns</b>, displays the label and value of structure data. Ideal for inventory tables.<br>- <b>Sections</b>, show a list of sections with unstructured data. Ideal for production records with strict format requirements.<br>- <b>Notes</b>, an editor for quick documentation. Perfect for taking notes quickly on the go.\",\n        \"fields_to_display_for_detail\": \"Select fields to display in the detail view.\",\n        \"should_enable_section_complete_action\": \"If enabled, each section of a record will include a 'Complete' button. Once a section is marked as complete, it will become read-only.\",\n        \"default_add_query\": \"The query meant for adding to the form. Use this function to restrict changes to the append query in the add form. <br>This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n        \"should_display_workflow\": \"The add form and import form will display a workflow field if true.\",\n        \"print_header\": \"Customize the header of the print page for the table. Use HTML code for formatting. If provided, the header from organization setting will be replaced.<br>This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n        \"should_limit_edit_to_owner\": \"If true, only the owner can edit their records, regardless of the permission settings at the project level.\",\n        \"required_certifications\": \"Please indicate the necessary certifications needed to add or modify entries in this table. If multiple certifications are required, please list them separated by commas.\",\n        \"minimum_number_of_signers\": \"Number of signatories required. This number is set so that the document can only be signed when a minimum number of signers has been added. It defaults to 0.\",\n        \"metadata\": \"Use <b>metadata</b> to store additional values.<br>- Set the metadata of <b>FIELD_NAME_RENAME=title</b> to change the 'Name' to 'Title'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>.<br>- Set the metadata of <b>FIELD_DESCRIPTION_RENAME=overview</b> to change the 'Description' to 'Overview'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>\",\n        \"is_archived\": \"Checking this box will archive the table. Archived tables are not available for use. Make sure no other column/section uses the table, it might break your system if one is archived. The Files table is always required and should not be archived. \"\n    }\n}"}],"_postman_id":"5fa91e4f-5784-465b-ad9a-67ad91bdaea5"},{"name":"Get Table Detail","event":[{"listen":"test","script":{"id":"967e8fd0-15b1-4c4a-aa03-08abc2b5abbc","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the schema of the response for the required fields and data types\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.sid).to.be.a('string');","  pm.expect(responseData.icon).to.be.a('string');","  pm.expect(responseData.name).to.be.a('string');","  pm.expect(responseData.name_singular).to.be.a('string');","  pm.expect(responseData.name_plural).to.be.a('string');","  pm.expect(responseData.name_system).to.be.a('string').or.to.be.null;","  pm.expect(responseData.type).to.be.a('string');","  pm.expect(responseData.description).to.be.a('string');","  pm.expect(responseData.unique_code).to.be.a('string');","  pm.expect(responseData.should_support_custom_uid).to.be.a('boolean');","  pm.expect(responseData.default_list_view).to.be.a('string');","  pm.expect(responseData.default_filters).to.be.an('array');","  pm.expect(responseData.default_detail_view).to.be.a('string');","  pm.expect(responseData.default_add_query).to.be.a('string');","  pm.expect(responseData.should_display_workflow).to.be.a('boolean');","  pm.expect(responseData.should_limit_edit_to_owner).to.be.a('boolean');","  pm.expect(responseData.fields_to_display).to.be.an('array');","  pm.expect(responseData.fields_to_display_for_detail).to.be.an('array');","  responseData.fields_to_display_for_detail.forEach(function(field) {","    pm.expect(field.sid).to.be.a('string');","    pm.expect(field.name).to.be.a('string');","  });","  pm.expect(responseData.should_enable_section_complete_action).to.be.a('boolean');","  pm.expect(responseData.ordering).to.be.a('string');","  pm.expect(responseData.minimum_number_of_signers).to.be.a('number');","  pm.expect(responseData.columns).to.be.an('array');","  pm.expect(responseData.order).to.be.a('number');","  pm.expect(responseData.number_of_records).to.be.a('number');","  pm.expect(responseData.print_header).to.be.a('string');","  pm.expect(responseData.metadata).to.be.an('array');","  pm.expect(responseData.required_certifications).to.be.null.or.to.be.an('array');","  pm.expect(responseData.application).to.be.an('object');","  pm.expect(responseData.is_archived).to.be.a('boolean');","  pm.expect(responseData.updated_by).to.be.an('object');","  pm.expect(responseData.date_updated).to.be.a('string');","  pm.expect(responseData.date_created).to.be.a('string');","  pm.expect(responseData.change_permission).to.be.a('boolean');","  pm.expect(responseData.readonly_fields).to.be.an('array');","  pm.expect(responseData.clickable_field).to.be.a('string');","  pm.expect(responseData.hidden_fields).to.be.an('array');","  pm.expect(responseData.hidden_fields_detail).to.be.an('array');","  responseData.groups.forEach(function(group) {","    pm.expect(group.name).to.be.a('string');","    pm.expect(group.fields).to.be.an('array');","  });","  pm.expect(responseData.help_text).to.be.an('object');","  pm.expect(responseData.help_text.sid).to.be.a('string');","  pm.expect(responseData.help_text.type).to.be.a('string');","  pm.expect(responseData.help_text.name_singular).to.be.a('string');","  pm.expect(responseData.help_text.name_plural).to.be.a('string');","  pm.expect(responseData.help_text.name_system).to.be.a('string');","  pm.expect(responseData.help_text.description).to.be.a('string');","  pm.expect(responseData.help_text.icon).to.be.a('string');","  pm.expect(responseData.help_text.order).to.be.a('string');","  pm.expect(responseData.help_text.unique_code).to.be.a('string');","  pm.expect(responseData.help_text.uid_format).to.be.a('string');","  pm.expect(responseData.help_text.should_support_custom_uid).to.be.a('string');","  pm.expect(responseData.help_text.default_list_view).to.be.a('string');","  pm.expect(responseData.help_text.default_filters).to.be.a('string');","  pm.expect(responseData.help_text.fields_to_display).to.be.a('string');","  pm.expect(responseData.help_text.ordering).to.be.a('string');","  pm.expect(responseData.help_text.default_detail_view).to.be.a('string');","  pm.expect(responseData.help_text.fields_to_display_for_detail).to.be.a('string');","  pm.expect(responseData.help_text.should_enable_section_complete_action).to.be.a('string');","  pm.expect(responseData.help_text.default_add_query).to.be.a('string');","  pm.expect(responseData.help_text.should_display_workflow).to.be.a('string');","  pm.expect(responseData.help_text.print_header).to.be.a('string');","  pm.expect(responseData.help_text.should_limit_edit_to_owner).to.be.a('string');","  pm.expect(responseData.help_text.required_certifications).to.be.a('string');","  pm.expect(responseData.help_text.minimum_number_of_signers).to.be.a('string');","  pm.expect(responseData.help_text.metadata).to.be.a('string');","  pm.expect(responseData.help_text.is_archived).to.be.a('string');","});",""],"type":"text/javascript","packages":{}}}],"id":"8fe593e0-4da5-460c-b438-ab93afadd3c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/table/detail/{{table_sid}}/","description":"<p>This endpoint makes an HTTP GET request to retrieve details of a specific table. The response for this request is a JSON object containing various properties such as table ID, name, type, description, default views, fields to display, application details, and more.</p>\n<h3 id=\"request\">Request</h3>\n<p>No request body parameters are required for this request. The endpoint URL should include the <code>table_sid</code> path parameter, which represents the unique identifier of the table.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response for this request is a JSON object representing the details of the specified table. Below is a JSON schema representing the structure of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sid\": { \"type\": \"string\" },\n    \"icon\": { \"type\": \"string\" },\n    \"name\": { \"type\": \"string\" },\n    \"name_singular\": { \"type\": \"string\" },\n    \"name_plural\": { \"type\": \"string\" },\n    \"name_system\": { \"type\": [\"string\", \"null\"] },\n    \"type\": { \"type\": \"string\" },\n    \"description\": { \"type\": \"string\" },\n    \"unique_code\": { \"type\": \"string\" },\n    \"uid_format\": { \"type\": [\"string\", \"null\"] },\n    \"should_support_custom_uid\": { \"type\": \"boolean\" },\n    \"default_list_view\": { \"type\": \"string\" },\n    \"default_filters\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } },\n    \"default_detail_view\": { \"type\": \"string\" },\n    \"default_add_query\": { \"type\": \"string\" },\n    \"should_display_workflow\": { \"type\": \"boolean\" },\n    \"should_limit_edit_to_owner\": { \"type\": \"boolean\" },\n    \"fields_to_display\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } },\n    \"fields_to_display_for_detail\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"sid\": { \"type\": \"string\" },\n          \"name\": { \"type\": \"string\" }\n        }\n      }\n    },\n    \"should_enable_section_complete_action\": { \"type\": \"boolean\" },\n    \"ordering\": { \"type\": \"string\" },\n    \"minimum_number_of_signers\": { \"type\": \"integer\" },\n    \"columns\": { \"type\": \"array\" },\n    \"order\": { \"type\": \"integer\" },\n    \"number_of_records\": { \"type\": \"integer\" },\n    \"print_header\": { \"type\": \"string\" },\n    \"metadata\": { \"type\": \"array\" },\n    \"required_certifications\": { \"type\": [\"array\", \"null\"] },\n    \"application\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": { \"type\": \"string\" },\n        \"name\": { \"type\": \"string\" }\n      }\n    },\n    \"is_archived\": { \"type\": \"boolean\" },\n    \"updated_by\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": { \"type\": \"string\" },\n        \"name\": { \"type\": \"string\" }\n      }\n    },\n    \"date_updated\": { \"type\": \"string\" },\n    \"date_created\": { \"type\": \"string\" },\n    \"change_permission\": { \"type\": \"boolean\" },\n    \"readonly_fields\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } },\n    \"clickable_field\": { \"type\": \"string\" },\n    \"hidden_fields\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } },\n    \"hidden_fields_detail\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } },\n    \"groups\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"name\": { \"type\": \"string\" },\n          \"fields\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } }\n        }\n      }\n    },\n    \"help_text\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": { \"type\": \"string\" },\n        \"type\": { \"type\": \"string\" },\n        \"name_singular\": { \"type\": \"string\" },\n        \"name_plural\": { \"type\": \"string\" },\n        \"name_system\": { \"type\": \"string\" },\n        \"description\": { \"type\": \"string\" },\n        \"icon\": { \"type\": \"string\" },\n        \"order\": { \"type\": \"string\" },\n        \"unique_code\": { \"type\": \"string\" },\n        \"uid_format\": { \"type\": \"string\" },\n        \"should_support_custom_uid\": { \"type\": \"string\" },\n        \"default_list_view\": { \"type\": \"string\" },\n        \"default_filters\": { \"type\": \"string\" },\n        \"fields_to_display\": { \"type\": \"string\" },\n        \"ordering\": { \"type\": \"string\" },\n        \"default_detail_view\": { \"type\": \"string\" },\n        \"fields_to_display_for_detail\": { \"type\": \"string\" },\n        \"should_enable_section_complete_action\": { \"type\": \"string\" },\n        \"default_add_query\": { \"type\": \"string\" },\n        \"should_display_workflow\": { \"type\": \"string\" },\n        \"print_header\": { \"type\": \"string\" },\n        \"should_limit_edit_to_owner\": { \"type\": \"string\" },\n        \"required_certifications\": { \"type\": \"string\" },\n        \"minimum_number_of_signers\": { \"type\": \"string\" },\n        \"metadata\": { \"type\": \"string\" },\n        \"is_archived\": { \"type\": \"string\" }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","table","detail","{{table_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"0cc1b4f6-5531-4615-a698-0e68b8c71cc0","name":"Get Table Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/table/detail/zCFI0a40x124a6BGLQV16a/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 00:46:39 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"7103","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"zCFI0a40x124a6BGLQV16a\",\n    \"icon\": \"sticky_note_2\",\n    \"name\": \"entries\",\n    \"name_singular\": \"entry\",\n    \"name_plural\": \"entries\",\n    \"name_system\": null,\n    \"type\": \"entry\",\n    \"description\": \"An entry describing an experiment or experiments you conducted one day.\",\n    \"unique_code\": \"ET\",\n    \"uid_format\": null,\n    \"should_support_custom_uid\": false,\n    \"default_list_view\": \"records\",\n    \"default_filters\": [\n        \"all\",\n        \"active\",\n        \"archived\",\n        \"my\",\n        \"my_unsigned\",\n        \"templates\"\n    ],\n    \"default_detail_view\": \"workflow_toc\",\n    \"default_add_query\": \"\",\n    \"should_display_workflow\": false,\n    \"should_limit_edit_to_owner\": false,\n    \"fields_to_display\": [\n        \"projects\",\n        \"owner\"\n    ],\n    \"fields_to_display_for_detail\": [\n        {\n            \"sid\": \"JMPS0a40x55c9aLQV16afk\",\n            \"name\": \"signature_status\"\n        }\n    ],\n    \"should_enable_section_complete_action\": true,\n    \"ordering\": \"-date_updated\",\n    \"minimum_number_of_signers\": 0,\n    \"columns\": [],\n    \"order\": 2,\n    \"number_of_records\": 0,\n    \"print_header\": \"\",\n    \"metadata\": [],\n    \"required_certifications\": null,\n    \"application\": {\n        \"sid\": \"369b0a40x54950ejotyD\",\n        \"name\": \"ELN\"\n    },\n    \"is_archived\": false,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-02T08:01:56.721472Z\",\n    \"date_created\": \"2024-11-02T08:01:56.721483Z\",\n    \"change_permission\": true,\n    \"readonly_fields\": [\n        \"sid\",\n        \"uid\",\n        \"version\",\n        \"table\",\n        \"owner\",\n        \"date_created\",\n        \"date_updated\",\n        \"updated_by\",\n        \"is_locked\"\n    ],\n    \"clickable_field\": \"name\",\n    \"hidden_fields\": [\n        \"sid\",\n        \"is_locked\",\n        \"section_set\",\n        \"uid\",\n        \"change_permission\",\n        \"data\",\n        \"help_text\"\n    ],\n    \"hidden_fields_detail\": [\n        \"is_locked\",\n        \"column_set\",\n        \"section_set\",\n        \"change_permission\",\n        \"data\",\n        \"help_text\"\n    ],\n    \"groups\": [\n        {\n            \"name\": \"Overview\",\n            \"fields\": [\n                \"sid\",\n                \"uid\",\n                \"version\",\n                \"table\",\n                \"projects\",\n                \"owner\",\n                \"updated_by\",\n                \"date_updated\",\n                \"date_created\"\n            ]\n        },\n        {\n            \"name\": \"Columns\",\n            \"description\": \"These are custom columns in this table that are not grouped. Group the columns using the column widget of the <b>Subtitle</b>.\",\n            \"fields\": [\n                \"JMPS0a40x55c9aLQV16afk\"\n            ],\n            \"is_column\": true\n        },\n        {\n            \"name\": \"Use this entry as a template\",\n            \"fields\": [\n                \"is_template\"\n            ]\n        },\n        {\n            \"name\": \"Metadata\",\n            \"fields\": [\n                \"metadata\"\n            ]\n        },\n        {\n            \"name\": \"Archive this entry\",\n            \"description\": \"It is not possible to delete a record, but you can archive it or rename it.\",\n            \"color\": \"red lighten-5 red-text\",\n            \"fields\": [\n                \"is_archived\"\n            ]\n        }\n    ],\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"type\": \"Choose a table template. After the table is created, it will also create the columns, sections, and filters associated with it. These parameters can be updated at a later time.\",\n        \"name_singular\": \"Table name, in singular format. Letters and Numbers only.\",\n        \"name_plural\": \"Table name, in plural format. Letters and Numbers only.\",\n        \"name_system\": \"The name for system to identify a particular table. \",\n        \"description\": \"Description of the table. Provide enough information for other users in your organization to understand. Table descriptions will be displayed in table list views.\",\n        \"icon\": \"Icon of the table. Choose one at <a href='https://fonts.google.com/icons' target='_blank'>https://fonts.google.com/icons</a>. In order to use an icon, simply copy its lowercase name and replace blank spaces with '_'. For example: 'account_circle'\",\n        \"order\": \"The order to display this table. Integer only. Drag the table to a preferred position at the list view to update the order. \",\n        \"unique_code\": \"The abbreviation term of table name. The code must be at least 2 characters long and contain only uppercase letters. The unique code will be used to reference an object. Changes to the unique code will update the unique identifier of all records associated with the table.\",\n        \"uid_format\": \"You have the option to personalize the UID by specifying your preferred UID format, which by default consists of '{Unique Code}{RID}'.\",\n        \"should_support_custom_uid\": \"If true, users must supply their unique identifier (UID) for each record. This works well for reagents where you prefer to utilize the vendor's barcode as the UID. <br>Notes: Users must guarantee the uniqueness of the provided UID, as failure to do so will result in the newly created record replacing the existing one.\",\n        \"default_list_view\": \"Default list view when opening the list view. <br>- <b>Records</b>, displays a list of records.<br>- <b>Dashboard</b>, show the dashboard of the table.\",\n        \"default_filters\": \"Select the default filters to be included in the list view.\",\n        \"fields_to_display\": \"Select fields to display in the list view. Default to Projects, Owner.\",\n        \"ordering\": \"The ordering to display records in the list view. \",\n        \"default_detail_view\": \"Default tab view when opening a record. <br>- <b>Columns</b>, displays the label and value of structure data. Ideal for inventory tables.<br>- <b>Sections</b>, show a list of sections with unstructured data. Ideal for production records with strict format requirements.<br>- <b>Notes</b>, an editor for quick documentation. Perfect for taking notes quickly on the go.\",\n        \"fields_to_display_for_detail\": \"Select fields to display in the detail view.\",\n        \"should_enable_section_complete_action\": \"If enabled, each section of a record will include a 'Complete' button. Once a section is marked as complete, it will become read-only.\",\n        \"default_add_query\": \"The query meant for adding to the form. Use this function to restrict changes to the append query in the add form. <br>This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n        \"should_display_workflow\": \"The add form and import form will display a workflow field if true.\",\n        \"print_header\": \"Customize the header of the print page for the table. Use HTML code for formatting. If provided, the header from organization setting will be replaced.<br>This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n        \"should_limit_edit_to_owner\": \"If true, only the owner can edit their records, regardless of the permission settings at the project level.\",\n        \"required_certifications\": \"Please indicate the necessary certifications needed to add or modify entries in this table. If multiple certifications are required, please list them separated by commas.\",\n        \"minimum_number_of_signers\": \"Number of signatories required. This number is set so that the document can only be signed when a minimum number of signers has been added. It defaults to 0.\",\n        \"metadata\": \"Use <b>metadata</b> to store additional values.<br>- Set the metadata of <b>FIELD_NAME_RENAME=title</b> to change the 'Name' to 'Title'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>.<br>- Set the metadata of <b>FIELD_DESCRIPTION_RENAME=overview</b> to change the 'Description' to 'Overview'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>\",\n        \"is_archived\": \"Checking this box will archive the table. Archived tables are not available for use. Make sure no other column/section uses the table, it might break your system if one is archived. The Files table is always required and should not be archived. \"\n    }\n}"}],"_postman_id":"8fe593e0-4da5-460c-b438-ab93afadd3c0"},{"name":"Edit Table","event":[{"listen":"test","script":{"id":"8cb90cea-c01d-4925-b778-eb9594545086","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    const requiredFields = [","        \"sid\", \"icon\", \"name\", \"type\", \"description\", \"unique_code\",","        \"should_support_custom_uid\", \"should_display_workflow\", \"should_limit_edit_to_owner\",","        \"fields_to_display\", \"fields_to_display_for_detail\", \"should_enable_section_complete_action\",","        \"ordering\", \"minimum_number_of_signers\", \"columns\", \"order\", \"number_of_records\",","        \"print_header\", \"metadata\", \"application\", \"is_archived\", \"updated_by\",","        \"date_updated\", \"date_created\", \"change_permission\", \"readonly_fields\",","        \"clickable_field\", \"hidden_fields\", \"hidden_fields_detail\", \"groups\", \"help_text\"","    ];","","    requiredFields.forEach(field => {","        pm.expect(responseData).to.have.property(field);","    });","});","","","pm.test(\"Date_updated is in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.date_updated).to.match(/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$/, \"Date_updated should be in valid date format\");","});","","","pm.test(\"Response time is in an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Groups array is present and contains expected number of elements\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.groups).to.be.an('array').and.to.have.lengthOf(1);","});",""],"type":"text/javascript","packages":{}}}],"id":"280e9d34-3fda-452a-99f9-2c250a6b1a9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"icon\": \"star\",\n    \"name_singular\": \"post\",\n    \"name_plural\": \"posts\",\n    \"description\": \"Test table created by postman.\",\n    \"unique_code\": \"POSTS\",\n    \"uid_format\": null,\n    \"should_support_custom_uid\": false,\n    \"default_list_view\": \"records\",\n    \"default_filters\": [\n        \"all\",\n        \"active\",\n        \"archived\",\n        \"my\",\n        \"my_unsigned\",\n        \"templates\"\n    ],\n    \"default_detail_view\": \"workflow_toc\",\n    \"default_add_query\": \"\",\n    \"should_display_workflow\": false,\n    \"should_limit_edit_to_owner\": false,\n    \"fields_to_display\": [\n        \"projects\",\n        \"owner\"\n    ],\n    \"fields_to_display_for_detail\": [],\n    \"should_enable_section_complete_action\": true,\n    \"ordering\": \"-date_updated\",\n    \"minimum_number_of_signers\": 0,\n    \"print_header\": \"\",\n    \"metadata\": [],\n    \"is_archived\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/table/detail/zCFI0a40x124a6BGLQV16a/","description":"<h3 id=\"update-table-details\">Update Table Details</h3>\n<p>This endpoint allows the client to update the details of a specific table.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>icon (string): The icon representing the table.</p>\n</li>\n<li><p>name_singular (string): The singular name of the table.</p>\n</li>\n<li><p>name_plural (string): The plural name of the table.</p>\n</li>\n<li><p>description (string): A brief description of the table.</p>\n</li>\n<li><p>unique_code (string): A unique code for the table.</p>\n</li>\n<li><p>uid_format (null or string): The format for unique identifiers, if applicable.</p>\n</li>\n<li><p>should_support_custom_uid (boolean): Indicates if custom unique identifiers are supported.</p>\n</li>\n<li><p>default_list_view (string): The default view for listing records.</p>\n</li>\n<li><p>default_filters (array of strings): Default filters for records.</p>\n</li>\n<li><p>default_detail_view (string): The default view for detailed records.</p>\n</li>\n<li><p>default_add_query (string): Default query for adding records.</p>\n</li>\n<li><p>should_display_workflow (boolean): Indicates if workflow display is enabled.</p>\n</li>\n<li><p>should_limit_edit_to_owner (boolean): Indicates if editing is limited to the owner.</p>\n</li>\n<li><p>fields_to_display (array of strings): Fields to display in the table.</p>\n</li>\n<li><p>fields_to_display_for_detail (array of strings): Fields to display in detailed records.</p>\n</li>\n<li><p>should_enable_section_complete_action (boolean): Indicates if section complete action is enabled.</p>\n</li>\n<li><p>ordering (string): The ordering of records.</p>\n</li>\n<li><p>minimum_number_of_signers (number): The minimum number of signers required.</p>\n</li>\n<li><p>print_header (string): Header for printing records.</p>\n</li>\n<li><p>metadata (array): Additional metadata for the table.</p>\n</li>\n<li><p>is_archived (boolean): Indicates if the table is archived.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON schema representing the updated table details.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sid\": {\"type\": \"string\"},\n    \"icon\": {\"type\": \"string\"},\n    \"name\": {\"type\": \"string\"},\n    \"name_singular\": {\"type\": \"string\"},\n    \"name_plural\": {\"type\": \"string\"},\n    \"name_system\": {\"type\": \"null\"},\n    \"type\": {\"type\": \"string\"},\n    \"description\": {\"type\": \"string\"},\n    \"unique_code\": {\"type\": \"string\"},\n    \"uid_format\": {\"type\": [\"null\", \"string\"]},\n    \"should_support_custom_uid\": {\"type\": \"boolean\"},\n    \"default_list_view\": {\"type\": \"string\"},\n    \"default_filters\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}},\n    \"default_detail_view\": {\"type\": \"string\"},\n    \"default_add_query\": {\"type\": \"string\"},\n    \"should_display_workflow\": {\"type\": \"boolean\"},\n    \"should_limit_edit_to_owner\": {\"type\": \"boolean\"},\n    \"fields_to_display\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}},\n    \"fields_to_display_for_detail\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}},\n    \"should_enable_section_complete_action\": {\"type\": \"boolean\"},\n    \"ordering\": {\"type\": \"string\"},\n    \"minimum_number_of_signers\": {\"type\": \"number\"},\n    \"columns\": {\"type\": \"array\"},\n    \"order\": {\"type\": \"number\"},\n    \"number_of_records\": {\"type\": \"number\"},\n    \"print_header\": {\"type\": \"string\"},\n    \"metadata\": {\"type\": \"array\"},\n    \"required_certifications\": {\"type\": \"null\"},\n    \"application\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\"type\": \"string\"},\n        \"name\": {\"type\": \"string\"}\n      }\n    },\n    \"is_archived\": {\"type\": \"boolean\"},\n    \"updated_by\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\"type\": \"string\"},\n        \"name\": {\"type\": \"string\"}\n      }\n    },\n    \"date_updated\": {\"type\": \"string\"},\n    \"date_created\": {\"type\": \"string\"},\n    \"change_permission\": {\"type\": \"boolean\"},\n    \"readonly_fields\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}},\n    \"clickable_field\": {\"type\": \"string\"},\n    \"hidden_fields\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}},\n    \"hidden_fields_detail\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}},\n    \"groups\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"name\": {\"type\": \"string\"},\n          \"fields\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}}\n        }\n      }\n    },\n    \"help_text\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\"type\": \"string\"},\n        \"type\": {\"type\": \"string\"},\n        \"name_singular\": {\"type\": \"string\"},\n        \"name_plural\": {\"type\": \"string\"},\n        \"name_system\": {\"type\": \"string\"},\n        \"description\": {\"type\": \"string\"},\n        \"icon\": {\"type\": \"string\"},\n        \"order\": {\"type\": \"string\"},\n        \"unique_code\": {\"type\": \"string\"},\n        \"uid_format\": {\"type\": \"string\"},\n        \"should_support_custom_uid\": {\"type\": \"string\"},\n        \"default_list_view\": {\"type\": \"string\"},\n        \"default_filters\": {\"type\": \"string\"},\n        \"fields_to_display\": {\"type\": \"string\"},\n        \"ordering\": {\"type\": \"string\"},\n        \"default_detail_view\": {\"type\": \"string\"},\n        \"fields_to_display_for_detail\": {\"type\": \"string\"},\n        \"should_enable_section_complete_action\": {\"type\": \"string\"},\n        \"default_add_query\": {\"type\": \"string\"},\n        \"should_display_workflow\": {\"type\": \"string\"},\n        \"print_header\": {\"type\": \"string\"},\n        \"should_limit_edit_to_owner\": {\"type\": \"string\"},\n        \"required_certifications\": {\"type\": \"string\"},\n        \"minimum_number_of_signers\": {\"type\": \"string\"},\n        \"metadata\": {\"type\": \"string\"},\n        \"is_archived\": {\"type\": \"string\"}\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","table","detail","zCFI0a40x124a6BGLQV16a",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"2b1022a7-f08d-4af7-ba4d-fdde2999105e","name":"Edit Table","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"icon\": \"star\",\n    \"name_singular\": \"post\",\n    \"name_plural\": \"posts\",\n    \"description\": \"Test table created by postman.\",\n    \"unique_code\": \"POSTS\",\n    \"uid_format\": null,\n    \"should_support_custom_uid\": false,\n    \"default_list_view\": \"records\",\n    \"default_filters\": [\n        \"all\",\n        \"active\",\n        \"archived\",\n        \"my\",\n        \"my_unsigned\",\n        \"templates\"\n    ],\n    \"default_detail_view\": \"workflow_toc\",\n    \"default_add_query\": \"\",\n    \"should_display_workflow\": false,\n    \"should_limit_edit_to_owner\": false,\n    \"fields_to_display\": [\n        \"projects\",\n        \"owner\"\n    ],\n    \"fields_to_display_for_detail\": [],\n    \"should_enable_section_complete_action\": true,\n    \"ordering\": \"-date_updated\",\n    \"minimum_number_of_signers\": 0,\n    \"print_header\": \"\",\n    \"metadata\": [],\n    \"is_archived\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/table/detail/zCFI0a40x124a6BGLQV16a/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 00:59:56 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"6990","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"zCFI0a40x124a6BGLQV16a\",\n    \"icon\": \"star\",\n    \"name\": \"posts\",\n    \"name_singular\": \"post\",\n    \"name_plural\": \"posts\",\n    \"name_system\": null,\n    \"type\": \"entry\",\n    \"description\": \"Test table created by postman.\",\n    \"unique_code\": \"POSTS\",\n    \"uid_format\": null,\n    \"should_support_custom_uid\": false,\n    \"default_list_view\": \"records\",\n    \"default_filters\": [\n        \"all\",\n        \"active\",\n        \"archived\",\n        \"my\",\n        \"my_unsigned\",\n        \"templates\"\n    ],\n    \"default_detail_view\": \"workflow_toc\",\n    \"default_add_query\": \"\",\n    \"should_display_workflow\": false,\n    \"should_limit_edit_to_owner\": false,\n    \"fields_to_display\": [\n        \"projects\",\n        \"owner\"\n    ],\n    \"fields_to_display_for_detail\": [],\n    \"should_enable_section_complete_action\": true,\n    \"ordering\": \"-date_updated\",\n    \"minimum_number_of_signers\": 0,\n    \"columns\": [],\n    \"order\": 2,\n    \"number_of_records\": 0,\n    \"print_header\": \"\",\n    \"metadata\": [],\n    \"required_certifications\": null,\n    \"application\": {\n        \"sid\": \"369b0a40x54950ejotyD\",\n        \"name\": \"ELN\"\n    },\n    \"is_archived\": true,\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-02T08:01:56.721472Z\",\n    \"date_created\": \"2024-11-02T08:01:56.721483Z\",\n    \"change_permission\": true,\n    \"readonly_fields\": [\n        \"sid\",\n        \"uid\",\n        \"version\",\n        \"table\",\n        \"owner\",\n        \"date_created\",\n        \"date_updated\",\n        \"updated_by\",\n        \"is_locked\"\n    ],\n    \"clickable_field\": \"name\",\n    \"hidden_fields\": [\n        \"sid\",\n        \"is_locked\",\n        \"section_set\",\n        \"uid\",\n        \"change_permission\",\n        \"data\",\n        \"help_text\"\n    ],\n    \"hidden_fields_detail\": [\n        \"is_locked\",\n        \"column_set\",\n        \"section_set\",\n        \"change_permission\",\n        \"data\",\n        \"help_text\"\n    ],\n    \"groups\": [\n        {\n            \"name\": \"Overview\",\n            \"fields\": [\n                \"sid\",\n                \"uid\",\n                \"version\",\n                \"table\",\n                \"projects\",\n                \"owner\",\n                \"updated_by\",\n                \"date_updated\",\n                \"date_created\"\n            ]\n        },\n        {\n            \"name\": \"Columns\",\n            \"description\": \"These are custom columns in this table that are not grouped. Group the columns using the column widget of the <b>Subtitle</b>.\",\n            \"fields\": [\n                \"JMPS0a40x55c9aLQV16afk\"\n            ],\n            \"is_column\": true\n        },\n        {\n            \"name\": \"Use this post as a template\",\n            \"fields\": [\n                \"is_template\"\n            ]\n        },\n        {\n            \"name\": \"Metadata\",\n            \"fields\": [\n                \"metadata\"\n            ]\n        },\n        {\n            \"name\": \"Archive this post\",\n            \"description\": \"It is not possible to delete a record, but you can archive it or rename it.\",\n            \"color\": \"red lighten-5 red-text\",\n            \"fields\": [\n                \"is_archived\"\n            ]\n        }\n    ],\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"type\": \"Choose a table template. After the table is created, it will also create the columns, sections, and filters associated with it. These parameters can be updated at a later time.\",\n        \"name_singular\": \"Table name, in singular format. Letters and Numbers only.\",\n        \"name_plural\": \"Table name, in plural format. Letters and Numbers only.\",\n        \"name_system\": \"The name for system to identify a particular table. \",\n        \"description\": \"Description of the table. Provide enough information for other users in your organization to understand. Table descriptions will be displayed in table list views.\",\n        \"icon\": \"Icon of the table. Choose one at <a href='https://fonts.google.com/icons' target='_blank'>https://fonts.google.com/icons</a>. In order to use an icon, simply copy its lowercase name and replace blank spaces with '_'. For example: 'account_circle'\",\n        \"order\": \"The order to display this table. Integer only. Drag the table to a preferred position at the list view to update the order. \",\n        \"unique_code\": \"The abbreviation term of table name. The code must be at least 2 characters long and contain only uppercase letters. The unique code will be used to reference an object. Changes to the unique code will update the unique identifier of all records associated with the table.\",\n        \"uid_format\": \"You have the option to personalize the UID by specifying your preferred UID format, which by default consists of '{Unique Code}{RID}'.\",\n        \"should_support_custom_uid\": \"If true, users must supply their unique identifier (UID) for each record. This works well for reagents where you prefer to utilize the vendor's barcode as the UID. <br>Notes: Users must guarantee the uniqueness of the provided UID, as failure to do so will result in the newly created record replacing the existing one.\",\n        \"default_list_view\": \"Default list view when opening the list view. <br>- <b>Records</b>, displays a list of records.<br>- <b>Dashboard</b>, show the dashboard of the table.\",\n        \"default_filters\": \"Select the default filters to be included in the list view.\",\n        \"fields_to_display\": \"Select fields to display in the list view. Default to Projects, Owner.\",\n        \"ordering\": \"The ordering to display records in the list view. \",\n        \"default_detail_view\": \"Default tab view when opening a record. <br>- <b>Columns</b>, displays the label and value of structure data. Ideal for inventory tables.<br>- <b>Sections</b>, show a list of sections with unstructured data. Ideal for production records with strict format requirements.<br>- <b>Notes</b>, an editor for quick documentation. Perfect for taking notes quickly on the go.\",\n        \"fields_to_display_for_detail\": \"Select fields to display in the detail view.\",\n        \"should_enable_section_complete_action\": \"If enabled, each section of a record will include a 'Complete' button. Once a section is marked as complete, it will become read-only.\",\n        \"default_add_query\": \"The query meant for adding to the form. Use this function to restrict changes to the append query in the add form. <br>This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n        \"should_display_workflow\": \"The add form and import form will display a workflow field if true.\",\n        \"print_header\": \"Customize the header of the print page for the table. Use HTML code for formatting. If provided, the header from organization setting will be replaced.<br>This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n        \"should_limit_edit_to_owner\": \"If true, only the owner can edit their records, regardless of the permission settings at the project level.\",\n        \"required_certifications\": \"Please indicate the necessary certifications needed to add or modify entries in this table. If multiple certifications are required, please list them separated by commas.\",\n        \"minimum_number_of_signers\": \"Number of signatories required. This number is set so that the document can only be signed when a minimum number of signers has been added. It defaults to 0.\",\n        \"metadata\": \"Use <b>metadata</b> to store additional values.<br>- Set the metadata of <b>FIELD_NAME_RENAME=title</b> to change the 'Name' to 'Title'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>.<br>- Set the metadata of <b>FIELD_DESCRIPTION_RENAME=overview</b> to change the 'Description' to 'Overview'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>\",\n        \"is_archived\": \"Checking this box will archive the table. Archived tables are not available for use. Make sure no other column/section uses the table, it might break your system if one is archived. The Files table is always required and should not be archived. \"\n    }\n}"}],"_postman_id":"280e9d34-3fda-452a-99f9-2c250a6b1a9e"}],"id":"4946b99d-c198-41a0-a25c-e15ebb27d9f9","description":"<p>The Labii Table API is a versatile tool that allows users to efficiently manage tables within their applications. With this API, users can retrieve a comprehensive list of tables, create new tables, access detailed information about specific tables, and make edits as necessary. This functionality streamlines data organization and enhances the overall management of structured information, providing users with the flexibility to tailor their data storage to meet their specific needs.</p>\n","_postman_id":"4946b99d-c198-41a0-a25c-e15ebb27d9f9","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Column","item":[{"name":"Get Column List","event":[{"listen":"test","script":{"id":"55aad491-3785-47c0-9b03-da202f7fe149","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for the fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.results).to.be.an('array');","    ","    responseData.results.forEach(function(result) {","        pm.expect(result).to.have.property('name').that.is.a('string');","        pm.expect(result).to.have.property('sid').that.is.a('string');","        pm.expect(result).to.have.property('description').that.is.a('string');","        pm.expect(result).to.have.property('widget').that.is.an('object');","        pm.expect(result).to.have.property('is_required').that.is.a('boolean');","        pm.expect(result).to.have.property('should_hide_in_form_view').that.is.a('boolean');","        pm.expect(result).to.have.property('should_hide_in_list_view').that.is.a('boolean');","        pm.expect(result).to.have.property('is_archived').that.is.a('boolean');","        pm.expect(result).to.have.property('order').that.is.a('number');","        pm.expect(result).to.have.property('table').that.is.an('object');","        pm.expect(result).to.have.property('change_permission').that.is.a('boolean');","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"f824f76d-8f3b-4dc5-8c96-3a237b11fc61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/column/list/organization/{{organization_sid_test_administrator}}/list/?table__sid={{table_sid_test_administrator}}","description":"<h3 id=\"get-table-column-list\">Get Table Column List</h3>\n<p>This endpoint retrieves a list of columns for a specific organization and table.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: https://www.labii.dev/tables/column/list/organization/{{organization_sid_test_administrator}}/list/?table__sid={{table_sid_test_administrator}}</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will include the following fields:</p>\n<ul>\n<li><p><code>page_size</code> (number) - The number of items per page</p>\n</li>\n<li><p><code>page_number</code> (number) - The current page number</p>\n</li>\n<li><p><code>page_count</code> (number) - The total number of pages</p>\n</li>\n<li><p><code>count</code> (number) - The total count of items</p>\n</li>\n<li><p><code>next</code> (string) - The URL for the next page</p>\n</li>\n<li><p><code>previous</code> (string) - The URL for the previous page</p>\n</li>\n<li><p><code>add_permission</code> (boolean) - Indicates if the user has permission to add columns</p>\n</li>\n<li><p><code>results</code> (array) - An array of column objects, each containing:</p>\n<ul>\n<li><p><code>name</code> (string) - The name of the column</p>\n</li>\n<li><p><code>sid</code> (string) - The unique identifier of the column</p>\n</li>\n<li><p><code>description</code> (string) - The description of the column</p>\n</li>\n<li><p><code>widget</code> (object) - Information about the widget associated with the column, including:</p>\n<ul>\n<li><p><code>sid</code> (string) - The unique identifier of the widget</p>\n</li>\n<li><p><code>name</code> (string) - The name of the widget</p>\n</li>\n<li><p><code>documentation_url</code> (string) - The URL to the documentation of the widget</p>\n</li>\n</ul>\n</li>\n<li><p><code>is_required</code> (boolean) - Indicates if the column is required</p>\n</li>\n<li><p><code>should_hide_in_form_view</code> (boolean) - Indicates if the column should be hidden in the form view</p>\n</li>\n<li><p><code>should_hide_in_list_view</code> (boolean) - Indicates if the column should be hidden in the list view</p>\n</li>\n<li><p><code>is_archived</code> (boolean) - Indicates if the column is archived</p>\n</li>\n<li><p><code>order</code> (number) - The order of the column</p>\n</li>\n<li><p><code>table</code> (object) - Information about the table associated with the column, including:</p>\n<ul>\n<li><p><code>sid</code> (string) - The unique identifier of the table</p>\n</li>\n<li><p><code>name</code> (string) - The name of the table</p>\n</li>\n</ul>\n</li>\n<li><p><code>change_permission</code> (boolean) - Indicates if the user has permission to change the column</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","column","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"table__sid","value":"{{table_sid_test_administrator}}"}],"variable":[]}},"response":[{"id":"28be77ab-011b-4afe-98b6-d1e97770c877","name":"Get Column List","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://www.labii.dev/tables/column/list/organization/{{organization_sid_test_administrator}}/list/?table__sid={{table_sid_test_administrator}}","host":["https://www.labii.dev"],"path":["tables","column","list","organization","{{organization_sid_test_administrator}}","list",""],"query":[{"key":"table__sid","value":"{{table_sid_test_administrator}}","sortOrder":0}]}},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 04:19:54 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"561","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": true,\n    \"results\": [\n        {\n            \"name\": \"Test Column 2024-11-03\",\n            \"sid\": \"RUX10a40x563a8TY49dins\",\n            \"description\": \"Column created by postman.\",\n            \"widget\": {\n                \"sid\": \"EHKN0a40x1bGLQV16af\",\n                \"name\": \"Text\",\n                \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/text-inputs/text\"\n            },\n            \"is_required\": true,\n            \"should_hide_in_form_view\": false,\n            \"should_hide_in_list_view\": false,\n            \"is_archived\": false,\n            \"order\": 1,\n            \"table\": {\n                \"sid\": \"gjmp0a40x1254dinsxCHMR\",\n                \"name\": \"tests\"\n            },\n            \"change_permission\": true\n        }\n    ]\n}"}],"_postman_id":"f824f76d-8f3b-4dc5-8c96-3a237b11fc61"},{"name":"Create Column","event":[{"listen":"prerequest","script":{"id":"63fa932e-c81f-4a40-8441-7756dfa6c606","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"0d9d8b60-dfd1-4a85-ab0d-6ab5a9825dce","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"column_sid\", jsonData.sid);","","","pm.test(\"Response status code is 201\", function () {","    pm.response.to.have.status(201);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the schema of the response\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.sid).to.be.a('string');","  pm.expect(responseData.name).to.be.a('string');","  pm.expect(responseData.name_system).to.be.a('string');","  pm.expect(responseData.description).to.be.a('string');","  pm.expect(responseData.widget).to.be.an('object');","  pm.expect(responseData.widget.sid).to.be.a('string');","  pm.expect(responseData.widget.name).to.be.a('string');","  pm.expect(responseData.widget.documentation_url).to.be.a('string');","  pm.expect(responseData.configuration).to.be.null;","  pm.expect(responseData.permission).to.be.null;","  pm.expect(responseData.default_data).to.be.a('string');","  pm.expect(responseData.order).to.be.a('number');","  pm.expect(responseData.is_required).to.be.true;","  pm.expect(responseData.should_hide_in_form_view).to.be.true;","  pm.expect(responseData.should_hide_in_list_view).to.be.true;","  pm.expect(responseData.max_width).to.be.null;","  pm.expect(responseData.metadata).to.be.null;","  pm.expect(responseData.table).to.be.an('object');","  pm.expect(responseData.table.sid).to.be.a('string');","  pm.expect(responseData.table.name).to.be.a('string');","  pm.expect(responseData.is_archived).to.be.true;","  pm.expect(responseData.date_created).to.be.a('string');","  pm.expect(responseData.change_permission).to.be.true;","  pm.expect(responseData.help_text).to.be.an('object');","  pm.expect(responseData.help_text.sid).to.be.a('string');","  pm.expect(responseData.help_text.name).to.be.a('string');","  pm.expect(responseData.help_text.name_system).to.be.a('string');","  pm.expect(responseData.help_text.description).to.be.a('string');","  pm.expect(responseData.help_text.widget).to.be.a('string');","  pm.expect(responseData.help_text.configuration).to.be.a('string');","  pm.expect(responseData.help_text.permission).to.be.a('string');","  pm.expect(responseData.help_text.default_data).to.be.a('string');","  pm.expect(responseData.help_text.order).to.be.a('string');","  pm.expect(responseData.help_text.is_required).to.be.a('string');","  pm.expect(responseData.help_text.should_hide_in_form_view).to.be.a('string');","  pm.expect(responseData.help_text.should_hide_in_list_view).to.be.a('string');","  pm.expect(responseData.help_text.max_width).to.be.a('string');","  pm.expect(responseData.help_text.metadata).to.be.a('string');","  pm.expect(responseData.help_text.is_archived).to.be.a('string');","});","","","pm.test(\"Sid field should not be empty\", function () {","  const responseData = pm.response.json();","  pm.expect(responseData.sid).to.not.be.empty;","});","","","pm.test(\"Table object is present with expected fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.table).to.exist;","    pm.expect(responseData.table.sid).to.exist;","    pm.expect(responseData.table.name).to.exist;","});","",""],"type":"text/javascript","packages":{}}}],"id":"5a41c7cd-7b05-4118-98d8-dd703ac05803","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Column {{currentDate}}\",\n    \"description\": \"Column created by postman.\",\n    \"widget\": {\n        \"sid\": \"EHKN0a40x1bGLQV16af\",\n        \"name\": \"Text\"\n    },\n    \"default_data\": \"Test\",\n    \"configuration\": null,\n    \"is_required\": true,\n    \"should_hide_in_form_view\": false,\n    \"should_hide_in_list_view\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/column/list/organization/{{organization_sid_test_administrator}}/list/?table__sid={{table_sid_test_administrator}}","description":"<h3 id=\"create-a-new-column\">Create a New Column</h3>\n<p>This endpoint allows you to create a new column within a specific organization and table.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code>: The name of the new column.</p>\n</li>\n<li><p><code>description</code>: A description for the new column.</p>\n</li>\n<li><p><code>widget</code>: Details about the widget used for the column.</p>\n</li>\n<li><p><code>default_data</code>: The default data for the column.</p>\n</li>\n<li><p><code>configuration</code>: Configuration settings for the column.</p>\n</li>\n<li><p><code>is_required</code>: Indicates if the column is required.</p>\n</li>\n<li><p><code>should_hide_in_form_view</code>: Specifies whether the column should be hidden in the form view.</p>\n</li>\n<li><p><code>should_hide_in_list_view</code>: Specifies whether the column should be hidden in the list view.</p>\n</li>\n</ul>\n<h4 id=\"response-body\">Response Body</h4>\n<ul>\n<li><p><code>sid</code>: The unique identifier for the new column.</p>\n</li>\n<li><p><code>name</code>: The name of the new column.</p>\n</li>\n<li><p><code>description</code>: A description of the new column.</p>\n</li>\n<li><p><code>widget</code>: Details about the widget used for the column.</p>\n</li>\n<li><p><code>default_data</code>: The default data for the column.</p>\n</li>\n<li><p><code>configuration</code>: Configuration settings for the column.</p>\n</li>\n<li><p><code>is_required</code>: Indicates if the column is required.</p>\n</li>\n<li><p><code>should_hide_in_form_view</code>: Specifies whether the column should be hidden in the form view.</p>\n</li>\n<li><p><code>should_hide_in_list_view</code>: Specifies whether the column should be hidden in the list view.</p>\n</li>\n<li><p><code>max_width</code>: The maximum width of the column.</p>\n</li>\n<li><p><code>metadata</code>: Additional metadata for the column.</p>\n</li>\n<li><p><code>table</code>: Details about the table to which the column belongs.</p>\n</li>\n<li><p><code>is_archived</code>: Indicates if the column is archived.</p>\n</li>\n<li><p><code>date_created</code>: The date when the column was created.</p>\n</li>\n<li><p><code>change_permission</code>: Specifies the permission to change the column.</p>\n</li>\n<li><p><code>help_text</code>: Additional help text for the column.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","column","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"table__sid","value":"{{table_sid_test_administrator}}"}],"variable":[]}},"response":[{"id":"dd795cbe-67d6-457b-985d-a926e104d646","name":"Create Column","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Column {{currentDate}}\",\n    \"description\": \"Column created by postman.\",\n    \"widget\": {\n        \"sid\": \"EHKN0a40x1bGLQV16af\",\n        \"name\": \"Text\"\n    },\n    \"default_data\": \"Test\",\n    \"configuration\": null,\n    \"is_required\": true,\n    \"should_hide_in_form_view\": false,\n    \"should_hide_in_list_view\": false\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://www.labii.dev/tables/column/list/organization/{{organization_sid_test_administrator}}/list/?table__sid={{table_sid_test_administrator}}","host":["https://www.labii.dev"],"path":["tables","column","list","organization","{{organization_sid_test_administrator}}","list",""],"query":[{"key":"table__sid","value":"{{table_sid_test_administrator}}","sortOrder":0}]}},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 04:19:42 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"3469","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"RUX10a40x563a8TY49dins\",\n    \"name\": \"Test Column 2024-11-03\",\n    \"name_system\": \"\",\n    \"description\": \"Column created by postman.\",\n    \"widget\": {\n        \"sid\": \"EHKN0a40x1bGLQV16af\",\n        \"name\": \"Text\",\n        \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/text-inputs/text\"\n    },\n    \"configuration\": null,\n    \"permission\": null,\n    \"default_data\": \"Test\",\n    \"order\": 1,\n    \"is_required\": true,\n    \"should_hide_in_form_view\": false,\n    \"should_hide_in_list_view\": false,\n    \"max_width\": null,\n    \"metadata\": null,\n    \"table\": {\n        \"sid\": \"gjmp0a40x1254dinsxCHMR\",\n        \"name\": \"tests\"\n    },\n    \"is_archived\": false,\n    \"date_created\": \"2024-11-04T04:19:42.071146Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"name\": \"Letters and number only.\",\n        \"name_system\": \"The name to identify the column for a widget. \",\n        \"description\": \"The description of the column. Include the definition, special formatting, and all other necessary information to help your coworker to fill.\",\n        \"widget\": \"The widget to use, or the type of data. Default to <b>Text</b>. The configuration data will be erased if the widget is changed.<br>You can only select widgets that have been installed. You can find a list of installed widgets <a href='/list/settings/organizationwidgets/' target='_blank'>here</a>. Widgets that aren't available can be enabled <a href='/list/settings/widgets/' target='_blank'>here</a>. <br><b>Group columns with Subtitle widget</b>. When you use the Subtitle widget, the columns right after will be grouped and displayed separately in both form and columns views. Learn more about the widgets <a href='https://docs.labii.com/widgets/summary/column-type-widgets' target='_blank'>here</a>.\",\n        \"configuration\": \"The configuration of the column. Use it to provide addtional parameters to the column.\",\n        \"permission\": \"The column's supplementary permission settings can be utilized to offer additional control over its permissions. \",\n        \"default_data\": \"The default data of the column. <br>- For the Boolean field, the default value is 'false'. <br>- For Date, use YYYY-MM-DD. <br>- For Select/MultiSelect, use {'sid':'xxx', 'name':'xxx'}. <br>- For ForeignKey/ForeignKeys, use {'sid':'xxx', 'name':'xxx'}. <br>The default value is different for different widget, learn more at <a href='https://docs.labii.com/widgets/column-widgets' target='_blank'>https://docs.labii.com/widgets/column-widgets</a>.<br>This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n        \"order\": \"The order to display the column. Integer only. <br>Use it to control the order of columns in the list view (from left to right).\",\n        \"is_required\": \"If checked, the value of the column is required in form submitting.\",\n        \"should_hide_in_form_view\": \"If selected, the column will not be visible in the form view but will remain accessible in the detail view. Utilize this option to manage column visibility in the form view.\",\n        \"should_hide_in_list_view\": \"If enabled, the column will not be shown in the list view but will remain accessible in the detail view. Employ this feature to regulate the display of columns in the list view.\",\n        \"max_width\": \"The maximum width of the column in pixels. You can use it to limit the width of certain columns.\",\n        \"metadata\": \"Use <b>metadata</b> to provide additional information to the column.\",\n        \"is_archived\": \"If checked, the item and relevant data will be archived. Archived item is not available for use.\"\n    }\n}"}],"_postman_id":"5a41c7cd-7b05-4118-98d8-dd703ac05803"},{"name":"Get Column Detail","event":[{"listen":"test","script":{"id":"a6b0e9b3-6043-4e4e-a2db-3e491dabed65","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the schema of the response\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.be.a('string');","    pm.expect(responseData.name).to.be.a('string');","    pm.expect(responseData.name_system).to.be.a('string');","    pm.expect(responseData.description).to.be.a('string');","    ","    pm.expect(responseData.widget).to.be.an('object');","    pm.expect(responseData.widget.sid).to.be.a('string');","    pm.expect(responseData.widget.name).to.be.a('string');","    pm.expect(responseData.widget.documentation_url).to.be.a('string');","    ","    pm.expect(responseData.configuration).to.be.null;","    pm.expect(responseData.permission).to.be.null;","    pm.expect(responseData.default_data).to.be.a('string');","    pm.expect(responseData.order).to.be.a('number');","    pm.expect(responseData.is_required).to.be.true;","    pm.expect(responseData.should_hide_in_form_view).to.be.true;","    pm.expect(responseData.should_hide_in_list_view).to.be.true;","    pm.expect(responseData.max_width).to.be.null;","    pm.expect(responseData.metadata).to.be.null;","    ","    pm.expect(responseData.table).to.be.an('object');","    pm.expect(responseData.table.sid).to.be.a('string');","    pm.expect(responseData.table.name).to.be.a('string');","    ","    pm.expect(responseData.is_archived).to.be.true;","    pm.expect(responseData.date_created).to.be.a('string');","    pm.expect(responseData.change_permission).to.be.true;","    ","    pm.expect(responseData.help_text).to.be.an('object');","    pm.expect(responseData.help_text.sid).to.be.a('string');","    pm.expect(responseData.help_text.name).to.be.a('string');","    pm.expect(responseData.help_text.name_system).to.be.a('string');","    pm.expect(responseData.help_text.description).to.be.a('string');","    pm.expect(responseData.help_text.widget).to.be.a('string');","    pm.expect(responseData.help_text.configuration).to.be.a('string');","    pm.expect(responseData.help_text.permission).to.be.a('string');","    pm.expect(responseData.help_text.default_data).to.be.a('string');","    pm.expect(responseData.help_text.order).to.be.a('string');","    pm.expect(responseData.help_text.is_required).to.be.a('string');","    pm.expect(responseData.help_text.should_hide_in_form_view).to.be.a('string');","    pm.expect(responseData.help_text.should_hide_in_list_view).to.be.a('string');","    pm.expect(responseData.help_text.max_width).to.be.a('string');","    pm.expect(responseData.help_text.metadata).to.be.a('string');","    pm.expect(responseData.help_text.is_archived).to.be.a('string');","});","","","pm.test(\"All required fields are present in the response\", function () {","    const requiredFields = [\"sid\", \"name\", \"name_system\", \"description\", \"widget\", \"configuration\", \"permission\", ","    \"default_data\", \"order\", \"is_required\", \"should_hide_in_form_view\", \"should_hide_in_list_view\", \"table\", ","    \"is_archived\", \"date_created\", \"change_permission\", \"help_text\"];","    ","    const responseData = pm.response.json();","    ","    requiredFields.forEach(field => {","        pm.expect(responseData).to.have.property(field);","    });","});","","","pm.test(\"Widget and table objects have the expected structure\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.widget).to.be.an('object');","    pm.expect(responseData.widget.sid).to.be.a('string');","    pm.expect(responseData.widget.name).to.be.a('string');","    pm.expect(responseData.widget.documentation_url).to.be.a('string');","","    pm.expect(responseData.table).to.be.an('object');","    pm.expect(responseData.table.sid).to.be.a('string');","    pm.expect(responseData.table.name).to.be.a('string');","});",""],"type":"text/javascript","packages":{}}}],"id":"17ccdaa9-b245-4158-912a-47de6f7c12bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/column/detail/{{column_sid}}/","description":"<h3 id=\"get-tablescolumndetailcolumn_sid\">GET /tables/column/detail/{{column_sid}}/</h3>\n<p>This endpoint retrieves detailed information about a specific column in a table.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this GET request.</p>\n<ul>\n<li><code>{{column_sid}}</code> (path parameter) - The unique identifier of the column for which details are to be retrieved.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON object conforming to the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sid\": {\"type\": \"string\"},\n    \"name\": {\"type\": \"string\"},\n    \"name_system\": {\"type\": \"string\"},\n    \"description\": {\"type\": \"string\"},\n    \"widget\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\"type\": \"string\"},\n        \"name\": {\"type\": \"string\"},\n        \"documentation_url\": {\"type\": \"string\"}\n      }\n    },\n    \"configuration\": {\"type\": \"null\"},\n    \"permission\": {\"type\": \"null\"},\n    \"default_data\": {\"type\": \"string\"},\n    \"order\": {\"type\": \"integer\"},\n    \"is_required\": {\"type\": \"boolean\"},\n    \"should_hide_in_form_view\": {\"type\": \"boolean\"},\n    \"should_hide_in_list_view\": {\"type\": \"boolean\"},\n    \"max_width\": {\"type\": [\"null\", \"integer\"]},\n    \"metadata\": {\"type\": \"null\"},\n    \"table\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\"type\": \"string\"},\n        \"name\": {\"type\": \"string\"}\n      }\n    },\n    \"is_archived\": {\"type\": \"boolean\"},\n    \"date_created\": {\"type\": \"string\"},\n    \"change_permission\": {\"type\": \"boolean\"},\n    \"help_text\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\"type\": \"string\"},\n        \"name\": {\"type\": \"string\"},\n        \"name_system\": {\"type\": \"string\"},\n        \"description\": {\"type\": \"string\"},\n        \"widget\": {\"type\": \"string\"},\n        \"configuration\": {\"type\": \"string\"},\n        \"permission\": {\"type\": \"string\"},\n        \"default_data\": {\"type\": \"string\"},\n        \"order\": {\"type\": \"string\"},\n        \"is_required\": {\"type\": \"string\"},\n        \"should_hide_in_form_view\": {\"type\": \"string\"},\n        \"should_hide_in_list_view\": {\"type\": \"string\"},\n        \"max_width\": {\"type\": \"string\"},\n        \"metadata\": {\"type\": \"string\"},\n        \"is_archived\": {\"type\": \"string\"}\n      }\n    }\n  }\n}\n\n</code></pre>\n<p>The response includes detailed information about the specified column, including its name, description, widget details, configuration, permissions, default data, and other relevant attributes.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","column","detail","{{column_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"0ea83285-525c-4d0f-9250-5059d5f0dd13","name":"Get Column Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/column/detail/{{column_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 04:21:01 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"3469","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"RUX10a40x563a8TY49dins\",\n    \"name\": \"Test Column 2024-11-03\",\n    \"name_system\": \"\",\n    \"description\": \"Column created by postman.\",\n    \"widget\": {\n        \"sid\": \"EHKN0a40x1bGLQV16af\",\n        \"name\": \"Text\",\n        \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/text-inputs/text\"\n    },\n    \"configuration\": null,\n    \"permission\": null,\n    \"default_data\": \"Test\",\n    \"order\": 1,\n    \"is_required\": true,\n    \"should_hide_in_form_view\": false,\n    \"should_hide_in_list_view\": false,\n    \"max_width\": null,\n    \"metadata\": null,\n    \"table\": {\n        \"sid\": \"gjmp0a40x1254dinsxCHMR\",\n        \"name\": \"tests\"\n    },\n    \"is_archived\": false,\n    \"date_created\": \"2024-11-04T04:19:42.071146Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"name\": \"Letters and number only.\",\n        \"name_system\": \"The name to identify the column for a widget. \",\n        \"description\": \"The description of the column. Include the definition, special formatting, and all other necessary information to help your coworker to fill.\",\n        \"widget\": \"The widget to use, or the type of data. Default to <b>Text</b>. The configuration data will be erased if the widget is changed.<br>You can only select widgets that have been installed. You can find a list of installed widgets <a href='/list/settings/organizationwidgets/' target='_blank'>here</a>. Widgets that aren't available can be enabled <a href='/list/settings/widgets/' target='_blank'>here</a>. <br><b>Group columns with Subtitle widget</b>. When you use the Subtitle widget, the columns right after will be grouped and displayed separately in both form and columns views. Learn more about the widgets <a href='https://docs.labii.com/widgets/summary/column-type-widgets' target='_blank'>here</a>.\",\n        \"configuration\": \"The configuration of the column. Use it to provide addtional parameters to the column.\",\n        \"permission\": \"The column's supplementary permission settings can be utilized to offer additional control over its permissions. \",\n        \"default_data\": \"The default data of the column. <br>- For the Boolean field, the default value is 'false'. <br>- For Date, use YYYY-MM-DD. <br>- For Select/MultiSelect, use {'sid':'xxx', 'name':'xxx'}. <br>- For ForeignKey/ForeignKeys, use {'sid':'xxx', 'name':'xxx'}. <br>The default value is different for different widget, learn more at <a href='https://docs.labii.com/widgets/column-widgets' target='_blank'>https://docs.labii.com/widgets/column-widgets</a>.<br>This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n        \"order\": \"The order to display the column. Integer only. <br>Use it to control the order of columns in the list view (from left to right).\",\n        \"is_required\": \"If checked, the value of the column is required in form submitting.\",\n        \"should_hide_in_form_view\": \"If selected, the column will not be visible in the form view but will remain accessible in the detail view. Utilize this option to manage column visibility in the form view.\",\n        \"should_hide_in_list_view\": \"If enabled, the column will not be shown in the list view but will remain accessible in the detail view. Employ this feature to regulate the display of columns in the list view.\",\n        \"max_width\": \"The maximum width of the column in pixels. You can use it to limit the width of certain columns.\",\n        \"metadata\": \"Use <b>metadata</b> to provide additional information to the column.\",\n        \"is_archived\": \"If checked, the item and relevant data will be archived. Archived item is not available for use.\"\n    }\n}"}],"_postman_id":"17ccdaa9-b245-4158-912a-47de6f7c12bf"},{"name":"Edit Column","event":[{"listen":"prerequest","script":{"id":"92d9b33a-a973-4a43-8a10-abf8e49f304c","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"95aef644-c353-4f2f-b9ba-df4992e807ec","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is in an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(300);","});","","","pm.test(\"Validate the schema for the response\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.be.a('string');","    pm.expect(responseData.name).to.be.a('string');","    pm.expect(responseData.name_system).to.be.a('string');","    pm.expect(responseData.description).to.be.a('string');","    pm.expect(responseData.widget).to.be.an('object');","    pm.expect(responseData.widget.sid).to.be.a('string');","    pm.expect(responseData.widget.name).to.be.a('string');","    pm.expect(responseData.widget.documentation_url).to.be.a('string');","    pm.expect(responseData.configuration).to.be.null;","    pm.expect(responseData.permission).to.be.null;","    pm.expect(responseData.default_data).to.be.a('string');","    pm.expect(responseData.order).to.be.a('number');","    pm.expect(responseData.is_required).to.be.true;","    pm.expect(responseData.should_hide_in_form_view).to.be.true;","    pm.expect(responseData.should_hide_in_list_view).to.be.true;","    pm.expect(responseData.max_width).to.be.null;","    pm.expect(responseData.metadata).to.be.null;","    pm.expect(responseData.table).to.be.an('object');","    pm.expect(responseData.table.sid).to.be.a('string');","    pm.expect(responseData.table.name).to.be.a('string');","    pm.expect(responseData.is_archived).to.be.true;","    pm.expect(responseData.date_created).to.be.a('string');","    pm.expect(responseData.change_permission).to.be.true;","    pm.expect(responseData.help_text).to.be.an('object');","    pm.expect(responseData.help_text.sid).to.be.a('string');","    pm.expect(responseData.help_text.name).to.be.a('string');","    pm.expect(responseData.help_text.name_system).to.be.a('string');","    pm.expect(responseData.help_text.description).to.be.a('string');","    pm.expect(responseData.help_text.widget).to.be.a('string');","    pm.expect(responseData.help_text.configuration).to.be.a('string');","    pm.expect(responseData.help_text.permission).to.be.a('string');","    pm.expect(responseData.help_text.default_data).to.be.a('string');","    pm.expect(responseData.help_text.order).to.be.a('string');","    pm.expect(responseData.help_text.is_required).to.be.a('string');","    pm.expect(responseData.help_text.should_hide_in_form_view).to.be.a('string');","    pm.expect(responseData.help_text.should_hide_in_list_view).to.be.a('string');","    pm.expect(responseData.help_text.max_width).to.be.a('string');","    pm.expect(responseData.help_text.metadata).to.be.a('string');","    pm.expect(responseData.help_text.is_archived).to.be.a('string');","});","","","pm.test(\"All required fields are present in the response\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.name).to.exist;","    pm.expect(responseData.name_system).to.exist;","    pm.expect(responseData.description).to.exist;","    pm.expect(responseData.widget).to.exist;","    pm.expect(responseData.widget.sid).to.exist;","    pm.expect(responseData.widget.name).to.exist;","    pm.expect(responseData.widget.documentation_url).to.exist;","    pm.expect(responseData.is_required).to.exist;","    pm.expect(responseData.should_hide_in_form_view).to.exist;","    pm.expect(responseData.should_hide_in_list_view).to.exist;","    pm.expect(responseData.table).to.exist;","    pm.expect(responseData.table.sid).to.exist;","    pm.expect(responseData.table.name).to.exist;","    pm.expect(responseData.is_archived).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.change_permission).to.exist;","    pm.expect(responseData.help_text).to.exist;","    pm.expect(responseData.help_text.sid).to.exist;","    pm.expect(responseData.help_text.name).to.exist;","    pm.expect(responseData.help_text.name_system).to.exist;","    pm.expect(responseData.help_text.description).to.exist;","    pm.expect(responseData.help_text.widget).to.exist;","    pm.expect(responseData.help_text.configuration).to.exist;","    pm.expect(responseData.help_text.permission).to.exist;","    pm.expect(responseData.help_text.default_data).to.exist;","    pm.expect(responseData.help_text.order).to.exist;","    pm.expect(responseData.help_text.is_required).to.exist;","    pm.expect(responseData.help_text.should_hide_in_form_view).to.exist;","    pm.expect(responseData.help_text.should_hide_in_list_view).to.exist;","    pm.expect(responseData.help_text.max_width).to.exist;","    pm.expect(responseData.help_text.metadata).to.exist;","    pm.expect(responseData.help_text.is_archived).to.exist;","});","","","pm.test(\"Date_created field should be in a valid format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.date_created).to.match(/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$/);","});",""],"type":"text/javascript","packages":{}}}],"id":"e35f3c94-b1b4-4681-bb70-73b14fd2d7b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Column {{currentDate}}\",\n    \"description\": \"Column edited by postman.\",\n    \"configuration\": null,\n    \"default_data\": \"Test\",\n    \"is_required\": true,\n    \"should_hide_in_form_view\": false,\n    \"should_hide_in_list_view\": false,\n    \"max_width\": null,\n    \"metadata\": null\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/column/detail/{{column_sid}}/","description":"<h3 id=\"update-table-column-detail\">Update Table Column Detail</h3>\n<p>This endpoint allows the client to update the details of a specific column in a table.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code>: (string) The name of the column.</p>\n</li>\n<li><p><code>description</code>: (string) A brief description of the column.</p>\n</li>\n<li><p><code>configuration</code>: (null) The configuration settings for the column.</p>\n</li>\n<li><p><code>default_data</code>: (string) The default data for the column.</p>\n</li>\n<li><p><code>is_required</code>: (boolean) Indicates whether the column is required.</p>\n</li>\n<li><p><code>should_hide_in_form_view</code>: (boolean) Indicates whether the column should be hidden in form view.</p>\n</li>\n<li><p><code>should_hide_in_list_view</code>: (boolean) Indicates whether the column should be hidden in list view.</p>\n</li>\n<li><p><code>max_width</code>: (null) The maximum width of the column.</p>\n</li>\n<li><p><code>metadata</code>: (null) Additional metadata for the column.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"\",\n  \"name\": \"\",\n  \"name_system\": \"\",\n  \"description\": \"\",\n  \"widget\": {\n    \"sid\": \"\",\n    \"name\": \"\",\n    \"documentation_url\": \"\"\n  },\n  \"configuration\": null,\n  \"permission\": null,\n  \"default_data\": \"\",\n  \"order\": 0,\n  \"is_required\": true,\n  \"should_hide_in_form_view\": true,\n  \"should_hide_in_list_view\": true,\n  \"max_width\": null,\n  \"metadata\": null,\n  \"table\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"is_archived\": true,\n  \"date_created\": \"\",\n  \"change_permission\": true,\n  \"help_text\": {\n    \"sid\": \"\",\n    \"name\": \"\",\n    \"name_system\": \"\",\n    \"description\": \"\",\n    \"widget\": \"\",\n    \"configuration\": \"\",\n    \"permission\": \"\",\n    \"default_data\": \"\",\n    \"order\": \"\",\n    \"is_required\": \"\",\n    \"should_hide_in_form_view\": \"\",\n    \"should_hide_in_list_view\": \"\",\n    \"max_width\": \"\",\n    \"metadata\": \"\",\n    \"is_archived\": \"\"\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","column","detail","{{column_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"c76f8cf1-47e9-4929-a83f-6a9ec2de7bd2","name":"Edit Column","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Column {{currentDate}}\",\n    \"description\": \"Column edited by postman.\",\n    \"configuration\": null,\n    \"default_data\": \"Test\",\n    \"is_required\": true,\n    \"should_hide_in_form_view\": false,\n    \"should_hide_in_list_view\": false,\n    \"max_width\": null,\n    \"metadata\": null\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/column/detail/{{column_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 04:24:36 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"3468","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"RUX10a40x563a8TY49dins\",\n    \"name\": \"Test_Column_2024-11-03\",\n    \"name_system\": \"\",\n    \"description\": \"Column edited by postman.\",\n    \"widget\": {\n        \"sid\": \"EHKN0a40x1bGLQV16af\",\n        \"name\": \"Text\",\n        \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/text-inputs/text\"\n    },\n    \"configuration\": null,\n    \"permission\": null,\n    \"default_data\": \"Test\",\n    \"order\": 1,\n    \"is_required\": true,\n    \"should_hide_in_form_view\": false,\n    \"should_hide_in_list_view\": false,\n    \"max_width\": null,\n    \"metadata\": null,\n    \"table\": {\n        \"sid\": \"gjmp0a40x1254dinsxCHMR\",\n        \"name\": \"tests\"\n    },\n    \"is_archived\": false,\n    \"date_created\": \"2024-11-04T04:19:42.071146Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"name\": \"Letters and number only.\",\n        \"name_system\": \"The name to identify the column for a widget. \",\n        \"description\": \"The description of the column. Include the definition, special formatting, and all other necessary information to help your coworker to fill.\",\n        \"widget\": \"The widget to use, or the type of data. Default to <b>Text</b>. The configuration data will be erased if the widget is changed.<br>You can only select widgets that have been installed. You can find a list of installed widgets <a href='/list/settings/organizationwidgets/' target='_blank'>here</a>. Widgets that aren't available can be enabled <a href='/list/settings/widgets/' target='_blank'>here</a>. <br><b>Group columns with Subtitle widget</b>. When you use the Subtitle widget, the columns right after will be grouped and displayed separately in both form and columns views. Learn more about the widgets <a href='https://docs.labii.com/widgets/summary/column-type-widgets' target='_blank'>here</a>.\",\n        \"configuration\": \"The configuration of the column. Use it to provide addtional parameters to the column.\",\n        \"permission\": \"The column's supplementary permission settings can be utilized to offer additional control over its permissions. \",\n        \"default_data\": \"The default data of the column. <br>- For the Boolean field, the default value is 'false'. <br>- For Date, use YYYY-MM-DD. <br>- For Select/MultiSelect, use {'sid':'xxx', 'name':'xxx'}. <br>- For ForeignKey/ForeignKeys, use {'sid':'xxx', 'name':'xxx'}. <br>The default value is different for different widget, learn more at <a href='https://docs.labii.com/widgets/column-widgets' target='_blank'>https://docs.labii.com/widgets/column-widgets</a>.<br>This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n        \"order\": \"The order to display the column. Integer only. <br>Use it to control the order of columns in the list view (from left to right).\",\n        \"is_required\": \"If checked, the value of the column is required in form submitting.\",\n        \"should_hide_in_form_view\": \"If selected, the column will not be visible in the form view but will remain accessible in the detail view. Utilize this option to manage column visibility in the form view.\",\n        \"should_hide_in_list_view\": \"If enabled, the column will not be shown in the list view but will remain accessible in the detail view. Employ this feature to regulate the display of columns in the list view.\",\n        \"max_width\": \"The maximum width of the column in pixels. You can use it to limit the width of certain columns.\",\n        \"metadata\": \"Use <b>metadata</b> to provide additional information to the column.\",\n        \"is_archived\": \"If checked, the item and relevant data will be archived. Archived item is not available for use.\"\n    }\n}"}],"_postman_id":"e35f3c94-b1b4-4681-bb70-73b14fd2d7b8"}],"id":"f2aeda90-4fec-4c71-ae6e-f93e81cbcc57","description":"<p>The Labii Column API is designed to facilitate the management of table structures by allowing users to define and manipulate columns within their tables. This API enables users to retrieve a list of columns, create new columns, access detailed information about specific columns, and edit existing columns as needed. By providing these capabilities, the API streamlines the organization of data within tables, ensuring that users can effectively customize their data schema to fit their unique requirements.</p>\n","_postman_id":"f2aeda90-4fec-4c71-ae6e-f93e81cbcc57","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Section","item":[{"name":"Get Section List","event":[{"listen":"test","script":{"id":"4d812b19-10f9-47d5-8a72-d3b3593abe68","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the structure of the 'results' array\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array').and.to.have.lengthOf.at.least(1);","","    responseData.results.forEach(function(result) {","        pm.expect(result).to.have.property('name').that.is.a('string');","        pm.expect(result).to.have.property('sid').that.is.a('string');","        pm.expect(result).to.have.property('widget').that.is.an('object');","        pm.expect(result).to.have.property('description').that.is.a('string');","        pm.expect(result).to.have.property('price');","        pm.expect(result).to.have.property('is_archived').that.is.a('boolean');","        pm.expect(result).to.have.property('row');","        pm.expect(result).to.have.property('table').that.is.an('object');","        pm.expect(result).to.have.property('order');","    });","});","","","pm.test(\"Results array should contain at least one element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array').that.is.not.empty;","});","","","pm.test(\"Verify that the 'widget' object within 'results' contains the fields: sid and name\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array');","    responseData.results.forEach(function(result) {","        pm.expect(result.widget).to.be.an('object');","        pm.expect(result.widget.sid).to.exist;","        pm.expect(result.widget.name).to.exist;","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"d05c78b2-fd34-4c65-a675-fac6595849b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/section/list/organization/{{organization_sid_test_administrator}}/list/?table__sid={{table_sid_test_administrator}}","description":"<h3 id=\"get-table-section-list\">Get Table Section List</h3>\n<p>This endpoint retrieves a list of table sections for a specific organization.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/tables/section/list/organization/{{organization_sid_test_administrator}}/list/</code></p>\n</li>\n<li><p>Query Parameters:</p>\n<ul>\n<li><code>table__sid</code>: (string) The ID of the table</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will contain the following fields:</p>\n<ul>\n<li><p><code>page_size</code>: The number of items per page</p>\n</li>\n<li><p><code>page_number</code>: The current page number</p>\n</li>\n<li><p><code>page_count</code>: The total number of pages</p>\n</li>\n<li><p><code>count</code>: The total count of table sections</p>\n</li>\n<li><p><code>next</code>: URL for the next page</p>\n</li>\n<li><p><code>previous</code>: URL for the previous page</p>\n</li>\n<li><p><code>add_permission</code>: Indicates if the user has permission to add new table sections</p>\n</li>\n<li><p><code>results</code>: An array of table section objects, each containing:</p>\n<ul>\n<li><p><code>name</code>: The name of the section</p>\n</li>\n<li><p><code>sid</code>: The ID of the section</p>\n</li>\n<li><p><code>widget</code>: Object containing widget details</p>\n<ul>\n<li><p><code>sid</code>: The ID of the widget</p>\n</li>\n<li><p><code>name</code>: The name of the widget</p>\n</li>\n</ul>\n</li>\n<li><p><code>description</code>: The description of the section</p>\n</li>\n<li><p><code>price</code>: The price of the section</p>\n</li>\n<li><p><code>is_archived</code>: Indicates if the section is archived</p>\n</li>\n<li><p><code>row</code>: Details of the row</p>\n</li>\n<li><p><code>table</code>: Object containing table details</p>\n<ul>\n<li><p><code>sid</code>: The ID of the table</p>\n</li>\n<li><p><code>name</code>: The name of the table</p>\n</li>\n</ul>\n</li>\n<li><p><code>order</code>: The order of the section</p>\n</li>\n<li><p><code>change_permission</code>: Indicates if the user has permission to change the section</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","section","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"table__sid","value":"{{table_sid_test_administrator}}"}],"variable":[]}},"response":[{"id":"0dd30515-e618-4afd-821d-0527a2d90ed3","name":"Get Section List","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://www.labii.dev/tables/section/list/organization/{{organization_sid_test_administrator}}/list/?table__sid={{table_sid_test_administrator}}","host":["https://www.labii.dev"],"path":["tables","section","list","organization","{{organization_sid_test_administrator}}","list",""],"query":[{"key":"table__sid","value":"{{table_sid_test_administrator}}","sortOrder":0}]}},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 04:34:57 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"430","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": true,\n    \"results\": [\n        {\n            \"name\": \"Test Section 2024-11-03\",\n            \"sid\": \"MPSV0a40x48685OTY49din\",\n            \"widget\": {\n                \"sid\": \"ehkn0a40x1glqvAFKP\",\n                \"name\": \"Plain Text\"\n            },\n            \"description\": \"Test section created by postname\",\n            \"price\": \"$0.00\",\n            \"is_archived\": false,\n            \"row\": null,\n            \"table\": {\n                \"sid\": \"gjmp0a40x1254dinsxCHMR\",\n                \"name\": \"tests\"\n            },\n            \"order\": 1,\n            \"change_permission\": true\n        }\n    ]\n}"}],"_postman_id":"d05c78b2-fd34-4c65-a675-fac6595849b4"},{"name":"Create Table Section","event":[{"listen":"prerequest","script":{"id":"751c12aa-eddc-4539-bb33-ed27d67409db","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"90c0af41-a16a-404e-a03f-b7230a55af36","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"section_sid\", jsonData.sid);","","","pm.test(\"Response status code is 201\", function () {","  pm.response.to.have.status(201);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(300);","});","","","pm.test(\"Response schema includes the 'sid' field\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('array');","    responseData.forEach(function(section) {","        pm.expect(section).to.have.property('sid');","    });","});","","","pm.test(\"Sid field in the response is not empty\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('array');","    responseData.forEach(function(section) {","        pm.expect(section.sid).to.exist.and.to.not.be.empty;","    });","});","","","pm.test(\"Sid field in the response is a non-negative integer\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('array');","    responseData.forEach(function(section) {","        pm.expect(section.sid).to.be.a('number').and.to.be.at.least(0);","    });","});","",""],"type":"text/javascript","packages":{}}}],"id":"0bfb7365-6e16-42b4-a87a-038cad78f9a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Section {{currentDate}}\",\n    \"description\": \"Test section created by postname\",\n    \"widget\": {\n        \"sid\": \"ehkn0a40x1glqvAFKP\",\n        \"name\": \"Plain Text\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/section/list/organization/{{organization_sid_test_administrator}}/list/?table__sid={{table_sid_test_administrator}}","description":"<h3 id=\"create-a-new-section\">Create a New Section</h3>\n<p>This endpoint allows you to create a new section within a specific organization and table.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>name (string, required): The name of the section.</p>\n</li>\n<li><p>description (string, required): Description of the section.</p>\n</li>\n<li><p>widget (object, required): Details of the widget associated with the section.</p>\n<ul>\n<li><p>sid (string, required): The unique identifier of the widget.</p>\n</li>\n<li><p>name (string, required): The name of the widget.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is an empty array.</p>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"array\",\n  \"items\": {}\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","section","list","organization","{{organization_sid_test_administrator}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"table__sid","value":"{{table_sid_test_administrator}}"}],"variable":[]}},"response":[{"id":"6689314a-68b7-4daf-a2c5-8c78bdba695e","name":"Create Table Section","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Section {{currentDate}}\",\n    \"description\": \"Test section created by postname\",\n    \"widget\": {\n        \"sid\": \"ehkn0a40x1glqvAFKP\",\n        \"name\": \"Plain Text\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://www.labii.dev/tables/section/list/organization/{{organization_sid_test_administrator}}/list/?table__sid={{table_sid_test_administrator}}","host":["https://www.labii.dev"],"path":["tables","section","list","organization","{{organization_sid_test_administrator}}","list",""],"query":[{"key":"table__sid","value":"{{table_sid_test_administrator}}","sortOrder":0}]}},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 04:34:35 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"4682","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"[]"}],"_postman_id":"0bfb7365-6e16-42b4-a87a-038cad78f9a1"},{"name":"Get Section Detail","event":[{"listen":"test","script":{"id":"a1b9e820-91e9-42c8-bd5b-378414a08a40","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Response is an array\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('array');","});","","","pm.test(\"Verify that the response array matches the schema for the table section detail\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('array');","    responseData.forEach(function(item) {","        pm.expect(item).to.be.an('object');","        pm.expect(item).to.have.property('column1');","        pm.expect(item).to.have.property('column2');","        // Add more property checks as per the schema","    });","});","","","pm.test(\"Verify that the response array is empty if no section details are available\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('array').that.is.empty;","});",""],"type":"text/javascript","packages":{}}}],"id":"a07bdf9c-6f9d-438b-b98f-e599448f1b70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/section/detail/{{section_sid}}/","description":"<h3 id=\"retrieve-table-section-detail\">Retrieve Table Section Detail</h3>\n<p>This endpoint retrieves the details of a specific table section.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/tables/section/detail/{{section_sid}}/</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is an empty array <code>[]</code>.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response body for this request is an empty array <code>[]</code>.</p>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"array\",\n  \"items\": {}\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","section","detail","{{section_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"c7ec6e0a-55a4-4501-8669-9811a656fd62","name":"Get Section Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/section/detail/{{section_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 04:38:31 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"4682","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"[]"}],"_postman_id":"a07bdf9c-6f9d-438b-b98f-e599448f1b70"},{"name":"Edit Section","event":[{"listen":"prerequest","script":{"id":"fdc55fac-e1a1-4148-9857-9112655eeb7e","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"1cf72f3b-32d3-4f23-93ca-d895048f1efc","exec":["pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Response body is an array\", function () {","    const responseData = pm.response.json();","    pm.expect(responseData).to.be.an('array');","});","","","pm.test(\"Array is empty\", function () {","    const responseData = pm.response.json();","    pm.expect(responseData).to.be.an('array').that.is.empty;","});",""],"type":"text/javascript","packages":{}}}],"id":"7b44ecbd-5c71-4079-9d9b-33a98147789b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Section {{currentDate}}\",\n    \"description\": \"Test section edited by postname\",\n    \"description_placement\": \"Top\",\n    \"data\": \"Test\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/section/detail/{{section_sid}}/","description":"<h3 id=\"update-table-section-detail\">Update Table Section Detail</h3>\n<p>This endpoint allows the client to update the details of a specific section in a table.</p>\n<h4 id=\"request\">Request</h4>\n<p>The HTTP PATCH request should be made to <code>https://www.labii.dev/tables/section/detail/{{section_sid}}/</code>.</p>\n<p>The request body should be in raw format and include the following parameters:</p>\n<ul>\n<li><p><code>name</code>: (string) The updated name of the section.</p>\n</li>\n<li><p><code>description</code>: (string) The updated description of the section.</p>\n</li>\n<li><p><code>description_placement</code>: (string) The placement of the description (e.g., Top, Bottom, Left, Right).</p>\n</li>\n<li><p><code>data</code>: (string) The updated data for the section.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"Test Section {{currentDate}}\",\n    \"description\": \"Test section edited by postnam ...\",\n    \"description_placement\": \"Top\",\n    \"data\": \"Test\"\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is an empty array <code>[]</code>.</p>\n<h4 id=\"json-schema-for-response\">JSON Schema for Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"array\",\n    \"items\": {}\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","section","detail","{{section_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"083f574a-4914-4854-b6da-bb9c41a3718e","name":"Edit Section","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Section {{currentDate}}\",\n    \"description\": \"Test section edited by postname\",\n    \"description_placement\": \"Top\",\n    \"data\": \"Test\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/section/detail/{{section_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 04:42:09 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"4683","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"[]"}],"_postman_id":"7b44ecbd-5c71-4079-9d9b-33a98147789b"}],"id":"e1d25f1c-f0b1-4138-92d4-e2e731c09cef","description":"<p>The Labii Section API is designed to manage unstructured data associated with records, allowing users to efficiently organize and customize their data storage. Sections can be assigned to both tables and specific records, with sections assigned to a table serving as the default for all new records created within that table. This API provides users with the ability to retrieve a list of sections, create new sections, access detailed information about specific sections, and edit existing sections as necessary. By enhancing the management of unstructured data, this API ensures that users can tailor their data organization to meet their specific needs.</p>\n","_postman_id":"e1d25f1c-f0b1-4138-92d4-e2e731c09cef","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Filter","item":[{"name":"Get Filter List","event":[{"listen":"test","script":{"id":"e34d549c-036d-46da-beac-30bd933fe0bc","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.page_size).to.exist;","    pm.expect(responseData.page_number).to.exist;","    pm.expect(responseData.page_count).to.exist;","    pm.expect(responseData.count).to.exist;","    pm.expect(responseData.next).to.exist;","    pm.expect(responseData.previous).to.exist;","    pm.expect(responseData.add_permission).to.exist;","    pm.expect(responseData.results).to.exist;","});","","","pm.test(\"Each result contains the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array');","    responseData.results.forEach(function(result) {","        pm.expect(result).to.have.property('name');","        pm.expect(result).to.have.property('sid');","        pm.expect(result).to.have.property('description');","        pm.expect(result).to.have.property('owners');","        pm.expect(result).to.have.property('teams');","        pm.expect(result).to.have.property('show_in_menu');","        pm.expect(result).to.have.property('digest_frequency');","        pm.expect(result).to.have.property('is_archived');","        pm.expect(result).to.have.property('table');","        pm.expect(result).to.have.property('change_permission');","    });","});","","","pm.test(\"Owners array is present and contains objects with required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array');","    ","    responseData.results.forEach(function(result) {","        pm.expect(result.owners).to.exist.and.to.be.an('array');","        ","        result.owners.forEach(function(owner) {","            pm.expect(owner).to.be.an('object');","            pm.expect(owner.sid).to.exist.and.to.be.a('string');","            pm.expect(owner.name).to.exist.and.to.be.a('string');","        });","    });","});","","","pm.test(\"Verify that the 'table' object within each result contains the required fields - sid, name\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array');","    ","    responseData.results.forEach(function(result) {","        pm.expect(result.table).to.exist.and.to.have.property('sid');","        pm.expect(result.table).to.exist.and.to.have.property('name');","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"5913a8fc-125a-45c9-9e57-1c8859e1a082","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/filter/list/organization/{{organization_sid_test_edit}}/list/?table__sid={{table_sid_test_edit}}","description":"<h3 id=\"get-tablesfilterlistorganizationorganization_sid_test_editlisttable__sidtable_sid_test_edit\">GET /tables/filter/list/organization/{{organization_sid_test_edit}}/list/?table__sid={{table_sid_test_edit}}</h3>\n<p>This endpoint retrieves a list of tables based on the provided organization and table SID.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body parameters are required for this request.</p>\n<ul>\n<li><p><code>organization_sid_test_edit</code> (path parameter) - The SID of the organization for which the tables are being retrieved.</p>\n</li>\n<li><p><code>table_sid_test_edit</code> (query parameter) - The SID of the specific table for which the details are being retrieved.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"page_size\": {\"type\": \"integer\"},\n        \"page_number\": {\"type\": \"integer\"},\n        \"page_count\": {\"type\": \"integer\"},\n        \"count\": {\"type\": \"integer\"},\n        \"next\": {\"type\": [\"string\", \"null\"]},\n        \"previous\": {\"type\": [\"string\", \"null\"]},\n        \"add_permission\": {\"type\": \"boolean\"},\n        \"results\": {\n            \"type\": \"array\",\n            \"items\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"name\": {\"type\": \"string\"},\n                    \"sid\": {\"type\": \"string\"},\n                    \"description\": {\"type\": \"string\"},\n                    \"owners\": {\n                        \"type\": \"array\",\n                        \"items\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                                \"sid\": {\"type\": \"string\"},\n                                \"name\": {\"type\": \"string\"}\n                            }\n                        }\n                    },\n                    \"teams\": {\n                        \"type\": \"array\",\n                        \"items\": {}\n                    },\n                    \"show_in_menu\": {\"type\": \"boolean\"},\n                    \"digest_frequency\": {\"type\": \"string\"},\n                    \"is_archived\": {\"type\": \"boolean\"},\n                    \"table\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"sid\": {\"type\": \"string\"},\n                            \"name\": {\"type\": \"string\"}\n                        }\n                    },\n                    \"change_permission\": {\"type\": \"boolean\"}\n                }\n            }\n        }\n    }\n}\n\n</code></pre>\n<p>The response object includes information about the pagination, permissions, and details of the retrieved tables, such as name, SID, description, owners, teams, visibility in the menu, archival status, and change permissions.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","filter","list","organization","{{organization_sid_test_edit}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"table__sid","value":"{{table_sid_test_edit}}"}],"variable":[]}},"response":[{"id":"56a9a249-7eb3-47bb-aca2-85f62964cc90","name":"Get Filter List","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://www.labii.dev/tables/filter/list/organization/{{organization_sid_test_edit}}/list/?table__sid={{table_sid_test_edit}}","host":["https://www.labii.dev"],"path":["tables","filter","list","organization","{{organization_sid_test_edit}}","list",""],"query":[{"key":"table__sid","value":"{{table_sid_test_edit}}","sortOrder":0}]}},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 05:12:02 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"454","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": false,\n    \"results\": [\n        {\n            \"name\": \"Test Filter 2024-11-03\",\n            \"sid\": \"mpsv0a40x1afdbotyDINSX\",\n            \"description\": \"Test filter created by postman.\",\n            \"owners\": [\n                {\n                    \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n                    \"name\": \"Test Labii\"\n                }\n            ],\n            \"teams\": [],\n            \"show_in_menu\": true,\n            \"digest_frequency\": \"None\",\n            \"is_archived\": false,\n            \"table\": {\n                \"sid\": \"hknq0a40x1254ejotyDINS\",\n                \"name\": \"tests\"\n            },\n            \"change_permission\": true\n        }\n    ]\n}"}],"_postman_id":"5913a8fc-125a-45c9-9e57-1c8859e1a082"},{"name":"Create Filter","event":[{"listen":"prerequest","script":{"id":"28acf77a-abcb-400e-81d2-f3b75e3eb08c","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"80556098-c512-4c4b-891c-db5eca2ae110","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"filter_sid\", jsonData.sid);","","","pm.test(\"Response status code is 201\", function () {","    pm.response.to.have.status(201);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.table).to.exist.and.to.be.an('object');","    pm.expect(responseData.name).to.exist;","    pm.expect(responseData.description).to.exist;","    pm.expect(responseData.query).to.exist;","    pm.expect(responseData.query_exclude).to.exist;","    pm.expect(responseData.owners).to.exist.and.to.be.an('array');","    pm.expect(responseData.teams).to.exist.and.to.be.an('array');","    pm.expect(responseData.digest_frequency).to.exist;","    pm.expect(responseData.ics).to.exist;","    pm.expect(responseData.show_in_menu).to.exist;","    pm.expect(responseData.is_default).to.exist;","    pm.expect(responseData.is_archived).to.exist;","    pm.expect(responseData.date_updated).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.change_permission).to.exist;","    pm.expect(responseData.help_text).to.exist.and.to.be.an('object');","});","","","pm.test(\"Date updated and date created are in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.date_updated).to.match(/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$/);","    pm.expect(responseData.date_created).to.match(/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$/);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","",""],"type":"text/javascript","packages":{}}}],"id":"d9d36a88-9969-4cf9-b8bb-214da530e703","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Filter {{currentDate}}\",\n    \"description\": \"Test filter created by postman.\",\n    \"show_in_menu\": true,\n    \"owners\": [{\n        \"sid\": \"{{people_sid_test_edit}}\",\n        \"name\": \"Test Labii\"\n    }],\n    \"query\": {\"is_archived\": false}\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/filter/list/organization/{{organization_sid_test_edit}}/list/?table__sid={{table_sid_test_edit}}","description":"<h3 id=\"post-tablesfilterlistorganizationorganization_sid_test_editlisttable__sidtable_sid_test_edit\">POST /tables/filter/list/organization/{{organization_sid_test_edit}}/list/?table__sid={{table_sid_test_edit}}</h3>\n<p>This endpoint is used to create a new filter for a specific table within an organization.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code> (string): The name of the filter.</p>\n</li>\n<li><p><code>description</code> (string): A description for the filter.</p>\n</li>\n<li><p><code>show_in_menu</code> (boolean): Indicates whether the filter should be displayed in the menu.</p>\n</li>\n<li><p><code>owners</code> (array): An array of owners for the filter, where each owner includes:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the owner.</p>\n</li>\n<li><p><code>name</code> (string): The name of the owner.</p>\n</li>\n</ul>\n</li>\n<li><p><code>query</code> (object): The query parameters for the filter, including conditions for filtering.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be in JSON format and will include the following fields:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the filter.</p>\n</li>\n<li><p><code>table</code> (object): Information about the table associated with the filter, including:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the table.</p>\n</li>\n<li><p><code>name</code> (string): The name of the table.</p>\n</li>\n</ul>\n</li>\n<li><p><code>name</code> (string): The name of the filter.</p>\n</li>\n<li><p><code>description</code> (string): A description for the filter.</p>\n</li>\n<li><p><code>query</code> (string): The query parameters for the filter.</p>\n</li>\n<li><p><code>query_exclude</code> (string): Additional query parameters to exclude from the filter.</p>\n</li>\n<li><p><code>owners</code> (array): An array of owners for the filter, where each owner includes:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the owner.</p>\n</li>\n<li><p><code>name</code> (string): The name of the owner.</p>\n</li>\n</ul>\n</li>\n<li><p><code>teams</code> (array): An array of teams associated with the filter.</p>\n</li>\n<li><p><code>digest_frequency</code> (string): The frequency of digest for the filter.</p>\n</li>\n<li><p><code>ics</code> (string): The ICS (iCalendar) representation of the filter.</p>\n</li>\n<li><p><code>show_in_menu</code> (boolean): Indicates whether the filter should be displayed in the menu.</p>\n</li>\n<li><p><code>is_default</code> (boolean): Indicates whether the filter is the default filter.</p>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates whether the filter is archived.</p>\n</li>\n<li><p><code>date_updated</code> (string): The date when the filter was last updated.</p>\n</li>\n<li><p><code>date_created</code> (string): The date when the filter was created.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates the permission to change the filter.</p>\n</li>\n<li><p><code>help_text</code> (object): Additional help text for the filter, including:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the help text.</p>\n</li>\n<li><p><code>name</code> (string): The name of the help text.</p>\n</li>\n<li><p><code>description</code> (string): The description of the help text.</p>\n</li>\n<li><p><code>query</code> (string): The query parameters for the help text.</p>\n</li>\n<li><p><code>query_exclude</code> (string): Additional query parameters to exclude from the help text.</p>\n</li>\n<li><p><code>digest_frequency</code> (string): The frequency of digest for the help text.</p>\n</li>\n<li><p><code>show_in_menu</code> (string): Indicates whether the help text should be displayed in the menu.</p>\n</li>\n<li><p><code>is_default</code> (string): Indicates whether the help text is the default.</p>\n</li>\n<li><p><code>is_archived</code> (string): Indicates whether the help text is archived.</p>\n</li>\n<li><p><code>owners</code> (string): The owners of the help text.</p>\n</li>\n<li><p><code>teams</code> (string): The teams associated with the help text.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"\",\n  \"table\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"name\": \"\",\n  \"description\": \"\",\n  \"query\": \"\",\n  \"query_exclude\": \"\",\n  \"owners\": [\n    {\n      \"sid\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"teams\": [],\n  \"digest_frequency\": \"\",\n  \"ics\": \"\",\n  \"show_in_menu\": true,\n  \"is_default\": true,\n  \"is_archived\": true,\n  \"date_updated\": \"\",\n  \"date_created\": \"\",\n  \"change_permission\": true,\n  \"help_text\": {\n    \"sid\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"query\": \"\",\n    \"query_exclude\": \"\",\n    \"digest_frequency\": \"\",\n    \"show_in_menu\": \"\",\n    \"is_default\": \"\",\n    \"is_archived\": \"\",\n    \"owners\": \"\",\n    \"teams\": \"\"\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","filter","list","organization","{{organization_sid_test_edit}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"table__sid","value":"{{table_sid_test_edit}}"}],"variable":[]}},"response":[{"id":"1fb1f12a-fe37-4d1a-af4a-63ad50bfd651","name":"Create Filter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Filter {{currentDate}}\",\n    \"description\": \"Test filter created by postman.\",\n    \"show_in_menu\": true,\n    \"owners\": [{\n        \"sid\": \"{{people_sid_test_edit}}\",\n        \"name\": \"Test Labii\"\n    }],\n    \"query\": {\"is_archived\": false}\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://www.labii.dev/tables/filter/list/organization/{{organization_sid_test_edit}}/list/?table__sid={{table_sid_test_edit}}","host":["https://www.labii.dev"],"path":["tables","filter","list","organization","{{organization_sid_test_edit}}","list",""],"query":[{"key":"table__sid","value":"{{table_sid_test_edit}}","sortOrder":0}]}},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 05:11:12 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1641","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"mpsv0a40x1afdbotyDINSX\",\n    \"table\": {\n        \"sid\": \"hknq0a40x1254ejotyDINS\",\n        \"name\": \"tests\"\n    },\n    \"name\": \"Test Filter 2024-11-03\",\n    \"description\": \"Test filter created by postman.\",\n    \"query\": \"{\\\"is_archived\\\": false}\",\n    \"query_exclude\": \"null\",\n    \"owners\": [\n        {\n            \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n            \"name\": \"Test Labii\"\n        }\n    ],\n    \"teams\": [],\n    \"digest_frequency\": \"None\",\n    \"ics\": \"mpsv0a40x1afdbotyDINSX\",\n    \"show_in_menu\": true,\n    \"is_default\": false,\n    \"is_archived\": false,\n    \"date_updated\": \"2024-11-04T05:11:12.390053Z\",\n    \"date_created\": \"2024-11-04T05:11:12.390067Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"name\": \"Name of the filter. For example 'To be witness experiments'\",\n        \"description\": \"The description of the filter. Please includes the information like what are the parameters and what results are expected.\",\n        \"query\": \"Query in JSON format.\",\n        \"query_exclude\": \"Query in JSON format to be excluded. \",\n        \"digest_frequency\": \"The frequency of receiving the digest email for the filter. Default to <b>Weekly</b>. Use 'None' to unsubscribe the emails. This function is not available for Free plan users.\",\n        \"show_in_menu\": \"Should display this filter in the menu. Default to true. Set to false to hide this filter.\",\n        \"is_default\": \"If checked, the filter will be used as the default list view. If multiple filters were set as default, the first one will be used.\",\n        \"is_archived\": \"If checked, the filter will be archived. Archived filter is not available for use.\",\n        \"owners\": \"Owners eligible to modify and utilize this filter. The author's name will be automatically appended.\",\n        \"teams\": \"The teams permitted to utilize this filter. Team members are unable to modify the filter.\"\n    }\n}"}],"_postman_id":"d9d36a88-9969-4cf9-b8bb-214da530e703"},{"name":"Get Filter Detail","event":[{"listen":"test","script":{"id":"e3ca09a3-7913-43f5-80ae-0100da21eddd","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.table).to.exist.and.to.be.an('object');","    pm.expect(responseData.name).to.exist;","    pm.expect(responseData.description).to.exist;","    pm.expect(responseData.query).to.exist;","    pm.expect(responseData.query_exclude).to.exist;","    pm.expect(responseData.owners).to.exist.and.to.be.an('array');","    pm.expect(responseData.teams).to.exist.and.to.be.an('array');","    pm.expect(responseData.digest_frequency).to.exist;","    pm.expect(responseData.ics).to.exist;","    pm.expect(responseData.show_in_menu).to.exist;","    pm.expect(responseData.is_default).to.exist;","    pm.expect(responseData.is_archived).to.exist;","    pm.expect(responseData.date_updated).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.change_permission).to.exist;","    pm.expect(responseData.help_text).to.exist.and.to.be.an('object');","});","","","pm.test(\"Sid is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.sid).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Sid should be a non-empty string\");","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Owners and teams are non-empty arrays\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.owners).to.be.an('array').and.to.have.lengthOf.at.least(1, \"Owners array should not be empty\");","    pm.expect(responseData.teams).to.be.an('array').and.to.have.lengthOf.at.least(1, \"Teams array should not be empty\");","});",""],"type":"text/javascript","packages":{}}}],"id":"759ae488-c85a-46d6-8b11-97e2f85ba1e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/filter/detail/{{filter_sid}}/","description":"<h3 id=\"get-tablesfilterdetailfilter_sid\">GET /tables/filter/detail/{{filter_sid}}/</h3>\n<p>This endpoint retrieves the details of a specific table filter.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this endpoint.</p>\n<ul>\n<li><code>filter_sid</code> (path parameter) - The unique identifier of the filter.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following properties:</p>\n<ul>\n<li><p><code>sid</code> (string) - The unique identifier of the filter.</p>\n</li>\n<li><p><code>table</code> (object) - Details of the table associated with the filter, including <code>sid</code> and <code>name</code>.</p>\n</li>\n<li><p><code>name</code> (string) - The name of the filter.</p>\n</li>\n<li><p><code>description</code> (string) - The description of the filter.</p>\n</li>\n<li><p><code>query</code> (string) - The query associated with the filter.</p>\n</li>\n<li><p><code>query_exclude</code> (string) - The excluded query associated with the filter.</p>\n</li>\n<li><p><code>owners</code> (array) - An array of objects containing details of the owners, including <code>sid</code> and <code>name</code>.</p>\n</li>\n<li><p><code>teams</code> (array) - An array of teams associated with the filter.</p>\n</li>\n<li><p><code>digest_frequency</code> (string) - The frequency of digest for the filter.</p>\n</li>\n<li><p><code>ics</code> (string) - The ICS (iCalendar) file for the filter.</p>\n</li>\n<li><p><code>show_in_menu</code> (boolean) - Indicates whether the filter should be displayed in the menu.</p>\n</li>\n<li><p><code>is_default</code> (boolean) - Indicates whether the filter is the default filter.</p>\n</li>\n<li><p><code>is_archived</code> (boolean) - Indicates whether the filter is archived.</p>\n</li>\n<li><p><code>date_updated</code> (string) - The date when the filter was last updated.</p>\n</li>\n<li><p><code>date_created</code> (string) - The date when the filter was created.</p>\n</li>\n<li><p><code>change_permission</code> (boolean) - Indicates whether the user has permission to change the filter.</p>\n</li>\n<li><p><code>help_text</code> (object) - Details of the help text associated with the filter, including <code>sid</code>, <code>name</code>, <code>description</code>, <code>query</code>, <code>query_exclude</code>, <code>digest_frequency</code>, <code>show_in_menu</code>, <code>is_default</code>, <code>is_archived</code>, <code>owners</code>, and <code>teams</code>.</p>\n</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"\",\n  \"table\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"name\": \"\",\n  \"description\": \"\",\n  \"query\": \"\",\n  \"query_exclude\": \"\",\n  \"owners\": [\n    {\n      \"sid\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"teams\": [],\n  \"digest_frequency\": \"\",\n  \"ics\": \"\",\n  \"show_in_menu\": true,\n  \"is_default\": true,\n  \"is_archived\": true,\n  \"date_updated\": \"\",\n  \"date_created\": \"\",\n  \"change_permission\": true,\n  \"help_text\": {\n    \"sid\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"query\": \"\",\n    \"query_exclude\": \"\",\n    \"digest_frequency\": \"\",\n    \"show_in_menu\": \"\",\n    \"is_default\": \"\",\n    \"is_archived\": \"\",\n    \"owners\": \"\",\n    \"teams\": \"\"\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","filter","detail","{{filter_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"2032b519-d392-4736-ad3f-8b8cc94fa6b2","name":"Get Filter Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/filter/detail/{{filter_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 05:14:09 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1641","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"mpsv0a40x1afdbotyDINSX\",\n    \"table\": {\n        \"sid\": \"hknq0a40x1254ejotyDINS\",\n        \"name\": \"tests\"\n    },\n    \"name\": \"Test Filter 2024-11-03\",\n    \"description\": \"Test filter created by postman.\",\n    \"query\": \"{\\\"is_archived\\\": false}\",\n    \"query_exclude\": \"null\",\n    \"owners\": [\n        {\n            \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n            \"name\": \"Test Labii\"\n        }\n    ],\n    \"teams\": [],\n    \"digest_frequency\": \"None\",\n    \"ics\": \"mpsv0a40x1afdbotyDINSX\",\n    \"show_in_menu\": true,\n    \"is_default\": false,\n    \"is_archived\": false,\n    \"date_updated\": \"2024-11-04T05:11:12.390053Z\",\n    \"date_created\": \"2024-11-04T05:11:12.390067Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"name\": \"Name of the filter. For example 'To be witness experiments'\",\n        \"description\": \"The description of the filter. Please includes the information like what are the parameters and what results are expected.\",\n        \"query\": \"Query in JSON format.\",\n        \"query_exclude\": \"Query in JSON format to be excluded. \",\n        \"digest_frequency\": \"The frequency of receiving the digest email for the filter. Default to <b>Weekly</b>. Use 'None' to unsubscribe the emails. This function is not available for Free plan users.\",\n        \"show_in_menu\": \"Should display this filter in the menu. Default to true. Set to false to hide this filter.\",\n        \"is_default\": \"If checked, the filter will be used as the default list view. If multiple filters were set as default, the first one will be used.\",\n        \"is_archived\": \"If checked, the filter will be archived. Archived filter is not available for use.\",\n        \"owners\": \"Owners eligible to modify and utilize this filter. The author's name will be automatically appended.\",\n        \"teams\": \"The teams permitted to utilize this filter. Team members are unable to modify the filter.\"\n    }\n}"}],"_postman_id":"759ae488-c85a-46d6-8b11-97e2f85ba1e9"},{"name":"Edit Filter","event":[{"listen":"prerequest","script":{"id":"1e3623af-f79a-43b9-a966-784ea7729d9e","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"86074d3f-8a0f-411f-b1b6-132bf9d62b41","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the 'sid' field is present and non-empty\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.have.property('sid').that.is.a('string').and.not.empty;","});","","","pm.test(\"Validate the table object with sid and name fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.have.property('table').that.is.an('object');","    pm.expect(responseData.table).to.have.property('sid').that.is.a('string');","    pm.expect(responseData.table).to.have.property('name').that.is.a('string');","});","","","pm.test(\"Validate the 'owners' array with 'sid' and 'name' fields for each element\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.owners).to.be.an('array').and.to.not.be.empty;","    ","    responseData.owners.forEach(function(owner) {","        pm.expect(owner).to.have.property('sid').that.is.a('string').and.to.not.be.empty;","        pm.expect(owner).to.have.property('name').that.is.a('string').and.to.not.be.empty;","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"839c6e8b-1050-4955-a0a2-ba572f8cbf50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Filter {{currentDate}}\",\n    \"description\": \"Test filter editted by postman.\",\n    \"query\": {\"is_archived\": false},\n    \"query_exclude\": \"null\",\n    \"digest_frequency\": \"None\",\n    \"show_in_menu\": true,\n    \"is_default\": false,\n    \"is_archived\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/filter/detail/{{filter_sid}}/","description":"<h3 id=\"update-table-filter-detail\">Update Table Filter Detail</h3>\n<p>This endpoint allows the user to update the details of a specific table filter.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code> (string, required): The name of the filter.</p>\n</li>\n<li><p><code>description</code> (string, required): A description of the filter.</p>\n</li>\n<li><p><code>query</code> (object, required): The query parameters for the filter.</p>\n</li>\n<li><p><code>query_exclude</code> (string, required): The query parameters to exclude.</p>\n</li>\n<li><p><code>digest_frequency</code> (string, required): The frequency of digest.</p>\n</li>\n<li><p><code>show_in_menu</code> (boolean, required): Indicates whether the filter should be shown in the menu.</p>\n</li>\n<li><p><code>is_default</code> (boolean, required): Indicates whether the filter is the default.</p>\n</li>\n<li><p><code>is_archived</code> (boolean, required): Indicates whether the filter is archived.</p>\n</li>\n</ul>\n<h4 id=\"response-body\">Response Body</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sid\": {\"type\": \"string\"},\n    \"table\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\"type\": \"string\"},\n        \"name\": {\"type\": \"string\"}\n      }\n    },\n    \"name\": {\"type\": \"string\"},\n    \"description\": {\"type\": \"string\"},\n    \"query\": {\"type\": \"object\"},\n    \"query_exclude\": {\"type\": \"string\"},\n    \"owners\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"sid\": {\"type\": \"string\"},\n          \"name\": {\"type\": \"string\"}\n        }\n      }\n    },\n    \"teams\": {\n      \"type\": \"array\",\n      \"items\": {}\n    },\n    \"digest_frequency\": {\"type\": \"string\"},\n    \"ics\": {\"type\": \"string\"},\n    \"show_in_menu\": {\"type\": \"boolean\"},\n    \"is_default\": {\"type\": \"boolean\"},\n    \"is_archived\": {\"type\": \"boolean\"},\n    \"date_updated\": {\"type\": \"string\"},\n    \"date_created\": {\"type\": \"string\"},\n    \"change_permission\": {\"type\": \"boolean\"},\n    \"help_text\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\"type\": \"string\"},\n        \"name\": {\"type\": \"string\"},\n        \"description\": {\"type\": \"string\"},\n        \"query\": {\"type\": \"string\"},\n        \"query_exclude\": {\"type\": \"string\"},\n        \"digest_frequency\": {\"type\": \"string\"},\n        \"show_in_menu\": {\"type\": \"string\"},\n        \"is_default\": {\"type\": \"string\"},\n        \"is_archived\": {\"type\": \"string\"},\n        \"owners\": {\"type\": \"string\"},\n        \"teams\": {\"type\": \"string\"}\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","filter","detail","{{filter_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"24be1150-c8ac-48d4-be6c-e75365ef098c","name":"Edit Filter","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Filter {{currentDate}}\",\n    \"description\": \"Test filter editted by postman.\",\n    \"query\": {\"is_archived\": false},\n    \"query_exclude\": \"null\",\n    \"digest_frequency\": \"None\",\n    \"show_in_menu\": true,\n    \"is_default\": false,\n    \"is_archived\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/filter/detail/{{filter_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 05:16:25 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1641","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"mpsv0a40x1afdbotyDINSX\",\n    \"table\": {\n        \"sid\": \"hknq0a40x1254ejotyDINS\",\n        \"name\": \"tests\"\n    },\n    \"name\": \"Test Filter 2024-11-03\",\n    \"description\": \"Test filter editted by postman.\",\n    \"query\": \"{\\\"is_archived\\\": false}\",\n    \"query_exclude\": \"null\",\n    \"owners\": [\n        {\n            \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n            \"name\": \"Test Labii\"\n        }\n    ],\n    \"teams\": [],\n    \"digest_frequency\": \"None\",\n    \"ics\": \"mpsv0a40x1afdbotyDINSX\",\n    \"show_in_menu\": true,\n    \"is_default\": false,\n    \"is_archived\": false,\n    \"date_updated\": \"2024-11-04T05:11:12.390053Z\",\n    \"date_created\": \"2024-11-04T05:11:12.390067Z\",\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"name\": \"Name of the filter. For example 'To be witness experiments'\",\n        \"description\": \"The description of the filter. Please includes the information like what are the parameters and what results are expected.\",\n        \"query\": \"Query in JSON format.\",\n        \"query_exclude\": \"Query in JSON format to be excluded. \",\n        \"digest_frequency\": \"The frequency of receiving the digest email for the filter. Default to <b>Weekly</b>. Use 'None' to unsubscribe the emails. This function is not available for Free plan users.\",\n        \"show_in_menu\": \"Should display this filter in the menu. Default to true. Set to false to hide this filter.\",\n        \"is_default\": \"If checked, the filter will be used as the default list view. If multiple filters were set as default, the first one will be used.\",\n        \"is_archived\": \"If checked, the filter will be archived. Archived filter is not available for use.\",\n        \"owners\": \"Owners eligible to modify and utilize this filter. The author's name will be automatically appended.\",\n        \"teams\": \"The teams permitted to utilize this filter. Team members are unable to modify the filter.\"\n    }\n}"}],"_postman_id":"839c6e8b-1050-4955-a0a2-ba572f8cbf50"},{"name":"Delete Filter","event":[{"listen":"test","script":{"id":"66911793-6fcb-4f6b-96d9-5bef21f16fae","exec":["pm.test(\"Response status code is 204\", function () {","  pm.response.to.have.status(204);","});","","","pm.test(\"Response time is less than 500ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});","","","pm.test(\"Validate the response schema for the expected fields and data types\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.tableId).to.be.a('number');","    pm.expect(responseData.tableName).to.be.a('string');","    pm.expect(responseData.createdAt).to.be.a('string');","    pm.expect(responseData.updatedAt).to.be.a('string');","});",""],"type":"text/javascript","packages":{}}}],"id":"e6027972-7afe-443e-a7de-ce51562fe183","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://www.labii.dev/tables/filter/detail/{{filter_sid}}/","description":"<h3 id=\"delete-table-filter-detail\">Delete Table Filter Detail</h3>\n<p>This endpoint is used to delete a specific table filter detail.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: DELETE</p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/tables/filter/detail/{{filter_sid}}/</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON schema, which will include the details of the deletion operation. The schema will outline the structure of the response body, including the properties and their data types.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","filter","detail","{{filter_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"e6027972-7afe-443e-a7de-ce51562fe183"}],"id":"464bf6c2-7b78-4115-9ed1-295eb7e00013","description":"<p>The Labii Filter API is a powerful tool that allows users to create and manage filters for table fields, enabling them to restrict display results through customized queries. With this API, users can easily retrieve a list of existing filters, create new filters, access detailed information about specific filters, edit them as needed, and delete filters that are no longer required. By providing flexible filtering options, this API enhances data visibility and usability, allowing users to tailor their data views to meet specific requirements and improve overall decision-making.</p>\n","_postman_id":"464bf6c2-7b78-4115-9ed1-295eb7e00013","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Row / Record","item":[{"name":"Get Record List","event":[{"listen":"test","script":{"id":"2f64e6ef-0012-4a12-aac6-307aa5f0fb59","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is in an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(300);","});","","","pm.test(\"Validate the structure of the 'results' array\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array');","    responseData.results.forEach(function(result) {","        pm.expect(result).to.be.an('object');","        pm.expect(result.sid).to.be.a('string');","        pm.expect(result.uid).to.be.a('string');","        pm.expect(result.name).to.be.a('string');","        pm.expect(result.column_set).to.be.an('array');","        pm.expect(result.description).to.be.a('string');","        pm.expect(result.projects).to.be.an('array');","        result.projects.forEach(function(project) {","            pm.expect(project.sid).to.be.a('string');","            pm.expect(project.name).to.be.a('string');","        });","        pm.expect(result.owner).to.be.an('object');","        pm.expect(result.owner.sid).to.be.a('string');","        pm.expect(result.owner.name).to.be.a('string');","        pm.expect(result.is_template).to.be.a('boolean');","        pm.expect(result.is_archived).to.be.a('boolean');","        pm.expect(result.date_created).to.be.a('string');","        pm.expect(result.date_updated).to.be.a('string');","        pm.expect(result.updated_by).to.be.an('object');","        pm.expect(result.updated_by.sid).to.be.a('string');","        pm.expect(result.updated_by.name).to.be.a('string');","        pm.expect(result.change_permission).to.be.a('boolean');","    });","});","","","pm.test(\"Results array contains all required fields\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.results).to.be.an('array').that.is.not.empty;","  ","  responseData.results.forEach(function(result) {","    pm.expect(result.sid).to.be.a('string');","    pm.expect(result.uid).to.be.a('string');","    pm.expect(result.name).to.be.a('string');","    pm.expect(result.column_set).to.be.an('array');","    pm.expect(result.description).to.be.a('string');","    pm.expect(result.projects).to.be.an('array');","    pm.expect(result.owner).to.be.an('object');","    pm.expect(result.is_template).to.be.a('boolean');","    pm.expect(result.is_archived).to.be.a('boolean');","    pm.expect(result.date_created).to.be.a('string');","    pm.expect(result.date_updated).to.be.a('string');","    pm.expect(result.updated_by).to.be.an('object');","    pm.expect(result.change_permission).to.be.a('boolean');","  });","});","","","pm.test(\"Owner object contains the required fields - sid and name\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.results).to.be.an('array');","    ","    responseData.results.forEach(function(result) {","        pm.expect(result.owner).to.be.an('object');","        pm.expect(result.owner.sid).to.exist;","        pm.expect(result.owner.name).to.exist;","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"e915b4e9-6c23-4a0e-a56d-0c91fcd67564","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/row/list/organization/{{organization_sid_test_edit}}/list/?table__sid={{table_sid_test_edit}}","description":"<h3 id=\"get-table-row-list-by-organization-and-table-id\">Get Table Row List by Organization and Table ID</h3>\n<p>This endpoint retrieves a list of rows from a specific table within an organization.</p>\n<p><strong>Request:</strong></p>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/tables/row/list/organization/{{organization_sid_test_edit}}/list/?table__sid={{table_sid_test_edit}}</code></p>\n</li>\n</ul>\n<p><strong>Response Body:</strong><br />The response will include the following fields:</p>\n<ul>\n<li><p><code>page_size</code> (number): The size of the page</p>\n</li>\n<li><p><code>page_number</code> (number): The page number</p>\n</li>\n<li><p><code>page_count</code> (number): The total number of pages</p>\n</li>\n<li><p><code>count</code> (number): The total count of rows</p>\n</li>\n<li><p><code>next</code> (string): Link to the next page</p>\n</li>\n<li><p><code>previous</code> (string): Link to the previous page</p>\n</li>\n<li><p><code>add_permission</code> (boolean): Indicates if the user has permission to add rows</p>\n</li>\n<li><p><code>results</code> (array): An array of row objects, each containing:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the row</p>\n</li>\n<li><p><code>uid</code> (string): The user identifier</p>\n</li>\n<li><p><code>name</code> (string): The name of the row</p>\n</li>\n<li><p><code>column_set</code> (array): An array of columns</p>\n</li>\n<li><p><code>description</code> (string): The description of the row</p>\n</li>\n<li><p><code>projects</code> (array): An array of project objects, each containing:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the project</p>\n</li>\n<li><p><code>name</code> (string): The name of the project</p>\n</li>\n</ul>\n</li>\n<li><p><code>owner</code> (object): The owner of the row, containing:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the owner</p>\n</li>\n<li><p><code>name</code> (string): The name of the owner</p>\n</li>\n</ul>\n</li>\n<li><p><code>is_template</code> (boolean): Indicates if the row is a template</p>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates if the row is archived</p>\n</li>\n<li><p><code>date_created</code> (string): The date when the row was created</p>\n</li>\n<li><p><code>date_updated</code> (string): The date when the row was last updated</p>\n</li>\n<li><p><code>updated_by</code> (object): The user who last updated the row, containing:</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the user</p>\n</li>\n<li><p><code>name</code> (string): The name of the user</p>\n</li>\n</ul>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates if the user has permission to change the row</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","row","list","organization","{{organization_sid_test_edit}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"table__sid","value":"{{table_sid_test_edit}}"}],"variable":[]}},"response":[{"id":"1364c71b-becf-459b-86cc-622b2b10f87a","name":"Get Record List","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://www.labii.dev/tables/row/list/organization/{{organization_sid_test_edit}}/list/?table__sid={{table_sid_test_edit}}","host":["https://www.labii.dev"],"path":["tables","row","list","organization","{{organization_sid_test_edit}}","list",""],"query":[{"key":"table__sid","value":"{{table_sid_test_edit}}","sortOrder":0}]}},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 05:27:32 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"608","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": true,\n    \"results\": [\n        {\n            \"sid\": \"xADG0a40xa5bczEJOTY49\",\n            \"uid\": \"TEST1\",\n            \"name\": \"Test Record 2024-11-03\",\n            \"column_set\": [],\n            \"description\": \"Test record created by postman.\",\n            \"projects\": [\n                {\n                    \"sid\": \"ilor0a40x2cd3kpuzEJOT\",\n                    \"name\": \"Sample Project\"\n                }\n            ],\n            \"owner\": {\n                \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n                \"name\": \"Test Labii\"\n            },\n            \"is_template\": false,\n            \"is_archived\": false,\n            \"date_created\": \"2024-11-04T05:25:25.999592Z\",\n            \"date_updated\": \"2024-11-04T05:25:26.040123Z\",\n            \"updated_by\": {\n                \"sid\": \"knqt0a40xffmrwBGLQV\",\n                \"name\": \"Test Labii\"\n            },\n            \"change_permission\": true\n        }\n    ]\n}"}],"_postman_id":"e915b4e9-6c23-4a0e-a56d-0c91fcd67564"},{"name":"Create Record","event":[{"listen":"prerequest","script":{"id":"346467d8-b6ba-4264-a307-b6051af50233","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"9417e729-96c9-418b-84c5-c8b911a6bd7d","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"record_sid\", jsonData.sid);","","","pm.test(\"Response status code is 201\", function () {","    pm.response.to.have.status(201);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for the presence of required fields\", function () {","    const responseData = pm.response.json();","    ","    const requiredFields = [\"sid\", \"uid\", \"version\", \"table\", \"projects\", \"name\", \"description\", \"column_set\", \"section_set\", \"is_template\", \"is_archived\", \"is_locked\", \"metadata\", \"updated_by\", \"date_updated\", \"owner\", \"date_created\", \"data\", \"change_permission\", \"help_text\"];","    ","    requiredFields.forEach(field => {","        pm.expect(responseData).to.have.property(field);","    });","});","",""],"type":"text/javascript","packages":{}}}],"id":"a197ac1c-8b19-4925-ad15-f1db1a77c90f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Record {{currentDate}}\",\n    \"description\": \"Test record created by postman.\",\n    \"projects\": [{\n        \"sid\": \"{{project_sid_test_edit}}\",\n        \"name\": \"Sample Project\"\n    }],\n    \"{{column_sid_date}}\": \"{{currentDate}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/row/list/organization/{{organization_sid_test_edit}}/list/?table__sid={{table_sid_test_edit}}","description":"<h3 id=\"create-a-new-record-in-a-table\">Create a New Record in a Table</h3>\n<p>This endpoint allows you to create a new record in a table within the specified organization.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code> (string): The name of the new record.</p>\n</li>\n<li><p><code>description</code> (string): A description for the new record.</p>\n</li>\n<li><p><code>projects</code> (array): An array of projects associated with the new record.</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the project.</p>\n</li>\n<li><p><code>name</code> (string): The name of the project.</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{column_sid_date}}</code> (string): The date associated with the new record.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the new record.</p>\n</li>\n<li><p><code>uid</code> (string): The user identifier.</p>\n</li>\n<li><p><code>version</code> (object): Contains the version information.</p>\n<ul>\n<li><code>version</code> (number): The version number.</li>\n</ul>\n</li>\n<li><p><code>table</code> (object): Contains information about the table.</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the table.</p>\n</li>\n<li><p><code>name</code> (string): The name of the table.</p>\n</li>\n</ul>\n</li>\n<li><p><code>projects</code> (array): An array of projects associated with the new record.</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the project.</p>\n</li>\n<li><p><code>name</code> (string): The name of the project.</p>\n</li>\n</ul>\n</li>\n<li><p><code>name</code> (string): The name of the new record.</p>\n</li>\n<li><p><code>description</code> (string): The description of the new record.</p>\n</li>\n<li><p><code>column_set</code> (array): Contains the column set information.</p>\n</li>\n<li><p><code>section_set</code> (array): Contains the section set information.</p>\n</li>\n<li><p><code>is_template</code> (boolean): Indicates if the record is a template.</p>\n</li>\n<li><p><code>is_archived</code> (boolean): Indicates if the record is archived.</p>\n</li>\n<li><p><code>is_locked</code> (boolean): Indicates if the record is locked.</p>\n</li>\n<li><p><code>metadata</code> (array): Contains metadata related to the record.</p>\n</li>\n<li><p><code>updated_by</code> (object): Contains information about the user who updated the record.</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the user.</p>\n</li>\n<li><p><code>name</code> (string): The name of the user.</p>\n</li>\n</ul>\n</li>\n<li><p><code>date_updated</code> (string): The date when the record was updated.</p>\n</li>\n<li><p><code>owner</code> (object): Contains information about the owner of the record.</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the owner.</p>\n</li>\n<li><p><code>name</code> (string): The name of the owner.</p>\n</li>\n</ul>\n</li>\n<li><p><code>date_created</code> (string): The date when the record was created.</p>\n</li>\n<li><p><code>data</code> (null): The data associated with the record.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates the change permission for the record.</p>\n</li>\n<li><p><code>help_text</code> (object): Contains help text information.</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier of the help text.</p>\n</li>\n<li><p><code>rid</code> (string): The resource identifier.</p>\n</li>\n<li><p><code>uid</code> (string): The user identifier.</p>\n</li>\n<li><p><code>name</code> (string): The name of the help text.</p>\n</li>\n<li><p><code>description</code> (string): The description of the help text.</p>\n</li>\n<li><p><code>metadata</code> (string): The metadata of the help text.</p>\n</li>\n<li><p><code>is_template</code> (string): Indicates if the help text is a template.</p>\n</li>\n<li><p><code>is_locked</code> (string): Indicates if the help text is locked.</p>\n</li>\n<li><p><code>is_archived</code> (string): Indicates if the help text is archived.</p>\n</li>\n<li><p><code>price</code> (string): The price of the help text.</p>\n</li>\n<li><p><code>projects</code> (string): The projects associated with the help text.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","row","list","organization","{{organization_sid_test_edit}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"table__sid","value":"{{table_sid_test_edit}}"}],"variable":[]}},"response":[{"id":"be65a1bc-6c5d-4268-a7b2-8dcd413160f9","name":"Create Record","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Record {{currentDate}}\",\n    \"description\": \"Test record created by postman.\",\n    \"projects\": [{\n        \"sid\": \"{{project_sid_test_edit}}\",\n        \"name\": \"Sample Project\"\n    }]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://www.labii.dev/tables/row/list/organization/{{organization_sid_test_edit}}/list/?table__sid={{table_sid_test_edit}}","host":["https://www.labii.dev"],"path":["tables","row","list","organization","{{organization_sid_test_edit}}","list",""],"query":[{"key":"table__sid","value":"{{table_sid_test_edit}}","sortOrder":0}]}},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 05:25:26 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"2407","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"xADG0a40xa5bczEJOTY49\",\n    \"uid\": \"TEST1\",\n    \"version\": {\n        \"version\": 0\n    },\n    \"table\": {\n        \"sid\": \"hknq0a40x1254ejotyDINS\",\n        \"name\": \"tests\"\n    },\n    \"projects\": [\n        {\n            \"sid\": \"ilor0a40x2cd3kpuzEJOT\",\n            \"name\": \"Sample Project\"\n        }\n    ],\n    \"name\": \"Test Record 2024-11-03\",\n    \"description\": \"Test record created by postman.\",\n    \"column_set\": [],\n    \"section_set\": [],\n    \"is_template\": false,\n    \"is_archived\": false,\n    \"is_locked\": false,\n    \"metadata\": [],\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-04T05:25:25.999578Z\",\n    \"owner\": {\n        \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_created\": \"2024-11-04T05:25:25.999592Z\",\n    \"data\": null,\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"rid\": \"The Row ID. Unique to each table. Used to regenerate uid, \",\n        \"uid\": \"The Unique ID. Generated from [Unique Code][rid] in default. If 'should_support_custom_uid' is set to true, you should supply your own UID. Ensure that your UID is unique; providing an existing UID will result in replacing the corresponding record.\",\n        \"name\": \"- Set the metadata of <b>FIELD_NAME_RENAME=title</b> to change the 'Name' to 'Title'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>.<br>- This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n        \"description\": \"- Set the metadata of <b>FIELD_DESCRIPTION_RENAME=overview</b> to change the 'Description' to 'Overview'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>.\",\n        \"metadata\": \"Use <b>metadata</b> to store the value that does not necessarily exist for all records in a table. <br>Use <b>column</b> to store the data that should exist for all records. \",\n        \"is_template\": \"If this box is checked, this record will serve as a template, so that other records can be created using the same information. \",\n        \"is_locked\": \"If checked, data is not available for edit. Once signed, it will be locked. \",\n        \"is_archived\": \"If checked, data is not available for use.\",\n        \"price\": \"The price of the widget used, in US Dollar. \",\n        \"projects\": \"Projects associated with this record. You will only see the projects that are available to you. Please contact your administrator if you are unable to view any particular project. \"\n    }\n}"}],"_postman_id":"a197ac1c-8b19-4925-ad15-f1db1a77c90f"},{"name":"Create Record Cell","event":[{"listen":"prerequest","script":{"id":"b901ccda-0c7d-49bd-a081-7b657a63e166","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"bd690db8-557e-4c3b-84bc-1596347ec41c","exec":["pm.test(\"Response status code is 201\", function () {","  pm.response.to.have.status(201);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the presence and data type of all required fields in the response\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.be.a('string');","    pm.expect(responseData.data).to.be.a('string');","    pm.expect(responseData.row).to.be.an('object');","    pm.expect(responseData.row.sid).to.be.a('string');","    pm.expect(responseData.row.name).to.be.a('string');","    pm.expect(responseData.column).to.be.an('object');","    pm.expect(responseData.column.sid).to.be.a('string');","    pm.expect(responseData.column.name).to.be.a('string');","    pm.expect(responseData.column.name_system).to.be.a('string');","    pm.expect(responseData.column.description).to.be.a('string');","    pm.expect(responseData.column.widget).to.be.an('object');","    pm.expect(responseData.column.widget.sid).to.be.a('string');","    pm.expect(responseData.column.widget.name).to.be.a('string');","    pm.expect(responseData.column.widget.documentation_url).to.be.a('string');","    pm.expect(responseData.column.configuration).to.be.null;","    pm.expect(responseData.column.permission).to.be.null;","    pm.expect(responseData.column.default_data).to.be.null;","    pm.expect(responseData.column.order).to.be.a('number');","    pm.expect(responseData.column.is_required).to.be.true;","    pm.expect(responseData.column.should_hide_in_form_view).to.be.true;","    pm.expect(responseData.column.should_hide_in_list_view).to.be.true;","    pm.expect(responseData.column.max_width).to.be.null;","    pm.expect(responseData.column.metadata).to.be.an('array');","    pm.expect(responseData.column.table).to.be.an('object');","    pm.expect(responseData.column.table.sid).to.be.a('string');","    pm.expect(responseData.column.table.name).to.be.a('string');","    pm.expect(responseData.column.is_archived).to.be.true;","    pm.expect(responseData.column.date_created).to.be.a('string');","    pm.expect(responseData.column.change_permission).to.be.true;","    pm.expect(responseData.column.help_text).to.be.an('object');","    pm.expect(responseData.column.help_text.sid).to.be.a('string');","    pm.expect(responseData.column.help_text.name).to.be.a('string');","    pm.expect(responseData.column.help_text.name_system).to.be.a('string');","    pm.expect(responseData.column.help_text.description).to.be.a('string');","    pm.expect(responseData.column.help_text.widget).to.be.a('string');","    pm.expect(responseData.column.help_text.configuration).to.be.a('string');","    pm.expect(responseData.column.help_text.permission).to.be.a('string');","    pm.expect(responseData.column.help_text.default_data).to.be.a('string');","    pm.expect(responseData.column.help_text.order).to.be.a('string');","    pm.expect(responseData.column.help_text.is_required).to.be.a('string');","    pm.expect(responseData.column.help_text.should_hide_in_form_view).to.be.a('string');","    pm.expect(responseData.column.help_text.should_hide_in_list_view).to.be.a('string');","    pm.expect(responseData.column.help_text.max_width).to.be.a('string');","    pm.expect(responseData.column.help_text.metadata).to.be.a('string');","    pm.expect(responseData.column.help_text.is_archived).to.be.a('string');","    pm.expect(responseData.widget).to.be.an('object');","    pm.expect(responseData.widget.sid).to.be.a('string');","    pm.expect(responseData.widget.name).to.be.a('string');","    pm.expect(responseData.updated_by).to.be.an('object');","    pm.expect(responseData.updated_by.sid).to.be.a('string');","    pm.expect(responseData.updated_by.name).to.be.a('string');","    pm.expect(responseData.date_updated).to.be.a('string');","    pm.expect(responseData.date_created).to.be.a('string');","    pm.expect(responseData.change_permission).to.be.true;","});","","","pm.test(\"Date_created and date_updated fields should be in valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.date_created).to.match(/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$/, \"Invalid date format for date_created\");","    pm.expect(responseData.date_updated).to.match(/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$/, \"Invalid date format for date_updated\");","});","","","pm.test(\"Row, column, widget, and updated_by objects are present with expected properties\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.row).to.be.an('object').and.to.have.property('sid');","    pm.expect(responseData.column).to.be.an('object').and.to.have.property('sid');","    pm.expect(responseData.column.widget).to.be.an('object').and.to.have.property('sid');","    pm.expect(responseData.updated_by).to.be.an('object').and.to.have.property('sid');","});",""],"type":"text/javascript","packages":{}}}],"id":"57718af6-b18c-46d2-92b8-6fca4f7dce53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"data\": \"{{currentDate}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/cell/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}&column__sid={{column_sid_date}}","description":"<h3 id=\"post-tablescelllistorganizationorganization_sid_test_editlistrow__sidrecord_sidcolumn__sidcolumn_sid_date\">POST /tables/cell/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}&amp;column__sid={{column_sid_date}}</h3>\n<p>This endpoint is used to retrieve a list of cells for a specific organization, row, and column.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>Type: Raw</p>\n<ul>\n<li>data (string, required): The current date.</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following properties:</p>\n<ul>\n<li><p>sid (string): The unique identifier of the cell.</p>\n</li>\n<li><p>data (string): The data stored in the cell.</p>\n</li>\n<li><p>row (object): Information about the row to which the cell belongs.</p>\n<ul>\n<li><p>sid (string): The unique identifier of the row.</p>\n</li>\n<li><p>name (string): The name of the row.</p>\n</li>\n</ul>\n</li>\n<li><p>column (object): Information about the column to which the cell belongs.</p>\n<ul>\n<li><p>sid (string): The unique identifier of the column.</p>\n</li>\n<li><p>name (string): The name of the column.</p>\n</li>\n<li><p>name_system (string): The system name of the column.</p>\n</li>\n<li><p>description (string): Description of the column.</p>\n</li>\n<li><p>widget (object): Information about the widget used for the column.</p>\n<ul>\n<li><p>sid (string): The unique identifier of the widget.</p>\n</li>\n<li><p>name (string): The name of the widget.</p>\n</li>\n<li><p>documentation_url (string): The URL for the widget documentation.</p>\n</li>\n</ul>\n</li>\n<li><p>configuration (null): Configuration settings for the column.</p>\n</li>\n<li><p>permission (null): Permissions for the column.</p>\n</li>\n<li><p>default_data (null): Default data for the column.</p>\n</li>\n<li><p>order (number): The order of the column.</p>\n</li>\n<li><p>is_required (boolean): Indicates if the column is required.</p>\n</li>\n<li><p>should_hide_in_form_view (boolean): Indicates if the column should be hidden in the form view.</p>\n</li>\n<li><p>should_hide_in_list_view (boolean): Indicates if the column should be hidden in the list view.</p>\n</li>\n<li><p>max_width (null): The maximum width of the column.</p>\n</li>\n<li><p>metadata (array): Additional metadata for the column.</p>\n</li>\n<li><p>table (object): Information about the table to which the column belongs.</p>\n<ul>\n<li><p>sid (string): The unique identifier of the table.</p>\n</li>\n<li><p>name (string): The name of the table.</p>\n</li>\n</ul>\n</li>\n<li><p>is_archived (boolean): Indicates if the column is archived.</p>\n</li>\n<li><p>date_created (string): The date when the column was created.</p>\n</li>\n<li><p>change_permission (boolean): Indicates if permission can be changed for the column.</p>\n</li>\n<li><p>help_text (object): Help text for the column.</p>\n<ul>\n<li><p>sid (string): The unique identifier of the help text.</p>\n</li>\n<li><p>name (string): The name of the help text.</p>\n</li>\n<li><p>name_system (string): The system name of the help text.</p>\n</li>\n<li><p>description (string): Description of the help text.</p>\n</li>\n<li><p>widget (string): The widget used for the help text.</p>\n</li>\n<li><p>configuration (string): Configuration settings for the help text.</p>\n</li>\n<li><p>permission (string): Permissions for the help text.</p>\n</li>\n<li><p>default_data (string): Default data for the help text.</p>\n</li>\n<li><p>order (string): The order of the help text.</p>\n</li>\n<li><p>is_required (string): Indicates if the help text is required.</p>\n</li>\n<li><p>should_hide_in_form_view (string): Indicates if the help text should be hidden in the form view.</p>\n</li>\n<li><p>should_hide_in_list_view (string): Indicates if the help text should be hidden in the list view.</p>\n</li>\n<li><p>max_width (string): The maximum width of the help text.</p>\n</li>\n<li><p>metadata (string): Additional metadata for the help text.</p>\n</li>\n<li><p>is_archived (string): Indicates if the help text is archived.</p>\n</li>\n</ul>\n</li>\n<li><p>widget (object): Information about the widget used for the column.</p>\n<ul>\n<li><p>sid (string): The unique identifier of the widget.</p>\n</li>\n<li><p>name (string): The name of the widget.</p>\n</li>\n</ul>\n</li>\n<li><p>updated_by (object): Information about the user who last updated the column.</p>\n<ul>\n<li><p>sid (string): The unique identifier of the user.</p>\n</li>\n<li><p>name (string): The name of the user.</p>\n</li>\n</ul>\n</li>\n<li><p>date_updated (string): The date when the column was last updated.</p>\n</li>\n<li><p>date_created (string): The date when the column was created.</p>\n</li>\n<li><p>change_permission (boolean): Indicates if permission can be changed for the column.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","cell","list","organization","{{organization_sid_test_edit}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"row__sid","value":"{{record_sid}}"},{"key":"column__sid","value":"{{column_sid_date}}"}],"variable":[]}},"response":[{"id":"75c1d7d2-53e5-4cee-afc6-8d46c4f8ac85","name":"Create Record Cell","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"data\": \"{{currentDate}}\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://www.labii.dev/tables/cell/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}&column__sid={{column_sid_date}}","host":["https://www.labii.dev"],"path":["tables","cell","list","organization","{{organization_sid_test_edit}}","list",""],"query":[{"key":"row__sid","value":"{{record_sid}}","sortOrder":0},{"key":"column__sid","value":"{{column_sid_date}}","sortOrder":1}]}},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 06:06:03 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"3790","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"FILO0a40x17e0aHMRW27bg\",\n    \"data\": \"2024-11-03\",\n    \"row\": {\n        \"sid\": \"xADG0a40xa5bczEJOTY49\",\n        \"name\": \"TEST1: Test Record 2024-11-03\"\n    },\n    \"column\": {\n        \"sid\": \"TWZ30a40x563aaV16afkpu\",\n        \"name\": \"date\",\n        \"name_system\": \"\",\n        \"description\": \"\",\n        \"widget\": {\n            \"sid\": \"GJMP0a40x1dINSX38ch\",\n            \"name\": \"Date\",\n            \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/datetime/date\"\n        },\n        \"configuration\": null,\n        \"permission\": null,\n        \"default_data\": null,\n        \"order\": 1,\n        \"is_required\": false,\n        \"should_hide_in_form_view\": false,\n        \"should_hide_in_list_view\": false,\n        \"max_width\": null,\n        \"metadata\": [],\n        \"table\": {\n            \"sid\": \"hknq0a40x1254ejotyDINS\",\n            \"name\": \"tests\"\n        },\n        \"is_archived\": false,\n        \"date_created\": \"2024-11-04T05:51:12.206366Z\",\n        \"change_permission\": false,\n        \"help_text\": {\n            \"sid\": \"Static encrypted identifier. \",\n            \"name\": \"Letters and number only.\",\n            \"name_system\": \"The name to identify the column for a widget. \",\n            \"description\": \"The description of the column. Include the definition, special formatting, and all other necessary information to help your coworker to fill.\",\n            \"widget\": \"The widget to use, or the type of data. Default to <b>Text</b>. The configuration data will be erased if the widget is changed.<br>You can only select widgets that have been installed. You can find a list of installed widgets <a href='/list/settings/organizationwidgets/' target='_blank'>here</a>. Widgets that aren't available can be enabled <a href='/list/settings/widgets/' target='_blank'>here</a>. <br><b>Group columns with Subtitle widget</b>. When you use the Subtitle widget, the columns right after will be grouped and displayed separately in both form and columns views. Learn more about the widgets <a href='https://docs.labii.com/widgets/summary/column-type-widgets' target='_blank'>here</a>.\",\n            \"configuration\": \"The configuration of the column. Use it to provide addtional parameters to the column.\",\n            \"permission\": \"The column's supplementary permission settings can be utilized to offer additional control over its permissions. \",\n            \"default_data\": \"The default data of the column. <br>- For the Boolean field, the default value is 'false'. <br>- For Date, use YYYY-MM-DD. <br>- For Select/MultiSelect, use {'sid':'xxx', 'name':'xxx'}. <br>- For ForeignKey/ForeignKeys, use {'sid':'xxx', 'name':'xxx'}. <br>The default value is different for different widget, learn more at <a href='https://docs.labii.com/widgets/column-widgets' target='_blank'>https://docs.labii.com/widgets/column-widgets</a>.<br>This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n            \"order\": \"The order to display the column. Integer only. <br>Use it to control the order of columns in the list view (from left to right).\",\n            \"is_required\": \"If checked, the value of the column is required in form submitting.\",\n            \"should_hide_in_form_view\": \"If selected, the column will not be visible in the form view but will remain accessible in the detail view. Utilize this option to manage column visibility in the form view.\",\n            \"should_hide_in_list_view\": \"If enabled, the column will not be shown in the list view but will remain accessible in the detail view. Employ this feature to regulate the display of columns in the list view.\",\n            \"max_width\": \"The maximum width of the column in pixels. You can use it to limit the width of certain columns.\",\n            \"metadata\": \"Use <b>metadata</b> to provide additional information to the column.\",\n            \"is_archived\": \"If checked, the item and relevant data will be archived. Archived item is not available for use.\"\n        }\n    },\n    \"widget\": {\n        \"sid\": \"GJMP0a40x1dINSX38ch\",\n        \"name\": \"Date\"\n    },\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-04T06:06:03.566928Z\",\n    \"date_created\": \"2024-11-04T06:06:03.566946Z\",\n    \"change_permission\": true\n}"}],"_postman_id":"57718af6-b18c-46d2-92b8-6fca4f7dce53"},{"name":"Create Record Section","event":[{"listen":"prerequest","script":{"id":"faf856c1-ba13-42b7-b7be-73431532abfa","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"4a5b0a7e-42d0-415b-bc7c-c6db462a9d97","exec":["pm.test(\"Response status code is 201\", function () {","  pm.response.to.have.status(201);","});","","","pm.test(\"Response time is less than 500ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});","","","pm.test(\"Response schema is valid and matches the expected structure\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('array');","    responseData.forEach(function(section) {","        pm.expect(section).to.be.an('object');","        pm.expect(section).to.have.property('id');","        pm.expect(section).to.have.property('name');","        pm.expect(section).to.have.property('capacity');","        pm.expect(section).to.have.property('location');","        pm.expect(section).to.have.property('tables');","        pm.expect(section.tables).to.be.an('array');","        section.tables.forEach(function(table) {","            pm.expect(table).to.be.an('object');","            pm.expect(table).to.have.property('table_id');","            pm.expect(table).to.have.property('table_name');","            pm.expect(table).to.have.property('capacity');","        });","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"19f8b73c-6cc8-46f2-8cfe-9569763126d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Section {{currentDate}}\",\n    \"description\": \"Test section created by postname\",\n    \"widget\": {\n        \"sid\": \"ehkn0a40x1glqvAFKP\",\n        \"name\": \"Plain Text\"\n    },\n    \"data\": \"Test\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/section/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","description":"<h3 id=\"create-a-new-section\">Create a New Section</h3>\n<p>This endpoint allows you to create a new section within a specific organization's table.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code> (string, required): The name of the section.</p>\n</li>\n<li><p><code>description</code> (string, required): The description of the section.</p>\n</li>\n<li><p><code>widget</code> (object, required): The widget configuration for the section.</p>\n<ul>\n<li><p><code>sid</code> (string, required): The unique identifier for the widget.</p>\n</li>\n<li><p><code>name</code> (string, required): The name of the widget.</p>\n</li>\n</ul>\n</li>\n<li><p><code>data</code> (string, required): Additional data for the section.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"name\": \"Test Section {{currentDate}}\",\n  \"description\": \"Test section created by postna ...\",\n  \"widget\": {\n    \"sid\": \"ehkn0a40x1glqvAFKP\",\n    \"name\": \"Plain Text\"\n  },\n  \"data\": \"Test\"\n}\n#### Response\nThe response will be an array, and the examples of responses are as follows:\n```json\n[]\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","section","list","organization","{{organization_sid_test_edit}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"row__sid","value":"{{record_sid}}"}],"variable":[]}},"response":[{"id":"281a5aa2-fbf7-49b5-8246-8723f92049e9","name":"Create Record Section","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Section {{currentDate}}\",\n    \"description\": \"Test section created by postname\",\n    \"widget\": {\n        \"sid\": \"ehkn0a40x1glqvAFKP\",\n        \"name\": \"Plain Text\"\n    },\n    \"data\": \"Test\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://www.labii.dev/tables/section/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","host":["https://www.labii.dev"],"path":["tables","section","list","organization","{{organization_sid_test_edit}}","list",""],"query":[{"key":"row__sid","value":"{{record_sid}}","sortOrder":0}]}},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 06:14:53 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"4750","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"[]"}],"_postman_id":"19f8b73c-6cc8-46f2-8cfe-9569763126d3"},{"name":"Get Record Detail","event":[{"listen":"test","script":{"id":"56fd93f6-69ef-4d17-9744-b3152a4d1f92","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('id');","    pm.expect(responseData).to.have.property('name');","    pm.expect(responseData).to.have.property('description');","    pm.expect(responseData).to.have.property('created_at');","    pm.expect(responseData).to.have.property('updated_at');","});","","","pm.test(\"Validate the structure of the response\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('id');","    pm.expect(responseData).to.have.property('name');","    pm.expect(responseData).to.have.property('description');","    pm.expect(responseData).to.have.property('created_at');","    pm.expect(responseData).to.have.property('updated_at');","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});",""],"type":"text/javascript","packages":{}}}],"id":"b92a2bea-de74-48b0-84c5-d74cc8fb88e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/row/detail/{{record_sid}}/","description":"<p>This endpoint makes an HTTP GET request to retrieve the details of a specific row in a table. The request should include the record_sid as part of the URL path to identify the specific row.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<ul>\n<li><code>record_sid</code> (path parameter): The unique identifier of the record to retrieve details for.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response will contain the details of the specific row in the table.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","row","detail","{{record_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"2665656d-8686-438b-b941-0fd36a6f152c","name":"Get Record Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/row/detail/{{record_sid}}/"},"_postman_previewlanguage":"JSON","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"xADG0a40xa5bczEJOTY49\",\n    \"uid\": \"TEST1\",\n    \"version\": {\n        \"version\": 3,\n        \"sid\": \"58ad0a40x347df7bglqvAF\",\n        \"name\": \"TEST1: Test Record 2024-11-03 (v3)\"\n    },\n    \"table\": {\n        \"sid\": \"hknq0a40x1254ejotyDINS\",\n        \"name\": \"tests\"\n    },\n    \"projects\": [\n        {\n            \"sid\": \"ilor0a40x2cd3kpuzEJOT\",\n            \"name\": \"Sample Project\"\n        }\n    ],\n    \"name\": \"Test Record 2024-11-03\",\n    \"description\": \"Test record created by postman.\",\n    \"column_set\": [\n        {\n            \"column\": {\n                \"sid\": \"TWZ30a40x563aaV16afkpu\",\n                \"name\": \"date\",\n                \"name_system\": \"\",\n                \"description\": \"\",\n                \"widget\": {\n                    \"sid\": \"GJMP0a40x1dINSX38ch\",\n                    \"name\": \"Date\",\n                    \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/datetime/date\"\n                },\n                \"configuration\": null,\n                \"permission\": null,\n                \"default_data\": null,\n                \"order\": 1,\n                \"is_required\": false,\n                \"should_hide_in_form_view\": false,\n                \"should_hide_in_list_view\": false,\n                \"max_width\": null,\n                \"metadata\": [],\n                \"table\": {\n                    \"sid\": \"hknq0a40x1254ejotyDINS\",\n                    \"name\": \"tests\"\n                },\n                \"is_archived\": false,\n                \"date_created\": \"2024-11-04T05:51:12.206366Z\",\n                \"change_permission\": false,\n                \"help_text\": {\n                    \"sid\": \"Static encrypted identifier. \",\n                    \"name\": \"Letters and number only.\",\n                    \"name_system\": \"The name to identify the column for a widget. \",\n                    \"description\": \"The description of the column. Include the definition, special formatting, and all other necessary information to help your coworker to fill.\",\n                    \"widget\": \"The widget to use, or the type of data. Default to <b>Text</b>. The configuration data will be erased if the widget is changed.<br>You can only select widgets that have been installed. You can find a list of installed widgets <a href='/list/settings/organizationwidgets/' target='_blank'>here</a>. Widgets that aren't available can be enabled <a href='/list/settings/widgets/' target='_blank'>here</a>. <br><b>Group columns with Subtitle widget</b>. When you use the Subtitle widget, the columns right after will be grouped and displayed separately in both form and columns views. Learn more about the widgets <a href='https://docs.labii.com/widgets/summary/column-type-widgets' target='_blank'>here</a>.\",\n                    \"configuration\": \"The configuration of the column. Use it to provide addtional parameters to the column.\",\n                    \"permission\": \"The column's supplementary permission settings can be utilized to offer additional control over its permissions. \",\n                    \"default_data\": \"The default data of the column. <br>- For the Boolean field, the default value is 'false'. <br>- For Date, use YYYY-MM-DD. <br>- For Select/MultiSelect, use {'sid':'xxx', 'name':'xxx'}. <br>- For ForeignKey/ForeignKeys, use {'sid':'xxx', 'name':'xxx'}. <br>The default value is different for different widget, learn more at <a href='https://docs.labii.com/widgets/column-widgets' target='_blank'>https://docs.labii.com/widgets/column-widgets</a>.<br>This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n                    \"order\": \"The order to display the column. Integer only. <br>Use it to control the order of columns in the list view (from left to right).\",\n                    \"is_required\": \"If checked, the value of the column is required in form submitting.\",\n                    \"should_hide_in_form_view\": \"If selected, the column will not be visible in the form view but will remain accessible in the detail view. Utilize this option to manage column visibility in the form view.\",\n                    \"should_hide_in_list_view\": \"If enabled, the column will not be shown in the list view but will remain accessible in the detail view. Employ this feature to regulate the display of columns in the list view.\",\n                    \"max_width\": \"The maximum width of the column in pixels. You can use it to limit the width of certain columns.\",\n                    \"metadata\": \"Use <b>metadata</b> to provide additional information to the column.\",\n                    \"is_archived\": \"If checked, the item and relevant data will be archived. Archived item is not available for use.\"\n                }\n            },\n            \"data\": \"2024-11-03\",\n            \"sid\": \"FILO0a40x17e0aHMRW27bg\"\n        }\n    ],\n    \"section_set\": [\n        {\n            \"sid\": \"NQTW0a40x48686PUZ50ejo\",\n            \"table\": {\n                \"sid\": \"hknq0a40x1254ejotyDINS\",\n                \"name\": \"tests\"\n            },\n            \"row\": {\n                \"sid\": \"xADG0a40xa5bczEJOTY49\",\n                \"name\": \"TEST1: Test Record 2024-11-03\"\n            },\n            \"name\": \"Test Section 2024-11-03\",\n            \"description\": \"Test section created by postname\",\n            \"description_placement\": \"Top\",\n            \"widget\": {\n                \"sid\": \"ehkn0a40x1glqvAFKP\",\n                \"icon\": \"text_fields\",\n                \"name\": \"Plain Text\",\n                \"category\": \"Office\",\n                \"sub_category\": \"Text, Word, Docs\",\n                \"company\": \"Labii Inc.\",\n                \"notes\": \"A simple and lightweight text box that supports markdown\",\n                \"description\": \"The Plain Text widget serves as a basic text input tool that allows users to enter and edit text content. It provides a convenient and familiar interface similar to a typical text box, enabling users to input or modify plain text with markdown formatting support. This widget offers a minimalistic design and focuses on simplicity, making it ideal for various use cases.\",\n                \"documentation_url\": \"https://docs.labii.com/widgets/section-widgets/text/plain-text\",\n                \"screenshot_url\": \"/media/widgets/section-plain-text.webp\",\n                \"type\": \"Section\",\n                \"constructor\": \"object\",\n                \"related_to\": \"CKEditor Classic, CKEditor Balloon, CKEditor Document, CKEditor Restricted, Code Editor\",\n                \"version\": \"3.0.0\",\n                \"release_date\": \"2023-05-27\",\n                \"order\": \"2.50\",\n                \"subscription_price\": \"Free\",\n                \"ppu_price\": \"0.00\",\n                \"allow_multiple\": true,\n                \"is_readonly\": false,\n                \"metadata_labels\": \"\",\n                \"data\": {\n                    \"markdown\": \"\",\n                    \"prompt_template\": \"\"\n                },\n                \"default_data\": \"\",\n                \"change_permission\": false,\n                \"help_text\": {\n                    \"sid\": \"Static encrypted identifier. \",\n                    \"icon\": \"Icon of the widget. Choose one at https://material.io/icons/. Replace blanks with '_'. For example: 'account_circle'\",\n                    \"type\": \"Type of the widget, \",\n                    \"category\": \"Category of the widget. \",\n                    \"sub_category\": \"Sub Category of the widget.\",\n                    \"order\": \"The order to display the widget. Integer only. <br>Use it to control the order of widget. \",\n                    \"company\": \"The company released the widget.\",\n                    \"notes\": \"Short Description.\",\n                    \"description\": \"Detail description of the widget. Provide enough information for other users to understand.\",\n                    \"documentation_url\": \"The documentation url\",\n                    \"screenshot_url\": \"The screenshot url\",\n                    \"constructor\": \"Type of data to store, for Column widget only. \",\n                    \"uischema\": \"UI Schema to use, for Column widget only, select to use the field in the form. If not selected, the Column will not added to the form. \",\n                    \"version\": \"Ther version of the widget release.\",\n                    \"release_date\": \"The date that the version released. \",\n                    \"subscription_price\": \"The price of the widget per use for Subscription Option, in US Dollar.\",\n                    \"ppu_price\": \"The price of the widget per use for PPU Option, in US Dollar.\",\n                    \"allow_multiple\": \"If checked, the same widget can be added to same record multiple times. \",\n                    \"is_readonly\": \"Readonly widget only displays the data of an entry, it won't change or update an entry. \",\n                    \"is_public\": \"If checked, the widget is available for every organization to use. \",\n                    \"available_to\": \"Organization sid, separated by ',', \",\n                    \"metadata_labels\": \"Variable to provide through the metadata. Separated by comma.\",\n                    \"data\": \"Example data to store, \",\n                    \"default_data\": \"Default data can be carried over. Leave blank('', every [] should be write as '') to copy everything, \",\n                    \"is_archived\": \"If checked, widget is not available for use. Check this to hide/delete this widget. \"\n                }\n            },\n            \"data\": \"Test\",\n            \"order\": 1,\n            \"comments\": 0,\n            \"completed_by\": null,\n            \"completed_at\": \"2024-11-04T06:14:53.626481Z\",\n            \"is_archived\": false,\n            \"date_updated\": \"2024-11-04T06:14:53.626417Z\",\n            \"date_created\": \"2024-11-04T06:14:53.626429Z\",\n            \"updated_by\": {\n                \"sid\": \"knqt0a40xffmrwBGLQV\",\n                \"name\": \"Test Labii\"\n            },\n            \"change_permission\": true,\n            \"help_text\": {\n                \"sid\": \"Static encrypted identifier. \",\n                \"widget\": \"The widget to use. Learn more about all widgets <a href='https://docs.labii.com/widgets/summary/section-type-widgets' target='_blank'>here</a>.<br>If a widget is not available, enable it at <a href='/list/settings/widgets/' target='_blank'>here</a>.\",\n                \"description\": \"Description of the Section. Include the definition, special formatting, and all other necessary information for others to fill.\",\n                \"description_placement\": \"The placement of the description. \",\n                \"order\": \"The order to display the section. Integer only. Use it to control the order of sections. Leave it empty to add the section to the bottom.\",\n                \"data\": \"Default data to be loaded. The default data should be updated as follows:<br>1. Use an existing record or create a new one.<br>2. Find the section with the current name and widget under the <b>Sections</b> tab.<br>3. Click the Edit button to configure the section.<br>4. Click the Actions button and then choose <b>Save as table default</b> from the drop-down menu that appears.\",\n                \"price\": \"The price of the widget used, in US Dollar. \",\n                \"is_archived\": \"If checked, data is not available for use. Check this to hide/delete this section.\"\n            }\n        }\n    ],\n    \"is_template\": false,\n    \"is_archived\": false,\n    \"is_locked\": false,\n    \"metadata\": [],\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-04T06:14:53.656290Z\",\n    \"owner\": {\n        \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_created\": \"2024-11-04T05:25:25.999592Z\",\n    \"data\": null,\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"rid\": \"The Row ID. Unique to each table. Used to regenerate uid, \",\n        \"uid\": \"The Unique ID. Generated from [Unique Code][rid] in default. If 'should_support_custom_uid' is set to true, you should supply your own UID. Ensure that your UID is unique; providing an existing UID will result in replacing the corresponding record.\",\n        \"name\": \"- Set the metadata of <b>FIELD_NAME_RENAME=title</b> to change the 'Name' to 'Title'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>.<br>- This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n        \"description\": \"- Set the metadata of <b>FIELD_DESCRIPTION_RENAME=overview</b> to change the 'Description' to 'Overview'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>.\",\n        \"metadata\": \"Use <b>metadata</b> to store the value that does not necessarily exist for all records in a table. <br>Use <b>column</b> to store the data that should exist for all records. \",\n        \"is_template\": \"If this box is checked, this record will serve as a template, so that other records can be created using the same information. \",\n        \"is_locked\": \"If checked, data is not available for edit. Once signed, it will be locked. \",\n        \"is_archived\": \"If checked, data is not available for use.\",\n        \"price\": \"The price of the widget used, in US Dollar. \",\n        \"projects\": \"Projects associated with this record. You will only see the projects that are available to you. Please contact your administrator if you are unable to view any particular project. \"\n    }\n}"}],"_postman_id":"b92a2bea-de74-48b0-84c5-d74cc8fb88e1"},{"name":"Edit Record","event":[{"listen":"prerequest","script":{"id":"631a51e5-2c03-440a-b1b4-2733cd93054a","exec":["// update currentDate","const currentDate = js.getCurrentDate();","pm.environment.set(\"currentDate\", currentDate);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"3c085f84-93f7-45d9-b221-1e73cdecc4e5","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 500ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});","","","pm.test(\"Response schema for updated row detail has the correct structure and data types\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.id).to.be.a('number');","  pm.expect(responseData.name).to.be.a('string');","  pm.expect(responseData.description).to.be.a('string');","  pm.expect(responseData.created_at).to.be.a('string');","  pm.expect(responseData.updated_at).to.be.a('string');","});",""],"type":"text/javascript","packages":{}}}],"id":"c3882c48-050e-4421-993b-9de1599ad498","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Record {{currentDate}}\",\n    \"description\": \"Test record edited by postman.\",\n    \"projects\": [{\n        \"sid\": \"{{project_sid_test_edit}}\",\n        \"name\": \"Sample Project\"\n    }],\n    \"{{column_sid_date}}\": \"{{currentDate}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/row/detail/{{record_sid}}/","description":"<p>This endpoint makes an HTTP PATCH request to update the details of a specific row in a table. The request body should contain the updated information for the row, including the name, description, projects, and a specific column value.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p><code>name</code> (string): The updated name for the record.</p>\n</li>\n<li><p><code>description</code> (string): The new description for the record.</p>\n</li>\n<li><p><code>projects</code> (array): An array of projects with their respective IDs and names.</p>\n<ul>\n<li><p><code>sid</code> (string): The ID of the project.</p>\n</li>\n<li><p><code>name</code> (string): The name of the project.</p>\n</li>\n</ul>\n</li>\n<li><p><code>{{column_sid_date}}</code> (string): The updated value for a specific column, which is determined by the <code>{{column_sid_date}}</code> placeholder.</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response will contain the updated details of the row in the table.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","row","detail","{{record_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"13456f66-6db7-4ce6-9dbb-87070f0e31f7","name":"Edit Record","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Record {{currentDate}}\",\n    \"description\": \"Test record edited by postman.\",\n    \"projects\": [{\n        \"sid\": \"{{project_sid_test_edit}}\",\n        \"name\": \"Sample Project\"\n    }],\n    \"{{column_sid_date}}\": \"{{currentDate}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/row/detail/{{record_sid}}/"},"_postman_previewlanguage":"JSON","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"xADG0a40xa5bczEJOTY49\",\n    \"uid\": \"TEST1\",\n    \"version\": {\n        \"version\": 3,\n        \"sid\": \"58ad0a40x347df7bglqvAF\",\n        \"name\": \"TEST1: Test Record 2024-11-03 (v3)\"\n    },\n    \"table\": {\n        \"sid\": \"hknq0a40x1254ejotyDINS\",\n        \"name\": \"tests\"\n    },\n    \"projects\": [\n        {\n            \"sid\": \"ilor0a40x2cd3kpuzEJOT\",\n            \"name\": \"Sample Project\"\n        }\n    ],\n    \"name\": \"Test Record 2024-11-03\",\n    \"description\": \"Test record edited by postman.\",\n    \"column_set\": [\n        {\n            \"column\": {\n                \"sid\": \"TWZ30a40x563aaV16afkpu\",\n                \"name\": \"date\",\n                \"name_system\": \"\",\n                \"description\": \"\",\n                \"widget\": {\n                    \"sid\": \"GJMP0a40x1dINSX38ch\",\n                    \"name\": \"Date\",\n                    \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/datetime/date\"\n                },\n                \"configuration\": null,\n                \"permission\": null,\n                \"default_data\": null,\n                \"order\": 1,\n                \"is_required\": false,\n                \"should_hide_in_form_view\": false,\n                \"should_hide_in_list_view\": false,\n                \"max_width\": null,\n                \"metadata\": [],\n                \"table\": {\n                    \"sid\": \"hknq0a40x1254ejotyDINS\",\n                    \"name\": \"tests\"\n                },\n                \"is_archived\": false,\n                \"date_created\": \"2024-11-04T05:51:12.206366Z\",\n                \"change_permission\": false,\n                \"help_text\": {\n                    \"sid\": \"Static encrypted identifier. \",\n                    \"name\": \"Letters and number only.\",\n                    \"name_system\": \"The name to identify the column for a widget. \",\n                    \"description\": \"The description of the column. Include the definition, special formatting, and all other necessary information to help your coworker to fill.\",\n                    \"widget\": \"The widget to use, or the type of data. Default to <b>Text</b>. The configuration data will be erased if the widget is changed.<br>You can only select widgets that have been installed. You can find a list of installed widgets <a href='/list/settings/organizationwidgets/' target='_blank'>here</a>. Widgets that aren't available can be enabled <a href='/list/settings/widgets/' target='_blank'>here</a>. <br><b>Group columns with Subtitle widget</b>. When you use the Subtitle widget, the columns right after will be grouped and displayed separately in both form and columns views. Learn more about the widgets <a href='https://docs.labii.com/widgets/summary/column-type-widgets' target='_blank'>here</a>.\",\n                    \"configuration\": \"The configuration of the column. Use it to provide addtional parameters to the column.\",\n                    \"permission\": \"The column's supplementary permission settings can be utilized to offer additional control over its permissions. \",\n                    \"default_data\": \"The default data of the column. <br>- For the Boolean field, the default value is 'false'. <br>- For Date, use YYYY-MM-DD. <br>- For Select/MultiSelect, use {'sid':'xxx', 'name':'xxx'}. <br>- For ForeignKey/ForeignKeys, use {'sid':'xxx', 'name':'xxx'}. <br>The default value is different for different widget, learn more at <a href='https://docs.labii.com/widgets/column-widgets' target='_blank'>https://docs.labii.com/widgets/column-widgets</a>.<br>This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n                    \"order\": \"The order to display the column. Integer only. <br>Use it to control the order of columns in the list view (from left to right).\",\n                    \"is_required\": \"If checked, the value of the column is required in form submitting.\",\n                    \"should_hide_in_form_view\": \"If selected, the column will not be visible in the form view but will remain accessible in the detail view. Utilize this option to manage column visibility in the form view.\",\n                    \"should_hide_in_list_view\": \"If enabled, the column will not be shown in the list view but will remain accessible in the detail view. Employ this feature to regulate the display of columns in the list view.\",\n                    \"max_width\": \"The maximum width of the column in pixels. You can use it to limit the width of certain columns.\",\n                    \"metadata\": \"Use <b>metadata</b> to provide additional information to the column.\",\n                    \"is_archived\": \"If checked, the item and relevant data will be archived. Archived item is not available for use.\"\n                }\n            },\n            \"data\": \"2024-11-03\",\n            \"sid\": \"FILO0a40x17e0aHMRW27bg\"\n        }\n    ],\n    \"section_set\": [\n        {\n            \"sid\": \"NQTW0a40x48686PUZ50ejo\",\n            \"table\": {\n                \"sid\": \"hknq0a40x1254ejotyDINS\",\n                \"name\": \"tests\"\n            },\n            \"row\": {\n                \"sid\": \"xADG0a40xa5bczEJOTY49\",\n                \"name\": \"TEST1: Test Record 2024-11-03\"\n            },\n            \"name\": \"Test Section 2024-11-03\",\n            \"description\": \"Test section created by postname\",\n            \"description_placement\": \"Top\",\n            \"widget\": {\n                \"sid\": \"ehkn0a40x1glqvAFKP\",\n                \"icon\": \"text_fields\",\n                \"name\": \"Plain Text\",\n                \"category\": \"Office\",\n                \"sub_category\": \"Text, Word, Docs\",\n                \"company\": \"Labii Inc.\",\n                \"notes\": \"A simple and lightweight text box that supports markdown\",\n                \"description\": \"The Plain Text widget serves as a basic text input tool that allows users to enter and edit text content. It provides a convenient and familiar interface similar to a typical text box, enabling users to input or modify plain text with markdown formatting support. This widget offers a minimalistic design and focuses on simplicity, making it ideal for various use cases.\",\n                \"documentation_url\": \"https://docs.labii.com/widgets/section-widgets/text/plain-text\",\n                \"screenshot_url\": \"/media/widgets/section-plain-text.webp\",\n                \"type\": \"Section\",\n                \"constructor\": \"object\",\n                \"related_to\": \"CKEditor Classic, CKEditor Balloon, CKEditor Document, CKEditor Restricted, Code Editor\",\n                \"version\": \"3.0.0\",\n                \"release_date\": \"2023-05-27\",\n                \"order\": \"2.50\",\n                \"subscription_price\": \"Free\",\n                \"ppu_price\": \"0.00\",\n                \"allow_multiple\": true,\n                \"is_readonly\": false,\n                \"metadata_labels\": \"\",\n                \"data\": {\n                    \"markdown\": \"\",\n                    \"prompt_template\": \"\"\n                },\n                \"default_data\": \"\",\n                \"change_permission\": false,\n                \"help_text\": {\n                    \"sid\": \"Static encrypted identifier. \",\n                    \"icon\": \"Icon of the widget. Choose one at https://material.io/icons/. Replace blanks with '_'. For example: 'account_circle'\",\n                    \"type\": \"Type of the widget, \",\n                    \"category\": \"Category of the widget. \",\n                    \"sub_category\": \"Sub Category of the widget.\",\n                    \"order\": \"The order to display the widget. Integer only. <br>Use it to control the order of widget. \",\n                    \"company\": \"The company released the widget.\",\n                    \"notes\": \"Short Description.\",\n                    \"description\": \"Detail description of the widget. Provide enough information for other users to understand.\",\n                    \"documentation_url\": \"The documentation url\",\n                    \"screenshot_url\": \"The screenshot url\",\n                    \"constructor\": \"Type of data to store, for Column widget only. \",\n                    \"uischema\": \"UI Schema to use, for Column widget only, select to use the field in the form. If not selected, the Column will not added to the form. \",\n                    \"version\": \"Ther version of the widget release.\",\n                    \"release_date\": \"The date that the version released. \",\n                    \"subscription_price\": \"The price of the widget per use for Subscription Option, in US Dollar.\",\n                    \"ppu_price\": \"The price of the widget per use for PPU Option, in US Dollar.\",\n                    \"allow_multiple\": \"If checked, the same widget can be added to same record multiple times. \",\n                    \"is_readonly\": \"Readonly widget only displays the data of an entry, it won't change or update an entry. \",\n                    \"is_public\": \"If checked, the widget is available for every organization to use. \",\n                    \"available_to\": \"Organization sid, separated by ',', \",\n                    \"metadata_labels\": \"Variable to provide through the metadata. Separated by comma.\",\n                    \"data\": \"Example data to store, \",\n                    \"default_data\": \"Default data can be carried over. Leave blank('', every [] should be write as '') to copy everything, \",\n                    \"is_archived\": \"If checked, widget is not available for use. Check this to hide/delete this widget. \"\n                }\n            },\n            \"data\": \"Test\",\n            \"order\": 1,\n            \"comments\": 0,\n            \"completed_by\": null,\n            \"completed_at\": \"2024-11-04T06:14:53.626481Z\",\n            \"is_archived\": false,\n            \"date_updated\": \"2024-11-04T06:14:53.626417Z\",\n            \"date_created\": \"2024-11-04T06:14:53.626429Z\",\n            \"updated_by\": {\n                \"sid\": \"knqt0a40xffmrwBGLQV\",\n                \"name\": \"Test Labii\"\n            },\n            \"change_permission\": true,\n            \"help_text\": {\n                \"sid\": \"Static encrypted identifier. \",\n                \"widget\": \"The widget to use. Learn more about all widgets <a href='https://docs.labii.com/widgets/summary/section-type-widgets' target='_blank'>here</a>.<br>If a widget is not available, enable it at <a href='/list/settings/widgets/' target='_blank'>here</a>.\",\n                \"description\": \"Description of the Section. Include the definition, special formatting, and all other necessary information for others to fill.\",\n                \"description_placement\": \"The placement of the description. \",\n                \"order\": \"The order to display the section. Integer only. Use it to control the order of sections. Leave it empty to add the section to the bottom.\",\n                \"data\": \"Default data to be loaded. The default data should be updated as follows:<br>1. Use an existing record or create a new one.<br>2. Find the section with the current name and widget under the <b>Sections</b> tab.<br>3. Click the Edit button to configure the section.<br>4. Click the Actions button and then choose <b>Save as table default</b> from the drop-down menu that appears.\",\n                \"price\": \"The price of the widget used, in US Dollar. \",\n                \"is_archived\": \"If checked, data is not available for use. Check this to hide/delete this section.\"\n            }\n        }\n    ],\n    \"is_template\": false,\n    \"is_archived\": false,\n    \"is_locked\": false,\n    \"metadata\": [],\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-04T06:14:53.656290Z\",\n    \"owner\": {\n        \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_created\": \"2024-11-04T05:25:25.999592Z\",\n    \"data\": null,\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"rid\": \"The Row ID. Unique to each table. Used to regenerate uid, \",\n        \"uid\": \"The Unique ID. Generated from [Unique Code][rid] in default. If 'should_support_custom_uid' is set to true, you should supply your own UID. Ensure that your UID is unique; providing an existing UID will result in replacing the corresponding record.\",\n        \"name\": \"- Set the metadata of <b>FIELD_NAME_RENAME=title</b> to change the 'Name' to 'Title'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>.<br>- This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n        \"description\": \"- Set the metadata of <b>FIELD_DESCRIPTION_RENAME=overview</b> to change the 'Description' to 'Overview'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>.\",\n        \"metadata\": \"Use <b>metadata</b> to store the value that does not necessarily exist for all records in a table. <br>Use <b>column</b> to store the data that should exist for all records. \",\n        \"is_template\": \"If this box is checked, this record will serve as a template, so that other records can be created using the same information. \",\n        \"is_locked\": \"If checked, data is not available for edit. Once signed, it will be locked. \",\n        \"is_archived\": \"If checked, data is not available for use.\",\n        \"price\": \"The price of the widget used, in US Dollar. \",\n        \"projects\": \"Projects associated with this record. You will only see the projects that are available to you. Please contact your administrator if you are unable to view any particular project. \"\n    }\n}"}],"_postman_id":"c3882c48-050e-4421-993b-9de1599ad498"}],"id":"06b6b79a-a32d-4ab0-a82c-c0ee45aefde3","description":"<p>The Labii Record API is an essential tool for managing records within a database, offering users a comprehensive suite of functionalities. With this API, users can retrieve a list of existing records, create new records, add new record cells and sections, access detailed information about specific records, and edit records as needed. This API streamlines the process of record management, making it easy to organize and manipulate data efficiently to meet various business requirements.</p>\n","_postman_id":"06b6b79a-a32d-4ab0-a82c-c0ee45aefde3","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Version","item":[{"name":"Get Version List","event":[{"listen":"test","script":{"id":"1d8255e7-cec0-4de3-bd82-4991a1c794f2","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"version_sid\", jsonData.results[0].sid);","","","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the structure and data types of the response schema\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.page_size).to.be.a('number');","    pm.expect(responseData.page_number).to.be.a('number');","    pm.expect(responseData.page_count).to.be.a('number');","    pm.expect(responseData.count).to.be.a('number');","    pm.expect(responseData.next).to.be.null;","    pm.expect(responseData.previous).to.be.null;","    pm.expect(responseData.add_permission).to.be.true;","    ","    responseData.results.forEach(function(result) {","        pm.expect(result).to.be.an('object');","        pm.expect(result.sid).to.be.a('string');","        pm.expect(result.name).to.be.a('string');","        pm.expect(result.hash).to.be.a('string');","        pm.expect(result.previousHash).to.be.a('string');","        pm.expect(result.version).to.be.a('number');","        pm.expect(result.activity_message).to.be.a('string');","        pm.expect(result.commit).to.be.null;","        pm.expect(result.is_valid).to.be.true;","        ","        pm.expect(result.row).to.be.an('object');","        pm.expect(result.row.sid).to.be.a('string');","        pm.expect(result.row.name).to.be.a('string');","        ","        pm.expect(result.updated_by).to.be.an('object');","        pm.expect(result.updated_by.sid).to.be.a('string');","        pm.expect(result.updated_by.name).to.be.a('string');","        ","        pm.expect(result.date_created).to.be.a('string');","        pm.expect(result.change_permission).to.be.true;","    });","});","","","pm.test(\"Results array is present and contains the expected number of elements\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.results).to.exist.and.to.be.an('array');","    pm.expect(responseData.results).to.have.lengthOf(1);","});","","","pm.test(\"Validate the fields in the 'results' array\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array').and.to.have.lengthOf.at.least(1, \"Results array should not be empty\");","","    responseData.results.forEach(function(result) {","        pm.expect(result.sid).to.be.a('string', \"sid should be a string\");","        pm.expect(result.name).to.be.a('string', \"name should be a string\");","        pm.expect(result.hash).to.exist;","        pm.expect(result.version).to.exist;","        pm.expect(result.activity_message).to.exist;","        pm.expect(result.is_valid).to.exist;","        pm.expect(result.date_created).to.exist;","        pm.expect(result.change_permission).to.exist;","    });","});","",""],"type":"text/javascript","packages":{}}}],"id":"8bf57300-2d4f-4dde-9aac-ec23d6cad9c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/version/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","description":"<p>This endpoint retrieves a list of table versions for a specific organization and row, based on the provided record SID.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: https://www.labii.dev/tables/version/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response will include the following fields:</p>\n<ul>\n<li><p><code>page_size</code> (number): The size of the page</p>\n</li>\n<li><p><code>page_number</code> (number): The page number</p>\n</li>\n<li><p><code>page_count</code> (number): The total number of pages</p>\n</li>\n<li><p><code>count</code> (number): The total count of versions</p>\n</li>\n<li><p><code>next</code> (string): URL for the next page</p>\n</li>\n<li><p><code>previous</code> (string): URL for the previous page</p>\n</li>\n<li><p><code>add_permission</code> (boolean): Indicates if the user has permission to add versions</p>\n</li>\n<li><p><code>results</code> (array): An array of version objects, each containing the following fields:</p>\n<ul>\n<li><p><code>sid</code> (string): The version ID</p>\n</li>\n<li><p><code>name</code> (string): The version name</p>\n</li>\n<li><p><code>hash</code> (string): The hash of the version</p>\n</li>\n<li><p><code>previousHash</code> (string): The hash of the previous version</p>\n</li>\n<li><p><code>version</code> (number): The version number</p>\n</li>\n<li><p><code>activity_message</code> (string): The activity message</p>\n</li>\n<li><p><code>commit</code> (string): The commit details</p>\n</li>\n<li><p><code>is_valid</code> (boolean): Indicates if the version is valid</p>\n</li>\n<li><p><code>row</code> (object): The row details, including <code>sid</code> and <code>name</code></p>\n</li>\n<li><p><code>updated_by</code> (object): The user who updated the version, including <code>sid</code> and <code>name</code></p>\n</li>\n<li><p><code>date_created</code> (string): The date of creation</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates if the user has permission to change the version</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","version","list","organization","{{organization_sid_test_edit}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"row__sid","value":"{{record_sid}}"}],"variable":[]}},"response":[{"id":"83c9f218-5bb6-4517-b88b-2ecc1ea4fdea","name":"Get Version List","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://www.labii.dev/tables/version/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","host":["https://www.labii.dev"],"path":["tables","version","list","organization","{{organization_sid_test_edit}}","list",""],"query":[{"key":"row__sid","value":"{{record_sid}}","sortOrder":0}]}},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 06:37:28 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"2195","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 4,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": false,\n    \"results\": [\n        {\n            \"sid\": \"69be0a40x347e08chmrwBG\",\n            \"name\": \"TEST1: Test Record 2024-11-03 (v4)\",\n            \"hash\": \"WlZMV2ZjNDFjMWM5YTkyYjI1OGZhY2JhNjI2M2M1N2JlOTYxVlJCQQ__\",\n            \"previousHash\": \"eTJNbzc1NmFhOWUyMDFhZmYzNzRjYjc0YjhjMjU4YzY3NDg5Z0tGOQ__\",\n            \"version\": 4,\n            \"activity_message\": \"Updated description from None to '\\\"Test record edited by postman.\\\"'\",\n            \"commit\": null,\n            \"is_valid\": true,\n            \"row\": {\n                \"sid\": \"xADG0a40xa5bczEJOTY49\",\n                \"name\": \"TEST1: Test Record 2024-11-03\"\n            },\n            \"updated_by\": {\n                \"sid\": \"knqt0a40xffmrwBGLQV\",\n                \"name\": \"Test Labii\"\n            },\n            \"date_created\": \"2024-11-04T06:24:41.237674Z\",\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"58ad0a40x347df7bglqvAF\",\n            \"name\": \"TEST1: Test Record 2024-11-03 (v3)\",\n            \"hash\": \"eTJNbzc1NmFhOWUyMDFhZmYzNzRjYjc0YjhjMjU4YzY3NDg5Z0tGOQ__\",\n            \"previousHash\": \"MXd3YWU5ZDM5MzhlZjZmYjkyZjYxNmRlYWFhMWVmYzUxMDNiVU1aSw__\",\n            \"version\": 3,\n            \"activity_message\": \"Added Section (Test Section 2024-11-03)\",\n            \"commit\": null,\n            \"is_valid\": true,\n            \"row\": {\n                \"sid\": \"xADG0a40xa5bczEJOTY49\",\n                \"name\": \"TEST1: Test Record 2024-11-03\"\n            },\n            \"updated_by\": {\n                \"sid\": \"knqt0a40xffmrwBGLQV\",\n                \"name\": \"Test Labii\"\n            },\n            \"date_created\": \"2024-11-04T06:14:53.774034Z\",\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"470c0a40x347de6afkpuzE\",\n            \"name\": \"TEST1: Test Record 2024-11-03 (v2)\",\n            \"hash\": \"MXd3YWU5ZDM5MzhlZjZmYjkyZjYxNmRlYWFhMWVmYzUxMDNiVU1aSw__\",\n            \"previousHash\": \"ODlTVDMyODQxMThjYWQ2YzdjNDNiMTM5YmIyZTk3MDQ4ZjEySUZmbA__\",\n            \"version\": 2,\n            \"activity_message\": \"Added Column ('Date')\",\n            \"commit\": null,\n            \"is_valid\": true,\n            \"row\": {\n                \"sid\": \"xADG0a40xa5bczEJOTY49\",\n                \"name\": \"TEST1: Test Record 2024-11-03\"\n            },\n            \"updated_by\": {\n                \"sid\": \"knqt0a40xffmrwBGLQV\",\n                \"name\": \"Test Labii\"\n            },\n            \"date_created\": \"2024-11-04T06:06:03.648028Z\",\n            \"change_permission\": true\n        },\n        {\n            \"sid\": \"369b0a40x347dd50ejotyD\",\n            \"name\": \"TEST1: Test Record 2024-11-03 (v1)\",\n            \"hash\": \"ODlTVDMyODQxMThjYWQ2YzdjNDNiMTM5YmIyZTk3MDQ4ZjEySUZmbA__\",\n            \"previousHash\": \"0\",\n            \"version\": 1,\n            \"activity_message\": \"Created Test (Test Record 2024-11-03)\",\n            \"commit\": null,\n            \"is_valid\": true,\n            \"row\": {\n                \"sid\": \"xADG0a40xa5bczEJOTY49\",\n                \"name\": \"TEST1: Test Record 2024-11-03\"\n            },\n            \"updated_by\": {\n                \"sid\": \"knqt0a40xffmrwBGLQV\",\n                \"name\": \"Test Labii\"\n            },\n            \"date_created\": \"2024-11-04T05:25:26.076337Z\",\n            \"change_permission\": true\n        }\n    ]\n}"}],"_postman_id":"8bf57300-2d4f-4dde-9aac-ec23d6cad9c4"},{"name":"Get Version Detail","event":[{"listen":"test","script":{"id":"4f857d27-978c-41dd-b80a-051b67fa7e1c","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 500ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});","","","pm.test(\"Validate the schema of the response body\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.version).to.be.a('string');","    pm.expect(responseData.details).to.be.an('object');","    pm.expect(responseData.details.table_name).to.be.a('string');","    pm.expect(responseData.details.columns).to.be.an('array');","    pm.expect(responseData.details.columns).to.not.be.empty;","    responseData.details.columns.forEach(column => {","        pm.expect(column.name).to.be.a('string');","        pm.expect(column.data_type).to.be.a('string');","        pm.expect(column.nullable).to.be.a('boolean');","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"14e3b0b5-2625-47b1-a505-53f50fb35fc3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/version/detail/{{version_sid}}/","description":"<p>This endpoint retrieves the details of a specific version of tables. The request should include the version_sid path parameter to identify the version.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>This request does not require a request body.</p>\n<h3 id=\"response-body\">Response Body</h3>\n<ul>\n<li><p><code>id</code>: The unique identifier for the table version.</p>\n</li>\n<li><p><code>name</code>: The name of the table version.</p>\n</li>\n<li><p><code>description</code>: The description of the table version.</p>\n</li>\n<li><p><code>created_at</code>: The timestamp when the table version was created.</p>\n</li>\n<li><p><code>updated_at</code>: The timestamp when the table version was last updated.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","version","detail","{{version_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"dd0df2ca-6a0f-40df-84bd-8ba7545301c8","name":"Get Version Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/version/detail/{{version_sid}}/"},"_postman_previewlanguage":"JSON","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"69be0a40x347e08chmrwBG\",\n    \"hash\": \"WlZMV2ZjNDFjMWM5YTkyYjI1OGZhY2JhNjI2M2M1N2JlOTYxVlJCQQ__\",\n    \"previousHash\": \"eTJNbzc1NmFhOWUyMDFhZmYzNzRjYjc0YjhjMjU4YzY3NDg5Z0tGOQ__\",\n    \"version\": 4,\n    \"data\": {\n        \"sid\": \"xADG0a40xa5bczEJOTY49\",\n        \"uid\": \"TEST1\",\n        \"version\": {\n            \"version\": 4,\n            \"sid\": \"69be0a40x347e08chmrwBG\",\n            \"name\": \"TEST1: Test Record 2024-11-03 (v4)\"\n        },\n        \"table\": {\n            \"sid\": \"hknq0a40x1254ejotyDINS\",\n            \"name\": \"tests\"\n        },\n        \"projects\": [\n            {\n                \"sid\": \"ilor0a40x2cd3kpuzEJOT\",\n                \"name\": \"Sample Project\"\n            }\n        ],\n        \"name\": \"Test Record 2024-11-03\",\n        \"description\": \"Test record edited by postman.\",\n        \"column_set\": [\n            {\n                \"column\": {\n                    \"sid\": \"TWZ30a40x563aaV16afkpu\",\n                    \"name\": \"date\",\n                    \"name_system\": \"\",\n                    \"description\": \"\",\n                    \"widget\": {\n                        \"sid\": \"GJMP0a40x1dINSX38ch\",\n                        \"name\": \"Date\",\n                        \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/datetime/date\"\n                    },\n                    \"configuration\": null,\n                    \"permission\": null,\n                    \"default_data\": null,\n                    \"order\": 1,\n                    \"is_required\": false,\n                    \"should_hide_in_form_view\": false,\n                    \"should_hide_in_list_view\": false,\n                    \"max_width\": null,\n                    \"metadata\": [],\n                    \"table\": {\n                        \"sid\": \"hknq0a40x1254ejotyDINS\",\n                        \"name\": \"tests\"\n                    },\n                    \"is_archived\": false,\n                    \"date_created\": \"2024-11-04T05:51:12.206366Z\",\n                    \"change_permission\": false,\n                    \"help_text\": {\n                        \"sid\": \"Static encrypted identifier. \",\n                        \"name\": \"Letters and number only.\",\n                        \"name_system\": \"The name to identify the column for a widget. \",\n                        \"description\": \"The description of the column. Include the definition, special formatting, and all other necessary information to help your coworker to fill.\",\n                        \"widget\": \"The widget to use, or the type of data. Default to <b>Text</b>. The configuration data will be erased if the widget is changed.<br>You can only select widgets that have been installed. You can find a list of installed widgets <a href='/list/settings/organizationwidgets/' target='_blank'>here</a>. Widgets that aren't available can be enabled <a href='/list/settings/widgets/' target='_blank'>here</a>. <br><b>Group columns with Subtitle widget</b>. When you use the Subtitle widget, the columns right after will be grouped and displayed separately in both form and columns views. Learn more about the widgets <a href='https://docs.labii.com/widgets/summary/column-type-widgets' target='_blank'>here</a>.\",\n                        \"configuration\": \"The configuration of the column. Use it to provide addtional parameters to the column.\",\n                        \"permission\": \"The column's supplementary permission settings can be utilized to offer additional control over its permissions. \",\n                        \"default_data\": \"The default data of the column. <br>- For the Boolean field, the default value is 'false'. <br>- For Date, use YYYY-MM-DD. <br>- For Select/MultiSelect, use {'sid':'xxx', 'name':'xxx'}. <br>- For ForeignKey/ForeignKeys, use {'sid':'xxx', 'name':'xxx'}. <br>The default value is different for different widget, learn more at <a href='https://docs.labii.com/widgets/column-widgets' target='_blank'>https://docs.labii.com/widgets/column-widgets</a>.<br>This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n                        \"order\": \"The order to display the column. Integer only. <br>Use it to control the order of columns in the list view (from left to right).\",\n                        \"is_required\": \"If checked, the value of the column is required in form submitting.\",\n                        \"should_hide_in_form_view\": \"If selected, the column will not be visible in the form view but will remain accessible in the detail view. Utilize this option to manage column visibility in the form view.\",\n                        \"should_hide_in_list_view\": \"If enabled, the column will not be shown in the list view but will remain accessible in the detail view. Employ this feature to regulate the display of columns in the list view.\",\n                        \"max_width\": \"The maximum width of the column in pixels. You can use it to limit the width of certain columns.\",\n                        \"metadata\": \"Use <b>metadata</b> to provide additional information to the column.\",\n                        \"is_archived\": \"If checked, the item and relevant data will be archived. Archived item is not available for use.\"\n                    }\n                },\n                \"data\": \"2024-11-03\",\n                \"sid\": \"FILO0a40x17e0aHMRW27bg\"\n            }\n        ],\n        \"section_set\": [\n            {\n                \"sid\": \"NQTW0a40x48686PUZ50ejo\",\n                \"table\": {\n                    \"sid\": \"hknq0a40x1254ejotyDINS\",\n                    \"name\": \"tests\"\n                },\n                \"row\": {\n                    \"sid\": \"xADG0a40xa5bczEJOTY49\",\n                    \"name\": \"TEST1: Test Record 2024-11-03\"\n                },\n                \"name\": \"Test Section 2024-11-03\",\n                \"description\": \"Test section created by postname\",\n                \"description_placement\": \"Top\",\n                \"widget\": {\n                    \"sid\": \"ehkn0a40x1glqvAFKP\",\n                    \"icon\": \"text_fields\",\n                    \"name\": \"Plain Text\",\n                    \"category\": \"Office\",\n                    \"sub_category\": \"Text, Word, Docs\",\n                    \"company\": \"Labii Inc.\",\n                    \"notes\": \"A simple and lightweight text box that supports markdown\",\n                    \"description\": \"The Plain Text widget serves as a basic text input tool that allows users to enter and edit text content. It provides a convenient and familiar interface similar to a typical text box, enabling users to input or modify plain text with markdown formatting support. This widget offers a minimalistic design and focuses on simplicity, making it ideal for various use cases.\",\n                    \"documentation_url\": \"https://docs.labii.com/widgets/section-widgets/text/plain-text\",\n                    \"screenshot_url\": \"/media/widgets/section-plain-text.webp\",\n                    \"type\": \"Section\",\n                    \"constructor\": \"object\",\n                    \"related_to\": \"CKEditor Classic, CKEditor Balloon, CKEditor Document, CKEditor Restricted, Code Editor\",\n                    \"version\": \"3.0.0\",\n                    \"release_date\": \"2023-05-27\",\n                    \"order\": \"2.50\",\n                    \"subscription_price\": \"Free\",\n                    \"ppu_price\": \"0.00\",\n                    \"allow_multiple\": true,\n                    \"is_readonly\": false,\n                    \"metadata_labels\": \"\",\n                    \"data\": {\n                        \"markdown\": \"\",\n                        \"prompt_template\": \"\"\n                    },\n                    \"default_data\": \"\",\n                    \"change_permission\": false,\n                    \"help_text\": {\n                        \"sid\": \"Static encrypted identifier. \",\n                        \"icon\": \"Icon of the widget. Choose one at https://material.io/icons/. Replace blanks with '_'. For example: 'account_circle'\",\n                        \"type\": \"Type of the widget, \",\n                        \"category\": \"Category of the widget. \",\n                        \"sub_category\": \"Sub Category of the widget.\",\n                        \"order\": \"The order to display the widget. Integer only. <br>Use it to control the order of widget. \",\n                        \"company\": \"The company released the widget.\",\n                        \"notes\": \"Short Description.\",\n                        \"description\": \"Detail description of the widget. Provide enough information for other users to understand.\",\n                        \"documentation_url\": \"The documentation url\",\n                        \"screenshot_url\": \"The screenshot url\",\n                        \"constructor\": \"Type of data to store, for Column widget only. \",\n                        \"uischema\": \"UI Schema to use, for Column widget only, select to use the field in the form. If not selected, the Column will not added to the form. \",\n                        \"version\": \"Ther version of the widget release.\",\n                        \"release_date\": \"The date that the version released. \",\n                        \"subscription_price\": \"The price of the widget per use for Subscription Option, in US Dollar.\",\n                        \"ppu_price\": \"The price of the widget per use for PPU Option, in US Dollar.\",\n                        \"allow_multiple\": \"If checked, the same widget can be added to same record multiple times. \",\n                        \"is_readonly\": \"Readonly widget only displays the data of an entry, it won't change or update an entry. \",\n                        \"is_public\": \"If checked, the widget is available for every organization to use. \",\n                        \"available_to\": \"Organization sid, separated by ',', \",\n                        \"metadata_labels\": \"Variable to provide through the metadata. Separated by comma.\",\n                        \"data\": \"Example data to store, \",\n                        \"default_data\": \"Default data can be carried over. Leave blank('', every [] should be write as '') to copy everything, \",\n                        \"is_archived\": \"If checked, widget is not available for use. Check this to hide/delete this widget. \"\n                    }\n                },\n                \"data\": \"Test\",\n                \"order\": 1,\n                \"comments\": 0,\n                \"completed_by\": null,\n                \"completed_at\": \"2024-11-04T06:14:53.626481Z\",\n                \"is_archived\": false,\n                \"date_updated\": \"2024-11-04T06:14:53.626417Z\",\n                \"date_created\": \"2024-11-04T06:14:53.626429Z\",\n                \"updated_by\": {\n                    \"sid\": \"knqt0a40xffmrwBGLQV\",\n                    \"name\": \"Test Labii\"\n                },\n                \"change_permission\": false,\n                \"help_text\": {\n                    \"sid\": \"Static encrypted identifier. \",\n                    \"widget\": \"The widget to use. Learn more about all widgets <a href='https://docs.labii.com/widgets/summary/section-type-widgets' target='_blank'>here</a>.<br>If a widget is not available, enable it at <a href='/list/settings/widgets/' target='_blank'>here</a>.\",\n                    \"description\": \"Description of the Section. Include the definition, special formatting, and all other necessary information for others to fill.\",\n                    \"description_placement\": \"The placement of the description. \",\n                    \"order\": \"The order to display the section. Integer only. Use it to control the order of sections. Leave it empty to add the section to the bottom.\",\n                    \"data\": \"Default data to be loaded. The default data should be updated as follows:<br>1. Use an existing record or create a new one.<br>2. Find the section with the current name and widget under the <b>Sections</b> tab.<br>3. Click the Edit button to configure the section.<br>4. Click the Actions button and then choose <b>Save as table default</b> from the drop-down menu that appears.\",\n                    \"price\": \"The price of the widget used, in US Dollar. \",\n                    \"is_archived\": \"If checked, data is not available for use. Check this to hide/delete this section.\"\n                }\n            }\n        ],\n        \"is_template\": false,\n        \"is_archived\": false,\n        \"is_locked\": false,\n        \"metadata\": [],\n        \"updated_by\": {\n            \"sid\": \"knqt0a40xffmrwBGLQV\",\n            \"name\": \"Test Labii\"\n        },\n        \"date_updated\": \"2024-11-04T06:24:41.211777Z\",\n        \"owner\": {\n            \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n            \"name\": \"Test Labii\"\n        },\n        \"date_created\": \"2024-11-04T05:25:25.999592Z\",\n        \"data\": null,\n        \"change_permission\": false,\n        \"help_text\": {\n            \"sid\": \"Static encrypted identifier. \",\n            \"rid\": \"The Row ID. Unique to each table. Used to regenerate uid, \",\n            \"uid\": \"The Unique ID. Generated from [Unique Code][rid] in default. If 'should_support_custom_uid' is set to true, you should supply your own UID. Ensure that your UID is unique; providing an existing UID will result in replacing the corresponding record.\",\n            \"name\": \"- Set the metadata of <b>FIELD_NAME_RENAME=title</b> to change the 'Name' to 'Title'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>.<br>- This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n            \"description\": \"- Set the metadata of <b>FIELD_DESCRIPTION_RENAME=overview</b> to change the 'Description' to 'Overview'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>.\",\n            \"metadata\": \"Use <b>metadata</b> to store the value that does not necessarily exist for all records in a table. <br>Use <b>column</b> to store the data that should exist for all records. \",\n            \"is_template\": \"If this box is checked, this record will serve as a template, so that other records can be created using the same information. \",\n            \"is_locked\": \"If checked, data is not available for edit. Once signed, it will be locked. \",\n            \"is_archived\": \"If checked, data is not available for use.\",\n            \"price\": \"The price of the widget used, in US Dollar. \",\n            \"projects\": \"Projects associated with this record. You will only see the projects that are available to you. Please contact your administrator if you are unable to view any particular project. \"\n        }\n    },\n    \"activity\": {\n        \"sid\": \"QTWZ0a40x24187SX38chmr\",\n        \"name\": \"Updated description\"\n    },\n    \"activity_message\": \"Updated description from None to '\\\"Test record edited by postman.\\\"'\",\n    \"commit\": null,\n    \"path\": \"media/ILOR0a40x2989KPUZ50ej/versions/xADG0a40xa5bczEJOTY49_4.json\",\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-04T06:24:41.237664Z\",\n    \"date_created\": \"2024-11-04T06:24:41.237674Z\",\n    \"change_permission\": true\n}"}],"_postman_id":"14e3b0b5-2625-47b1-a505-53f50fb35fc3"},{"name":"Edit Version","event":[{"listen":"test","script":{"id":"432ac61e-95ca-4c5b-9bc2-b91aa9623e6a","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 500ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});","","","pm.test(\"Validate the structure and data types of the response schema\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.version).to.be.a('string');","    pm.expect(responseData.detail).to.be.an('object');","    pm.expect(responseData.detail.table_name).to.be.a('string');","    pm.expect(responseData.detail.column_name).to.be.a('string');","    pm.expect(responseData.detail.data_type).to.be.a('string');","    pm.expect(responseData.detail.nullable).to.be.a('boolean');","});","","","pm.test(\"Presence of required fields in the response\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('id');","    pm.expect(responseData).to.have.property('name');","    pm.expect(responseData).to.have.property('description');","    pm.expect(responseData).to.have.property('created_at');","    pm.expect(responseData).to.have.property('updated_at');","});","","","pm.test(\"Verify the correctness of the response for the given version_sid\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.version_sid).to.exist.and.to.be.a('string');","});",""],"type":"text/javascript","packages":{}}}],"id":"a127364a-80ef-4355-9eaa-4dadd8732dfe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"commit\": \"Edit version from postman\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/version/detail/{{version_sid}}/","description":"<h3 id=\"update-table-version-detail\">Update Table Version Detail</h3>\n<p>This endpoint is used to update the details of a specific table version.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: <code>PATCH</code></p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/tables/version/detail/{{version_sid}}/</code></p>\n</li>\n<li><p>Headers:</p>\n<ul>\n<li>Content-Type: application/json</li>\n</ul>\n</li>\n<li><p>{ \"commit\": \"Edit version from postman\"}</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON object conforming to the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"message\": {\n      \"type\": \"string\"\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","version","detail","{{version_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"f1e8a4a4-0774-4b60-aa54-2fe205fd9b94","name":"Edit Version","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"commit\": \"Edit version from postman\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/version/detail/{{version_sid}}/"},"_postman_previewlanguage":"JSON","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"69be0a40x347e08chmrwBG\",\n    \"hash\": \"WlZMV2ZjNDFjMWM5YTkyYjI1OGZhY2JhNjI2M2M1N2JlOTYxVlJCQQ__\",\n    \"previousHash\": \"eTJNbzc1NmFhOWUyMDFhZmYzNzRjYjc0YjhjMjU4YzY3NDg5Z0tGOQ__\",\n    \"version\": 4,\n    \"data\": {\n        \"sid\": \"xADG0a40xa5bczEJOTY49\",\n        \"uid\": \"TEST1\",\n        \"version\": {\n            \"version\": 4,\n            \"sid\": \"69be0a40x347e08chmrwBG\",\n            \"name\": \"TEST1: Test Record 2024-11-03 (v4)\"\n        },\n        \"table\": {\n            \"sid\": \"hknq0a40x1254ejotyDINS\",\n            \"name\": \"tests\"\n        },\n        \"projects\": [\n            {\n                \"sid\": \"ilor0a40x2cd3kpuzEJOT\",\n                \"name\": \"Sample Project\"\n            }\n        ],\n        \"name\": \"Test Record 2024-11-03\",\n        \"description\": \"Test record edited by postman.\",\n        \"column_set\": [\n            {\n                \"column\": {\n                    \"sid\": \"TWZ30a40x563aaV16afkpu\",\n                    \"name\": \"date\",\n                    \"name_system\": \"\",\n                    \"description\": \"\",\n                    \"widget\": {\n                        \"sid\": \"GJMP0a40x1dINSX38ch\",\n                        \"name\": \"Date\",\n                        \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/datetime/date\"\n                    },\n                    \"configuration\": null,\n                    \"permission\": null,\n                    \"default_data\": null,\n                    \"order\": 1,\n                    \"is_required\": false,\n                    \"should_hide_in_form_view\": false,\n                    \"should_hide_in_list_view\": false,\n                    \"max_width\": null,\n                    \"metadata\": [],\n                    \"table\": {\n                        \"sid\": \"hknq0a40x1254ejotyDINS\",\n                        \"name\": \"tests\"\n                    },\n                    \"is_archived\": false,\n                    \"date_created\": \"2024-11-04T05:51:12.206366Z\",\n                    \"change_permission\": false,\n                    \"help_text\": {\n                        \"sid\": \"Static encrypted identifier. \",\n                        \"name\": \"Letters and number only.\",\n                        \"name_system\": \"The name to identify the column for a widget. \",\n                        \"description\": \"The description of the column. Include the definition, special formatting, and all other necessary information to help your coworker to fill.\",\n                        \"widget\": \"The widget to use, or the type of data. Default to <b>Text</b>. The configuration data will be erased if the widget is changed.<br>You can only select widgets that have been installed. You can find a list of installed widgets <a href='/list/settings/organizationwidgets/' target='_blank'>here</a>. Widgets that aren't available can be enabled <a href='/list/settings/widgets/' target='_blank'>here</a>. <br><b>Group columns with Subtitle widget</b>. When you use the Subtitle widget, the columns right after will be grouped and displayed separately in both form and columns views. Learn more about the widgets <a href='https://docs.labii.com/widgets/summary/column-type-widgets' target='_blank'>here</a>.\",\n                        \"configuration\": \"The configuration of the column. Use it to provide addtional parameters to the column.\",\n                        \"permission\": \"The column's supplementary permission settings can be utilized to offer additional control over its permissions. \",\n                        \"default_data\": \"The default data of the column. <br>- For the Boolean field, the default value is 'false'. <br>- For Date, use YYYY-MM-DD. <br>- For Select/MultiSelect, use {'sid':'xxx', 'name':'xxx'}. <br>- For ForeignKey/ForeignKeys, use {'sid':'xxx', 'name':'xxx'}. <br>The default value is different for different widget, learn more at <a href='https://docs.labii.com/widgets/column-widgets' target='_blank'>https://docs.labii.com/widgets/column-widgets</a>.<br>This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n                        \"order\": \"The order to display the column. Integer only. <br>Use it to control the order of columns in the list view (from left to right).\",\n                        \"is_required\": \"If checked, the value of the column is required in form submitting.\",\n                        \"should_hide_in_form_view\": \"If selected, the column will not be visible in the form view but will remain accessible in the detail view. Utilize this option to manage column visibility in the form view.\",\n                        \"should_hide_in_list_view\": \"If enabled, the column will not be shown in the list view but will remain accessible in the detail view. Employ this feature to regulate the display of columns in the list view.\",\n                        \"max_width\": \"The maximum width of the column in pixels. You can use it to limit the width of certain columns.\",\n                        \"metadata\": \"Use <b>metadata</b> to provide additional information to the column.\",\n                        \"is_archived\": \"If checked, the item and relevant data will be archived. Archived item is not available for use.\"\n                    }\n                },\n                \"data\": \"2024-11-03\",\n                \"sid\": \"FILO0a40x17e0aHMRW27bg\"\n            }\n        ],\n        \"section_set\": [\n            {\n                \"sid\": \"NQTW0a40x48686PUZ50ejo\",\n                \"table\": {\n                    \"sid\": \"hknq0a40x1254ejotyDINS\",\n                    \"name\": \"tests\"\n                },\n                \"row\": {\n                    \"sid\": \"xADG0a40xa5bczEJOTY49\",\n                    \"name\": \"TEST1: Test Record 2024-11-03\"\n                },\n                \"name\": \"Test Section 2024-11-03\",\n                \"description\": \"Test section created by postname\",\n                \"description_placement\": \"Top\",\n                \"widget\": {\n                    \"sid\": \"ehkn0a40x1glqvAFKP\",\n                    \"icon\": \"text_fields\",\n                    \"name\": \"Plain Text\",\n                    \"category\": \"Office\",\n                    \"sub_category\": \"Text, Word, Docs\",\n                    \"company\": \"Labii Inc.\",\n                    \"notes\": \"A simple and lightweight text box that supports markdown\",\n                    \"description\": \"The Plain Text widget serves as a basic text input tool that allows users to enter and edit text content. It provides a convenient and familiar interface similar to a typical text box, enabling users to input or modify plain text with markdown formatting support. This widget offers a minimalistic design and focuses on simplicity, making it ideal for various use cases.\",\n                    \"documentation_url\": \"https://docs.labii.com/widgets/section-widgets/text/plain-text\",\n                    \"screenshot_url\": \"/media/widgets/section-plain-text.webp\",\n                    \"type\": \"Section\",\n                    \"constructor\": \"object\",\n                    \"related_to\": \"CKEditor Classic, CKEditor Balloon, CKEditor Document, CKEditor Restricted, Code Editor\",\n                    \"version\": \"3.0.0\",\n                    \"release_date\": \"2023-05-27\",\n                    \"order\": \"2.50\",\n                    \"subscription_price\": \"Free\",\n                    \"ppu_price\": \"0.00\",\n                    \"allow_multiple\": true,\n                    \"is_readonly\": false,\n                    \"metadata_labels\": \"\",\n                    \"data\": {\n                        \"markdown\": \"\",\n                        \"prompt_template\": \"\"\n                    },\n                    \"default_data\": \"\",\n                    \"change_permission\": false,\n                    \"help_text\": {\n                        \"sid\": \"Static encrypted identifier. \",\n                        \"icon\": \"Icon of the widget. Choose one at https://material.io/icons/. Replace blanks with '_'. For example: 'account_circle'\",\n                        \"type\": \"Type of the widget, \",\n                        \"category\": \"Category of the widget. \",\n                        \"sub_category\": \"Sub Category of the widget.\",\n                        \"order\": \"The order to display the widget. Integer only. <br>Use it to control the order of widget. \",\n                        \"company\": \"The company released the widget.\",\n                        \"notes\": \"Short Description.\",\n                        \"description\": \"Detail description of the widget. Provide enough information for other users to understand.\",\n                        \"documentation_url\": \"The documentation url\",\n                        \"screenshot_url\": \"The screenshot url\",\n                        \"constructor\": \"Type of data to store, for Column widget only. \",\n                        \"uischema\": \"UI Schema to use, for Column widget only, select to use the field in the form. If not selected, the Column will not added to the form. \",\n                        \"version\": \"Ther version of the widget release.\",\n                        \"release_date\": \"The date that the version released. \",\n                        \"subscription_price\": \"The price of the widget per use for Subscription Option, in US Dollar.\",\n                        \"ppu_price\": \"The price of the widget per use for PPU Option, in US Dollar.\",\n                        \"allow_multiple\": \"If checked, the same widget can be added to same record multiple times. \",\n                        \"is_readonly\": \"Readonly widget only displays the data of an entry, it won't change or update an entry. \",\n                        \"is_public\": \"If checked, the widget is available for every organization to use. \",\n                        \"available_to\": \"Organization sid, separated by ',', \",\n                        \"metadata_labels\": \"Variable to provide through the metadata. Separated by comma.\",\n                        \"data\": \"Example data to store, \",\n                        \"default_data\": \"Default data can be carried over. Leave blank('', every [] should be write as '') to copy everything, \",\n                        \"is_archived\": \"If checked, widget is not available for use. Check this to hide/delete this widget. \"\n                    }\n                },\n                \"data\": \"Test\",\n                \"order\": 1,\n                \"comments\": 0,\n                \"completed_by\": null,\n                \"completed_at\": \"2024-11-04T06:14:53.626481Z\",\n                \"is_archived\": false,\n                \"date_updated\": \"2024-11-04T06:14:53.626417Z\",\n                \"date_created\": \"2024-11-04T06:14:53.626429Z\",\n                \"updated_by\": {\n                    \"sid\": \"knqt0a40xffmrwBGLQV\",\n                    \"name\": \"Test Labii\"\n                },\n                \"change_permission\": false,\n                \"help_text\": {\n                    \"sid\": \"Static encrypted identifier. \",\n                    \"widget\": \"The widget to use. Learn more about all widgets <a href='https://docs.labii.com/widgets/summary/section-type-widgets' target='_blank'>here</a>.<br>If a widget is not available, enable it at <a href='/list/settings/widgets/' target='_blank'>here</a>.\",\n                    \"description\": \"Description of the Section. Include the definition, special formatting, and all other necessary information for others to fill.\",\n                    \"description_placement\": \"The placement of the description. \",\n                    \"order\": \"The order to display the section. Integer only. Use it to control the order of sections. Leave it empty to add the section to the bottom.\",\n                    \"data\": \"Default data to be loaded. The default data should be updated as follows:<br>1. Use an existing record or create a new one.<br>2. Find the section with the current name and widget under the <b>Sections</b> tab.<br>3. Click the Edit button to configure the section.<br>4. Click the Actions button and then choose <b>Save as table default</b> from the drop-down menu that appears.\",\n                    \"price\": \"The price of the widget used, in US Dollar. \",\n                    \"is_archived\": \"If checked, data is not available for use. Check this to hide/delete this section.\"\n                }\n            }\n        ],\n        \"is_template\": false,\n        \"is_archived\": false,\n        \"is_locked\": false,\n        \"metadata\": [],\n        \"updated_by\": {\n            \"sid\": \"knqt0a40xffmrwBGLQV\",\n            \"name\": \"Test Labii\"\n        },\n        \"date_updated\": \"2024-11-04T06:24:41.211777Z\",\n        \"owner\": {\n            \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n            \"name\": \"Test Labii\"\n        },\n        \"date_created\": \"2024-11-04T05:25:25.999592Z\",\n        \"data\": null,\n        \"change_permission\": false,\n        \"help_text\": {\n            \"sid\": \"Static encrypted identifier. \",\n            \"rid\": \"The Row ID. Unique to each table. Used to regenerate uid, \",\n            \"uid\": \"The Unique ID. Generated from [Unique Code][rid] in default. If 'should_support_custom_uid' is set to true, you should supply your own UID. Ensure that your UID is unique; providing an existing UID will result in replacing the corresponding record.\",\n            \"name\": \"- Set the metadata of <b>FIELD_NAME_RENAME=title</b> to change the 'Name' to 'Title'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>.<br>- This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n            \"description\": \"- Set the metadata of <b>FIELD_DESCRIPTION_RENAME=overview</b> to change the 'Description' to 'Overview'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>.\",\n            \"metadata\": \"Use <b>metadata</b> to store the value that does not necessarily exist for all records in a table. <br>Use <b>column</b> to store the data that should exist for all records. \",\n            \"is_template\": \"If this box is checked, this record will serve as a template, so that other records can be created using the same information. \",\n            \"is_locked\": \"If checked, data is not available for edit. Once signed, it will be locked. \",\n            \"is_archived\": \"If checked, data is not available for use.\",\n            \"price\": \"The price of the widget used, in US Dollar. \",\n            \"projects\": \"Projects associated with this record. You will only see the projects that are available to you. Please contact your administrator if you are unable to view any particular project. \"\n        }\n    },\n    \"activity\": {\n        \"sid\": \"QTWZ0a40x24187SX38chmr\",\n        \"name\": \"Updated description\"\n    },\n    \"activity_message\": \"Updated description from None to '\\\"Test record edited by postman.\\\"'\",\n    \"commit\": \"Edit version from postman\",\n    \"path\": \"media/ILOR0a40x2989KPUZ50ej/versions/xADG0a40xa5bczEJOTY49_4.json\",\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-04T06:24:41.237664Z\",\n    \"date_created\": \"2024-11-04T06:24:41.237674Z\",\n    \"change_permission\": true\n}"}],"_postman_id":"a127364a-80ef-4355-9eaa-4dadd8732dfe"},{"name":"Restore Version","event":[{"listen":"prerequest","script":{"id":"81b93ed1-04f6-44db-a2aa-0c045e495322","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"f33eadbd-fa15-41ad-97d2-9842fa35843f","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('id');","    pm.expect(responseData).to.have.property('name');","    pm.expect(responseData).to.have.property('description');","    pm.expect(responseData).to.have.property('createdAt');","    pm.expect(responseData).to.have.property('updatedAt');","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(300);","});","","","pm.test(\"Validate the structure of the response schema\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('id');","    pm.expect(responseData).to.have.property('name');","    pm.expect(responseData).to.have.property('description');","    pm.expect(responseData).to.have.property('created_at');","    pm.expect(responseData).to.have.property('updated_at');","});","","","pm.test(\"Record_sid and version_sid are present in the response\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.record_sid).to.exist;","    pm.expect(responseData.version_sid).to.exist;","});",""],"type":"text/javascript","packages":{}}}],"id":"3c493f04-41fd-4bff-b0eb-c35470ac4919","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://www.labii.dev/tables/row/detail/{{record_sid}}/?restore={{version_sid}}","description":"<p>This endpoint allows you to update a specific row detail in a table by sending an HTTP PATCH request to the specified URL. You can also choose to restore to a specific version by providing the version ID in the query parameter.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<ul>\n<li><p><code>record_sid</code> (path parameter): The unique identifier of the record.</p>\n</li>\n<li><p><code>version_sid</code> (query parameter): The version ID to which the restoration should be made.</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response of this request is a JSON schema representing the updated row detail in the table. The schema will outline the structure of the data that will be returned upon a successful update or restoration operation.</p>\n<p>Example JSON Schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"id\": {\n      \"type\": \"string\"\n    },\n    \"name\": {\n      \"type\": \"string\"\n    },\n    \"age\": {\n      \"type\": \"integer\"\n    },\n    \"email\": {\n      \"type\": \"string\",\n      \"format\": \"email\"\n    }\n    // ... additional properties based on the table's schema\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","row","detail","{{record_sid}}",""],"host":["https://www.labii.dev"],"query":[{"key":"restore","value":"{{version_sid}}"}],"variable":[]}},"response":[{"id":"6e5a9cf6-c878-4f66-a99a-8bf7fbb53325","name":"Restore Version","originalRequest":{"method":"PATCH","header":[],"url":{"raw":"https://www.labii.dev/tables/row/detail/{{record_sid}}/?restore={{version_sid}}","host":["https://www.labii.dev"],"path":["tables","row","detail","{{record_sid}}",""],"query":[{"key":"restore","value":"{{version_sid}}"}]}},"_postman_previewlanguage":"JSON","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"xADG0a40xa5bczEJOTY49\",\n    \"uid\": \"TEST1\",\n    \"version\": {\n        \"version\": 4,\n        \"sid\": \"69be0a40x347e08chmrwBG\",\n        \"name\": \"TEST1: Test Record 2024-11-03 (v4)\"\n    },\n    \"table\": {\n        \"sid\": \"hknq0a40x1254ejotyDINS\",\n        \"name\": \"tests\"\n    },\n    \"projects\": [\n        {\n            \"sid\": \"ilor0a40x2cd3kpuzEJOT\",\n            \"name\": \"Sample Project\"\n        }\n    ],\n    \"name\": \"Test Record 2024-11-03\",\n    \"description\": \"Test record edited by postman.\",\n    \"column_set\": [\n        {\n            \"column\": {\n                \"sid\": \"TWZ30a40x563aaV16afkpu\",\n                \"name\": \"date\",\n                \"name_system\": \"\",\n                \"description\": \"\",\n                \"widget\": {\n                    \"sid\": \"GJMP0a40x1dINSX38ch\",\n                    \"name\": \"Date\",\n                    \"documentation_url\": \"https://docs.labii.com/widgets/column-widgets/datetime/date\"\n                },\n                \"configuration\": null,\n                \"permission\": null,\n                \"default_data\": null,\n                \"order\": 1,\n                \"is_required\": false,\n                \"should_hide_in_form_view\": false,\n                \"should_hide_in_list_view\": false,\n                \"max_width\": null,\n                \"metadata\": [],\n                \"table\": {\n                    \"sid\": \"hknq0a40x1254ejotyDINS\",\n                    \"name\": \"tests\"\n                },\n                \"is_archived\": false,\n                \"date_created\": \"2024-11-04T05:51:12.206366Z\",\n                \"change_permission\": false,\n                \"help_text\": {\n                    \"sid\": \"Static encrypted identifier. \",\n                    \"name\": \"Letters and number only.\",\n                    \"name_system\": \"The name to identify the column for a widget. \",\n                    \"description\": \"The description of the column. Include the definition, special formatting, and all other necessary information to help your coworker to fill.\",\n                    \"widget\": \"The widget to use, or the type of data. Default to <b>Text</b>. The configuration data will be erased if the widget is changed.<br>You can only select widgets that have been installed. You can find a list of installed widgets <a href='/list/settings/organizationwidgets/' target='_blank'>here</a>. Widgets that aren't available can be enabled <a href='/list/settings/widgets/' target='_blank'>here</a>. <br><b>Group columns with Subtitle widget</b>. When you use the Subtitle widget, the columns right after will be grouped and displayed separately in both form and columns views. Learn more about the widgets <a href='https://docs.labii.com/widgets/summary/column-type-widgets' target='_blank'>here</a>.\",\n                    \"configuration\": \"The configuration of the column. Use it to provide addtional parameters to the column.\",\n                    \"permission\": \"The column's supplementary permission settings can be utilized to offer additional control over its permissions. \",\n                    \"default_data\": \"The default data of the column. <br>- For the Boolean field, the default value is 'false'. <br>- For Date, use YYYY-MM-DD. <br>- For Select/MultiSelect, use {'sid':'xxx', 'name':'xxx'}. <br>- For ForeignKey/ForeignKeys, use {'sid':'xxx', 'name':'xxx'}. <br>The default value is different for different widget, learn more at <a href='https://docs.labii.com/widgets/column-widgets' target='_blank'>https://docs.labii.com/widgets/column-widgets</a>.<br>This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n                    \"order\": \"The order to display the column. Integer only. <br>Use it to control the order of columns in the list view (from left to right).\",\n                    \"is_required\": \"If checked, the value of the column is required in form submitting.\",\n                    \"should_hide_in_form_view\": \"If selected, the column will not be visible in the form view but will remain accessible in the detail view. Utilize this option to manage column visibility in the form view.\",\n                    \"should_hide_in_list_view\": \"If enabled, the column will not be shown in the list view but will remain accessible in the detail view. Employ this feature to regulate the display of columns in the list view.\",\n                    \"max_width\": \"The maximum width of the column in pixels. You can use it to limit the width of certain columns.\",\n                    \"metadata\": \"Use <b>metadata</b> to provide additional information to the column.\",\n                    \"is_archived\": \"If checked, the item and relevant data will be archived. Archived item is not available for use.\"\n                }\n            },\n            \"data\": \"2024-11-03\",\n            \"sid\": \"FILO0a40x17e0aHMRW27bg\"\n        }\n    ],\n    \"section_set\": [\n        {\n            \"sid\": \"NQTW0a40x48686PUZ50ejo\",\n            \"table\": {\n                \"sid\": \"hknq0a40x1254ejotyDINS\",\n                \"name\": \"tests\"\n            },\n            \"row\": {\n                \"sid\": \"xADG0a40xa5bczEJOTY49\",\n                \"name\": \"TEST1: Test Record 2024-11-03\"\n            },\n            \"name\": \"Test Section 2024-11-03\",\n            \"description\": \"Test section created by postname\",\n            \"description_placement\": \"Top\",\n            \"widget\": {\n                \"sid\": \"ehkn0a40x1glqvAFKP\",\n                \"icon\": \"text_fields\",\n                \"name\": \"Plain Text\",\n                \"category\": \"Office\",\n                \"sub_category\": \"Text, Word, Docs\",\n                \"company\": \"Labii Inc.\",\n                \"notes\": \"A simple and lightweight text box that supports markdown\",\n                \"description\": \"The Plain Text widget serves as a basic text input tool that allows users to enter and edit text content. It provides a convenient and familiar interface similar to a typical text box, enabling users to input or modify plain text with markdown formatting support. This widget offers a minimalistic design and focuses on simplicity, making it ideal for various use cases.\",\n                \"documentation_url\": \"https://docs.labii.com/widgets/section-widgets/text/plain-text\",\n                \"screenshot_url\": \"/media/widgets/section-plain-text.webp\",\n                \"type\": \"Section\",\n                \"constructor\": \"object\",\n                \"related_to\": \"CKEditor Classic, CKEditor Balloon, CKEditor Document, CKEditor Restricted, Code Editor\",\n                \"version\": \"3.0.0\",\n                \"release_date\": \"2023-05-27\",\n                \"order\": \"2.50\",\n                \"subscription_price\": \"Free\",\n                \"ppu_price\": \"0.00\",\n                \"allow_multiple\": true,\n                \"is_readonly\": false,\n                \"metadata_labels\": \"\",\n                \"data\": {\n                    \"markdown\": \"\",\n                    \"prompt_template\": \"\"\n                },\n                \"default_data\": \"\",\n                \"change_permission\": false,\n                \"help_text\": {\n                    \"sid\": \"Static encrypted identifier. \",\n                    \"icon\": \"Icon of the widget. Choose one at https://material.io/icons/. Replace blanks with '_'. For example: 'account_circle'\",\n                    \"type\": \"Type of the widget, \",\n                    \"category\": \"Category of the widget. \",\n                    \"sub_category\": \"Sub Category of the widget.\",\n                    \"order\": \"The order to display the widget. Integer only. <br>Use it to control the order of widget. \",\n                    \"company\": \"The company released the widget.\",\n                    \"notes\": \"Short Description.\",\n                    \"description\": \"Detail description of the widget. Provide enough information for other users to understand.\",\n                    \"documentation_url\": \"The documentation url\",\n                    \"screenshot_url\": \"The screenshot url\",\n                    \"constructor\": \"Type of data to store, for Column widget only. \",\n                    \"uischema\": \"UI Schema to use, for Column widget only, select to use the field in the form. If not selected, the Column will not added to the form. \",\n                    \"version\": \"Ther version of the widget release.\",\n                    \"release_date\": \"The date that the version released. \",\n                    \"subscription_price\": \"The price of the widget per use for Subscription Option, in US Dollar.\",\n                    \"ppu_price\": \"The price of the widget per use for PPU Option, in US Dollar.\",\n                    \"allow_multiple\": \"If checked, the same widget can be added to same record multiple times. \",\n                    \"is_readonly\": \"Readonly widget only displays the data of an entry, it won't change or update an entry. \",\n                    \"is_public\": \"If checked, the widget is available for every organization to use. \",\n                    \"available_to\": \"Organization sid, separated by ',', \",\n                    \"metadata_labels\": \"Variable to provide through the metadata. Separated by comma.\",\n                    \"data\": \"Example data to store, \",\n                    \"default_data\": \"Default data can be carried over. Leave blank('', every [] should be write as '') to copy everything, \",\n                    \"is_archived\": \"If checked, widget is not available for use. Check this to hide/delete this widget. \"\n                }\n            },\n            \"data\": \"Test\",\n            \"order\": 1,\n            \"comments\": 0,\n            \"completed_by\": null,\n            \"completed_at\": \"2024-11-04T06:14:53.626481Z\",\n            \"is_archived\": false,\n            \"date_updated\": \"2024-11-04T06:14:53.626417Z\",\n            \"date_created\": \"2024-11-04T06:14:53.626429Z\",\n            \"updated_by\": {\n                \"sid\": \"knqt0a40xffmrwBGLQV\",\n                \"name\": \"Test Labii\"\n            },\n            \"change_permission\": true,\n            \"help_text\": {\n                \"sid\": \"Static encrypted identifier. \",\n                \"widget\": \"The widget to use. Learn more about all widgets <a href='https://docs.labii.com/widgets/summary/section-type-widgets' target='_blank'>here</a>.<br>If a widget is not available, enable it at <a href='/list/settings/widgets/' target='_blank'>here</a>.\",\n                \"description\": \"Description of the Section. Include the definition, special formatting, and all other necessary information for others to fill.\",\n                \"description_placement\": \"The placement of the description. \",\n                \"order\": \"The order to display the section. Integer only. Use it to control the order of sections. Leave it empty to add the section to the bottom.\",\n                \"data\": \"Default data to be loaded. The default data should be updated as follows:<br>1. Use an existing record or create a new one.<br>2. Find the section with the current name and widget under the <b>Sections</b> tab.<br>3. Click the Edit button to configure the section.<br>4. Click the Actions button and then choose <b>Save as table default</b> from the drop-down menu that appears.\",\n                \"price\": \"The price of the widget used, in US Dollar. \",\n                \"is_archived\": \"If checked, data is not available for use. Check this to hide/delete this section.\"\n            }\n        }\n    ],\n    \"is_template\": false,\n    \"is_archived\": false,\n    \"is_locked\": false,\n    \"metadata\": [],\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_updated\": \"2024-11-04T06:24:41.211777Z\",\n    \"owner\": {\n        \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_created\": \"2024-11-04T05:25:25.999592Z\",\n    \"data\": null,\n    \"change_permission\": true,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"rid\": \"The Row ID. Unique to each table. Used to regenerate uid, \",\n        \"uid\": \"The Unique ID. Generated from [Unique Code][rid] in default. If 'should_support_custom_uid' is set to true, you should supply your own UID. Ensure that your UID is unique; providing an existing UID will result in replacing the corresponding record.\",\n        \"name\": \"- Set the metadata of <b>FIELD_NAME_RENAME=title</b> to change the 'Name' to 'Title'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>.<br>- This field support variables. Discover additional information about the array of supportive variables on <a href='https://docs.labii.com/api/variables' target='_blank'>https://docs.labii.com/api/variables</a>\",\n        \"description\": \"- Set the metadata of <b>FIELD_DESCRIPTION_RENAME=overview</b> to change the 'Description' to 'Overview'. Learn more <a href='https://docs.labii.com/eln-and-lims/settings/tables#change-name-of-field' target='_blank'>here</a>.\",\n        \"metadata\": \"Use <b>metadata</b> to store the value that does not necessarily exist for all records in a table. <br>Use <b>column</b> to store the data that should exist for all records. \",\n        \"is_template\": \"If this box is checked, this record will serve as a template, so that other records can be created using the same information. \",\n        \"is_locked\": \"If checked, data is not available for edit. Once signed, it will be locked. \",\n        \"is_archived\": \"If checked, data is not available for use.\",\n        \"price\": \"The price of the widget used, in US Dollar. \",\n        \"projects\": \"Projects associated with this record. You will only see the projects that are available to you. Please contact your administrator if you are unable to view any particular project. \"\n    }\n}"}],"_postman_id":"3c493f04-41fd-4bff-b0eb-c35470ac4919"}],"id":"3cf927da-c524-4c36-8977-0f54da713c69","description":"<p>The Labii Version API is designed to facilitate version control for records, allowing users to manage and track changes effectively. This API enables users to retrieve a list of versions for a specific record, access detailed information about individual versions, edit version commits, and restore records from previous versions as needed. By providing these capabilities, the API enhances data integrity and accountability, ensuring that users can maintain a clear history of changes and easily revert to earlier states when necessary.</p>\n","_postman_id":"3cf927da-c524-4c36-8977-0f54da713c69","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Activity","item":[{"name":"Get Activity List","event":[{"listen":"test","script":{"id":"765dd85a-12c1-43ba-b961-f59d6822bb4c","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"activity_sid\", jsonData.results[0].sid);","","","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for page_size, page_number, page_count, count, next, previous, add_permission, and results array with required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.page_size).to.exist;","    pm.expect(responseData.page_number).to.exist;","    pm.expect(responseData.page_count).to.exist;","    pm.expect(responseData.count).to.exist;","    pm.expect(responseData.next).to.exist;","    pm.expect(responseData.previous).to.exist;","    pm.expect(responseData.add_permission).to.exist;","    ","    pm.expect(responseData.results).to.be.an('array');","    responseData.results.forEach(function(result) {","        pm.expect(result.sid).to.exist;","        pm.expect(result.date_created).to.exist;","        pm.expect(result.icon).to.exist;","        pm.expect(result.row).to.exist;","        pm.expect(result.version).to.exist;","        pm.expect(result.user).to.exist;","        pm.expect(result.action).to.exist;","        pm.expect(result.field).to.exist;","        pm.expect(result.change_permission).to.exist;","    });","});","",""],"type":"text/javascript","packages":{}}}],"id":"b3fd5dfc-10a4-4b0a-a349-3f28eca82cb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/activity/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","description":"<h3 id=\"get-activity-list-by-organization\">Get Activity List by Organization</h3>\n<p>This endpoint retrieves the list of activities for a specific organization.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/tables/activity/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will contain the following fields:</p>\n<ul>\n<li><p><code>page_size</code> (number) - The number of items per page</p>\n</li>\n<li><p><code>page_number</code> (number) - The current page number</p>\n</li>\n<li><p><code>page_count</code> (number) - The total number of pages</p>\n</li>\n<li><p><code>count</code> (number) - The total count of activities</p>\n</li>\n<li><p><code>next</code> (string) - URL for the next page</p>\n</li>\n<li><p><code>previous</code> (string) - URL for the previous page</p>\n</li>\n<li><p><code>add_permission</code> (boolean) - Indicates if the user has permission to add activities</p>\n</li>\n<li><p><code>results</code> (array) - An array of activity objects, each containing:</p>\n<ul>\n<li><p><code>sid</code> (string) - The ID of the activity</p>\n</li>\n<li><p><code>date_created</code> (string) - The date and time when the activity was created</p>\n</li>\n<li><p><code>icon</code> (string) - The icon associated with the activity</p>\n</li>\n<li><p><code>row</code> (object) - The row information associated with the activity, containing:</p>\n<ul>\n<li><p><code>sid</code> (string) - The ID of the row</p>\n</li>\n<li><p><code>name</code> (string) - The name of the row</p>\n</li>\n</ul>\n</li>\n<li><p><code>version</code> (object) - The version information associated with the activity, containing:</p>\n<ul>\n<li><p><code>sid</code> (string) - The ID of the version</p>\n</li>\n<li><p><code>name</code> (string) - The name of the version</p>\n</li>\n</ul>\n</li>\n<li><p><code>user</code> (object) - The user information associated with the activity, containing:</p>\n<ul>\n<li><p><code>sid</code> (string) - The ID of the user</p>\n</li>\n<li><p><code>name</code> (string) - The name of the user</p>\n</li>\n<li><p><code>first_name</code> (string) - The first name of the user</p>\n</li>\n<li><p><code>last_name</code> (string) - The last name of the user</p>\n</li>\n<li><p><code>email</code> (string) - The email address of the user</p>\n</li>\n</ul>\n</li>\n<li><p><code>action</code> (string) - The action performed in the activity</p>\n</li>\n<li><p><code>field</code> (string) - The field related to the activity</p>\n</li>\n<li><p><code>change_permission</code> (boolean) - Indicates if the user has permission to change the activity</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","activity","list","organization","{{organization_sid_test_edit}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"row__sid","value":"{{record_sid}}"}],"variable":[]}},"response":[{"id":"6ef09344-2c71-40dc-b9e2-e9c75fc20c44","name":"Get Activity List","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://www.labii.dev/tables/activity/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","host":["https://www.labii.dev"],"path":["tables","activity","list","organization","{{organization_sid_test_edit}}","list",""],"query":[{"key":"row__sid","value":"{{record_sid}}","sortOrder":0}]}},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 06:47:01 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1958","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 4,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": false,\n    \"results\": [\n        {\n            \"sid\": \"QTWZ0a40x24187SX38chmr\",\n            \"date_created\": \"2024-11-04T06:24:41.211787Z\",\n            \"icon\": \"edit\",\n            \"row\": {\n                \"sid\": \"xADG0a40xa5bczEJOTY49\",\n                \"name\": \"TEST1: Test Record 2024-11-03\"\n            },\n            \"version\": {\n                \"sid\": \"69be0a40x347e08chmrwBG\",\n                \"name\": \"TEST1: Test Record 2024-11-03 (v4)\"\n            },\n            \"user\": {\n                \"sid\": \"knqt0a40xffmrwBGLQV\",\n                \"name\": \"Test Labii\",\n                \"first_name\": \"Test\",\n                \"last_name\": \"Labii\",\n                \"email\": \"test@labii.com\"\n            },\n            \"action\": \"Updated\",\n            \"field\": \"description\",\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"PSVY0a40x24186RW27bglq\",\n            \"date_created\": \"2024-11-04T06:14:53.656312Z\",\n            \"icon\": \"add_circle\",\n            \"row\": {\n                \"sid\": \"xADG0a40xa5bczEJOTY49\",\n                \"name\": \"TEST1: Test Record 2024-11-03\"\n            },\n            \"version\": {\n                \"sid\": \"58ad0a40x347df7bglqvAF\",\n                \"name\": \"TEST1: Test Record 2024-11-03 (v3)\"\n            },\n            \"user\": {\n                \"sid\": \"knqt0a40xffmrwBGLQV\",\n                \"name\": \"Test Labii\",\n                \"first_name\": \"Test\",\n                \"last_name\": \"Labii\",\n                \"email\": \"test@labii.com\"\n            },\n            \"action\": \"Added\",\n            \"field\": \"Section (Test Section 2024-11-03)\",\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"ORUX0a40x24185QV16afkp\",\n            \"date_created\": \"2024-11-04T06:06:03.606555Z\",\n            \"icon\": \"add_circle\",\n            \"row\": {\n                \"sid\": \"xADG0a40xa5bczEJOTY49\",\n                \"name\": \"TEST1: Test Record 2024-11-03\"\n            },\n            \"version\": {\n                \"sid\": \"470c0a40x347de6afkpuzE\",\n                \"name\": \"TEST1: Test Record 2024-11-03 (v2)\"\n            },\n            \"user\": {\n                \"sid\": \"knqt0a40xffmrwBGLQV\",\n                \"name\": \"Test Labii\",\n                \"first_name\": \"Test\",\n                \"last_name\": \"Labii\",\n                \"email\": \"test@labii.com\"\n            },\n            \"action\": \"Added\",\n            \"field\": \"Column ('Date')\",\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"NQTW0a40x24184PUZ50ejo\",\n            \"date_created\": \"2024-11-04T05:25:26.040151Z\",\n            \"icon\": \"add_circle\",\n            \"row\": {\n                \"sid\": \"xADG0a40xa5bczEJOTY49\",\n                \"name\": \"TEST1: Test Record 2024-11-03\"\n            },\n            \"version\": {\n                \"sid\": \"369b0a40x347dd50ejotyD\",\n                \"name\": \"TEST1: Test Record 2024-11-03 (v1)\"\n            },\n            \"user\": {\n                \"sid\": \"knqt0a40xffmrwBGLQV\",\n                \"name\": \"Test Labii\",\n                \"first_name\": \"Test\",\n                \"last_name\": \"Labii\",\n                \"email\": \"test@labii.com\"\n            },\n            \"action\": \"Created\",\n            \"field\": \"Test (Test Record 2024-11-03)\",\n            \"change_permission\": false\n        }\n    ]\n}"}],"_postman_id":"b3fd5dfc-10a4-4b0a-a349-3f28eca82cb0"},{"name":"Get Activity Detail","event":[{"listen":"test","script":{"id":"f7bd0f88-9a14-4b55-be54-4db1e96b1688","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for the presence of required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.name).to.exist;","    pm.expect(responseData.icon).to.exist;","    pm.expect(responseData.row).to.exist;","    pm.expect(responseData.version).to.exist;","    pm.expect(responseData.user).to.exist;","    pm.expect(responseData.action).to.exist;","    pm.expect(responseData.field).to.exist;","    pm.expect(responseData.old_data).to.exist;","    pm.expect(responseData.new_data).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.change_permission).to.exist;","    pm.expect(responseData.help_text).to.exist;","});",""],"type":"text/javascript","packages":{}}}],"id":"be377cdd-37a2-4b12-966c-0ab83b4c9727","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/activity/detail/{{activity_sid}}/","description":"<h3 id=\"get-activity-detail\">Get Activity Detail</h3>\n<p>This endpoint retrieves the details of a specific activity from the tables.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>Endpoint: <code>https://www.labii.dev/tables/activity/detail/{{activity_sid}}/</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request follows the JSON schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sid\": { \"type\": \"string\" },\n    \"name\": { \"type\": \"string\" },\n    \"icon\": { \"type\": \"string\" },\n    \"row\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": { \"type\": \"string\" },\n        \"name\": { \"type\": \"string\" }\n      }\n    },\n    \"version\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": { \"type\": \"string\" },\n        \"name\": { \"type\": \"string\" }\n      }\n    },\n    \"user\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": { \"type\": \"string\" },\n        \"name\": { \"type\": \"string\" },\n        \"first_name\": { \"type\": \"string\" },\n        \"last_name\": { \"type\": \"string\" },\n        \"email\": { \"type\": \"string\" }\n      }\n    },\n    \"action\": { \"type\": \"string\" },\n    \"field\": { \"type\": \"string\" },\n    \"old_data\": { \"type\": [\"null\", \"string\"] },\n    \"new_data\": { \"type\": \"string\" },\n    \"date_created\": { \"type\": \"string\" },\n    \"change_permission\": { \"type\": \"boolean\" },\n    \"help_text\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": { \"type\": \"string\" },\n        \"old_data\": { \"type\": \"string\" },\n        \"new_data\": { \"type\": \"string\" }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","activity","detail","{{activity_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"f401cc28-5f4b-4454-9a20-3f6eaee7d61b","name":"Get Activity Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/activity/detail/{{activity_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 06:47:49 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"669","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"QTWZ0a40x24187SX38chmr\",\n    \"name\": \"Updated description\",\n    \"icon\": \"edit\",\n    \"row\": {\n        \"sid\": \"xADG0a40xa5bczEJOTY49\",\n        \"name\": \"TEST1: Test Record 2024-11-03\"\n    },\n    \"version\": {\n        \"sid\": \"69be0a40x347e08chmrwBG\",\n        \"name\": \"TEST1: Test Record 2024-11-03 (v4)\"\n    },\n    \"user\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\",\n        \"first_name\": \"Test\",\n        \"last_name\": \"Labii\",\n        \"email\": \"test@labii.com\"\n    },\n    \"action\": \"Updated\",\n    \"field\": \"description\",\n    \"old_data\": null,\n    \"new_data\": \"b'\\\"Test record edited by postman.\\\"'\",\n    \"date_created\": \"2024-11-04T06:24:41.211787Z\",\n    \"change_permission\": false,\n    \"help_text\": {\n        \"sid\": \"Static encrypted identifier. \",\n        \"old_data\": \"The data before changing.\",\n        \"new_data\": \"The data after changing.\"\n    }\n}"}],"_postman_id":"be377cdd-37a2-4b12-966c-0ab83b4c9727"}],"id":"f7c61ad1-0dcb-433b-8b4f-2b19f4c2b30f","description":"<p>The Labii Activity API is a valuable tool for monitoring and managing activities associated with records. This API enables users to retrieve a comprehensive list of activities linked to a specific record, as well as access detailed information about each individual activity. By providing insights into record-related actions and changes, the API enhances transparency and accountability, making it easier for users to track and analyze the history of interactions with their data.</p>\n","_postman_id":"f7c61ad1-0dcb-433b-8b4f-2b19f4c2b30f","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Visitor","item":[{"name":"Get Visitor List","event":[{"listen":"test","script":{"id":"c6f0910e-cdd2-483c-996b-c5d4f8972ca9","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"visitor_sid\", jsonData.results[0].sid);","","","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('page_size');","    pm.expect(responseData).to.have.property('page_number');","    pm.expect(responseData).to.have.property('page_count');","    pm.expect(responseData).to.have.property('count');","    pm.expect(responseData).to.have.property('next');","    pm.expect(responseData).to.have.property('previous');","    pm.expect(responseData).to.have.property('add_permission');","    pm.expect(responseData).to.have.property('results').that.is.an('array');","});","","","pm.test(\"Results array contains required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array').that.is.not.empty;","    ","    responseData.results.forEach(function(result) {","        pm.expect(result.sid).to.exist;","        pm.expect(result.updated_by).to.be.an('object').that.has.all.keys('sid', 'name');","        pm.expect(result.date_created).to.exist;","        pm.expect(result.change_permission).to.exist;","    });","});","","","pm.test(\"Updated_by object contains required fields - sid, name\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.results).to.be.an('array');","  responseData.results.forEach(function(result) {","    pm.expect(result.updated_by).to.be.an('object');","    pm.expect(result.updated_by.sid).to.exist.and.to.be.a('string');","    pm.expect(result.updated_by.name).to.exist.and.to.be.a('string');","  });","});","",""],"type":"text/javascript","packages":{}}}],"id":"7db106c5-217e-4af9-9f62-7e9d74bb33d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/visitor/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","description":"<h3 id=\"get-visitor-list-by-organization\">Get Visitor List by Organization</h3>\n<p>This endpoint retrieves a list of visitors associated with a specific organization.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>Path: /tables/visitor/list/organization/{{organization_sid_test_edit}}/list/</p>\n</li>\n<li><p>Query Parameters:</p>\n<ul>\n<li>row__sid (string, required): The SID of the record.</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p>page_size (integer): The number of items per page.</p>\n</li>\n<li><p>page_number (integer): The current page number.</p>\n</li>\n<li><p>page_count (integer): The total number of pages.</p>\n</li>\n<li><p>count (integer): The total count of visitors.</p>\n</li>\n<li><p>next (string): URL for the next page of results.</p>\n</li>\n<li><p>previous (string): URL for the previous page of results.</p>\n</li>\n<li><p>add_permission (boolean): Indicates if the user has permission to add visitors.</p>\n</li>\n<li><p>results (array): An array of visitor objects, each containing:</p>\n<ul>\n<li><p>sid (string): The visitor's SID.</p>\n</li>\n<li><p>updated_by (object): Information about the user who last updated the visitor.</p>\n<ul>\n<li><p>sid (string): The SID of the user.</p>\n</li>\n<li><p>name (string): The name of the user.</p>\n</li>\n</ul>\n</li>\n<li><p>date_created (string): The date when the visitor was created.</p>\n</li>\n<li><p>change_permission (boolean): Indicates if the user has permission to modify the visitor.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","visitor","list","organization","{{organization_sid_test_edit}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"row__sid","value":"{{record_sid}}"}],"variable":[]}},"response":[{"id":"d3c6f5db-4f6b-41ab-833b-7b964f008032","name":"Get Visitor List","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://www.labii.dev/tables/visitor/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","host":["https://www.labii.dev"],"path":["tables","visitor","list","organization","{{organization_sid_test_edit}}","list",""],"query":[{"key":"row__sid","value":"{{record_sid}}","sortOrder":0}]}},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 06:52:10 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"287","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": false,\n    \"results\": [\n        {\n            \"sid\": \"knqt0a40x1d61dmrwBGLQV\",\n            \"updated_by\": {\n                \"sid\": \"knqt0a40xffmrwBGLQV\",\n                \"name\": \"Test Labii\"\n            },\n            \"date_created\": \"2024-11-04T06:16:12.665952Z\",\n            \"change_permission\": false\n        }\n    ]\n}"}],"_postman_id":"7db106c5-217e-4af9-9f62-7e9d74bb33d2"},{"name":"Get Visitor Detail","event":[{"listen":"test","script":{"id":"cc77af72-7b30-41d8-84a1-75cf0bf19138","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Response schema contains required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.row).to.exist;","    pm.expect(responseData.updated_by).to.exist;","    pm.expect(responseData.date_created).to.exist;","    pm.expect(responseData.change_permission).to.exist;","});",""],"type":"text/javascript","packages":{}}}],"id":"2dcb5be1-a850-4bbe-a116-ba60d4908379","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/visitor/detail/{{visitor_sid}}/","description":"<h3 id=\"get-visitor-detail\">Get Visitor Detail</h3>\n<p>This endpoint retrieves the details of a visitor by their unique identifier.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/tables/visitor/detail/{{visitor_sid}}/</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"string\",\n  \"row\": {\n    \"sid\": \"string\",\n    \"name\": \"string\"\n  },\n  \"updated_by\": {\n    \"sid\": \"string\",\n    \"name\": \"string\"\n  },\n  \"date_created\": \"string\",\n  \"change_permission\": true\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","visitor","detail","{{visitor_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"2164b249-2af3-4d36-ac24-72b076e98ffe","name":"Get Visitor Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/visitor/detail/{{visitor_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 06:52:48 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"243","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"knqt0a40x1d61dmrwBGLQV\",\n    \"row\": {\n        \"sid\": \"xADG0a40xa5bczEJOTY49\",\n        \"name\": \"TEST1: Test Record 2024-11-03\"\n    },\n    \"updated_by\": {\n        \"sid\": \"knqt0a40xffmrwBGLQV\",\n        \"name\": \"Test Labii\"\n    },\n    \"date_created\": \"2024-11-04T06:16:12.665952Z\",\n    \"change_permission\": false\n}"}],"_postman_id":"2dcb5be1-a850-4bbe-a116-ba60d4908379"}],"id":"c6a602fe-3fba-4332-a31c-c2ec781c5150","description":"<p>The Labii Visitor API provides users with a streamlined way to manage and monitor visitor interactions with records. This API enables users to retrieve a comprehensive list of visitors associated with a specific record, as well as view detailed information about each visitor. By facilitating easy access to visitor data, the API enhances the ability to analyze engagement and interactions, supporting better decision-making and record management.</p>\n","_postman_id":"c6a602fe-3fba-4332-a31c-c2ec781c5150","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Signer","item":[{"name":"Get Signer List","event":[{"listen":"test","script":{"id":"5fc109bb-1565-435f-830e-ee2f12d29680","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('page_size');","    pm.expect(responseData).to.have.property('page_number');","    pm.expect(responseData).to.have.property('page_count');","    pm.expect(responseData).to.have.property('count');","    pm.expect(responseData).to.have.property('next');","    pm.expect(responseData).to.have.property('previous');","    pm.expect(responseData).to.have.property('add_permission');","    pm.expect(responseData).to.have.property('results');","});","","","pm.test(\"Results array is present and contains the expected number of elements\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.results).to.exist.and.to.be.an('array');","    pm.expect(responseData.results).to.have.lengthOf(1);","});","","","pm.test(\"Each 'result' object within the 'results' array has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.results).to.be.an('array');","    responseData.results.forEach(function(result) {","        pm.expect(result).to.have.property('sid');","        pm.expect(result).to.have.property('row');","        pm.expect(result).to.have.property('order');","        pm.expect(result).to.have.property('signer');","        pm.expect(result).to.have.property('role');","        pm.expect(result).to.have.property('minimum_number_of_signers');","        pm.expect(result).to.have.property('change_permission');","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"f7914bee-83a2-4f32-89fa-71c085e54a68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/signer/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","description":"<h3 id=\"get-signer-list-by-organization\">Get Signer List by Organization</h3>\n<p>This endpoint retrieves the list of signers for a specific organization.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/tables/signer/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will contain the following fields:</p>\n<ul>\n<li><p><code>page_size</code> (number) - The number of items per page</p>\n</li>\n<li><p><code>page_number</code> (number) - The current page number</p>\n</li>\n<li><p><code>page_count</code> (number) - The total number of pages</p>\n</li>\n<li><p><code>count</code> (number) - The total count of signers</p>\n</li>\n<li><p><code>next</code> (string) - The URL for the next page</p>\n</li>\n<li><p><code>previous</code> (string) - The URL for the previous page</p>\n</li>\n<li><p><code>add_permission</code> (boolean) - Indicates if the user has permission to add signers</p>\n</li>\n<li><p><code>results</code> (array) - An array of signer objects, each containing the following fields:</p>\n<ul>\n<li><p><code>sid</code> (string) - The signer ID</p>\n</li>\n<li><p><code>row</code> (object) - The row information</p>\n<ul>\n<li><p><code>sid</code> (string) - The row ID</p>\n</li>\n<li><p><code>name</code> (string) - The name of the row</p>\n</li>\n</ul>\n</li>\n<li><p><code>order</code> (number) - The order of the signer</p>\n</li>\n<li><p><code>signer</code> (object) - The signer information</p>\n<ul>\n<li><p><code>sid</code> (string) - The signer ID</p>\n</li>\n<li><p><code>name</code> (string) - The name of the signer</p>\n</li>\n</ul>\n</li>\n<li><p><code>role</code> (string) - The role of the signer</p>\n</li>\n<li><p><code>signature</code> (null) - The signature of the signer</p>\n</li>\n<li><p><code>svg</code> (null) - The SVG representation of the signature</p>\n</li>\n<li><p><code>date_signed</code> (null) - The date when the signer signed</p>\n</li>\n<li><p><code>comment</code> (null) - Any comment provided by the signer</p>\n</li>\n<li><p><code>minimum_number_of_signers</code> (number) - The minimum number of signers required</p>\n</li>\n<li><p><code>change_permission</code> (boolean) - Indicates if the user has permission to change signers</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","signer","list","organization","{{organization_sid_test_edit}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"row__sid","value":"{{record_sid}}"}],"variable":[]}},"response":[{"id":"bdc8be99-007d-4845-90f4-f5223580ffad","name":"Get Signer List","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://www.labii.dev/tables/signer/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","host":["https://www.labii.dev"],"path":["tables","signer","list","organization","{{organization_sid_test_edit}}","list",""],"query":[{"key":"row__sid","value":"{{record_sid}}","sortOrder":0}]}},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 07:43:15 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"431","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": true,\n    \"results\": [\n        {\n            \"sid\": \"258a0a40x12a49dinsxC\",\n            \"row\": {\n                \"sid\": \"xADG0a40xa5bczEJOTY49\",\n                \"name\": \"TEST1: Test Record 2024-11-03\"\n            },\n            \"order\": 1,\n            \"signer\": {\n                \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n                \"name\": \"Test Labii\"\n            },\n            \"role\": \"Author\",\n            \"signature\": null,\n            \"svg\": null,\n            \"date_signed\": null,\n            \"comment\": null,\n            \"minimum_number_of_signers\": 0,\n            \"change_permission\": true\n        }\n    ]\n}"}],"_postman_id":"f7914bee-83a2-4f32-89fa-71c085e54a68"},{"name":"Create Signer","event":[{"listen":"test","script":{"id":"998c5a1e-3f6c-44e3-a5f5-4cfdc77f56cc","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"signer_sid\", jsonData.sid);","","","pm.test(\"Response status code is 201\", function () {","    pm.response.to.have.status(201);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.row).to.exist.and.to.be.an('object');","    pm.expect(responseData.order).to.exist;","    pm.expect(responseData.signer).to.exist.and.to.be.an('object');","    pm.expect(responseData.role).to.exist;","    pm.expect(responseData.signature).to.exist;","    pm.expect(responseData.svg).to.exist;","    pm.expect(responseData.date_signed).to.exist;","    pm.expect(responseData.comment).to.exist;","    pm.expect(responseData.minimum_number_of_signers).to.exist;","    pm.expect(responseData.change_permission).to.exist;","});","","","pm.test(\"Sid is a non-empty string\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.sid).to.be.a('string').and.to.have.lengthOf.at.least(1);","});","","","pm.test(\"Date_signed is either null or in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.date_signed).to.satisfy(function (date) {","        return date === null || !isNaN(Date.parse(date));","    }, \"Date_signed should be null or in a valid date format\");","});","",""],"type":"text/javascript","packages":{}}}],"id":"3f3da93c-b687-4eea-95dc-e56a4d7bb7d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"signer\": {\n        \"sid\": \"{{people_sid_test_edit}}\",\n        \"name\": \"Test Labii\"\n    },\n    \"role\": \"Author\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/signer/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","description":"<h3 id=\"endpoint-description\">Endpoint Description</h3>\n<p>This endpoint makes an HTTP POST request to retrieve a list of signers for a specific organization and record.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p><strong>Type</strong>: Raw</p>\n</li>\n<li><p><strong>Description</strong>: The request body should contain a JSON object with the following parameters:</p>\n<ul>\n<li><p><code>signer</code> (object): Contains the details of the signer including <code>sid</code> and <code>name</code>.</p>\n</li>\n<li><p><code>role</code> (string): Specifies the role of the signer.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response for this request is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sid\": \"\",\n  \"row\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"order\": 0,\n  \"signer\": {\n    \"sid\": \"\",\n    \"name\": \"\"\n  },\n  \"role\": \"\",\n  \"signature\": null,\n  \"svg\": null,\n  \"date_signed\": null,\n  \"comment\": null,\n  \"minimum_number_of_signers\": 0,\n  \"change_permission\": true\n}\n\n</code></pre>\n<ul>\n<li><p><code>sid</code> (string): Identifier for the response.</p>\n</li>\n<li><p><code>row</code> (object): Contains the details of the row including <code>sid</code> and <code>name</code>.</p>\n</li>\n<li><p><code>order</code> (number): Specifies the order of the signer.</p>\n</li>\n<li><p><code>signer</code> (object): Contains the details of the signer including <code>sid</code> and <code>name</code>.</p>\n</li>\n<li><p><code>role</code> (string): Specifies the role of the signer.</p>\n</li>\n<li><p><code>signature</code> (null): The signature of the signer.</p>\n</li>\n<li><p><code>svg</code> (null): SVG representation of the signature.</p>\n</li>\n<li><p><code>date_signed</code> (null): Date when the signer signed.</p>\n</li>\n<li><p><code>comment</code> (null): Any additional comments.</p>\n</li>\n<li><p><code>minimum_number_of_signers</code> (number): Minimum number of signers required.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates if change permission is granted.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","signer","list","organization","{{organization_sid_test_edit}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"row__sid","value":"{{record_sid}}"}],"variable":[]}},"response":[{"id":"9d19a1df-fca7-40c8-9168-552763077698","name":"Create Signer","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"signer\": {\n        \"sid\": \"{{people_sid_test_edit}}\",\n        \"name\": \"Test Labii\"\n    },\n    \"role\": \"Author\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://www.labii.dev/tables/signer/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","host":["https://www.labii.dev"],"path":["tables","signer","list","organization","{{organization_sid_test_edit}}","list",""],"query":[{"key":"row__sid","value":"{{record_sid}}","sortOrder":0}]}},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 07:42:44 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"311","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"258a0a40x12a49dinsxC\",\n    \"row\": {\n        \"sid\": \"xADG0a40xa5bczEJOTY49\",\n        \"name\": \"TEST1: Test Record 2024-11-03\"\n    },\n    \"order\": 1,\n    \"signer\": {\n        \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n        \"name\": \"Test Labii\"\n    },\n    \"role\": \"Author\",\n    \"signature\": null,\n    \"svg\": null,\n    \"date_signed\": null,\n    \"comment\": null,\n    \"minimum_number_of_signers\": 0,\n    \"change_permission\": true\n}"}],"_postman_id":"3f3da93c-b687-4eea-95dc-e56a4d7bb7d2"},{"name":"Get Signer Detail","event":[{"listen":"test","script":{"id":"8223f89c-5abe-4928-be63-45c31cc82178","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData).to.be.an('object');","  pm.expect(responseData.sid).to.exist;","  pm.expect(responseData.row).to.exist;","  pm.expect(responseData.order).to.exist;","  pm.expect(responseData.signer).to.exist;","  pm.expect(responseData.role).to.exist;","  pm.expect(responseData.minimum_number_of_signers).to.exist;","  pm.expect(responseData.change_permission).to.exist;","});","","","pm.test(\"Date_signed is in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.date_signed).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});",""],"type":"text/javascript","packages":{}}}],"id":"b548442b-8143-44f9-9edb-7acb6399765f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/signer/detail/{{signer_sid}}/","description":"<h3 id=\"retrieve-signer-detail\">Retrieve Signer Detail</h3>\n<p>This endpoint retrieves the details of a signer by their unique identifier.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>Endpoint: https://www.labii.dev/tables/signer/detail/{{signer_sid}}/</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request follows the JSON schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sid\": {\n      \"type\": \"string\"\n    },\n    \"row\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\n          \"type\": \"string\"\n        },\n        \"name\": {\n          \"type\": \"string\"\n        }\n      }\n    },\n    \"order\": {\n      \"type\": \"integer\"\n    },\n    \"signer\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\n          \"type\": \"string\"\n        },\n        \"name\": {\n          \"type\": \"string\"\n        }\n      }\n    },\n    \"role\": {\n      \"type\": \"string\"\n    },\n    \"signature\": {\n      \"type\": [\"null\", \"string\"]\n    },\n    \"svg\": {\n      \"type\": [\"null\", \"string\"]\n    },\n    \"date_signed\": {\n      \"type\": [\"null\", \"string\"]\n    },\n    \"comment\": {\n      \"type\": [\"null\", \"string\"]\n    },\n    \"minimum_number_of_signers\": {\n      \"type\": \"integer\"\n    },\n    \"change_permission\": {\n      \"type\": \"boolean\"\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","signer","detail","{{signer_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"44e81944-8eec-463c-9656-3e0be36605f4","name":"Get Signer Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/signer/detail/{{signer_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 07:43:59 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"311","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"258a0a40x12a49dinsxC\",\n    \"row\": {\n        \"sid\": \"xADG0a40xa5bczEJOTY49\",\n        \"name\": \"TEST1: Test Record 2024-11-03\"\n    },\n    \"order\": 1,\n    \"signer\": {\n        \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n        \"name\": \"Test Labii\"\n    },\n    \"role\": \"Author\",\n    \"signature\": null,\n    \"svg\": null,\n    \"date_signed\": null,\n    \"comment\": null,\n    \"minimum_number_of_signers\": 0,\n    \"change_permission\": true\n}"}],"_postman_id":"b548442b-8143-44f9-9edb-7acb6399765f"},{"name":"Edit Signer","event":[{"listen":"test","script":{"id":"1fd74963-839e-42dc-bf9f-2c07e6258a61","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    const requiredFields = [\"sid\", \"row\", \"order\", \"signer\", \"role\", \"signature\", \"svg\", \"date_signed\", \"comment\", \"minimum_number_of_signers\", \"change_permission\"];","    requiredFields.forEach(field => {","        pm.expect(responseData).to.have.property(field);","    });","});","","","pm.test(\"Date_signed is in a valid date format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.date_signed).to.match(/^\\d{4}-\\d{2}-\\d{2}$/);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Row object is present and contains expected properties\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.row).to.exist;","    pm.expect(responseData.row).to.have.property('sid');","    pm.expect(responseData.row).to.have.property('name');","});",""],"type":"text/javascript","packages":{}}}],"id":"1dbe3fca-bd1b-46e5-921d-0ac37e293a03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"role\": \"Witness\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/signer/detail/{{signer_sid}}/","description":"<h3 id=\"get-tablessignerdetailsigner_sid\">GET /tables/signer/detail/{{signer_sid}}/</h3>\n<p>This endpoint retrieves details of a specific signer from the tables.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>Endpoint: https://www.labii.dev/tables/signer/detail/{{signer_sid}}/</p>\n</li>\n<li><p>Headers: (if any)</p>\n</li>\n</ul>\n<h5 id=\"request-body\">Request Body</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"role\": \"Witness\"\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request follows the JSON schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sid\": {\n      \"type\": \"string\"\n    },\n    \"row\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\n          \"type\": \"string\"\n        },\n        \"name\": {\n          \"type\": \"string\"\n        }\n      }\n    },\n    \"order\": {\n      \"type\": \"integer\"\n    },\n    \"signer\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"sid\": {\n          \"type\": \"string\"\n        },\n        \"name\": {\n          \"type\": \"string\"\n        }\n      }\n    },\n    \"role\": {\n      \"type\": \"string\"\n    },\n    \"signature\": {\n      \"type\": [\"null\", \"string\"]\n    },\n    \"svg\": {\n      \"type\": [\"null\", \"string\"]\n    },\n    \"date_signed\": {\n      \"type\": [\"null\", \"string\"]\n    },\n    \"comment\": {\n      \"type\": [\"null\", \"string\"]\n    },\n    \"minimum_number_of_signers\": {\n      \"type\": \"integer\"\n    },\n    \"change_permission\": {\n      \"type\": \"boolean\"\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","signer","detail","{{signer_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"12371730-d958-4a6d-a65f-1bbb6d52db5e","name":"Edit Signer","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"role\": \"Witness\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/signer/detail/{{signer_sid}}/"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 07:44:53 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"311","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"258a0a40x12a49dinsxC\",\n    \"row\": {\n        \"sid\": \"xADG0a40xa5bczEJOTY49\",\n        \"name\": \"TEST1: Test Record 2024-11-03\"\n    },\n    \"order\": 1,\n    \"signer\": {\n        \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n        \"name\": \"Test Labii\"\n    },\n    \"role\": \"Author\",\n    \"signature\": null,\n    \"svg\": null,\n    \"date_signed\": null,\n    \"comment\": null,\n    \"minimum_number_of_signers\": 0,\n    \"change_permission\": true\n}"}],"_postman_id":"1dbe3fca-bd1b-46e5-921d-0ac37e293a03"},{"name":"Sign","event":[{"listen":"test","script":{"id":"150f0577-54ef-4b4b-a644-ba670d213943","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.sid).to.exist;","    pm.expect(responseData.row).to.exist;","    pm.expect(responseData.order).to.exist;","    pm.expect(responseData.signer).to.exist;","    pm.expect(responseData.role).to.exist;","    pm.expect(responseData.signature).to.exist;","    pm.expect(responseData.minimum_number_of_signers).to.exist;","    pm.expect(responseData.change_permission).to.exist;","});","","","pm.test(\"Sid is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.sid).to.be.a('string').and.to.have.lengthOf.at.least(1);","});","","","pm.test(\"Name is a non-empty string\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.row.name).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Name should not be empty\");","});",""],"type":"text/javascript","packages":{}}}],"id":"6c86206d-c619-457e-81b1-a3ae0cd9a1e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"{{password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/signer/detail/{{signer_sid}}/?action=sign","description":"<h1 id=\"update-signer-detail-and-trigger-sign-action\">Update Signer Detail and Trigger Sign Action</h1>\n<p>This endpoint is used to update the details of a signer and trigger the sign action.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>password</code> (string, required): The password for the signer.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier for the response.</p>\n</li>\n<li><p><code>row</code> (object): An object containing the details of the signer's row.</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier for the row.</p>\n</li>\n<li><p><code>name</code> (string): The name of the signer.</p>\n</li>\n</ul>\n</li>\n<li><p><code>order</code> (integer): The order of the signer.</p>\n</li>\n<li><p><code>signer</code> (object): An object containing the details of the signer.</p>\n<ul>\n<li><p><code>sid</code> (string): The unique identifier for the signer.</p>\n</li>\n<li><p><code>name</code> (string): The name of the signer.</p>\n</li>\n</ul>\n</li>\n<li><p><code>role</code> (string): The role of the signer.</p>\n</li>\n<li><p><code>signature</code> (string): The signature of the signer.</p>\n</li>\n<li><p><code>svg</code> (string): The SVG representation of the signature.</p>\n</li>\n<li><p><code>date_signed</code> (string): The date when the signer signed.</p>\n</li>\n<li><p><code>comment</code> (string): Any additional comment provided.</p>\n</li>\n<li><p><code>minimum_number_of_signers</code> (integer): The minimum number of signers required.</p>\n</li>\n<li><p><code>change_permission</code> (boolean): Indicates if there is a change permission.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","signer","detail","{{signer_sid}}",""],"host":["https://www.labii.dev"],"query":[{"key":"action","value":"sign"}],"variable":[]}},"response":[{"id":"cc0d8ecc-74dc-4935-ae15-9c9281b57e68","name":"Sign","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"{{password}}\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://www.labii.dev/tables/signer/detail/{{signer_sid}}/?action=sign","host":["https://www.labii.dev"],"path":["tables","signer","detail","{{signer_sid}}",""],"query":[{"key":"action","value":"sign","sortOrder":0}]}},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 07:48:56 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"418","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"258a0a40x12a49dinsxC\",\n    \"row\": {\n        \"sid\": \"xADG0a40xa5bczEJOTY49\",\n        \"name\": \"TEST1: Test Record 2024-11-03\"\n    },\n    \"order\": 1,\n    \"signer\": {\n        \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n        \"name\": \"Test Labii\"\n    },\n    \"role\": \"Author\",\n    \"signature\": \"TjNqODMyNDhiZTU3ODZhYWYxMWNkYWU4MjNiNTYwNjdmOWQ5X0cyZHkweDcweDMxYzRWWmtYb3dPNUcxZVY_\",\n    \"svg\": null,\n    \"date_signed\": \"2024-11-04T07:48:55.525163Z\",\n    \"comment\": null,\n    \"minimum_number_of_signers\": 0,\n    \"change_permission\": true\n}"}],"_postman_id":"6c86206d-c619-457e-81b1-a3ae0cd9a1e9"},{"name":"Reject","event":[{"listen":"test","script":{"id":"4ab5d56c-f2d3-45d1-a431-5d7befd6315d","exec":["pm.test(\"Response status code is 200\", function () {","  pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Response time is within an acceptable range\", function () {","  pm.expect(pm.response.responseTime).to.be.below(300);","});","","","pm.test(\"Response body structure matches the expected schema\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('status');","    pm.expect(responseData).to.have.property('message');","});",""],"type":"text/javascript","packages":{}}}],"id":"f1f05dd0-4261-4438-9188-db189f5acf71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"{{password}}\",\n    \"comment\": \"Test reject from postman.\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/signer/detail/{{signer_sid}}/?action=reject","description":"<p>This endpoint is used to send an HTTP PATCH request to update the details of a specific signer in the tables. The <code>signer_sid</code> path parameter is used to specify the signer, and the <code>action</code> query parameter is set to \"reject\" to indicate the rejection action.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p><code>password</code> (string): The password for authentication.</p>\n</li>\n<li><p><code>comment</code> (string): A comment explaining the rejection.</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response of this request is documented as a JSON schema.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","signer","detail","{{signer_sid}}",""],"host":["https://www.labii.dev"],"query":[{"key":"action","value":"reject"}],"variable":[]}},"response":[],"_postman_id":"f1f05dd0-4261-4438-9188-db189f5acf71"},{"name":"Delete Signer","event":[{"listen":"test","script":{"id":"68883ece-23c8-453c-8673-d21677ac9ca9","exec":["pm.test(\"Response status code is 204\", function () {","    pm.response.to.have.status(204);","});","","","pm.test(\"Response time is less than 500ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});","",""],"type":"text/javascript","packages":{}}}],"id":"b86ba637-17ab-41cc-8e32-f9fe2b9734ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://www.labii.dev/tables/signer/detail/{{signer_sid}}/","description":"<p>This endpoint is used to delete the details of a specific signer from the tables.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>This request does not require a request body.</p>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful deletion, the response will not contain a message body. The status code will indicate the success of the operation.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","signer","detail","{{signer_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"b86ba637-17ab-41cc-8e32-f9fe2b9734ea"}],"id":"1c0e36b9-0563-4ec2-9c31-44ebf9f6110a","description":"<p>The Labii Signer API is a crucial tool for managing the signing process of records, allowing users to define and control who has the authority to sign. With this API, users can easily retrieve a list of signers, create new signers, access detailed information about specific signers, edit signer details, and manage signing actions such as signing or rejecting a record. Additionally, users can delete signers as needed. This functionality enhances the integrity and accountability of record management, ensuring that only authorized individuals can approve or reject records in a streamlined manner.</p>\n","_postman_id":"1c0e36b9-0563-4ec2-9c31-44ebf9f6110a","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}},{"name":"Permission","item":[{"name":"Get Permission List","event":[{"listen":"test","script":{"id":"2c924f78-f64c-4ca0-b3f4-3a9b68ad3169","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Validate the response schema for the fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.page_size).to.exist;","    pm.expect(responseData.page_number).to.exist;","    pm.expect(responseData.page_count).to.exist;","    pm.expect(responseData.count).to.exist;","    pm.expect(responseData.next).to.exist;","    pm.expect(responseData.previous).to.exist;","    pm.expect(responseData.add_permission).to.exist;","    pm.expect(responseData.results).to.exist.and.to.be.an('array');","});","","","pm.test(\"Each result object contains the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.results).to.be.an('array').that.is.not.empty;","","    responseData.results.forEach(function(result) {","        pm.expect(result).to.have.property('sid').that.is.a('string').and.is.not.empty;","        pm.expect(result).to.have.property('people').that.is.an('object').and.is.not.empty;","        pm.expect(result.people).to.have.property('sid').that.is.a('string').and.is.not.empty;","        pm.expect(result.people).to.have.property('name').that.is.a('string').and.is.not.empty;","        pm.expect(result).to.have.property('permission').that.is.a('number');","        pm.expect(result).to.have.property('change_permission').that.is.a('boolean');","    });","});","","","pm.test(\"Permission and change_permission fields are in the expected format and range\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    ","    responseData.results.forEach(function(result) {","        pm.expect(result.permission).to.be.a('number');","        pm.expect(result.change_permission).to.be.a('boolean');","    });","});",""],"type":"text/javascript","packages":{}}}],"id":"6b5d2495-1ef5-4ba5-abc8-7bba4b9da719","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/permission/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","description":"<h3 id=\"get-table-permissions-by-organization-and-record\">Get Table Permissions by Organization and Record</h3>\n<p>This endpoint retrieves the list of table permissions for a specific organization and record.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/tables/permission/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request can be represented as a JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"page_size\": { \"type\": \"integer\" },\n        \"page_number\": { \"type\": \"integer\" },\n        \"page_count\": { \"type\": \"integer\" },\n        \"count\": { \"type\": \"integer\" },\n        \"next\": { \"type\": [\"string\", \"null\"] },\n        \"previous\": { \"type\": [\"string\", \"null\"] },\n        \"add_permission\": { \"type\": \"boolean\" },\n        \"results\": {\n            \"type\": \"array\",\n            \"items\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"sid\": { \"type\": \"string\" },\n                    \"people\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"sid\": { \"type\": \"string\" },\n                            \"name\": { \"type\": \"string\" }\n                        }\n                    },\n                    \"permission\": { \"type\": \"integer\" },\n                    \"change_permission\": { \"type\": \"boolean\" }\n                }\n            }\n        }\n    }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","permission","list","organization","{{organization_sid_test_edit}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"row__sid","value":"{{record_sid}}"}],"variable":[]}},"response":[{"id":"4d5e678a-19f6-4311-9a17-c2e8ac40267f","name":"Get Permission List","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://www.labii.dev/tables/permission/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","host":["https://www.labii.dev"],"path":["tables","permission","list","organization","{{organization_sid_test_edit}}","list",""],"query":[{"key":"row__sid","value":"{{record_sid}}","sortOrder":0}]}},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 04 Nov 2024 07:52:49 GMT","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Allow","value":"GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"Expires","value":"0","type":"text"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate","type":"text"},{"key":"Pragma","value":"no-cache","type":"text"},{"key":"Server","value":"Labii","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp","type":"text"},{"key":"Content-Security-Policy","value":"style-src 'self' *.amazonaws.com 'unsafe-inline'; frame-src 'none'; script-src 'self' *.amazonaws.com; img-src 'self' *.amazonaws.com; font-src 'self' data: *.amazonaws.com; default-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.labii.com http://localhost:3000","type":"text"},{"key":"Vary","value":"Accept-Language, Cookie, Origin","type":"text"},{"key":"Content-Language","value":"en","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"669","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"X-XSS-Protection","value":"1; mode=block","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"page_size\": 10,\n    \"page_number\": 1,\n    \"page_count\": 1,\n    \"count\": 4,\n    \"next\": null,\n    \"previous\": null,\n    \"add_permission\": false,\n    \"results\": [\n        {\n            \"sid\": \"58ad0a40x86237bglqvAF\",\n            \"people\": {\n                \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n                \"name\": \"Test Labii\"\n            },\n            \"permission\": 1,\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"69be0a40x86248chmrwBG\",\n            \"people\": {\n                \"sid\": \"NQTW0a40x31caPUZ50ejo\",\n                \"name\": \"Developer Labii\"\n            },\n            \"permission\": 1,\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"70cf0a40x86259dinsxCH\",\n            \"people\": {\n                \"sid\": \"ORUX0a40x31cbQV16afkp\",\n                \"name\": \"Inactive Labii\"\n            },\n            \"permission\": 1,\n            \"change_permission\": false\n        },\n        {\n            \"sid\": \"8adg0a40x86260ejotyDI\",\n            \"people\": {\n                \"sid\": \"PSVY0a40x31ccRW27bglq\",\n                \"name\": \"Business Labii\"\n            },\n            \"permission\": 1,\n            \"change_permission\": false\n        }\n    ]\n}"}],"_postman_id":"6b5d2495-1ef5-4ba5-abc8-7bba4b9da719"},{"name":"Create Permission","event":[{"listen":"test","script":{"id":"391ac070-8d6e-4f63-8dfd-224cc1156e5a","exec":["// Set the variable","var jsonData = pm.response.json();","pm.environment.set(\"permission_sid\", jsonData.sid);","","","pm.test(\"Response status code is 201\", function () {","    pm.expect(pm.response.code).to.equal(201);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Response body has the expected fields and data types\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.results).to.be.an('array');","    responseData.results.forEach(function(result) {","        pm.expect(result).to.have.property('id').that.is.a('number');","        pm.expect(result).to.have.property('name').that.is.a('string');","        pm.expect(result).to.have.property('description').that.is.a('string');","        pm.expect(result).to.have.property('created_at').that.is.a('string');","        pm.expect(result).to.have.property('updated_at').that.is.a('string');","    });","});","",""],"type":"text/javascript","packages":{}}}],"id":"540c9a3d-a140-4a70-b6e1-80d58ef23dcf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"people\": {\n        \"sid\": \"{{people_sid_test_edit}}\",\n        \"name\": \"Test Labii\"\n    },\n    \"permission\": \"Write\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/permission/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","description":"<h3 id=\"post-tablespermissionlistorganizationorganization_sid_test_editlistrow__sidrecord_sid\">POST /tables/permission/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}</h3>\n<p>This endpoint allows the user to create a new permission entry for a specific organization and record.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>people.sid</code> (string): The SID of the person for whom the permission is being set.</p>\n</li>\n<li><p><code>people.name</code> (string): The name of the person for whom the permission is being set.</p>\n</li>\n<li><p><code>permission</code> (string): The level of permission to be granted.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response of this request is a JSON object conforming to the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"message\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\"\n        },\n        \"people\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"sid\": {\n              \"type\": \"string\"\n            },\n            \"name\": {\n              \"type\": \"string\"\n            }\n          }\n        },\n        \"permission\": {\n          \"type\": \"string\"\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","permission","list","organization","{{organization_sid_test_edit}}","list",""],"host":["https://www.labii.dev"],"query":[{"key":"row__sid","value":"{{record_sid}}"}],"variable":[]}},"response":[{"id":"b7fdb0f6-2a8b-419f-8b52-ce00bca3f5db","name":"Create Permission","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"people\": {\n        \"sid\": \"{{people_sid_test_edit}}\",\n        \"name\": \"Test Labii\"\n    },\n    \"permission\": \"Write\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://www.labii.dev/tables/permission/list/organization/{{organization_sid_test_edit}}/list/?row__sid={{record_sid}}","host":["https://www.labii.dev"],"path":["tables","permission","list","organization","{{organization_sid_test_edit}}","list",""],"query":[{"key":"row__sid","value":"{{record_sid}}"}]}},"_postman_previewlanguage":"JSON","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"58ad0a40x86237bglqvAF\",\n    \"people\": {\n        \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n        \"name\": \"Test Labii\"\n    },\n    \"permission\": 1,\n    \"change_permission\": false\n}"}],"_postman_id":"540c9a3d-a140-4a70-b6e1-80d58ef23dcf"},{"name":"Get Permission Detail","event":[{"listen":"test","script":{"id":"8015dd5a-4c76-4b1f-b0c3-aff983711057","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('id');","    pm.expect(responseData).to.have.property('name');","    pm.expect(responseData).to.have.property('description');","    pm.expect(responseData).to.have.property('createdAt');","    pm.expect(responseData).to.have.property('updatedAt');","});","","","pm.test(\"Validate the schema of the response body\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('table_name');","    pm.expect(responseData).to.have.property('permission_type');","    pm.expect(responseData).to.have.property('access_level');","});","","","pm.test(\"Response time is less than 500ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});",""],"type":"text/javascript","packages":{}}}],"id":"c9c4f1f0-88c0-4a5b-b27f-8f0531b1357e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/permission/detail/{{permission_sid}}/","description":"<h1 id=\"get-table-permission-detail\">Get Table Permission Detail</h1>\n<p>This endpoint retrieves the details of a specific table permission.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"request-url\">Request URL</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">GET https://www.labii.dev/tables/permission/detail/{{permission_sid}}/\n\n</code></pre>\n<h3 id=\"request-description\">Request Description</h3>\n<p>This is a simple HTTP GET request to retrieve the details of a specific table permission.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<ul>\n<li><code>permission_sid</code> (path) - The unique identifier of the table permission.</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<p>The response for this request is a JSON object representing the details of the table permission.</p>\n<h3 id=\"response-body\">Response Body</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"permission_id\": \"string\",\n  \"table_id\": \"string\",\n  \"access_level\": \"string\",\n  \"created_at\": \"string\",\n  \"updated_at\": \"string\"\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","permission","detail","{{permission_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"6fe4e2ce-bc97-4812-9cea-91cf3e500be0","name":"Get Permission Detail","originalRequest":{"method":"GET","header":[],"url":"https://www.labii.dev/tables/permission/detail/{{permission_sid}}/"},"_postman_previewlanguage":"JSON","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"58ad0a40x86237bglqvAF\",\n    \"people\": {\n        \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n        \"name\": \"Test Labii\"\n    },\n    \"permission\": 1,\n    \"change_permission\": false\n}"}],"_postman_id":"c9c4f1f0-88c0-4a5b-b27f-8f0531b1357e"},{"name":"Edit Permission","event":[{"listen":"test","script":{"id":"883f20c1-bfd2-46e4-844a-a5b62d0cfc9a","exec":["pm.test(\"Response status code is 200\", function () {","  pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 500ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});","","","pm.test(\"Validate the response schema for the required fields and data types\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.permission_sid).to.be.a('string');","    pm.expect(responseData.table_name).to.be.a('string');","    pm.expect(responseData.permission_type).to.be.a('string');","    pm.expect(responseData.created_at).to.be.a('string');","    pm.expect(responseData.updated_at).to.be.a('string');","});",""],"type":"text/javascript","packages":{}}}],"id":"6bb64816-439d-48b2-8cd0-8b07aebe7bef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"permission\": \"Read\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.labii.dev/tables/permission/detail/{{permission_sid}}/","description":"<h1 id=\"update-table-permission-detail\">Update Table Permission Detail</h1>\n<p>This endpoint is used to update the permission details for a specific table.</p>\n<h2 id=\"request\">Request</h2>\n<ul>\n<li><p>Method: <code>PATCH</code></p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/tables/permission/detail/{{permission_sid}}/</code></p>\n</li>\n</ul>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p>Type: JSON</p>\n</li>\n<li><p>Description: The request should include the updated permission for the table.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"permission\": \"Read\"\n}\n\n</code></pre>\n<h2 id=\"response\">Response</h2>\n<p>The response for this request will be in JSON format. Below is a JSON schema representing the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"message\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"permission_sid\": {\n          \"type\": \"string\"\n        },\n        \"table_id\": {\n          \"type\": \"string\"\n        },\n        \"permission\": {\n          \"type\": \"string\"\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","permission","detail","{{permission_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[{"id":"d358b919-b23e-4d98-af3f-086527efa1dc","name":"Edit Permission","originalRequest":{"method":"PATCH","header":[],"url":"https://www.labii.dev/tables/permission/detail/{{permission_sid}}/"},"_postman_previewlanguage":"JSON","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"sid\": \"58ad0a40x86237bglqvAF\",\n    \"people\": {\n        \"sid\": \"HKNQ0a40x31c4JOTY49di\",\n        \"name\": \"Test Labii\"\n    },\n    \"permission\": 1,\n    \"change_permission\": false\n}"}],"_postman_id":"6bb64816-439d-48b2-8cd0-8b07aebe7bef"},{"name":"Delete Permission","event":[{"listen":"test","script":{"id":"408841e3-6cf1-4b20-ac21-848ee45e5b8f","exec":["pm.test(\"Response status code is 204\", function () {","    pm.response.to.have.status(204);","});","","","pm.test(\"Response time is less than 500ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(500);","});",""],"type":"text/javascript","packages":{}}}],"id":"c38cfa1a-72be-4b88-9922-c6dbe9871718","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://www.labii.dev/tables/permission/detail/{{permission_sid}}/","description":"<h3 id=\"delete-table-permission-detail\">Delete Table Permission Detail</h3>\n<p>This API endpoint sends an HTTP DELETE request to delete the details of a specific permission from a table.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: DELETE</p>\n</li>\n<li><p>URL: <code>https://www.labii.dev/tables/permission/detail/{{permission_sid}}/</code></p>\n</li>\n<li><p>Path Parameters:</p>\n<ul>\n<li><code>permission_sid</code>: The unique identifier of the permission detail to be deleted.</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON schema. The schema includes the following properties:</p>\n<ul>\n<li><p><code>status</code>: The status of the response.</p>\n</li>\n<li><p><code>message</code>: A message indicating the result of the delete operation.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}},"urlObject":{"path":["tables","permission","detail","{{permission_sid}}",""],"host":["https://www.labii.dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"c38cfa1a-72be-4b88-9922-c6dbe9871718"}],"id":"aa476c3e-08b6-47f8-ac64-b8c15fb4f220","description":"<p>The Labii Permission API is essential for managing access controls to records, defining who has read and write permissions. This API allows users to efficiently retrieve a list of existing permissions, create new permissions, access detailed information about specific permissions, edit them as necessary, and delete permissions that are no longer needed. By providing granular control over record access, this API enhances security and ensures that sensitive data is only accessible to authorized users, promoting effective data governance within the organization.</p>\n","_postman_id":"aa476c3e-08b6-47f8-ac64-b8c15fb4f220","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","id":"d3179a29-d7fe-4775-aafb-3e02ca988cd9","name":"Labii API Documentation","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_key}}"}]}},"event":[{"listen":"prerequest","script":{"id":"41f909ca-1545-4ece-b120-8d8bca4c14fd","type":"text/javascript","exec":["js = {","    getCurrentDate: function(){","        const date = new Date();","        const year = date.getFullYear();","        const month = String(date.getMonth() + 1).padStart(2, '0');","        const day = String(date.getDate()).padStart(2, '0');","        return `${year}-${month}-${day}`;","    },","    getNextWeekDate: function(){","        const date = new Date();","        date.setDate(date.getDate() + 7);","        const year = date.getFullYear();","        const month = String(date.getMonth() + 1).padStart(2, '0');","        const day = String(date.getDate()).padStart(2, '0');","        return `${year}-${month}-${day}`;","    }","}"]}},{"listen":"test","script":{"id":"e15c602c-8f37-4294-89b8-af3abc2aad15","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://www.labii.dev"},{"key":"apiKey","value":"yFlMjSup.IbHOCjyRiTb8QOO9Ltsbr"}]}