{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "http:\/\/localhost:8000"
        }
    ],
    "info": {
        "name": "Taskify SaaS - API Documentation",
        "_postman_id": "0ab94d77-f082-4245-af31-e2d888d1a051",
        "description": "",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Endpoints",
            "description": "",
            "item": [
                {
                    "name": "GET api\/user",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/user",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/user"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "x-xss-protection",
                                    "value": "1; mode=block"
                                },
                                {
                                    "key": "x-content-type-options",
                                    "value": "nosniff"
                                },
                                {
                                    "key": "referrer-policy",
                                    "value": "strict-origin-when-cross-origin"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get all roles.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/roles\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/roles\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the ."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Returns a list of all roles available in the system.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"roles\": [\n    {\n      \"id\": 1,\n      \"name\": \"Admin\",\n      \"guard_name\": \"web\",\n      \"created_at\": \"2024-01-01T12:00:00.000000Z\",\n      \"updated_at\": \"2024-01-01T12:00:00.000000Z\"\n    },\n    {\n      \"id\": 2,\n      \"name\": \"Client\",\n      \"guard_name\": \"client\",\n      \"created_at\": \"2024-01-01T12:00:00.000000Z\",\n      \"updated_at\": \"2024-01-01T12:00:00.000000Z\"\n    }\n  ]\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "GET api\/permissions\/{id?}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/permissions\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/permissions\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the ."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "x-ratelimit-limit",
                                    "value": "60"
                                },
                                {
                                    "key": "x-ratelimit-remaining",
                                    "value": "59"
                                },
                                {
                                    "key": "x-xss-protection",
                                    "value": "1; mode=block"
                                },
                                {
                                    "key": "x-content-type-options",
                                    "value": "nosniff"
                                },
                                {
                                    "key": "referrer-policy",
                                    "value": "strict-origin-when-cross-origin"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 404,
                            "body": "{\"error\":true,\"message\":\"Role not found.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "GET api\/master-panel\/dashboardList",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/dashboardList",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/dashboardList"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "location",
                                    "value": "http:\/\/localhost:8000"
                                },
                                {
                                    "key": "content-type",
                                    "value": "text\/html; charset=utf-8"
                                },
                                {
                                    "key": "x-ratelimit-limit",
                                    "value": "60"
                                },
                                {
                                    "key": "x-ratelimit-remaining",
                                    "value": "58"
                                },
                                {
                                    "key": "x-xss-protection",
                                    "value": "1; mode=block"
                                },
                                {
                                    "key": "x-content-type-options",
                                    "value": "nosniff"
                                },
                                {
                                    "key": "referrer-policy",
                                    "value": "strict-origin-when-cross-origin"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 302,
                            "body": "<!DOCTYPE html>\n<html>\n    <head>\n        <meta charset=\"UTF-8\" \/>\n        <meta http-equiv=\"refresh\" content=\"0;url='http:\/\/localhost:8000'\" \/>\n\n        <title>Redirecting to http:\/\/localhost:8000<\/title>\n    <\/head>\n    <body>\n        Redirecting to <a href=\"http:\/\/localhost:8000\">http:\/\/localhost:8000<\/a>.\n    <\/body>\n<\/html>",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "POST api\/master-panel\/update-module-dates",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/update-module-dates",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/update-module-dates"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"module\":{\"type\":\"project\",\"id\":17},\"start_date\":\"consequatur\",\"end_date\":\"consequatur\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": []
                },
                {
                    "name": "POST api\/master-panel\/tasks\/media\/delete-multiple",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/tasks\/media\/delete-multiple",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/tasks\/media\/delete-multiple"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"ids\":[17]}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": []
                },
                {
                    "name": "Update the completion status of a Todo.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/todo\/update-status",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/todo\/update-status"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":12,\"status\":true,\"isApi\":true}"
                        },
                        "description": "This endpoint allows the user to update the `is_completed` status of a specific Todo item by providing its ID and the desired status.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Status updated successfully.\",\n  \"id\": 12,\n  \"activity_message\": \"John Doe marked todo Task Title as Completed\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"No query results for model [App\\\\Models\\\\Todo] 999.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"id\": [\"The id field is required.\"],\n    \"status\": [\"The status field is required.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Todo couldn't be updated.\",\n  \"error\": \"Detailed error message\",\n  \"line\": 123,\n  \"file\": \"\/path\/to\/file.php\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "DELETE api\/master-panel\/payslips\/{id}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/payslips\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/payslips\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the payslip."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "User Authentication",
            "description": "This endpoint allows a user or client to authenticate using email and password. It applies rate limiting and returns a Bearer token upon successful login.",
            "item": [
                {
                    "name": "Register a new user",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/register",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/register"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"first_name\":\"John\",\"last_name\":\"ramanandi\",\"email\":\"bhurabhai@example.com\",\"phone\":\"9876543210\",\"password\":\"secret123\",\"password_confirmation\":\"secret123\"}"
                        },
                        "description": "This endpoint allows a new user to register with first name, last name, email, phone, and password.\nThe system ensures the email and phone are unique across both users and clients.\nUpon successful registration, the user is assigned the \"admin\" role, an admin record is created, and a token is issued.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"User registered successfully\",\n  \"redirect_url\": \"http:\/\/localhost:8000\/login\",\n  \"access_token\": \"1|ABCDEF1234567890...\",\n  \"token_type\": \"Bearer\"\n}",
                            "name": "Successful Registration"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": {\n    \"email\": [\n      \"The email has already been taken in users or clients.\"\n    ],\n    \"password\": [\n      \"Password must be at least 6 characters long.\"\n    ]\n  }\n}",
                            "name": "Validation Failed"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Something went wrong on the server.\"\n}",
                            "name": "Server Error"
                        }
                    ]
                },
                {
                    "name": "login",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/login",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/login"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"email\":\"admin@gmail.com\",\"password\":\"123456\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"User login successful\",\n  \"access_token\": \"1|X1Y2Z3TOKENEXAMPLE\",\n  \"token_type\": \"Bearer\",\n  \"account_type\": \"user\",\n  \"role\": \"admin\",\n  \"user\": {\n    \"id\": 1,\n    \"name\": \"John Doe\",\n    \"email\": \"johndoe@example.com\",\n    ...\n  },\n  \"redirect_url\": \"http:\/\/yourapp.com\/workspaces\/edit\/1\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Invalid credentials. Please try again.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"email\": [\"The email field is required.\"],\n    \"password\": [\"The password field is required.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 429,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Too many login attempts. Please try again in 60 seconds.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An unexpected error occurred. Please try again later.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Send Password Reset Link",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/forgot-password",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/forgot-password"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"email\":\"user@example.com\"}"
                        },
                        "description": "This endpoint sends a password reset link to the given email address\nif it belongs to a registered user or client.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Password reset link emailed successfully.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"email\": [\n      \"The email field is required.\"\n    ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Password reset link couldn't be sent, please check email settings.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Password reset link couldn't be sent, please configure email settings.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Reset Password (API)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/reset-password",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/reset-password"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "integer required The ID of the workspace the user belongs to. Example: 1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"token\":\"abc123\",\"email\":\"john.doe@example.com\",\"password\":\"newPassword123\",\"password_confirmation\":\"newPassword123\",\"account_type\":\"user\"}"
                        },
                        "description": "Reset a user's or client's password using a valid token. This is used after the user clicks a reset link in their email.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Password reset successful.\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"This password reset token is invalid.\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An unexpected error occurred.\",\n  \"data\": {\n    \"error\": \"Exception message here\"\n  }\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Dashboard",
            "description": "Retrieves a paginated list of users who have work anniversaries (based on their date of joining) within a specified number of upcoming days.\nThis endpoint supports filtering, sorting, searching, and pagination.",
            "item": [
                {
                    "name": "Get Upcoming Birthdays",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/upcoming-birthdays",
                            "query": [
                                {
                                    "key": "upcoming_days",
                                    "value": "15",
                                    "description": "Optional. Number of upcoming days to look for birthdays. Defaults to 30.",
                                    "disabled": false
                                },
                                {
                                    "key": "isApi",
                                    "value": "1",
                                    "description": "Optional. Pass true to get formatted API response.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/upcoming-birthdays?upcoming_days=15&isApi=1"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint retrieves a list of users within the current workspace whose birthdays are coming up within the next given number of days (default is 30).\nIt calculates the number of days left for each birthday and includes user details like name, photo, age, and profile link."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Upcoming birthdays fetched successfully.\",\n  \"data\": {\n    \"data\": [\n      {\n        \"id\": 5,\n        \"member\": \"John Doe\",\n        \"dob\": \"1995-07-18\",\n        \"days_left\": 12,\n        \"age\": 28,\n        \"photo\": \"http:\/\/example.com\/storage\/photos\/user5.jpg\",\n        \"profile_url\": \"http:\/\/example.com\/users\/5\"\n      }\n    ],\n    \"total\": 1\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Internal Server Error: Something went wrong.\",\n  \"data\": [],\n  \"status_code\": 500\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get Upcoming Work Anniversaries",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/upcoming-work-anniversaries",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "John",
                                    "description": "Optional. Search term to filter users by first name, last name, full name, or date of joining.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "doj",
                                    "description": "Optional. Field to sort by. Default is \"doj\".",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "ASC",
                                    "description": "Optional. Sort order: ASC or DESC. Default is \"ASC\".",
                                    "disabled": false
                                },
                                {
                                    "key": "upcoming_days",
                                    "value": "30",
                                    "description": "Optional. Number of upcoming days to check. Default is 30.",
                                    "disabled": false
                                },
                                {
                                    "key": "user_id",
                                    "value": "15",
                                    "description": "Optional. Filter by a specific user ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "10",
                                    "description": "Optional. Number of results per page. Default is 15.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/upcoming-work-anniversaries?search=John&sort=doj&order=ASC&upcoming_days=30&user_id=15&limit=10"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"rows\": [\n    {\n      \"id\": 1,\n      \"member\": \"Alice Smith \ud83e\udd73<ul class='list-unstyled users-list m-0 avatar-group d-flex align-items-center'><a href='http:\/\/example.com\/users\/1' target='_blank'><li class='avatar avatar-sm pull-up' title='Alice Smith'><img src='http:\/\/example.com\/storage\/photos\/alice.jpg' alt='Avatar' class='rounded-circle'>\",\n      \"wa_date\": \"2025-05-19 <span class='badge bg-success'>Today<\/span>\",\n      \"days_left\": 0\n    }\n  ],\n  \"total\": 25\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n  \"message\": \"Unauthenticated.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"order\": [\"The selected order is invalid. Must be ASC or DESC.\"],\n    \"sort\": [\"The selected sort field is invalid.\"],\n    \"upcoming_days\": [\"The upcoming_days must be an integer.\"],\n    \"limit\": [\"The limit must be a positive integer.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"status\": false,\n  \"message\": \"Internal server error. Please try again later.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get Members on Leave (Filtered & Paginated)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/members-on-leave",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "Jane",
                                    "description": "Optional. Search by first name or last name.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "from_date",
                                    "description": "Optional. Field to sort by. Default is `from_date`.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "DESC",
                                    "description": "Optional. Sort direction. Must be \"ASC\" or \"DESC\". Default is \"ASC\".",
                                    "disabled": false
                                },
                                {
                                    "key": "upcoming_days",
                                    "value": "15",
                                    "description": "Optional. Number of upcoming days to include. Default is 30.",
                                    "disabled": false
                                },
                                {
                                    "key": "user_id",
                                    "value": "5",
                                    "description": "Optional. Filter by a specific user ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "10",
                                    "description": "Optional. Number of records per page. Default is 15.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/members-on-leave?search=Jane&sort=from_date&order=DESC&upcoming_days=15&user_id=5&limit=10"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Returns a paginated list of users who are currently on leave or scheduled to be on leave\nwithin a specified number of upcoming days. Supports filtering by search term, sorting,\nuser ID, and respects permission-based visibility for the requesting user."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"rows\": [\n    {\n      \"id\": 12,\n      \"member\": \"John Doe <ul class='list-unstyled users-list ...'>...<\/ul>\",\n      \"from_date\": \"Mon, May 20, 2025\",\n      \"to_date\": \"Tue, May 21, 2025\",\n      \"type\": \"<span class='badge bg-primary'>Full<\/span>\",\n      \"duration\": \"2 days\",\n      \"days_left\": 1\n    }\n  ],\n  \"total\": 15\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n  \"message\": \"Unauthenticated.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"order\": [\"The selected order is invalid. Allowed values are ASC or DESC.\"],\n    \"sort\": [\"The selected sort field is invalid.\"],\n    \"upcoming_days\": [\"The upcoming_days must be an integer.\"],\n    \"limit\": [\"The limit must be a positive integer.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"status\": false,\n  \"message\": \"Internal server error. Please try again later.\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Project Managemant",
            "description": "This endpoint retrieves one specific project if an ID is provided, or returns a paginated list of projects\nbased on applied filters such as status, users, clients, date range, search terms, and favorite flag.",
            "item": [
                {
                    "name": "Get Project(s)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/projects\/:id",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "redesign",
                                    "description": "optional Search by project title, description, or ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "title",
                                    "description": "optional Column to sort by. Default is `created_at`.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "asc",
                                    "description": "optional Sort order. Accepts `asc` or `desc`. Default is `desc`.",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "5",
                                    "description": "optional Number of results per page. Default is 10.",
                                    "disabled": false
                                },
                                {
                                    "key": "offset",
                                    "value": "10",
                                    "description": "optional Offset for pagination. Default is 0.",
                                    "disabled": false
                                },
                                {
                                    "key": "status",
                                    "value": "1",
                                    "description": "optional Filter by status ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "user_id",
                                    "value": "2",
                                    "description": "optional Filter by user ID (assigned user).",
                                    "disabled": false
                                },
                                {
                                    "key": "client_id",
                                    "value": "1",
                                    "description": "optional Filter by client ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "project_start_date_from",
                                    "value": "2025-01-01",
                                    "description": "date optional Filter by project start date from (YYYY-MM-DD).",
                                    "disabled": false
                                },
                                {
                                    "key": "project_start_date_to",
                                    "value": "2025-12-31",
                                    "description": "date optional Filter by project start date to (YYYY-MM-DD).",
                                    "disabled": false
                                },
                                {
                                    "key": "project_end_date_from",
                                    "value": "2025-01-01",
                                    "description": "date optional Filter by project end date from (YYYY-MM-DD).",
                                    "disabled": false
                                },
                                {
                                    "key": "project_end_date_to",
                                    "value": "2025-12-31",
                                    "description": "date optional Filter by project end date to (YYYY-MM-DD).",
                                    "disabled": false
                                },
                                {
                                    "key": "is_favorites",
                                    "value": "1",
                                    "description": "optional Filter for favorite projects. Accepts 1 or 0.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/projects\/:id?search=redesign&sort=title&order=asc&limit=5&offset=10&status=1&user_id=2&client_id=1&project_start_date_from=2025-01-01&project_start_date_to=2025-12-31&project_end_date_from=2025-01-01&project_end_date_to=2025-12-31&is_favorites=1",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "23",
                                    "description": "optional The ID of the project to retrieve. If provided, other filters are ignored."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Fetch a single project by ID or a list of projects with optional filters."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Project retrieved successfully\",\n  \"total\": 1,\n  \"data\": [\n    {\n      \"id\": 23,\n      \"title\": \"this is A projects\",\n      \"task_count\": 0,\n      \"status\": \"Open\",\n      \"status_id\": 1,\n      \"priority\": \"low\",\n      \"priority_id\": 2,\n      \"users\": [\n        {\n          \"id\": 2,\n          \"first_name\": \"herry\",\n          \"last_name\": \"porter\",\n          \"email\": \"admin@gmail.com\",\n          \"photo\": \"http:\/\/localhost:8000\/storage\/photos\/no-image.jpg\"\n        }\n      ],\n      \"user_id\": [2],\n      \"clients\": [\n        {\n          \"id\": 1,\n          \"first_name\": \"jerry\",\n          \"last_name\": \"ginny\",\n          \"email\": \"jg@gmail.com\",\n          \"photo\": \"http:\/\/localhost:8000\/storage\/photos\/gqHsvgmDBCbtf843SRYx31e6Zl51amPZY8eG05FB.jpg\"\n        }\n      ],\n      \"client_id\": [1],\n      \"tags\": [\n        {\n          \"id\": 1,\n          \"title\": \".first tag\"\n        }\n      ],\n      \"tag_ids\": [1],\n      \"start_date\": \"2025-05-20\",\n      \"end_date\": \"2025-05-25\",\n      \"budget\": \"5000.00\",\n      \"task_accessibility\": \"private\",\n      \"description\": \"Project description here...\",\n      \"note\": \"Internal note\",\n      \"favorite\": false,\n      \"client_can_discuss\": null,\n      \"created_at\": \"2025-05-20\",\n      \"updated_at\": \"2025-05-20\"\n    }\n  ]\n}",
                            "name": "Single project found"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Project not found\",\n  \"total\": 0,\n  \"data\": []\n}",
                            "name": "Project not found"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Lead Couldn't Created.\",\n  \"error\": \"Some error message\",\n  \"line\": 143,\n  \"file\": \"\/app\/Http\/Controllers\/ProjectController.php\"\n}",
                            "name": "Unexpected error"
                        }
                    ]
                },
                {
                    "name": "Create a new project",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/projects",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/projects"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"Website Redesign\",\"status_id\":1,\"priority_id\":4,\"start_date\":\"2025-05-01\",\"end_date\":\"2025-05-31\",\"budget\":\"5000\",\"task_accessibility\":\"project_users\",\"description\":\"A complete redesign of the company website.\",\"note\":\"Client prefers Figma for designs.\",\"enable_tasks_time_entries\":true,\"user_id\":[1,2,3],\"client_id\":[1,43],\"tag_ids\":[1],\"isApi\":true,\"workspace_id\":17}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Project created successfully.\",\n  \"id\": 85,\n  \"data\": {\n    \"id\": 85,\n    \"title\": \"Website Redesign\",\n    \"task_count\": 0,\n    \"status\": \"Open\",\n    \"status_id\": 1,\n    \"priority\": \"high\",\n    \"priority_id\": 1,\n    \"users\": [\n      {\n        \"id\": 1,\n        \"first_name\": \"super\",\n        \"last_name\": \"Admin\",\n        \"email\": \"superadmin@gmail.com\",\n        \"photo\": \"http:\/\/localhost:8000\/storage\/photos\/no-image.jpg\"\n      }\n    ],\n    \"user_id\": [1, 2, 3],\n    \"clients\": [\n      {\n        \"id\": 1,\n        \"first_name\": \"jerry\",\n        \"last_name\": \"ginny\",\n        \"email\": \"jg@gmail.com\",\n        \"photo\": \"http:\/\/localhost:8000\/storage\/photos\/sample.jpg\"\n      }\n    ],\n    \"client_id\": [1, 28],\n    \"tags\": [\n      {\n        \"id\": 1,\n        \"title\": \".first tag\"\n      }\n    ],\n    \"tag_ids\": [1],\n    \"start_date\": \"2025-05-01\",\n    \"end_date\": \"2025-05-31\",\n    \"budget\": \"5000\",\n    \"task_accessibility\": \"project_users\",\n    \"description\": \"A complete redesign of the company website.\",\n    \"note\": \"Client prefers Figma for designs.\",\n    \"favorite\": false,\n    \"client_can_discuss\": null,\n    \"created_at\": \"2025-05-30\",\n    \"updated_at\": \"2025-05-30\"\n  }\n}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\n  \"error\": true,\n  \"message\": \"You are not authorized to set this status.\",\n  \"data\": [],\n  \"code\": 403\n}",
                            "name": "Unauthorized status change"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"title\": [\"The title field is required.\"],\n    \"status_id\": [\"The status field is required.\"],\n    \"start_date\": [\"The start date must be before end date.\"],\n    \"budget\": [\"The budget format is invalid.\"]\n  }\n}",
                            "name": "Validation errors"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Something went wrong while creating the project.\",\n  \"code\": 500\n}",
                            "name": "Unexpected server error"
                        }
                    ]
                },
                {
                    "name": "Update an existing project.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/projects\/:id",
                            "query": [
                                {
                                    "key": "isApi",
                                    "value": "1",
                                    "description": "Optional. Set to true if you want API formatted response.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/projects\/:id?isApi=1",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the project."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":111,\"title\":\"\\\"Website Redesign\\\"\",\"status_id\":1,\"priority_id\":4,\"budget\":5000,\"start_date\":\"2025-05-01\",\"end_date\":\"2025-05-31\",\"task_accessibility\":\"project_users\",\"description\":\"\\\"A complete redesign of the company website.\\\"\",\"note\":\"\\\"Client prefers Figma for designs.\\\"\",\"user_id\":[1,2,3],\"client_id\":[1,43],\"tag_ids\":[1],\"enable_tasks_time_entries\":true}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Project updated successfully.\",\n  \"id\": 111,\n  \"data\": {\n    \"id\": 111,\n    \"title\": \"updated\",\n    \"task_count\": 0,\n    \"status\": \"Open\",\n    \"status_id\": 1,\n    \"priority\": \"r\",\n    \"priority_id\": 4,\n    \"users\": [\n      {\n        \"id\": 2,\n        \"first_name\": \"herry\",\n        \"last_name\": \"porter\",\n        \"email\": \"admin@gmail.com\",\n        \"photo\": \"http:\/\/localhost:8000\/storage\/photos\/no-image.jpg\"\n      }\n    ],\n    \"user_id\": [2],\n    \"clients\": [],\n    \"client_id\": [],\n    \"tags\": [\n      {\n        \"id\": 1,\n        \"title\": \"first tag\"\n      }\n    ],\n    \"tag_ids\": [1],\n    \"start_date\": \"2025-05-01\",\n    \"end_date\": \"2025-05-31\",\n    \"budget\": \"5000\",\n    \"task_accessibility\": \"project_users\",\n    \"description\": \"A complete redesign of the company website.\",\n    \"note\": \"Client prefers Figma for designs.\",\n    \"favorite\": 0,\n    \"client_can_discuss\": null,\n    \"created_at\": \"2025-06-09\",\n    \"updated_at\": \"2025-06-09\"\n  }\n}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"title\": [\"The title field is required.\"]\n  }\n}",
                            "name": "Validation failed"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred while updating the project.\"\n}",
                            "name": "Unexpected error"
                        }
                    ]
                },
                {
                    "name": "Delete a project.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/projects\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/projects\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "85",
                                    "description": "The ID of the project to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint deletes a project by its ID. It also removes all associated comments and their attachments.\nFiles are permanently removed from the public storage disk.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Project deleted successfully.\",\n  \"id\": \"85\",\n  \"title\": \"this is updated\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Project not found.\",\n  \"data\": []\n}",
                            "name": "Project not found"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An unexpected error occurred while deleting the project.\",\n  \"exception\": \"Exception message\",\n  \"line\": 123,\n  \"file\": \"path\/to\/file\"\n}",
                            "name": "Unexpected error"
                        }
                    ]
                },
                {
                    "name": "Delete multiple projects.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/destroy-multiple-projects",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/destroy-multiple-projects"
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"ids\":[1,2,3]}"
                        },
                        "description": "This endpoint allows you to delete multiple projects by providing their IDs.\nAll related comments and attachments will also be permanently deleted."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Project(s) deleted successfully.\",\n  \"ids\": [1, 2, 3],\n  \"titles\": [\"Project A\", \"Project B\", \"Project C\"]\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"ids\": [\"The ids field is required.\"]\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update the favorite status of a project.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/update_favorite\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/update_favorite\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "17",
                                    "description": "The ID of the project to update."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"is_favorite\":17}"
                        },
                        "description": "This endpoint updates whether a project is marked as a favorite or not. The user must be authenticated to perform this action."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n\"error\": false,\n\"message\": \"Project favorite status updated successfully\",\n\"data\": {\n\"id\": 438,\n\"title\": \"Res Test\",\n\"status\": \"Default\",\n\"priority\": \"dsfdsf\",\n\"users\": [\n{\n\"id\": 7,\n\"first_name\": \"Madhavan\",\n\"last_name\": \"Vaidya\",\n\"photo\": \"https:\/\/test-taskify.infinitietech.com\/storage\/photos\/yxNYBlFLALdLomrL0JzUY2USPLILL9Ocr16j4n2o.png\"\n}\n],\n\"clients\": [\n{\n\"id\": 103,\n\"first_name\": \"Test\",\n\"last_name\": \"Test\",\n\"photo\": \"https:\/\/test-taskify.infinitietech.com\/storage\/photos\/no-image.jpg\"\n}\n],\n\"tags\": [\n{\n\"id\": 45,\n\"title\": \"Tag from update project\"\n}\n],\n\"start_date\": null,\n\"end_date\": null,\n\"budget\": \"1000.00\",\n\"task_accessibility\": \"assigned_users\",\n\"description\": null,\n\"note\": null,\n\"favorite\": 1,\n\"created_at\": \"07-08-2024 14:38:51\",\n\"updated_at\": \"12-08-2024 13:36:10\"\n}\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Project not found\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Validation errors occurred\",\n  \"errors\": {\n    \"is_favorite\": [\n      \"The is favorite field must be either 0 or 1.\"\n    ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred while updating the favorite status.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Duplicate a project.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/projects\/:id\/duplicate",
                            "query": [
                                {
                                    "key": "title",
                                    "value": "New+Project+Copy",
                                    "description": "Optional. A new title for the duplicated project.",
                                    "disabled": false
                                },
                                {
                                    "key": "reload",
                                    "value": "1",
                                    "description": "Optional. If true, flashes a session message.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/projects\/:id\/duplicate?title=New+Project+Copy&reload=1",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "12",
                                    "description": "The ID of the project to duplicate."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Project duplicated successfully.\",\n  \"id\": 12\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Project duplication failed.\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Project Media",
            "description": "",
            "item": [
                {
                    "name": "Upload media files to a specific project.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/projects\/upload-media",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/projects\/upload-media"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "multipart\/form-data"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "id",
                                    "value": "15",
                                    "type": "text",
                                    "description": "The ID of the project to attach media to."
                                },
                                {
                                    "key": "media_files[]",
                                    "src": [],
                                    "type": "file"
                                }
                            ]
                        },
                        "description": "This endpoint allows uploading one or multiple media files associated with a project.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Media uploaded successfully.\",\n  \"id\": [6, 7],\n  \"data\": [\n    {\n      \"id\": 6,\n      \"name\": \"maxresdefault\",\n      \"file_name\": \"maxresdefault.jpg\",\n      \"file_size\": 72106,\n      \"file_type\": \"image\/jpeg\",\n      \"created_at\": \"2025-06-02\",\n      \"updated_at\": \"2025-06-02\"\n    },\n    {\n      \"id\": 7,\n      \"name\": \"screenshot\",\n      \"file_name\": \"screenshot.png\",\n      \"file_size\": 45000,\n      \"file_type\": \"image\/png\",\n      \"created_at\": \"2025-06-02\",\n      \"updated_at\": \"2025-06-02\"\n    }\n  ]\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"No file(s) chosen.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"media_files.0\": [\"The media files.0 may not be greater than 2048 kilobytes.\"],\n    \"id\": [\"The selected id is invalid.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Project could not be created.\",\n  \"error\": \"Detailed exception message here\",\n  \"line\": 123,\n  \"file\": \"\/path\/to\/file.php\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get project media files",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/projects\/:id\/media",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "report",
                                    "description": "Optional. Search term to filter media by ID, file name, or creation date.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "file_name",
                                    "description": "Optional. Field to sort by (e.g., id, file_name). Default: id.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "asc",
                                    "description": "Optional. Sorting order: `asc` or `desc`. Default: desc.",
                                    "disabled": false
                                },
                                {
                                    "key": "isApi",
                                    "value": "1",
                                    "description": "Optional. When true, returns a formatted API response instead of JSON table structure.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/projects\/:id\/media?search=report&sort=file_name&order=asc&isApi=1",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "The ID of the project."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieves all media files uploaded to a specific project. Supports sorting and filtering. Returns a formatted list of media with file URL, preview, and action buttons.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Media retrieved successfully.\",\n  \"data\": [\n    {\n      \"id\": 4,\n      \"file\": \"<a href=\\\"http:\/\/localhost:8000\/storage\/project-media\/images.jpg\\\" data-lightbox=\\\"project-media\\\"> <img src=\\\"http:\/\/localhost:8000\/storage\/project-media\/images.jpg\\\" alt=\\\"images.jpg\\\" width=\\\"50\\\"><\/a>\",\n      \"file_name\": \"images.jpg\",\n      \"file_size\": \"11.89 KB\",\n      \"created_at\": \"2025-06-02\",\n      \"updated_at\": \"2025-06-02\",\n      \"actions\": [\n        \"<a href=\\\"http:\/\/localhost:8000\/storage\/project-media\/images.jpg\\\" title=Download download><i class=\\\"bx bx-download bx-sm\\\"><\/i><\/a><button title=Delete type=\\\"button\\\" class=\\\"btn delete\\\" data-id=\\\"4\\\" data-type=\\\"project-media\\\" data-table=\\\"project_media_table\\\"><i class=\\\"bx bx-trash text-danger\\\"><\/i><\/button>\"\n      ]\n    }\n  ]\n}",
                            "name": "Success - API response"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"rows\": [\n    {\n      \"id\": 4,\n      \"file\": \"<a href=\\\"http:\/\/localhost:8000\/storage\/project-media\/images.jpg\\\" data-lightbox=\\\"project-media\\\"> <img src=\\\"http:\/\/localhost:8000\/storage\/project-media\/images.jpg\\\" alt=\\\"images.jpg\\\" width=\\\"50\\\"><\/a>\",\n      \"file_name\": \"images.jpg\",\n      \"file_size\": \"11.89 KB\",\n      \"created_at\": \"2025-06-02\",\n      \"updated_at\": \"2025-06-02\",\n      \"actions\": [\n        \"<a href=\\\"http:\/\/localhost:8000\/storage\/project-media\/images.jpg\\\" title=Download download><i class=\\\"bx bx-download bx-sm\\\"><\/i><\/a><button title=Delete type=\\\"button\" class=\"btn delete\" data-id=\"4\" data-type=\"project-media\" data-table=\"project_media_table\"><i class=\"bx bx-trash text-danger\"><\/i><\/button>\"\n      ]\n    }\n  ],\n  \"total\": 1\n}",
                            "name": "Success - Non-API JSON table response"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"No query results for model [App\\\\Models\\\\Project] 99\"\n}",
                            "name": "Project not found"
                        }
                    ]
                },
                {
                    "name": "Delete a single media file by ID.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/media\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/media\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the medium."
                                },
                                {
                                    "id": "mediaId",
                                    "key": "mediaId",
                                    "value": "101",
                                    "description": "The ID of the media file to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Deletes a media file record and its associated file from storage.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"File deleted successfully.\",\n  \"id\": 101,\n  \"title\": \"example.jpg\",\n  \"parent_id\": 15,\n  \"type\": \"media\",\n  \"parent_type\": \"project\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"File not found.\"\n}",
                            "name": "Media Not Found"
                        }
                    ]
                },
                {
                    "name": "Delete multiple media files by their IDs.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/media\/delete-multiple",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/media\/delete-multiple"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"ids\":[101,102,103]}"
                        },
                        "description": "Accepts an array of media IDs to delete multiple media files in a single request.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Files(s) deleted successfully.\",\n  \"id\": [101, 102],\n  \"titles\": [\"example1.jpg\", \"example2.png\"],\n  \"parent_id\": [15, 15],\n  \"type\": \"media\",\n  \"parent_type\": \"project\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"ids\": [\n      \"The ids field is required.\"\n    ],\n    \"ids.0\": [\n      \"The selected ids.0 is invalid.\"\n    ]\n  }\n}",
                            "name": "Validation Error"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Project Milestones",
            "description": "This API returns either a single milestone (if an `id` is provided) or a paginated list of milestones.\nIt supports filtering by title, description, status, and date ranges. Sorting and pagination are also supported.",
            "item": [
                {
                    "name": "Create a new milestone for a project",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/create-milestone",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/create-milestone"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"project_id\":5,\"title\":\"Final Design Review\",\"status\":\"incomplete\",\"start_date\":\"2025-06-10\",\"end_date\":\"2025-06-20\",\"cost\":\"2000.50\",\"description\":\"All screens finalized and approved by client.\"}"
                        },
                        "description": "This endpoint allows users to create a milestone under a specific project.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Milestone created successfully.\",\n  \"data\": {\n    \"id\": 12,\n    \"type\": \"milestone\",\n    \"parent_type\": \"project\",\n    \"parent_id\": 5\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"project_id\": [\"The project_id field is required.\"],\n    \"title\": [\"The title field is required.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Milestone couldn't be created: Milestone creation failed due to mass assignment or DB error.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get milestone(s) (single or list)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/get-milestones\/:id",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "Review",
                                    "description": "optional A keyword to search by milestone title, description, or ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "status",
                                    "value": "complete",
                                    "description": "optional Filter by milestone status.",
                                    "disabled": false
                                },
                                {
                                    "key": "start_date_from",
                                    "value": "2025-06-01",
                                    "description": "date optional Filter milestones starting from this date (Y-m-d).",
                                    "disabled": false
                                },
                                {
                                    "key": "start_date_to",
                                    "value": "2025-06-30",
                                    "description": "date optional Filter milestones starting up to this date (Y-m-d).",
                                    "disabled": false
                                },
                                {
                                    "key": "end_date_from",
                                    "value": "2025-07-01",
                                    "description": "date optional Filter milestones ending from this date (Y-m-d).",
                                    "disabled": false
                                },
                                {
                                    "key": "end_date_to",
                                    "value": "2025-07-31",
                                    "description": "date optional Filter milestones ending up to this date (Y-m-d).",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "title",
                                    "description": "optional Field to sort by. Defaults to `id`.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "asc",
                                    "description": "optional Sort direction (`asc` or `desc`). Defaults to `desc`.",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "20",
                                    "description": "optional Number of records per page. Defaults to 10.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/get-milestones\/:id?search=Review&status=complete&start_date_from=2025-06-01&start_date_to=2025-06-30&end_date_from=2025-07-01&end_date_to=2025-07-31&sort=title&order=asc&limit=20",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "3",
                                    "description": "optional The ID of the milestone to retrieve. If provided, other filters are ignored."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "integer required The ID of the workspace context. Example: 2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Milestones retrieved successfully.\",\n  \"data\": [\n    {\n      \"id\": 3,\n      \"title\": \"Final Review\",\n      \"status\": \"complete\",\n      \"start_date\": \"2025-06-01\",\n      \"end_date\": \"2025-06-15\",\n      \"cost\": \"1500.00\",\n      \"progress\": 100,\n      \"description\": \"Final phase of project delivery.\"\n    }\n  ],\n  \"total\": 1,\n  \"page\": 1,\n  \"limit\": 10\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Milestone not found.\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Error: Unexpected exception message\",\n  \"data\": {\n    \"line\": 123,\n    \"file\": \"path\/to\/file.php\"\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update an existing milestone.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/update-milestone\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/update-milestone\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the update milestone."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "integer required The ID of the workspace context. Example: 2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"Final Review\",\"status\":\"complete\",\"start_date\":\"01-06-2025\",\"end_date\":\"15-06-2025\",\"cost\":2000.5,\"progress\":80,\"description\":\"Final review and delivery milestone.\",\"id\":5}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Milestone updated successfully.\",\n  \"id\": 5,\n  \"type\": \"milestone\",\n  \"parent_type\": \"project\",\n  \"parent_id\": 12\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Invalid date format.\",\n  \"exception\": \"InvalidArgumentException\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"title\": [\"The title field is required.\"]\n  }\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Project status and priority",
            "description": "This endpoint updates the status of a specified project.\nThe status change is recorded in the status timeline,\nand notifications are sent to related users and clients.\n\nYou can include an optional `note` with the status update.\n\nIf `isApi` request parameter is true, response will use\nthe standardized API response format.",
            "item": [
                {
                    "name": "Save the user's default view preference for projects.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/save-view-preference",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/save-view-preference"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"view\":\"kanban\"}"
                        },
                        "description": "This endpoint allows the authenticated user or client to set their preferred default view (e.g., kanban, list, or calendar) for how projects are displayed in the UI.\nThe view preference is stored in the `user_client_preferences` table."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Default View Set Successfully.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Something Went Wrong.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"view\": [\"The view field is required.\"]\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update the status of a project.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/update-status\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/update-status\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the update status."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":438,\"statusId\":5,\"note\":\"consequatur\",\"isApi\":false}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Status updated successfully.\",\n  \"id\": 438,\n  \"type\": \"project\",\n  \"old_status\": \"Default\",\n  \"new_status\": \"Completed\",\n  \"activity_message\": \"John Doe updated project status from Default to Completed\",\n  \"data\": {\n    \"id\": 438,\n    \"title\": \"Res Test\",\n    \"status\": \"Completed\",\n    \"priority\": \"High\",\n    \"users\": [\n      {\n        \"id\": 7,\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"photo\": \"https:\/\/example.com\/photos\/johndoe.png\"\n      }\n    ],\n    \"clients\": [\n      {\n        \"id\": 103,\n        \"first_name\": \"Client\",\n        \"last_name\": \"Name\",\n        \"photo\": \"https:\/\/example.com\/photos\/no-image.jpg\"\n      }\n    ],\n    \"tags\": [\n      {\n        \"id\": 45,\n        \"title\": \"Important\"\n      }\n    ],\n    \"start_date\": \"07-08-2024 14:38:51\",\n    \"end_date\": \"12-08-2024 13:49:33\",\n    \"budget\": \"1000.00\",\n    \"task_accessibility\": \"assigned_users\",\n    \"description\": null,\n    \"note\": \"Project on track\",\n    \"favorite\": 1,\n    \"created_at\": \"07-08-2024 14:38:51\",\n    \"updated_at\": \"12-08-2024 13:49:33\"\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\n  \"error\": true,\n  \"message\": \"You are not authorized to set this status.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Status couldn't be updated.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Error: Exception message here\",\n  \"line\": 123,\n  \"file\": \"\/path\/to\/file.php\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update the priority of a project.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/update-priority\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/update-priority\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the update priority."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":123,\"priorityId\":\"5\",\"note\":\"\\\"Urgent priority needed\\\"\",\"isApi\":false}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Priority updated successfully.\",\n  \"id\": 123,\n  \"type\": \"project\",\n  \"old_priority\": \"Medium\",\n  \"new_priority\": \"High\",\n  \"activity_message\": \"John Doe updated project priority from Medium to High\",\n  \"data\": {\n    \/\/ Detailed formatted project data as returned by formatProject helper\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\n  \"error\": true,\n  \"message\": \"You are not authorized to update this priority.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"id\": [\"The selected id is invalid.\"],\n    \"priorityId\": [\"The selected priority id is invalid.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Error: Exception message here\",\n  \"line\": 45,\n  \"file\": \"\/path\/to\/file.php\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Project Comments",
            "description": "",
            "item": [
                {
                    "name": "Add a comment.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/project\/comments",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/project\/comments"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "multipart\/form-data"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "model_type",
                                    "value": "App\\\\Models\\\\Project",
                                    "type": "text",
                                    "description": "The fully qualified model class name."
                                },
                                {
                                    "key": "model_id",
                                    "value": "14",
                                    "type": "text",
                                    "description": "The ID of the model being commented on."
                                },
                                {
                                    "key": "content",
                                    "value": "This is a comment with a mention to @jane.",
                                    "type": "text",
                                    "description": "The comment content. Mentions like \"@john\" are supported."
                                },
                                {
                                    "key": "parent_id",
                                    "value": "5",
                                    "type": "text",
                                    "description": "Optional. The ID of the parent comment (for replies)."
                                },
                                {
                                    "key": "attachments[]",
                                    "src": [],
                                    "type": "file"
                                }
                            ]
                        },
                        "description": "This endpoint allows the authenticated user to post a comment on any model (like a project or task)\nusing polymorphic relationships. It supports file attachments (images, PDFs, documents)\nand also handles user mentions (e.g., @username), sending notifications to mentioned users.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"message\": \"Comment Added Successfully\",\n  \"comment\": {\n    \"id\": 21,\n    \"commentable_type\": \"App\\\\Models\\\\Project\",\n    \"commentable_id\": 14,\n    \"content\": \"This is a comment with a mention to <a href='\/users\/5'>@jane<\/a>\",\n    \"user_id\": 1,\n    \"parent_id\": null,\n    \"created_at\": \"2025-06-12T10:31:02.000000Z\",\n    \"updated_at\": \"2025-06-12T10:31:02.000000Z\",\n    \"user\": {\n       \"id\": 1,\n       \"first_name\": \"John\",\n       \"last_name\": \"Doe\",\n       \"email\": \"john@example.com\"\n    },\n    \"attachments\": [\n      {\n        \"id\": 1,\n        \"comment_id\": 21,\n        \"file_name\": \"screenshot.png\",\n        \"file_path\": \"comment_attachments\/screenshot.png\",\n        \"file_type\": \"image\/png\"\n      }\n    ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"success\": false,\n  \"message\": \"Validation failed.\",\n  \"errors\": {\n    \"model_type\": [\"The model_type field is required.\"],\n    \"content\": [\"The content field is required.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"success\": false,\n  \"message\": \"An error occurred: [error details]\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get  comment by ID.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/project\/comments\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/project\/comments\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "21",
                                    "description": "The ID of the comment to retrieve."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint retrieves the details of a specific comment, including any attachments associated with it.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"comment\": {\n    \"id\": 21,\n    \"commentable_type\": \"App\\\\Models\\\\Project\",\n    \"commentable_id\": 14,\n    \"content\": \"This is a comment with mention to <a href='\/users\/5'>@jane<\/a>\",\n    \"user_id\": 1,\n    \"parent_id\": null,\n    \"created_at\": \"2025-06-12T10:31:02.000000Z\",\n    \"updated_at\": \"2025-06-12T10:31:02.000000Z\",\n    \"attachments\": [\n      {\n        \"id\": 1,\n        \"comment_id\": 21,\n        \"file_name\": \"report.pdf\",\n        \"file_path\": \"comment_attachments\/report.pdf\",\n        \"file_type\": \"application\/pdf\"\n      }\n    ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"No query results for model [App\\\\Models\\\\Comment] 99\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update a comment",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/project\/comments\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/project\/comments\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the comment."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"comment_id\":12,\"content\":\"\\\"Updated comment with mention to @john\\\"\",\"isApi\":true}"
                        },
                        "description": "This endpoint updates the content of an existing comment. It also handles user mention parsing and sends notifications to mentioned users.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Comment updated successfully.\",\n  \"id\": 12,\n  \"type\": \"project\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"comment_id\": [\n      \"The comment_id field is required.\"\n    ],\n    \"content\": [\n      \"The content field is required.\"\n    ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Internal Server Error\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a comment",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/project\/comments\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/project\/comments\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the comment."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"comment_id\":15}"
                        },
                        "description": "This endpoint permanently deletes a comment and all of its associated attachments from the storage.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Comment deleted successfully.\",\n  \"id\": 15,\n  \"type\": \"project\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"No query results for model [App\\\\Models\\\\Comment] 15\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"comment_id\": [\n      \"The comment_id field is required.\"\n    ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Comment couldn't deleted.\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "project issues",
            "description": "This endpoint allows you to create a new issue related to a specific project. You must provide issue details such as title, description, status, and optional assignees. The issue will be created under the given project and notifications will be dispatched to the assignees.",
            "item": [
                {
                    "name": "Create a new issue under a project.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/projects\/:project_id\/issues",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/projects\/:project_id\/issues",
                            "variable": [
                                {
                                    "id": "project_id",
                                    "key": "project_id",
                                    "value": "1",
                                    "description": "The ID of the project."
                                },
                                {
                                    "id": "project",
                                    "key": "project",
                                    "value": "5",
                                    "description": "The ID of the project in which the issue is being created."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"Database connectivity issue\",\"description\":\"There is an intermittent issue connecting to the database from the API server.\",\"status\":\"open\",\"assignee_id\":[1,3]}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Issue created successfully.\",\n  \"data\": {\n    \"id\": 17,\n    \"project_id\": 5,\n    \"title\": \"Database connectivity issue\",\n    \"description\": \"There is an intermittent issue connecting to the database from the API server.\",\n    \"status\": \"open\",\n    \"created_by\": 2,\n    \"assignees\": [\n      {\n        \"id\": 1,\n        \"name\": \"John Doe\",\n        \"email\": \"john@example.com\"\n      },\n      {\n        \"id\": 3,\n        \"name\": \"Jane Smith\",\n        \"email\": \"jane@example.com\"\n      }\n    ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Validation failed.\",\n  \"data\": {\n    \"title\": [\"The title field is required.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Database error occurred while creating the issue.\",\n  \"data\": {\n    \"details\": \"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'project_id' cannot be null...\"\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update an existing issue within a project.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/projects\/issues\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/projects\/issues\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "The ID of the issue."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":8,\"title\":\"Database connectivity issue\",\"description\":\"There is an intermittent issue connecting to the database from the API server.\",\"status\":\"in_progress\",\"assignee_id\":[1,3]}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Issue updated successfully.\",\n  \"issue\": {\n    \"id\": 8,\n    \"title\": \"Database connectivity issue\",\n    \"description\": \"There is an intermittent issue connecting to the database from the API server.\",\n    \"status\": \"in_progress\",\n    \"assignees\": [...]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Issue not found.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Validation failed.\",\n  \"errors\": {\n    \"title\": [\"The title field is required.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An unexpected error occurred.\",\n  \"details\": \"Exception message here\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete an issue from a project.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/projects\/issues\/:id_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/projects\/issues\/:id_id",
                            "variable": [
                                {
                                    "id": "id_id",
                                    "key": "id_id",
                                    "value": "17",
                                    "description": "The ID of the id."
                                },
                                {
                                    "id": "project",
                                    "key": "project",
                                    "value": "5",
                                    "description": "The ID of the project to which the issue belongs."
                                },
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "8",
                                    "description": "The ID of the issue to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Issue deleted successfully.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Issue not found.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An unexpected error occurred.\",\n  \"details\": \"Exception message here\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "List or fetch issues (API)\n\nThis endpoint returns a paginated list of issues for a given project, or a single issue by its ID if `type=issue` is provided.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/projects\/issues\/:id",
                            "query": [
                                {
                                    "key": "type",
                                    "value": "issue",
                                    "description": "optional If set to 'issue', fetches a single issue by its ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "search",
                                    "value": "bug",
                                    "description": "optional Search term for title, description, status, assignee, or creator.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "updated_at",
                                    "description": "optional Field to sort by. Default: created_at.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "ASC",
                                    "description": "optional Sort direction (ASC or DESC). Default: DESC.",
                                    "disabled": false
                                },
                                {
                                    "key": "status",
                                    "value": "open",
                                    "description": "optional Filter by issue status.",
                                    "disabled": false
                                },
                                {
                                    "key": "assigned_to",
                                    "value": "5",
                                    "description": "optional Filter by assigned user ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "created_by",
                                    "value": "2",
                                    "description": "optional Filter by creator user ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "start_date",
                                    "value": "2025-06-01",
                                    "description": "date optional Filter issues created after this date.",
                                    "disabled": false
                                },
                                {
                                    "key": "end_date",
                                    "value": "2025-06-30",
                                    "description": "date optional Filter issues created before this date.",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "20",
                                    "description": "optional Number of results per page. Default: 10.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/projects\/issues\/:id?type=issue&search=bug&sort=updated_at&order=ASC&status=open&assigned_to=5&created_by=2&start_date=2025-06-01&end_date=2025-06-30&limit=20",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "117",
                                    "description": "optional The project ID to filter issues by, or the issue ID if `type=issue` is set."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Issue list fetched successfully.\",\n  \"rows\": [\n    {\n      \"id\": 1,\n      \"project_id\": 117,\n      \"title\": \"data not retrive\",\n      \"description\": \"when Api was call data nor retrived\",\n      \"status\": \"in_progress\",\n      \"created_by\": {\n        \"id\": 2,\n        \"first_name\": \"herry\",\n        \"last_name\": \"porter\",\n        \"email\": \"admin@gmail.com\"\n      },\n      \"assignees\": [\n        {\n          \"id\": 2,\n          \"first_name\": \"herry\",\n          \"last_name\": \"porter\",\n          \"email\": \"admin@gmail.com\",\n          \"photo\": null\n        }\n      ],\n      \"created_at\": \"2025-06-12 03:59:42\",\n      \"updated_at\": \"2025-06-12 03:59:42\"\n    }\n  ],\n  \"total\": 1,\n  \"current_page\": 1,\n  \"last_page\": 1,\n  \"per_page\": 10\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Task Management",
            "description": "This API endpoint updates a task with given details including reminders and recurring configurations.\nIt handles:\n- Status change tracking with status timelines.\n- Optional reminder creation or update.\n- Optional recurring task creation or update.\n- User reassignment with notification dispatching.",
            "item": [
                {
                    "name": "List or Get Task(s)\n\nThis endpoint returns a paginated list of tasks, or a single task if an ID is provided.\nIt supports advanced filtering, searching, sorting, and eager loading of related entities\nsuch as users, project, status, priority, reminders, and recurring task details.\n\nIf the ID is numeric, it returns a single formatted task object.\nIf the ID follows the format `user_{id}` or `project_{id}`, it filters tasks belonging\nto the specified user or project.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/tasks\/list-api\/:id",
                            "query": [
                                {
                                    "key": "isApi",
                                    "value": "",
                                    "description": "Optional. Indicate if it's an API call. Default: false",
                                    "disabled": true
                                },
                                {
                                    "key": "search",
                                    "value": "Design",
                                    "description": "Optional. Search tasks by title or ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "title",
                                    "description": "Optional. Field to sort by. Default: id.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "consequatur",
                                    "description": "Optional. Sorting order: ASC or DESC. Default: DESC",
                                    "disabled": false
                                },
                                {
                                    "key": "status_ids%5B%5D",
                                    "value": "1",
                                    "description": "Optional. Filter tasks by status ID(s).",
                                    "disabled": false
                                },
                                {
                                    "key": "priority_ids%5B%5D",
                                    "value": "2",
                                    "description": "Optional. Filter tasks by priority ID(s).",
                                    "disabled": false
                                },
                                {
                                    "key": "user_ids%5B%5D",
                                    "value": "3",
                                    "description": "Optional. Filter tasks assigned to these user ID(s).",
                                    "disabled": false
                                },
                                {
                                    "key": "client_ids%5B%5D",
                                    "value": "5",
                                    "description": "Optional. Filter tasks linked to clients via project(s).",
                                    "disabled": false
                                },
                                {
                                    "key": "project_ids%5B%5D",
                                    "value": "2",
                                    "description": "Optional. Filter tasks by project ID(s).",
                                    "disabled": false
                                },
                                {
                                    "key": "task_start_date_from",
                                    "value": "2025-06-01",
                                    "description": "date Optional. Filter tasks starting from this date. Format: Y-m-d.",
                                    "disabled": false
                                },
                                {
                                    "key": "task_start_date_to",
                                    "value": "2025-06-30",
                                    "description": "date Optional. Filter tasks starting up to this date. Format: Y-m-d.",
                                    "disabled": false
                                },
                                {
                                    "key": "task_end_date_from",
                                    "value": "2025-06-05",
                                    "description": "date Optional. Filter tasks due from this date. Format: Y-m-d.",
                                    "disabled": false
                                },
                                {
                                    "key": "task_end_date_to",
                                    "value": "2025-06-20",
                                    "description": "date Optional. Filter tasks due up to this date. Format: Y-m-d.",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "20",
                                    "description": "Optional. Number of results per page. Default: 10.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/tasks\/list-api\/:id?isApi=&search=Design&sort=title&order=consequatur&status_ids%5B%5D=1&priority_ids%5B%5D=2&user_ids%5B%5D=3&client_ids%5B%5D=5&project_ids%5B%5D=2&task_start_date_from=2025-06-01&task_start_date_to=2025-06-30&task_end_date_from=2025-06-05&task_end_date_to=2025-06-20&limit=20",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "25",
                                    "description": "int|string Optional. Numeric task ID to fetch a single task, or `user_{id}`, `project_{id}` to filter by user\/project."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"id\": 25,\n \"workspace_id\": 2,\n \"title\": \"Test Task Title\",\n \"status\": \"Open\",\n \"status_id\": 1,\n \"priority\": \"low\",\n \"priority_id\": 2,\n \"users\": [\n   {\n     \"id\": 2,\n     \"first_name\": \"herry\",\n     \"last_name\": \"porter\",\n     \"email\": \"admin@gmail.com\",\n     \"photo\": \"http:\/\/localhost:8000\/storage\/photos\/no-image.jpg\"\n   }\n ],\n \"user_id\": [2],\n \"clients\": [],\n \"start_date\": \"2025-06-01\",\n \"due_date\": \"2025-06-10\",\n \"project\": \"favorite project\",\n \"project_id\": 2,\n \"description\": \"This is a test task description.\",\n \"note\": \"Optional note about the task.\",\n \"favorite\": 0,\n \"client_can_discuss\": null,\n \"created_at\": \"2025-05-28\",\n \"updated_at\": \"2025-05-28\",\n \"enable_reminder\": 1,\n \"last_reminder_sent\": null,\n \"frequency_type\": \"weekly\",\n \"day_of_week\": 3,\n \"day_of_month\": null,\n \"time_of_day\": \"14:30:00\",\n \"enable_recurring_task\": 1,\n \"recurrence_frequency\": \"monthly\",\n \"recurrence_day_of_week\": null,\n \"recurrence_day_of_month\": 15,\n \"recurrence_month_of_year\": null,\n \"recurrence_starts_from\": \"2025-06-01\",\n \"recurrence_occurrences\": 6,\n \"completed_occurrences\": null,\n \"billing_type\": \"billable\",\n \"completion_percentage\": 0,\n \"task_list_id\": null\n}",
                            "name": "Single task response"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"status\": false,\n  \"message\": \"Tasks retrieved successfully.\",\n  \"data\": {\n    \"total\": 25,\n    \"data\": [\n      {\n        \"id\": 25,\n        \"workspace_id\": 2,\n        \"title\": \"Test Task Title\",\n        \"status\": \"Open\",\n        ...\n      }\n    ]\n  }\n}",
                            "name": "Paginated task list"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"Task not found\"\n}",
                            "name": "Task not found"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"Project not found\"\n}",
                            "name": "Project or User not found"
                        }
                    ]
                },
                {
                    "name": "Create a new task",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/create-tasks",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/create-tasks"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"Create new onboarding flow\",\"status_id\":1,\"start_date\":\"2025-06-01\",\"due_date\":\"2025-06-06\",\"description\":\"Implement onboarding UI and logic.\",\"project\":15,\"priority_id\":2,\"note\":\"Coordinate with HR and DevOps.\",\"billing_type\":\"billable\",\"completion_percentage\":0,\"users_id\":[2,3],\"enable_reminder\":\"on\",\"frequency_type\":\"weekly\",\"day_of_week\":2,\"day_of_month\":15,\"time_of_day\":\"09:00\",\"enable_recurring_task\":\"on\",\"recurrence_frequency\":\"monthly\",\"recurrence_day_of_week\":3,\"recurrence_day_of_month\":10,\"recurrence_month_of_year\":6,\"recurrence_starts_from\":\"2025-06-03\",\"recurrence_occurrences\":5,\"task_list_id\":1}"
                        },
                        "description": "This endpoint allows you to create a new task within a workspace and assign it to users.\nIt supports additional features like setting reminders and recurring schedules.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Task created successfully.\",\n  \"id\": 28,\n  \"type\": \"task\",\n  \"parent_id\": 15,\n  \"parent_type\": \"project\",\n  \"Data\": {\n    \"id\": 28,\n    \"workspace_id\": 2,\n    \"title\": \"Create new onboarding flow\",\n    \"status\": \"Open\",\n    \"status_id\": 1,\n    \"priority\": \"low\",\n    \"priority_id\": 2,\n    \"users\": [\n      {\n        \"id\": 2,\n        \"first_name\": \"herry\",\n        \"last_name\": \"porter\",\n        \"email\": \"admin@gmail.com\",\n        \"photo\": \"http:\/\/localhost:8000\/storage\/photos\/no-image.jpg\"\n      },\n      {\n        \"id\": 3,\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"email\": \"admin2@gmail.com\",\n        \"photo\": \"http:\/\/localhost:8000\/storage\/photos\/no-image.jpg\"\n      }\n    ],\n    \"user_id\": [2, 3],\n    \"clients\": [\n      {\n        \"id\": 1,\n        \"first_name\": \"jerry\",\n        \"last_name\": \"ginny\",\n        \"email\": \"jg@gmail.com\",\n        \"photo\": \"http:\/\/localhost:8000\/storage\/photos\/gqHsvgmDBCbtf843SRYx31e6Zl51amPZY8eG05FB.jpg\"\n      }\n    ],\n    \"start_date\": \"2015-01-01\",\n    \"due_date\": \"2025-06-06\",\n    \"project\": \"New Project Title\",\n    \"project_id\": 15,\n    \"description\": \"Implement onboarding UI and logic.\",\n    \"note\": \"Coordinate with HR and DevOps.\",\n    \"favorite\": 0,\n    \"client_can_discuss\": null,\n    \"created_at\": \"2025-06-03\",\n    \"updated_at\": \"2025-06-03\",\n    \"enable_reminder\": 1,\n    \"last_reminder_sent\": null,\n    \"frequency_type\": \"weekly\",\n    \"day_of_week\": 2,\n    \"day_of_month\": 15,\n    \"time_of_day\": \"09:00:00\",\n    \"enable_recurring_task\": 1,\n    \"recurrence_frequency\": \"monthly\",\n    \"recurrence_day_of_week\": 3,\n    \"recurrence_day_of_month\": 10,\n    \"recurrence_month_of_year\": 6,\n    \"recurrence_starts_from\": \"2025-06-03\",\n    \"recurrence_occurrences\": 5,\n    \"completed_occurrences\": null,\n    \"billing_type\": \"billable\",\n    \"completion_percentage\": 0,\n    \"task_list_id\": null\n  }\n}",
                            "name": "Task created successfully"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Invalid date format. Please use yyyy-mm-dd.\",\n  \"exception\": \"InvalidArgumentException message here...\"\n}",
                            "name": "Validation error"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred while creating the task. SQLSTATE[23000]: Integrity constraint violation: 1452...\"\n}",
                            "name": "Unexpected server error"
                        }
                    ]
                },
                {
                    "name": "Update an existing task.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/update-tasks\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/update-tasks\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the update task."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":25,\"title\":\"Test Task Title\",\"description\":\"This is a test task description.\",\"status_id\":15,\"priority_id\":4,\"start_date\":\"2025-06-01\",\"due_date\":\"2025-06-10\",\"note\":\"consequatur\",\"billing_type\":\"billable\",\"completion_percentage\":0,\"user_id\":[2,3],\"enable_reminder\":\"on\",\"frequency_type\":\"weekly\",\"day_of_week\":3,\"day_of_month\":15,\"time_of_day\":\"09:00\",\"enable_recurring_task\":\"on\",\"recurrence_frequency\":\"monthly\",\"recurrence_day_of_week\":5,\"recurrence_day_of_month\":10,\"recurrence_month_of_year\":6,\"recurrence_starts_from\":\"2025-06-13\",\"recurrence_occurrences\":12}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Task updated successfully.\",\n  \"data\": {\n    \"id\": 25,\n    \"parent_id\": 2,\n    \"parent_type\": \"project\",\n    \"data\": {\n      \"id\": 25,\n      \"title\": \"Test Task Title\",\n      \"status_id\": 15,\n      \"priority_id\": 4,\n      \"completion_percentage\": 0,\n      ...\n    }\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": {\n    \"title\": [\n      \"The title field is required.\"\n    ],\n    \"start_date\": [\n      \"The start date must be before or equal to due date.\"\n    ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred while updating the task. [Error Details]\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a specific task by ID.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/delete-tasks\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/delete-tasks\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "23",
                                    "description": "The ID of the task to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Task deleted successfully.\",\n  \"data\": {\n    \"id\": 23,\n    \"title\": \"Update client onboarding flow\",\n    \"parent_id\": 2,\n    \"parent_type\": \"project\",\n    \"data\": []\n  }\n}",
                            "name": "Task deleted successfully"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Task not found.\",\n  \"data\": []\n}",
                            "name": "Task not found"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An unexpected error occurred while deleting the task.\",\n  \"data\": []\n}",
                            "name": "Unexpected error"
                        }
                    ]
                },
                {
                    "name": "Delete multiple tasks",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/destroy-multiple-tasks",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/destroy-multiple-tasks"
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"ids\":[101,102,103]}"
                        },
                        "description": "This endpoint deletes multiple tasks by their IDs. All associated comments and attachments are also permanently removed.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Task(s) deleted successfully.\",\n  \"id\": [101, 102],\n  \"titles\": [\"Task One\", \"Task Two\"],\n  \"parent_id\": [5, 6],\n  \"parent_type\": \"project\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"ids.0\": [\"The selected ids.0 is invalid.\"]\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Duplicate a task.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/tasks\/:id\/duplicate",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/tasks\/:id\/duplicate",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "12",
                                    "description": "The ID of the task to duplicate."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"Copy of Design Review Task\",\"reload\":\"true\"}"
                        },
                        "description": "This endpoint allows you to duplicate an existing task. You can optionally set a custom title for the duplicated task.\nRelated data such as assigned users will also be duplicated.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Task duplicated successfully.\",\n  \"id\": 12,\n  \"parent_id\": 5,\n  \"parent_type\": \"project\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Task duplication failed.\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Task status and performance",
            "description": "This endpoint allows you to update the status of a task by providing the task ID and the new status ID.\nIt logs the status change in the task's status timeline and notifies assigned users and clients.",
            "item": [
                {
                    "name": "Update the status of a task.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/task\/:id\/status\/:newStatus",
                            "query": [
                                {
                                    "key": "isApi",
                                    "value": "1",
                                    "description": "Optional. Set to true if calling from API to get a structured API response.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/task\/:id\/status\/:newStatus?isApi=1",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the task."
                                },
                                {
                                    "id": "newStatus",
                                    "key": "newStatus",
                                    "value": "3",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":33,\"statusId\":4}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Status updated successfully.\",\n  \"id\": \"33\",\n  \"type\": \"task\",\n  \"activity_message\": \"herry porter updated task status from Approved to Completed\",\n  \"data\": {\n    \"id\": 33,\n    \"workspace_id\": 2,\n    \"title\": \"Test Task Title\",\n    \"status\": \"Completed\",\n    \"status_id\": 4,\n    \"priority\": \"low\",\n    \"priority_id\": 2,\n    \"users\": [\n      {\n        \"id\": 2,\n        \"first_name\": \"herry\",\n        \"last_name\": \"porter\",\n        \"email\": \"admin@gmail.com\",\n        \"photo\": \"http:\/\/localhost:8000\/storage\/photos\/no-image.jpg\"\n      }\n    ],\n    \"start_date\": \"2025-06-01\",\n    \"due_date\": \"2025-06-10\",\n    \"project\": \"favorite project\",\n    \"project_id\": 2,\n    \"description\": \"This is a test task description.\"\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\n  \"error\": true,\n  \"message\": \"You are not authorized to set this status.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"No query results for model [App\\\\Models\\\\Task] 999\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Task status couldn't updated.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Save User's Default Task View Preference",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/tasks\/save-view-preference",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/tasks\/save-view-preference"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"view\":\"board\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Default View Set Successfully.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n  \"message\": \"Unauthenticated.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"view\": [\n      \"The view field is required.\"\n    ]\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update Task Priority",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/tasks\/update-priority",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/tasks\/update-priority",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "25",
                                    "description": "optional The ID of the task. If provided in the URL, it doesn't need to be in the body."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":25,\"priorityId\":1}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Priority updated successfully.\",\n  \"id\": 25,\n  \"type\": \"task\",\n  \"activity_message\": \"herry porter updated task priority from low to high\",\n  \"data\": {\n    \"id\": 25,\n    \"workspace_id\": 2,\n    \"title\": \"Test Task Title\",\n    \"status\": \"Approved\",\n    \"status_id\": 8,\n    \"priority\": \"high\",\n    \"priority_id\": 1,\n    \"users\": [\n      {\n        \"id\": 2,\n        \"first_name\": \"herry\",\n        \"last_name\": \"porter\",\n        \"email\": \"admin@gmail.com\",\n        \"photo\": \"http:\/\/localhost:8000\/storage\/photos\/no-image.jpg\"\n      },\n      {\n        \"id\": 3,\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"email\": \"admin2@gmail.com\",\n        \"photo\": \"http:\/\/localhost:8000\/storage\/photos\/no-image.jpg\"\n      }\n    ],\n    \"user_id\": [2, 3],\n    \"clients\": [],\n    \"start_date\": \"2025-06-01\",\n    \"due_date\": \"2025-06-10\",\n    \"project\": \"favorite project\",\n    \"project_id\": 2,\n    \"description\": \"This is a test task description.\",\n    \"note\": \"Optional note about the task.\",\n    \"favorite\": 0,\n    \"client_can_discuss\": null,\n    \"created_at\": \"2025-05-28\",\n    \"updated_at\": \"2025-06-03\",\n    \"enable_reminder\": 1,\n    \"last_reminder_sent\": null,\n    \"frequency_type\": \"weekly\",\n    \"day_of_week\": 3,\n    \"time_of_day\": \"14:30:00\",\n    \"enable_recurring_task\": 1,\n    \"recurrence_frequency\": \"monthly\",\n    \"recurrence_day_of_month\": 15,\n    \"recurrence_starts_from\": \"2025-06-01\",\n    \"recurrence_occurrences\": 6,\n    \"billing_type\": \"billable\",\n    \"completion_percentage\": 0,\n    \"task_list_id\": null\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"No priority change detected.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"id\": [\"The id field is required.\"],\n    \"priorityId\": [\"The selected priorityId is invalid.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Priority couldn\u2019t be updated.\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Task Media",
            "description": "Upload one or more media files to an existing task using its ID. The uploaded files will be stored\nin the `task-media` media collection using Spatie MediaLibrary. This endpoint accepts multiple files.",
            "item": [
                {
                    "name": "Upload media files to a task.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/tasks\/upload-media",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/tasks\/upload-media"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "multipart\/form-data"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "id",
                                    "value": "25",
                                    "type": "text",
                                    "description": "The ID of the task to which the files should be uploaded."
                                },
                                {
                                    "key": "media_files[]",
                                    "src": [],
                                    "type": "file"
                                }
                            ]
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"File(s) uploaded successfully.\",\n  \"id\": [15, 16],\n  \"type\": \"media\",\n  \"parent_type\": \"task\",\n  \"parent_id\": 25\n}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": true,\n  \"message\": \"No file(s) chosen.\"\n}",
                            "name": "No files uploaded"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"id\": [\"The selected id is invalid.\"]\n  }\n}",
                            "name": "Missing or invalid task ID"
                        }
                    ]
                },
                {
                    "name": "Get task media list.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/tasks\/:id\/media",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "image",
                                    "description": "Optional search term to filter by file name, ID, or creation date.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "file_name",
                                    "description": "Field to sort by. Default is `id`.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "asc",
                                    "description": "Sorting direction: `asc` or `desc`. Default is `desc`.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/tasks\/:id\/media?search=image&sort=file_name&order=asc",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "25",
                                    "description": "The ID of the task to get media for."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"rows\": [\n    {\n      \"id\": 16,\n      \"file\": \"<a href=\\\"http:\/\/localhost:8000\/storage\/task-media\/hmgoepprod.jpg\\\" data-lightbox=\\\"task-media\\\"><img src=\\\"http:\/\/localhost:8000\/storage\/task-media\/hmgoepprod.jpg\\\" alt=\\\"hmgoepprod.jpg\\\" width=\\\"50\\\"><\/a>\",\n      \"file_name\": \"hmgoepprod.jpg\",\n      \"file_size\": \"67.54 KB\",\n      \"created_at\": \"2025-06-04\",\n      \"updated_at\": \"2025-06-04\",\n      \"actions\": \"<a href=\\\"http:\/\/localhost:8000\/storage\/task-media\/hmgoepprod.jpg\\\" title=\\\"Download\\\" download><i class=\\\"bx bx-download bx-sm\\\"><\/i><\/a><button title=\\\"Delete\\\" type=\\\"button\\\" class=\\\"btn delete\\\" data-id=\\\"16\\\" data-type=\\\"task-media\\\" data-table=\\\"task_media_table\\\"><i class=\\\"bx bx-trash text-danger\\\"><\/i><\/button>\"\n    }\n  ],\n  \"total\": 2\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a media file from a task.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/tasks\/media\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/tasks\/media\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the medium."
                                },
                                {
                                    "id": "mediaId",
                                    "key": "mediaId",
                                    "value": "45",
                                    "description": "The ID of the media file to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"File deleted successfully.\",\n  \"id\": 45,\n  \"title\": \"example-file.pdf\",\n  \"parent_id\": 23,\n  \"type\": \"media\",\n  \"parent_type\": \"task\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"File not found.\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Task Celender",
            "description": "",
            "item": [
                {
                    "name": "Get calendar tasks data for a workspace.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/calendar\/:workspaceId",
                            "query": [
                                {
                                    "key": "start",
                                    "value": "consequatur",
                                    "description": "optional Start date for filtering tasks (format: YYYY-MM-DD).",
                                    "disabled": false
                                },
                                {
                                    "key": "end",
                                    "value": "consequatur",
                                    "description": "optional End date for filtering tasks (format: YYYY-MM-DD).",
                                    "disabled": false
                                },
                                {
                                    "key": "project_id",
                                    "value": "17",
                                    "description": "optional Project ID to filter tasks by project.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/calendar\/:workspaceId?start=consequatur&end=consequatur&project_id=17",
                            "variable": [
                                {
                                    "id": "workspaceId",
                                    "key": "workspaceId",
                                    "value": "17",
                                    "description": "The ID of the workspace to fetch tasks from."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieves tasks for the specified workspace filtered by an optional date range and project ID.\nThe tasks are formatted for use with FullCalendar.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[\n  {\n    \"id\": 25,\n    \"tasks_info_url\": \"http:\/\/localhost:8000\/master-panel\/tasks\/information\/25\",\n    \"title\": \"Test Task Title\",\n    \"start\": \"2025-06-01\",\n    \"end\": \"2025-06-10\",\n    \"backgroundColor\": \"#a0e4a3\",\n    \"borderColor\": \"#ffffff\",\n    \"textColor\": \"#000000\"\n  },\n  {\n    \"id\": 28,\n    \"tasks_info_url\": \"http:\/\/localhost:8000\/master-panel\/tasks\/information\/28\",\n    \"title\": \"Create new onboarding flow\",\n    \"start\": \"2015-01-01\",\n    \"end\": \"2025-06-06\",\n    \"backgroundColor\": \"#a0e4a3\",\n    \"borderColor\": \"#ffffff\",\n    \"textColor\": \"#000000\"\n  }\n]",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Workspace not found.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Something went wrong: <error_message>\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Task Comments",
            "description": "This endpoint allows an authenticated user to add a comment to a specific model\nsuch as a Task, Project, or any commentable entity. It also supports mentions\n(e.g., @username) and file attachments (e.g., PNG, PDF).",
            "item": [
                {
                    "name": "Add a comment to a model (e.g., task, project).",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/comments-create",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/comments-create"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "multipart\/form-data"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "model_type",
                                    "value": "App\\Models\\Task",
                                    "type": "text",
                                    "description": "The fully qualified model class name."
                                },
                                {
                                    "key": "model_id",
                                    "value": "25",
                                    "type": "text",
                                    "description": "The ID of the model to comment on."
                                },
                                {
                                    "key": "content",
                                    "value": "This is a test comment mentioning @john_doe",
                                    "type": "text",
                                    "description": "The comment content. Mentions like @username will be parsed."
                                },
                                {
                                    "key": "parent_id",
                                    "value": "5",
                                    "type": "text",
                                    "description": "nullable The ID of the parent comment (for replies)."
                                },
                                {
                                    "key": "attachments[]",
                                    "src": [],
                                    "type": "file"
                                }
                            ]
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"message\": \"Comment Added Successfully\",\n  \"comment\": {\n    \"id\": 20,\n    \"content\": \"This is a test comment mentioning @john_doe\",\n    \"user\": {\n      \"id\": null,\n      \"name\": null,\n      \"email\": null\n    },\n    \"attachments\": [],\n    \"parent_id\": null,\n    \"created_at\": \"2025-06-04 06:05:24\",\n    \"created_human\": \"1 second ago\"\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"model_type\": [\"The model_type field is required.\"],\n    \"model_id\": [\"The model_id field is required.\"],\n    \"content\": [\"The content field is required.\"]\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "get comments",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/comments\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/comments\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the comment."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "multipart\/form-data"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "model_type",
                                    "value": "App\\Models\\Task",
                                    "type": "text",
                                    "description": "The fully qualified class name of the model being commented on (e.g., App\\Models\\Task)."
                                },
                                {
                                    "key": "model_id",
                                    "value": "12",
                                    "type": "text",
                                    "description": "The ID of the model instance being commented on."
                                },
                                {
                                    "key": "content",
                                    "value": "This is a test comment with @johndoe mentioned.",
                                    "type": "text",
                                    "description": "The content of the comment. Mentions (e.g., @username) will be converted to user links."
                                },
                                {
                                    "key": "parent_id",
                                    "value": "5",
                                    "type": "text",
                                    "description": "nullable The ID of the parent comment if this is a reply."
                                },
                                {
                                    "key": "attachments[]",
                                    "src": [],
                                    "type": "file"
                                }
                            ]
                        },
                        "description": "This endpoint allows an authenticated user to add a comment to any commentable model (e.g., Task, Project).\nSupports file attachments and user mentions within the comment content.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"comment\": {\n    \"id\": 20,\n    \"commentable_type\": \"App\\\\Models\\\\Task\",\n    \"commentable_id\": 12,\n    \"content\": \"This is a test comment with <a href='\/user\/profile\/5'>@johndoe<\/a>\",\n    \"user_id\": 3,\n    \"parent_id\": null,\n    \"created_at\": \"2025-05-28T12:45:00.000000Z\",\n    \"updated_at\": \"2025-05-28T12:45:00.000000Z\",\n    \"attachments\": [\n      {\n        \"id\": 1,\n        \"comment_id\": 20,\n        \"file_name\": \"screenshot.png\",\n        \"file_path\": \"comment_attachments\/screenshot.png\",\n        \"file_type\": \"image\/png\"\n      }\n    ]\n  },\n  \"message\": \"Comment Added Successfully\",\n  \"user\": {\n    \"id\": 3,\n    \"name\": \"John Doe\",\n    ...\n  },\n  \"created_at\": \"just now\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"content\": [\"The content field is required.\"]\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update a comment's content.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/comments\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/comments\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the comment."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"comment_id\":15,\"content\":\"Updated comment mentioning @janedoe.\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Comment updated successfully.\",\n  \"id\": 15,\n  \"type\": \"project\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Comment couldn't updated.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Permanently delete a comment and its attachments.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/comments\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/comments\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the comment."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"comment_id\":12}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Comment deleted successfully.\",\n  \"id\": 12,\n  \"type\": \"project\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Comment couldn't deleted.\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Status Management",
            "description": "",
            "item": [
                {
                    "name": "Get Status List or a Single Status",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/status\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/status\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "3",
                                    "description": "Optional. The ID of the status you want to retrieve."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint allows you to:\n- Retrieve a list of all status records.\n- Retrieve a specific status record by providing its ID.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"rows\": [\n    {\n      \"id\": 1,\n      \"title\": \"Pending\",\n      \"roles_has_access\": \"Admin, Manager\",\n      \"color\": \"<span class=\\\"badge bg-warning\\\">Pending<\/span>\",\n      \"created_at\": \"2024-08-20 10:12 AM\",\n      \"updated_at\": \"2024-08-25 03:45 PM\"\n    },\n    {\n      \"id\": 2,\n      \"title\": \"Approved\",\n      \"roles_has_access\": \"Admin\",\n      \"color\": \"<span class=\\\"badge bg-success\\\">Approved<\/span>\",\n      \"created_at\": \"2024-08-21 11:30 AM\",\n      \"updated_at\": \"2024-08-26 02:15 PM\"\n    }\n  ],\n  \"total\": 2\n}",
                            "name": "Fetch all statuses"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"id\": 3,\n  \"title\": \"Rejected\",\n  \"roles_has_access\": \"User\",\n  \"color\": \"<span class=\\\"badge bg-danger\\\">Rejected<\/span>\",\n  \"created_at\": \"2024-08-22 09:00 AM\",\n  \"updated_at\": \"2024-08-28 01:00 PM\"\n}",
                            "name": "Fetch single status by ID"
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n  \"message\": \"Unauthenticated.\"\n}",
                            "name": "Unauthenticated request"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"Status not found.\"\n}",
                            "name": "Status not found for given ID"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"message\": \"Internal Server Error\"\n}",
                            "name": "Unexpected server error"
                        }
                    ]
                },
                {
                    "name": "Create a New Status",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/statuses",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/statuses"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"Approved\",\"color\":\"success\",\"role_ids\":[1,2]}"
                        },
                        "description": "This endpoint creates a new status entry with a unique slug and assigns roles that have access to it.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Status created successfully.\",\n  \"id\": 5,\n  \"status\": {\n    \"id\": 5,\n    \"title\": \"Approved\",\n    \"color\": \"success\",\n    \"slug\": \"approved\",\n    \"admin_id\": 1,\n    \"created_at\": \"2025-05-28T12:34:56.000000Z\",\n    \"updated_at\": \"2025-05-28T12:34:56.000000Z\"\n  }\n}",
                            "name": "Successful creation"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"title\": [\"The title field is required.\"],\n    \"color\": [\"The color field is required.\"]\n  }\n}",
                            "name": "Validation failed"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Status couldn't created.\"\n}",
                            "name": "Creation failed due to internal error"
                        }
                    ]
                },
                {
                    "name": "Update an Existing Status",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/statuses\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/statuses\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "3",
                                    "description": "The ID of the status."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":5,\"title\":\"Rejected\",\"color\":\"danger\",\"role_ids\":[1,3]}"
                        },
                        "description": "This endpoint updates the title, color, and associated roles of an existing status.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Status updated successfully.\",\n  \"id\": 5\n}",
                            "name": "Successful update"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"No query results for model [App\\\\Models\\\\Status] 99\"\n}",
                            "name": "Status not found"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"id\": [\"The id field is required.\"],\n    \"title\": [\"The title field is required.\"],\n    \"color\": [\"The color field is required.\"]\n  }\n}",
                            "name": "Validation failed"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Status couldn't updated.\"\n}",
                            "name": "Update failed due to internal error"
                        }
                    ]
                },
                {
                    "name": "Delete a Status",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/statuses\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/statuses\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "5",
                                    "description": "The ID of the status to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint deletes a status if it is not associated with any project or task.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Status deleted successfully.\"\n}",
                            "name": "Successful deletion"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Status can't be deleted.It is associated with a project or task.\"\n}",
                            "name": "Status associated with project or task"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"No query results for model [App\\\\Models\\\\Status] 99\"\n}",
                            "name": "Status not found"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Something went wrong while deleting the status.\"\n}",
                            "name": "Deletion failed due to server error"
                        }
                    ]
                },
                {
                    "name": "Delete Multiple Statuses",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/destroy-multiple-statuses",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/destroy-multiple-statuses"
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"ids\":[1,2,3]}"
                        },
                        "description": "Deletes multiple statuses by their IDs if they are not associated with any project or task.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Status(es) deleted successfully.\",\n  \"id\": [1, 2],\n  \"titles\": [\"Approved\", \"Pending\"]\n}",
                            "name": "Successful deletion"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Status can't be deleted.It is associated with a project\"\n}",
                            "name": "Status associated with project or task"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"No query results for model [App\\\\Models\\\\Status] 99\"\n}",
                            "name": "Status not found"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"ids\": [\"The ids field is required.\"],\n    \"ids.0\": [\"The selected ids.0 is invalid.\"]\n  }\n}",
                            "name": "Validation failed"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Something went wrong while deleting the statuses.\"\n}",
                            "name": "Deletion failed due to server error"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Client Management",
            "description": "This endpoint deletes a specific client by their ID.\nIt removes the client from the database along with all their associated todos,\nand uses a reusable deletion service for standardized deletion handling.",
            "item": [
                {
                    "name": "List or Retrieve Clients\n\nThis endpoint is used to retrieve a list of all clients for the current workspace,\nor a single client if an ID is provided. It supports searching, sorting, and pagination.\n\nRequires a `workspace_id` header to identify the current workspace context.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/clients\/:id",
                            "query": [
                                {
                                    "key": "isApi",
                                    "value": "1",
                                    "description": "Optional. Indicates if the request is from an API context. Default: false.",
                                    "disabled": false
                                },
                                {
                                    "key": "search",
                                    "value": "john",
                                    "description": "Optional. Search clients by first name, last name, company, email, or phone.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "first_name",
                                    "description": "Optional. Field to sort by. Default: id.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "ASC",
                                    "description": "Optional. Sort direction: ASC or DESC. Default: DESC.",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "15",
                                    "description": "Optional. Number of clients per page. Default: 10.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/clients\/:id?isApi=1&search=john&sort=first_name&order=ASC&limit=15",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "17",
                                    "description": "Optional. The ID of the client to retrieve. If not provided, a paginated list of clients will be returned."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": false,\n  \"message\": \"Clients retrieved successfully\",\n  \"data\": {\n    \"total\": 2,\n    \"data\": [\n      {\n        \"id\": 1,\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"email\": \"john@example.com\",\n        \"company\": \"Acme Inc\",\n        ...\n      }\n    ],\n    \"pagination\": {\n      \"current_page\": 1,\n      \"last_page\": 1,\n      \"per_page\": 10,\n      \"total\": 2\n    }\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": \"Workspace ID header missing\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": \"Client not found\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"success\": true,\n  \"message\": \"Client couldn't be retrieved.\",\n  \"data\": {\n    \"error\": \"Detailed error message\",\n    \"line\": 123,\n    \"file\": \"path\/to\/file.php\"\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Create a new client.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/clients",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/clients"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"first_name\":\"John\",\"last_name\":\"Doe\",\"company\":\"Acme Corp\",\"email\":\"john@example.com\",\"phone\":\"1234567890\",\"country_code\":\"+1\",\"password\":\"password123\",\"password_confirmation\":\"password123\",\"address\":\"123 Main St\",\"city\":\"New York\",\"state\":\"NY\",\"country\":\"USA\",\"zip\":\"10001\",\"dob\":\"1990-01-01\",\"doj\":\"2023-01-01\",\"country_iso_code\":\"US\",\"internal_purpose\":true,\"require_ev\":false,\"status\":true,\"example\":\"consequatur\"}"
                        },
                        "description": "This endpoint is used to create a new client, either for internal purposes or for general usage.\nThe client can be created with optional email verification and notification settings.\nThe request must include a `workspace-id` in the headers to identify which workspace the client belongs to.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Client created successfully.\",\n  \"data\": {\n    \"id\": 23,\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    ...\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Invalid or missing workspace.\",\n  \"workspace_id\": null\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"The email has already been taken in users or clients.\",\n  \"errors\": {\n    \"email\": [\"The email has already been taken in users or clients.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Client could not be created.\",\n  \"error\": \"Exception message here\",\n  \"line\": 120,\n  \"file\": \"ClientController.php\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update a client",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/clients\/:client",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/clients\/:client",
                            "variable": [
                                {
                                    "id": "client",
                                    "key": "client",
                                    "value": "consequatur",
                                    "description": "The client."
                                },
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "5",
                                    "description": "The ID of the client to update."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"first_name\":\"John\",\"last_name\":\"Doe\",\"company\":\"Acme Corp\",\"email\":\"john.doe@example.com\",\"phone\":\"+1234567890\",\"country_code\":\"+91\",\"address\":\"123 Main St\",\"city\":\"Mumbai\",\"state\":\"Maharashtra\",\"country\":\"India\",\"zip\":\"400001\",\"dob\":\"1990-05-01\",\"doj\":\"2023-04-15\",\"country_iso_code\":\"IN\",\"status\":1,\"require_ev\":1}"
                        },
                        "description": "This endpoint updates the details of an existing client, including profile information,\nstatus, internal usage flag, password, and triggers account creation or email verification emails if needed.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Client details updated successfully.\",\n  \"data\": {\n    \"id\": 5,\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    ...\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"email\": [\"The email has already been taken.\"]\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a client.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/clients\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/clients\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the client."
                                },
                                {
                                    "id": "client",
                                    "key": "client",
                                    "value": "15",
                                    "description": "The ID of the client to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Client deleted successfully.\",\n  \"id\": 28,\n  \"title\": \"hrdeep Raa\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Client not found.\",\n  \"error\": \"No query results for model [App\\\\Models\\\\Client] 15\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Client could not be deleted.\",\n  \"error\": \"Exception message\",\n  \"line\": 123,\n  \"file\": \"path\/to\/file\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete multiple clients.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/destroy-multiple-clients",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/destroy-multiple-clients"
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"ids\":[1,2,3]}"
                        },
                        "description": "Deletes multiple clients by their IDs along with their associated todos.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Clients(s) deleted successfully.\",\n  \"id\": [1, 2, 3],\n  \"titles\": [\"John Doe\", \"Jane Smith\", \"Alice Johnson\"]\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Client not found.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"ids\": [\"The ids field is required.\"],\n    \"ids.0\": [\"The selected ids.0 is invalid.\"]\n  }\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Priority",
            "description": "",
            "item": [
                {
                    "name": "Create a new priority",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/priorities",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/priorities"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"High Priority\",\"color\":\"#FF0000\"}"
                        },
                        "description": "This endpoint allows you to create a new priority with a title and color. It automatically generates a unique slug and assigns the current admin as the creator.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Priority created successfully.\",\n  \"data\": {\n    \"id\": 7,\n    \"title\": \"High Priority\",\n    \"slug\": \"high-priority\",\n    \"color\": \"#FF0000\",\n    \"admin_id\": 1,\n    \"created_at\": \"2025-06-04T14:25:30.000000Z\",\n    \"updated_at\": \"2025-06-04T14:25:30.000000Z\"\n  },\n  \"id\": 7\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"title\": [\"The title field is required.\"],\n    \"color\": [\"The color field is required.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Priority could not be created.\",\n  \"error\": \"Exception message here\",\n  \"line\": 45,\n  \"file\": \"PriorityController.php\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update an existing priority.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/priorities\/:priority",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/priorities\/:priority",
                            "variable": [
                                {
                                    "id": "priority",
                                    "key": "priority",
                                    "value": "consequatur",
                                    "description": "The priority."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":10,\"title\":\"High\",\"color\":\"#FF0000\"}"
                        },
                        "description": "This endpoint updates the title, color, and slug of an existing priority record.\nThe priority is identified by its ID.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Priority updated successfully.\",\n  \"data\": {\n    \"id\": 10,\n    \"title\": \"High\",\n    \"color\": \"#FF0000\",\n    \"slug\": \"high\"\n  },\n  \"id\": 10\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Priority not found.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Validation error.\",\n  \"errors\": {\n    \"title\": [\"The title field is required.\"],\n    \"color\": [\"The color field is required.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Priority could not be updated due to server error.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a priority.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/priorities\/:priority",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/priorities\/:priority",
                            "variable": [
                                {
                                    "id": "priority",
                                    "key": "priority",
                                    "value": "consequatur",
                                    "description": "The priority."
                                },
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "5",
                                    "description": "The ID of the priority to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint deletes a specific priority by its ID.\nBefore deletion, it detaches the priority from all related projects and tasks.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Priority deleted successfully.\",\n  \"id\": 5,\n  \"title\": \"High Priority\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Priority not found.\",\n  \"error\": \"No query results for model [App\\\\Models\\\\Priority] 999\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Priority could not be deleted.\",\n  \"error\": \"Exception message here\",\n  \"line\": 42,\n  \"file\": \"PriorityController.php\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get priorities list or a specific priority.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/priorities\/:id",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "Urgent",
                                    "description": "optional Search term for filtering by title or ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "title",
                                    "description": "optional Field to sort by. Defaults to id.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "ASC",
                                    "description": "optional Sort order. Either ASC or DESC. Defaults to DESC.",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "10",
                                    "description": "optional Number of records per page. Defaults to 15.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/priorities\/:id?search=Urgent&sort=title&order=ASC&limit=10",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "3",
                                    "description": "optional The ID of the priority to retrieve."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint allows fetching either a paginated list of priorities or a single priority by providing its ID.\nIt supports optional searching, sorting, and pagination when listing all priorities.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Priorities fetched successfully.\",\n  \"data\": {\n    \"rows\": [\n      {\n        \"id\": 1,\n        \"title\": \"High\",\n        \"color\": \"red\",\n        \"created_at\": \"2024-06-01\",\n        \"updated_at\": \"2024-06-01\"\n      }\n    ],\n    \"total\": 1,\n    \"current_page\": 1,\n    \"last_page\": 1\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Priority fetched successfully.\",\n  \"data\": {\n    \"id\": 1,\n    \"title\": \"High\",\n    \"color\": \"red\",\n    \"created_at\": \"2024-06-01\",\n    \"updated_at\": \"2024-06-01\"\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Priority not found.\",\n  \"error\": \"No query results for model [App\\\\Models\\\\Priority] 3\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Failed to fetch priorities.\",\n  \"error\": \"Exception message here\",\n  \"line\": 101,\n  \"file\": \"PriorityController.php\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete multiple priorities.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/multiple-delete",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/multiple-delete"
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"ids\":[1,2,3]}"
                        },
                        "description": "This endpoint deletes one or more priorities based on the provided array of IDs.\nIt also detaches the priorities from any associated projects and tasks before deletion.\nEach priority must exist in the database.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Priority\/Priorities deleted successfully.\",\n  \"ids\": [1, 2, 3],\n  \"titles\": [\"High\", \"Medium\", \"Low\"]\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"ids.0\": [\n      \"The selected ids.0 is invalid.\"\n    ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Priorities could not be deleted.\",\n  \"error\": \"Exception message\",\n  \"line\": 123,\n  \"file\": \"PriorityController.php\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "User Managemant",
            "description": "This endpoint allows admins to create a new user within a workspace.\nEmail uniqueness is checked across both users and clients.\nOptionally, a verification email and account creation email are sent based on system configuration.",
            "item": [
                {
                    "name": "Create a new user",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/user",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/user"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"first_name\":\"John\",\"last_name\":\"Doe\",\"email\":\"john.smith@example.com\",\"password\":\"secret123\",\"password_confirmation\":\"secret123\",\"address\":\"123 Main St\",\"phone\":\"+1234567890\",\"country_code\":\"+91\",\"city\":\"Mumbai\",\"state\":\"Maharashtra\",\"country\":\"India\",\"zip\":\"400001\",\"dob\":\"1990-01-01\",\"doj\":\"2022-01-01\",\"role\":\"admin\",\"country_iso_code\":\"IN\",\"require_ev\":true,\"status\":true}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"error\": false,\n \"message\": \"User created successfully.\",\n \"id\": 54,\n \"data\": {\n     \"id\": 54,\n     \"first_name\": \"John\",\n     \"last_name\": \"Doe\",\n     \"full_name\": \"John Doe\",\n     \"email\": \"john.smith@example.com\",\n     \"phone\": \"+1234567890\",\n     \"address\": \"123 Main St\",\n     \"country_code\": \"+91\",\n     \"city\": \"Mumbai\",\n     \"state\": \"Maharashtra\",\n     \"country\": \"India\",\n     \"zip\": \"400001\",\n     \"dob\": null,\n     \"doj\": null,\n     \"role\": \"admin\",\n     \"status\": 1,\n     \"email_verified\": false,\n     \"photo_url\": \"http:\/\/localhost:8000\/storage\/photos\/no-image.jpg\",\n     \"created_at\": \"2025-06-11 06:48:45\",\n     \"updated_at\": \"2025-06-11 06:48:45\",\n     \"require_ev\": 1\n }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n \"errors\": {\n     \"email\": [\"The email has already been taken in users or clients.\"]\n }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n \"error\": true,\n \"message\": \"User couldn't be created, please make sure email settings are operational.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update user details.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/user\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/user\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "18",
                                    "description": "The ID of the user to update."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"first_name\":\"John\",\"last_name\":\"Doe\",\"phone\":\"+1234567890\",\"country_code\":\"US\",\"address\":\"123 Main St\",\"city\":\"New York\",\"state\":\"NY\",\"country\":\"USA\",\"zip\":\"10001\",\"dob\":\"1990-01-01\",\"doj\":\"2020-01-01\",\"password\":\"newsecret\",\"password_confirmation\":\"newsecret\",\"country_iso_code\":\"US\",\"status\":true,\"role\":\"admin\"}"
                        },
                        "description": "This endpoint allows updating user profile information. The request must be sent in **raw JSON format**.\n\n\ud83d\udcce Required Headers:\n- `Authorization: Bearer {YOUR_API_TOKEN}`\n- `workspace_id: {WORKSPACE_ID}`\n- `Content-Type: application\/json`"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"User updated successfully.\",\n  \"id\": 18,\n  \"data\": {\n    \"id\": 18,\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"full_name\": \"John Doe\",\n    \"email\": \"john.doe27@example.com\",\n    \"phone\": \"+1234567890\",\n    \"address\": \"123 Main St\",\n    \"country_code\": \"US\",\n    \"city\": \"New York\",\n    \"state\": \"NY\",\n    \"country\": \"USA\",\n    \"zip\": \"10001\",\n    \"dob\": null,\n    \"doj\": null,\n    \"role\": \"admin\",\n    \"status\": true,\n    \"email_verified\": true,\n    \"photo_url\": \"http:\/\/localhost:8000\/storage\/photos\/no-image.jpg\",\n    \"created_at\": \"2025-06-10 10:00:16\",\n    \"updated_at\": \"2025-06-11 06:41:43\"\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"first_name\": [\"The first name field is required.\"],\n    \"password\": [\"The password must be at least 6 characters.\"]\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a user",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/user\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/user\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "6",
                                    "description": "The ID of the user to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"User deleted successfully.\",\n  \"id\": \"6\",\n  \"title\": \"John Doe\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"No query results for model [App\\\\Models\\\\User] 999\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Failed to delete User due to internal server error.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get users list or specific user",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/user\/:id",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "John",
                                    "description": "optional Filter users by name, email, or phone.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "first_name",
                                    "description": "optional Field to sort by. Default is `id`.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "ASC",
                                    "description": "optional Sort order: `ASC` or `DESC`. Default is `DESC`.",
                                    "disabled": false
                                },
                                {
                                    "key": "status",
                                    "value": "1",
                                    "description": "optional Filter users by status (1 for active, 0 for inactive).",
                                    "disabled": false
                                },
                                {
                                    "key": "role_ids[0]",
                                    "value": "1",
                                    "description": "optional Filter users by one or more role IDs.",
                                    "disabled": false
                                },
                                {
                                    "key": "role_ids[1]",
                                    "value": "2",
                                    "description": "optional Filter users by one or more role IDs.",
                                    "disabled": false
                                },
                                {
                                    "key": "type",
                                    "value": "project",
                                    "description": "optional Source of user relation (`project` or `task`).",
                                    "disabled": false
                                },
                                {
                                    "key": "typeId",
                                    "value": "3",
                                    "description": "optional ID of the related project or task. Required if `type` is provided.",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "10",
                                    "description": "optional Number of results per page.",
                                    "disabled": false
                                },
                                {
                                    "key": "isApi",
                                    "value": "1",
                                    "description": "optional Indicates API context (used internally). Default: true.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/user\/:id?search=John&sort=first_name&order=ASC&status=1&role_ids[0]=1&role_ids[1]=2&type=project&typeId=3&limit=10&isApi=1",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "5",
                                    "description": "optional The ID of the user to retrieve. Leave blank to get all users."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Users retrieved successfully\",\n  \"total\": 2,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"first_name\": \"John\",\n      \"last_name\": \"Doe\",\n      \"email\": \"john@example.com\",\n      \"phone\": \"+91 9876543210\",\n      \"status\": 1,\n      \"created_at\": \"2024-01-01 10:00:00\",\n      \"updated_at\": \"2024-06-01 09:00:00\",\n      \"role\": \"Admin\",\n      \"profile\": \"...\",\n      \"assigned\": \"...\",\n      \"actions\": \"...\"\n    }\n  ]\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"User retrieved successfully\",\n  \"data\": {\n    \"id\": 5,\n    \"first_name\": \"Jane\",\n    \"last_name\": \"Smith\",\n    \"email\": \"jane@example.com\",\n    \"phone\": \"+91 1234567890\",\n    \"status\": 1,\n    ...\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"User not found\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Failed to retrieve users\",\n  \"error\": \"Exception message\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Workspace Managemant",
            "description": "This endpoint allows authenticated users to create a new workspace. It automatically associates users and clients,\nsets the workspace as primary (if requested), and logs activity. Notifications are sent to the participants.",
            "item": [
                {
                    "name": "Create a new workspace",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/workspace",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/workspace"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"Design Team\",\"user_ids\":[3,5],\"client_ids\":[101,102],\"primaryWorkspace\":true,\"isApi\":true}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Workspace created successfully.\",\n  \"id\": 438,\n  \"data\": {\n    \"id\": 438,\n    \"title\": \"Design Team\",\n    \"is_primary\": true,\n    \"users\": [\n      {\n        \"id\": 7,\n        \"first_name\": \"Madhavan\",\n        \"last_name\": \"Vaidya\",\n        \"photo\": \"https:\/\/yourdomain.com\/storage\/photos\/user.png\"\n      }\n    ],\n    \"clients\": [\n      {\n        \"id\": 103,\n        \"first_name\": \"Test\",\n        \"last_name\": \"Test\",\n        \"photo\": \"https:\/\/yourdomain.com\/storage\/photos\/no-image.jpg\"\n      }\n    ],\n    \"created_at\": \"07-08-2024 14:38:51\",\n    \"updated_at\": \"07-08-2024 14:38:51\"\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"title\": [\n      \"The title field is required.\"\n    ]\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update an existing workspace",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/workspace\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/workspace\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the workspace."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":12,\"title\":\"Design Team\",\"user_ids\":[1,3],\"client_ids\":[101,104],\"primaryWorkspace\":true}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n   \"error\": false,\n   \"id\": 12,\n   \"message\": \"Workspace updated successfully.\",\n   \"data\": {\n     \"id\": 12,\n     \"title\": \"Design Team\",\n     \"is_primary\": true,\n     \"users\": [\n       {\n         \"id\": 3,\n         \"first_name\": \"Alice\",\n         \"last_name\": \"Doe\",\n         \"photo\": \"https:\/\/example.com\/photos\/user3.jpg\"\n       }\n     ],\n     \"clients\": [\n       {\n         \"id\": 101,\n         \"first_name\": \"Bob\",\n         \"last_name\": \"Client\",\n         \"photo\": \"https:\/\/example.com\/photos\/client101.jpg\"\n       }\n     ],\n     \"created_at\": \"07-08-2024 14:38:51\",\n     \"updated_at\": \"07-08-2024 15:10:02\"\n   }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n   \"error\": true,\n   \"message\": \"Validation failed.\",\n   \"errors\": {\n     \"title\": [\n       \"The title field is required.\"\n     ],\n     \"id\": [\n       \"The selected id is invalid.\"\n     ]\n   }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a workspace",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/workspace\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/workspace\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "12",
                                    "description": "The ID of the workspace."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n\"error\": false,\n  \"message\": \"Workspace deleted successfully.\",\n   \"id\": \"3\",\n   \"title\": \"Design Team Workspace\",\n   \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Cannot delete the currently active workspace.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Workspace not found or already deleted.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get a list of workspaces or a specific workspace.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/workspace\/:id",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "first",
                                    "description": "optional Search by workspace title or ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "title",
                                    "description": "optional Column to sort by. Default is \"id\".",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "ASC",
                                    "description": "optional Sort direction (\"ASC\" or \"DESC\"). Default is \"DESC\".",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "20",
                                    "description": "optional Number of results per page. Default is 10.",
                                    "disabled": false
                                },
                                {
                                    "key": "isApi",
                                    "value": "",
                                    "description": "optional Set true if called from API. Default is true.",
                                    "disabled": true
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/workspace\/:id?search=first&sort=title&order=ASC&limit=20&isApi=",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "17",
                                    "description": "optional The ID of the workspace to retrieve."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer 40|dbscqcapUOVnO7g5bKWLIJ2H2zBM0CBUH218XxaNf548c4f1"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"error\": false,\n \"message\": \"Workspaces retrieved successfully.\",\n \"total\": 2,\n \"data\": [\n     {\n         \"id\": 1,\n         \"title\": \"Marketing Team\",\n         \"is_primary\": true,\n         \"users\": [\n             {\n                 \"id\": 2,\n                 \"first_name\": \"Jane\",\n                 \"last_name\": \"Doe\",\n                 \"photo\": \"http:\/\/localhost:8000\/storage\/photos\/no-image.jpg\"\n             }\n         ],\n         \"clients\": [\n             {\n                 \"id\": 5,\n                 \"first_name\": \"Client\",\n                 \"last_name\": \"One\",\n                 \"photo\": \"http:\/\/localhost:8000\/storage\/photos\/no-image.jpg\"\n             }\n         ],\n         \"created_at\": \"2025-05-19 09:53:37\",\n         \"updated_at\": \"2025-06-05 11:35:18\"\n     }\n ]\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"error\": false,\n \"message\": \"Workspace retrieved successfully.\",\n \"data\": {\n     \"id\": 2,\n     \"title\": \"Design Department\",\n     \"is_primary\": false,\n     \"users\": [...],\n     \"clients\": [...],\n     \"created_at\": \"2025-05-19 09:53:37\",\n     \"updated_at\": \"2025-06-05 11:35:18\"\n }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n \"error\": true,\n \"message\": \"No query results for model [App\\\\Models\\\\Workspace] 999.\",\n \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n \"error\": true,\n \"message\": \"Internal Server Error\",\n \"data\": []\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Todos Managemant",
            "description": "Updates a specific Todo item based on the provided ID and new data.\nRequires the `id`, `title`, and `priority` fields in the request.",
            "item": [
                {
                    "name": "Create a new Todo item.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/todo",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/todo"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"\\\"Finish report\\\"\",\"priority\":\"\\\"High\\\"\",\"description\":\"\\\"Complete the monthly sales report.\\\"\"}"
                        },
                        "description": "This endpoint creates a new todo item associated with the current workspace and admin."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Todo created successfully.\",\n  \"data\": {\n    \"id\": 1,\n    \"title\": \"Finish report\",\n    \"priority\": \"High\",\n    \"description\": \"Complete the monthly sales report.\",\n    \"workspace_id\": 5,\n    \"admin_id\": 3,\n    \"created_at\": \"2025-06-05 10:00:00\",\n    \"updated_at\": \"2025-06-05 10:00:00\"\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Workspace not found in session.\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Validation error.\",\n  \"errors\": {\n    \"title\": [\"The title field is required.\"],\n    \"priority\": [\"The priority field is required.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Lead Couldn't Created.\",\n  \"error\": \"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row\",\n  \"line\": 45,\n  \"file\": \"\/var\/www\/html\/app\/Http\/Controllers\/TodoController.php\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update an existing Todo",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/todo\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/todo\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the todo."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":5,\"title\":\"Complete Report\",\"priority\":\"High\",\"description\":\"Submit final version to manager\",\"isApi\":true}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Todo updated successfully.\",\n  \"data\": {\n    \"id\": 5,\n    \"data\": {\n      \"id\": 5,\n      \"title\": \"Complete Report\",\n      \"priority\": \"High\",\n      \"description\": \"Submit final version to manager\",\n      \"workspace_id\": 2,\n      \"admin_id\": 1,\n      \"created_at\": \"2025-06-05 14:45:23\",\n      \"updated_at\": \"2025-06-06 10:12:45\"\n    }\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"No query results for model [App\\\\Models\\\\Todo] 999.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"title\": [\"The title field is required.\"],\n    \"priority\": [\"The priority field is required.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Todo couldn't be updated.\",\n  \"data\": {\n    \"error\": \"Error message details...\",\n    \"line\": 45,\n    \"file\": \"\/app\/Http\/Controllers\/TodoController.php\"\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a Todo",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/todo\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/todo\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "42",
                                    "description": "The ID of the todo to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Deletes a specific todo item by ID.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Todo deleted successfully.\",\n  \"data\": {\n    \"id\": 42,\n    \"title\": \"Call client\",\n    \"priority\": \"High\",\n    \"description\": \"Discuss contract terms\",\n    \"created_at\": \"2025-06-05T12:00:00Z\",\n    \"updated_at\": \"2025-06-05T14:00:00Z\"\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Todo not found.\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred while deleting Todo.\",\n  \"data\": {\n    \"error\": \"SQLSTATE[23000]: Integrity constraint violation: ...\",\n    \"line\": 88,\n    \"file\": \"\/app\/Http\/Controllers\/TodoController.php\"\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Display a listing of todos or a specific todo by ID.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/todo\/:id",
                            "query": [
                                {
                                    "key": "isApi",
                                    "value": "",
                                    "description": "Optional. Defaults to true. Set to true to receive API formatted response.",
                                    "disabled": true
                                },
                                {
                                    "key": "id",
                                    "value": "17",
                                    "description": "Optional. If provided, fetch a specific todo by this ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "search",
                                    "value": "consequatur",
                                    "description": "Optional. Search term to filter todos by title or description.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "consequatur",
                                    "description": "Optional. Column name to sort by. Default: id.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "consequatur",
                                    "description": "Optional. Sort order: asc or desc. Default: desc.",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "17",
                                    "description": "Optional. Number of items per page for pagination. Default: 10.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/todo\/:id?isApi=&id=17&search=consequatur&sort=consequatur&order=consequatur&limit=17",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the ."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Todos retrieved successfully.\",\n  \"total\": 25,\n  \"data\": [\n    {\n      \"id\": 1,\n      \"title\": \"Sample Todo\",\n      \"description\": \"Description here\",\n      \"priority\": \"High\",\n      \"is_completed\": false,\n      \"creator\": {\n        \"id\": 2,\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\"\n      },\n      \"created_at\": \"2025-06-05 10:00:00\",\n      \"updated_at\": \"2025-06-05 10:30:00\"\n    }\n  ]\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Todo not found.\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Internal Server Error\",\n  \"data\": {\n    \"line\": 123,\n    \"file\": \"\/app\/Http\/Controllers\/TodoController.php\"\n  }\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Meeting Managemant",
            "description": "",
            "item": [
                {
                    "name": "Create a new meeting",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/meeting",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/meeting"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"Project Kickoff\",\"start_date\":\"2025-06-05\",\"end_date\":\"2025-06-05\",\"start_time\":\"10:00\",\"end_time\":\"11:30\",\"user_ids\":[1,2,3],\"client_ids\":[5,6]}"
                        },
                        "description": "This endpoint creates a new meeting within the current workspace. It validates the meeting date\/time, ensures the creator is part of the participant list, and sends notifications to all participants."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Meeting created successfully.\",\n  \"data\": {\n    \"id\": 12,\n    \"data\": {\n      \"id\": 12,\n      \"title\": \"Project Kickoff\",\n      \"start_date_time\": \"2025-06-05 10:00:00\",\n      \"end_date_time\": \"2025-06-05 11:30:00\",\n      \"workspace_id\": 3,\n      \"admin_id\": 1,\n      ...\n    }\n  }\n}",
                            "name": "Meeting successfully created"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Missing workspace or user context.\",\n  \"data\": []\n}",
                            "name": "Missing workspace or user context"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Validation failed\",\n  \"data\": {\n    \"title\": [\"The title field is required.\"],\n    \"start_date\": [\"The start date is required.\"]\n  }\n}",
                            "name": "Validation error"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Meeting couldn't be created.\",\n  \"data\": {\n    \"error\": \"SQLSTATE[...]: Some database error\",\n    \"line\": 102,\n    \"file\": \"app\/Http\/Controllers\/MeetingController.php\"\n  }\n}",
                            "name": "Unexpected server error"
                        }
                    ]
                },
                {
                    "name": "List Meetings",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/meeting\/:id",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "team+sync",
                                    "description": "Optional. Search by meeting title or ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "start_date_time",
                                    "description": "Optional. Field to sort by. Default is id.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "ASC",
                                    "description": "Optional. Sort order (ASC or DESC). Default is DESC.",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "10",
                                    "description": "Optional. Number of results per page.",
                                    "disabled": false
                                },
                                {
                                    "key": "status",
                                    "value": "ongoing",
                                    "description": "Optional. Filter by meeting status. Options: ongoing, yet_to_start, ended.",
                                    "disabled": false
                                },
                                {
                                    "key": "user_id",
                                    "value": "2",
                                    "description": "Optional. Filter meetings assigned to a specific user.",
                                    "disabled": false
                                },
                                {
                                    "key": "client_id",
                                    "value": "8",
                                    "description": "Optional. Filter meetings assigned to a specific client.",
                                    "disabled": false
                                },
                                {
                                    "key": "start_date_from",
                                    "value": "2025-06-01",
                                    "description": "date Optional. Start date filter from (Y-m-d).",
                                    "disabled": false
                                },
                                {
                                    "key": "start_date_to",
                                    "value": "2025-06-30",
                                    "description": "date Optional. Start date filter to (Y-m-d).",
                                    "disabled": false
                                },
                                {
                                    "key": "end_date_from",
                                    "value": "2025-06-01",
                                    "description": "date Optional. End date filter from (Y-m-d).",
                                    "disabled": false
                                },
                                {
                                    "key": "end_date_to",
                                    "value": "2025-06-30",
                                    "description": "date Optional. End date filter to (Y-m-d).",
                                    "disabled": false
                                },
                                {
                                    "key": "isApi",
                                    "value": "1",
                                    "description": "Optional. Default is true. Used to enable API-formatted responses.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/meeting\/:id?search=team+sync&sort=start_date_time&order=ASC&limit=10&status=ongoing&user_id=2&client_id=8&start_date_from=2025-06-01&start_date_to=2025-06-30&end_date_from=2025-06-01&end_date_to=2025-06-30&isApi=1",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "5",
                                    "description": "Optional. The ID of the meeting to retrieve."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieve a list of all meetings or a single meeting by ID, with support for search, filters, sort, and pagination."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"status\": false,\n  \"message\": \"Meetings retrieved successfully.\",\n  \"data\": {\n    \"total\": 1,\n    \"data\": [\n      {\n        \"id\": 5,\n        \"title\": \"Client Update Meeting\",\n        \"start_date_time\": \"2025-06-10 10:00:00\",\n        \"end_date_time\": \"2025-06-10 11:00:00\",\n        \"users\": \"<ul>...<\/ul>\",\n        \"clients\": \"<ul>...<\/ul>\",\n        \"status\": \"Ongoing\",\n        \"created_at\": \"2025-06-01 09:30:00\",\n        \"updated_at\": \"2025-06-01 09:45:00\",\n        \"actions\": \"<a>...<\/a>\"\n      }\n    ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"status\": true,\n  \"message\": \"Missing workspace or user context.\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"status\": true,\n  \"message\": \"Meeting not found.\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"status\": true,\n  \"message\": \"Validation failed.\",\n  \"data\": {\n    \"user_id\": [\n      \"The selected user_id is invalid.\"\n    ],\n    \"client_id\": [\n      \"The selected client_id is invalid.\"\n    ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"status\": true,\n  \"message\": \"An error occurred while retrieving meetings.\",\n  \"data\": {\n    \"error\": \"SQLSTATE[HY000]: General error...\",\n    \"file\": \"\/app\/Http\/Controllers\/MeetingsController.php\",\n    \"line\": 75\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update a Meeting",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/meeting\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/meeting\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the meeting."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"Project Planning\",\"start_date\":\"2025-06-08\",\"end_date\":\"2025-06-08\",\"start_time\":\"10:00:00\",\"end_time\":\"11:30:00\",\"id\":7,\"user_ids\":[1,4,5],\"client_ids\":[2,8],\"isApi\":true}"
                        },
                        "description": "Update the details of an existing meeting. Also supports assigning users and clients to the meeting, and notifies newly assigned participants."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"status\": false,\n  \"message\": \"meeting updated successfully.\",\n  \"data\": {\n    \"id\": 7,\n    \"data\": {\n      \"id\": 7,\n      \"title\": \"Project Planning\",\n      \"start_date_time\": \"2025-06-08 10:00:00\",\n      \"end_date_time\": \"2025-06-08 11:30:00\",\n      \"users\": [...],\n      \"clients\": [...],\n      ...\n    }\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"status\": true,\n  \"message\": \"Meeting not found.\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"status\": true,\n  \"message\": \"Validation failed.\",\n  \"data\": {\n    \"title\": [\"The title field is required.\"],\n    \"start_date\": [\"The start date field is required.\"],\n    \"end_date\": [\"The end date must be after or equal to start date.\"],\n    \"end_time\": [\"End time must be after start time on the same day.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred while updating the meeting.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a Meeting",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/meeting\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/meeting\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "15",
                                    "description": "The ID of the meeting to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint allows you to delete a meeting by its ID. Only users with proper permissions can delete meetings.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"message\": \"Meeting deleted successfully.\",\n  \"data\": {\n    \"id\": 15,\n\"data\":[]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Meeting not found.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred while deleting the meeting.\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "note Managemant",
            "description": "This endpoint allows you to delete a note by its ID.\nIt performs a lookup for the note, deletes it using the DeletionService,\nand returns a formatted API response.",
            "item": [
                {
                    "name": "Create a new note.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/note",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/note"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"note_type\":\"text\",\"title\":\"Project Kickoff Notes\",\"color\":\"#ffcc00\",\"description\":\"Discussed project milestones and timelines.\",\"drawing_data\":\"PHN2ZyB...\"}"
                        },
                        "description": "This endpoint allows you to create a new note of type `text` or `drawing`. If the note type is `drawing`,\nyou must provide valid `drawing_data` in base64-encoded SVG format. The note is associated with the current\nworkspace and the authenticated user (either client or user).",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Note created successfully.\",\n  \"data\": {\n    \"id\": 12,\n    \"data\": {\n      \"id\": 12,\n      \"title\": \"Project Kickoff Notes\",\n      \"note_type\": \"text\",\n      \"color\": \"#ffcc00\",\n      \"description\": \"Discussed project milestones and timelines.\",\n      \"creator_id\": \"u_1\",\n      \"workspace_id\": 3,\n      ...\n    }\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"note_type\": [\"The note type field is required.\"],\n    \"title\": [\"The title field is required.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred while creating the note.\",\n  \"data\": {\n    \"error\": \"Exception message here\"\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update an existing note.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/note\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/note\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the note."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":12,\"note_type\":\"text\",\"title\":\"Meeting notes\",\"color\":\"#FF5733\",\"description\":\"Detailed notes from the meeting\",\"drawing_data\":\"consequatur\"}"
                        },
                        "description": "Updates the note identified by `id` with the provided data.\nSupports notes of type `text` or `drawing`. For `drawing` type,\nthe `drawing_data` must be a base64-encoded string, which will be decoded.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n   \"error\": false,\n   \"message\": \"Note updated successfully.\",\n   \"data\": {\n      \"id\": 12,\n      \"data\": {\n         \"id\": 12,\n         \"note_type\": \"text\",\n         \"title\": \"Meeting notes\",\n         \"color\": \"#FF5733\",\n         \"description\": \"Detailed notes from the meeting\",\n         \"drawing_data\": null,\n         \/\/ ... other formatted note fields\n      }\n   }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n   \"error\": true,\n   \"message\": \"The given data was invalid.\",\n   \"errors\": {\n      \"title\": [\"The title field is required.\"],\n      \"note_type\": [\"The selected note type is invalid.\"]\n   }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n   \"error\": true,\n   \"message\": \"An error occurred while updating the note.\",\n   \"error\": \"Detailed error message here\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a Note",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/note\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/note\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "7",
                                    "description": "The ID of the note to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"message\": \"Note deleted successfully.\",\n  \"data\": {\n    \"id\": 7,\n    \"title\": \"Project Kickoff Notes\",\n    \"content\": \"Initial project meeting details...\",\n    \"user_id\": 3,\n    \"workspace_id\": 2,\n    \"created_at\": \"2024-05-24T08:12:54.000000Z\",\n    \"updated_at\": \"2024-06-01T10:20:41.000000Z\"\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"success\": false,\n  \"message\": \"No query results for model [App\\\\Models\\\\Note] 99\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"success\": false,\n  \"message\": \"Something went wrong while deleting the note.\",\n  \"data\": []\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get All Notes or a Specific Note\n\nThis endpoint retrieves either:\n- A list of all notes (if no ID is provided), or\n- A single note by its ID (if provided).\n\nNotes are filtered by the current workspace and admin context.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/note\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/note\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "3",
                                    "description": "optional The ID of the note to retrieve."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"message\": \"Notes retrieved successfully.\",\n  \"data\": {\n    \"total\": 2,\n    \"data\": [\n      {\n        \"id\": 1,\n        \"title\": \"Sprint Planning\",\n        \"note_type\": \"text\",\n        \"color\": \"#ffffff\",\n        \"workspace_id\": 1,\n        \"admin_id\": 1,\n        \"creator_id\": \"u_3\",\n        \"created_at\": \"2025-06-01T12:00:00.000000Z\",\n        \"updated_at\": \"2025-06-01T12:30:00.000000Z\"\n      },\n      {\n        \"id\": 2,\n        \"title\": \"UI Wireframe\",\n        \"note_type\": \"drawing\",\n        \"color\": \"#000000\",\n        \"workspace_id\": 1,\n        \"admin_id\": 1,\n        \"creator_id\": \"u_3\",\n        \"created_at\": \"2025-06-02T08:45:00.000000Z\",\n        \"updated_at\": \"2025-06-02T09:15:00.000000Z\"\n      }\n    ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"message\": \"Note retrieved successfully.\",\n  \"data\": {\n    \"total\": 1,\n    \"data\": [\n      {\n        \"id\": 3,\n        \"title\": \"Design Plan\",\n        \"note_type\": \"drawing\",\n        \"color\": \"#ffdd00\",\n        \"workspace_id\": 1,\n        \"admin_id\": 1,\n        \"creator_id\": \"u_5\",\n        \"created_at\": \"2025-06-03T10:00:00.000000Z\",\n        \"updated_at\": \"2025-06-03T10:30:00.000000Z\"\n      }\n    ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"success\": false,\n  \"message\": \"Note not found.\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"success\": false,\n  \"message\": \"Failed to retrieve notes.\",\n  \"data\": {\n    \"error\": \"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'notes' doesn't exist\"\n  }\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Activitylog",
            "description": "Returns a paginated list of activity logs, or a single activity log if an ID is provided. Supports filtering, searching, and pagination.",
            "item": [
                {
                    "name": "Get a list of activity logs or a single activity log by ID.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/activity-log\/:id",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "login",
                                    "description": "Search term for activity logs.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "created_at",
                                    "description": "Field to sort by. Default: id.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "ASC",
                                    "description": "Sort order (ASC or DESC). Default: DESC.",
                                    "disabled": false
                                },
                                {
                                    "key": "date_from",
                                    "value": "2024-01-01",
                                    "description": "Filter by start date (Y-m-d).",
                                    "disabled": false
                                },
                                {
                                    "key": "date_to",
                                    "value": "2024-01-31",
                                    "description": "Filter by end date (Y-m-d).",
                                    "disabled": false
                                },
                                {
                                    "key": "user_ids[0]",
                                    "value": "1",
                                    "description": "Filter by user IDs.",
                                    "disabled": false
                                },
                                {
                                    "key": "user_ids[1]",
                                    "value": "2",
                                    "description": "Filter by user IDs.",
                                    "disabled": false
                                },
                                {
                                    "key": "client_ids[0]",
                                    "value": "3",
                                    "description": "Filter by client IDs.",
                                    "disabled": false
                                },
                                {
                                    "key": "client_ids[1]",
                                    "value": "4",
                                    "description": "Filter by client IDs.",
                                    "disabled": false
                                },
                                {
                                    "key": "activities[0]",
                                    "value": "created",
                                    "description": "Filter by activity types.",
                                    "disabled": false
                                },
                                {
                                    "key": "activities[1]",
                                    "value": "updated",
                                    "description": "Filter by activity types.",
                                    "disabled": false
                                },
                                {
                                    "key": "types[0]",
                                    "value": "task",
                                    "description": "Filter by log types.",
                                    "disabled": false
                                },
                                {
                                    "key": "types[1]",
                                    "value": "project",
                                    "description": "Filter by log types.",
                                    "disabled": false
                                },
                                {
                                    "key": "type",
                                    "value": "task",
                                    "description": "Filter by a specific type.",
                                    "disabled": false
                                },
                                {
                                    "key": "type_id",
                                    "value": "5",
                                    "description": "Filter by a specific type ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "offset",
                                    "value": "",
                                    "description": "Pagination offset. Default: 0.",
                                    "disabled": true
                                },
                                {
                                    "key": "limit",
                                    "value": "10",
                                    "description": "Pagination limit. Default: 10.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/activity-log\/:id?search=login&sort=created_at&order=ASC&date_from=2024-01-01&date_to=2024-01-31&user_ids[0]=1&user_ids[1]=2&client_ids[0]=3&client_ids[1]=4&activities[0]=created&activities[1]=updated&types[0]=task&types[1]=project&type=task&type_id=5&offset=&limit=10",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "optional The ID of the activity log to retrieve."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Activity logs retrieved successfully\",\n  \"data\": [\n    {\n      \"id\": 1,\n      \"actor_id\": 2,\n      \"actor_name\": \"John Doe\",\n      \"actor_type\": \"User\",\n      \"type_id\": 3,\n      \"parent_type_id\": 4,\n      \"type\": \"Task\",\n      \"parent_type\": \"Project\",\n      \"type_title\": \"Task Title\",\n      \"parent_type_title\": \"Project Title\",\n      \"activity\": \"Created\",\n      \"message\": \"Task created successfully.\",\n      \"created_at\": \"2024-01-01 12:00:00\",\n      \"updated_at\": \"2024-01-01 12:00:00\",\n      \"actions\": \"-\"\n    }\n  ],\n  \"total\": 1\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete an activity log record by ID.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/activity-log\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/activity-log\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "The ID of the activity log to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Record deleted successfully.\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Notifications",
            "description": "List notifications for the authenticated user or specified user\/client.",
            "item": [
                {
                    "name": "List notifications (API)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/notification\/:id",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "project",
                                    "description": "Optional search term.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "id",
                                    "description": "Field to sort by. Default: id.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "DESC",
                                    "description": "Sort order (ASC|DESC). Default: DESC.",
                                    "disabled": false
                                },
                                {
                                    "key": "status",
                                    "value": "unread",
                                    "description": "Filter by read\/unread.",
                                    "disabled": false
                                },
                                {
                                    "key": "type",
                                    "value": "project",
                                    "description": "Filter by notification type.",
                                    "disabled": false
                                },
                                {
                                    "key": "user_id",
                                    "value": "1",
                                    "description": "Filter by user ID (admin only).",
                                    "disabled": false
                                },
                                {
                                    "key": "client_id",
                                    "value": "2",
                                    "description": "Filter by client ID (admin only).",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "10",
                                    "description": "Results per page.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/notification\/:id?search=project&sort=id&order=DESC&status=unread&type=project&user_id=1&client_id=2&limit=10",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the ."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"rows\": [\n    {\n      \"id\": 1,\n      \"title\": \"Title\",\n      \"users\": [],\n      \"clients\": [],\n      \"type_id\": 1,\n      \"message\": \"Message text\",\n      \"type\": \"Project\",\n      \"read_at\": \"2024-06-27 10:00:00\",\n      \"created_at\": \"2024-06-27 10:00:00\",\n      \"updated_at\": \"2024-06-27 10:00:00\"\n    }\n  ],\n  \"total\": 1\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Remove the specified notification.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/notification\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/notification\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "The ID of the notification to be deleted."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint deletes a notification based on the provided ID. The user must be authenticated to perform this action."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Notification deleted successfully.\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Notification not found.\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred while deleting the notification.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Mark all notifications as read (API)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/notifications\/mark-as-read\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/notifications\/mark-as-read\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the ."
                                }
                            ]
                        },
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Marks all notifications for the authenticated user as read and returns the updated notifications using the formatNotification helper."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"All notifications marked as read.\",\n  \"data\": [\n    { \"id\": 1, \"title\": \"...\", ...notification fields... }\n  ]\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Unauthenticated.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred while marking notifications as read.\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Contracts",
            "description": "",
            "item": [
                {
                    "name": "GET api\/master-panel\/contracts\/{id?}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/contracts\/:id",
                            "query": [
                                {
                                    "key": "id",
                                    "value": "17",
                                    "description": "Optional. The ID of the contract to fetch.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/contracts\/:id?id=17",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the ."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"message\": \"Contracts fetched successfully.\",\n  \"data\": [\n    {\n      \"id\": 1,\n      \"title\": \"Sample Contract\",\n      \"value\": \"1000.00\",\n      \"start_date\": \"2024-01-01\",\n      \"end_date\": \"2024-12-31\",\n      ...\n    }\n  ]\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "POST api\/master-panel\/contracts",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/contracts",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/contracts"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"consequatur\",\"value\":11613.31890586,\"start_date\":\"consequatur\",\"end_date\":\"consequatur\",\"client_id\":17,\"project_id\":17,\"contract_type_id\":17,\"description\":\"Dolores dolorum amet iste laborum eius est dolor.\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"message\": \"Contract created successfully.\",\n  \"data\": {\n    \"id\": 1,\n    \"title\": \"Sample Contract\",\n    ...\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "PUT api\/master-panel\/contracts\/{id}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/contracts\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/contracts\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the contract."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":17,\"title\":\"consequatur\",\"value\":11613.31890586,\"start_date\":\"consequatur\",\"end_date\":\"consequatur\",\"client_id\":17,\"project_id\":17,\"contract_type_id\":17,\"description\":\"Dolores dolorum amet iste laborum eius est dolor.\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"message\": \"Contract updated successfully.\",\n  \"data\": {\n    \"id\": 1,\n    \"title\": \"Updated Contract\",\n    ...\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "DELETE api\/master-panel\/contracts\/{id}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/contracts\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/contracts\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "17",
                                    "description": "The ID of the contract to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Contract deleted successfully.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Contract not found.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred while deleting the contract.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "POST api\/master-panel\/contract-types\/store",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/contract-types\/store",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/contract-types\/store"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"type\":\"consequatur\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Contract type created successfully.\",\n  \"id\": 1,\n  \"title\": \"NDA\",\n  \"type\": \"contract_type\",\n  \"ct\": { ... }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Contract type couldn't created.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "GET api\/master-panel\/contract-types\/list",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/contract-types\/list",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "consequatur",
                                    "description": "Optional. Search by contract type name or ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "consequatur",
                                    "description": "Optional. Field to sort by. Default is \"id\".",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "consequatur",
                                    "description": "Optional. Sort order (ASC or DESC). Default is \"DESC\".",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "17",
                                    "description": "Optional. Number of results per page.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/contract-types\/list?search=consequatur&sort=consequatur&order=consequatur&limit=17"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"rows\": [\n    { \"id\": 1, \"type\": \"NDA\" },\n    { \"id\": 2, \"type\": \"MSA\" }\n  ],\n  \"total\": 2\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "DELETE api\/master-panel\/contract-types\/{id}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/contract-types\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/contract-types\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "17",
                                    "description": "The ID of the contract type to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Contract type deleted successfully.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Cannot delete this contract type as it is associated with one or more contracts.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Contract type not found.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred while deleting the contract type.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "PUT api\/master-panel\/contracts-types\/{id}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/contracts-types\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/contracts-types\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the contracts type."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":17,\"type\":\"consequatur\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Contract type updated successfully.\",\n  \"id\": 1,\n  \"title\": \"NDA\",\n  \"type\": \"contract_type\",\n  \"ct\": { ... }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Contract type couldn't be updated.\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Allowances",
            "description": "",
            "item": [
                {
                    "name": "POST api\/master-panel\/allowances",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/allowances",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/allowances"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"consequatur\",\"amount\":11613.31890586}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Allowance created successfully.\",\n  \"id\": 1,\n  \"data\": {\n    \"id\": 1,\n    \"title\": \"Travel Allowance\",\n    \"amount\": 1500,\n    ...\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Allowance couldn't be created.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"title\": [\"The title field is required.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred: ...\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "GET api\/master-panel\/allowances\/{id?}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/allowances\/:id",
                            "query": [
                                {
                                    "key": "id",
                                    "value": "17",
                                    "description": "Optional. The ID of the allowance to fetch.",
                                    "disabled": false
                                },
                                {
                                    "key": "search",
                                    "value": "consequatur",
                                    "description": "Optional. Search by title, amount, or ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "consequatur",
                                    "description": "Optional. Field to sort by. Default is \"id\".",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "consequatur",
                                    "description": "Optional. Sort order (ASC or DESC). Default is \"DESC\".",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "17",
                                    "description": "Optional. Number of results per page.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/allowances\/:id?id=17&search=consequatur&sort=consequatur&order=consequatur&limit=17",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the ."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Allowances fetched successfully.\",\n  \"rows\": [\n    { \"id\": 1, \"title\": \"Travel Allowance\", \"amount\": 1500, ... }\n  ],\n  \"total\": 1\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Allowance not found.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred: ...\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "DELETE api\/master-panel\/allowances\/{id}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/allowances\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/allowances\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "17",
                                    "description": "The ID of the allowance to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Allowance(s) deleted successfully.\",\n  \"id\": [1],\n  \"titles\": [\"Travel Allowance\"]\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Allowance not found.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred: ...\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "PUT api\/master-panel\/allowances\/{id}",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/allowances\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/allowances\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the allowance."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":17,\"title\":\"consequatur\",\"amount\":11613.31890586}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Allowance updated successfully.\",\n  \"id\": 1,\n  \"data\": {\n    \"id\": 1,\n    \"title\": \"Updated Allowance\",\n    \"amount\": 2000,\n    ...\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Allowance couldn't be updated.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Allowance not found.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"title\": [\"The title field is required.\"]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred: ...\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Deductions",
            "description": "",
            "item": [
                {
                    "name": "Create Deduction",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/deductions",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/deductions"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"isApi\":true,\"title\":\"Provident Fund\",\"type\":\"amount\",\"amount\":500,\"percentage\":10}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Deduction created successfully.\",\n  \"id\": 1,\n  \"data\": {\"id\":1, ...}\n}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"error\": true, \"message\": \"...\"}",
                            "name": "Validation error"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"error\": true, \"message\": \"An error occurred: ...\"}",
                            "name": "Error"
                        }
                    ]
                },
                {
                    "name": "List Deductions (API)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/deductions\/:id",
                            "query": [
                                {
                                    "key": "id",
                                    "value": "5",
                                    "description": "Optional. If provided, returns the deduction with this ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "search",
                                    "value": "Provident",
                                    "description": "Optional. Search term for deductions.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "title",
                                    "description": "Optional. Sort field. Default: id.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "ASC",
                                    "description": "Optional. Sort order. Default: DESC.",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "10",
                                    "description": "Optional. Pagination limit. Default: 10.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/deductions\/:id?id=5&search=Provident&sort=title&order=ASC&limit=10",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the ."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Deductions fetched successfully.\",\n  \"total\": 2,\n  \"rows\": [\n    {\"id\":1,\"title\":\"Provident Fund\", ...},\n    {\"id\":2,\"title\":\"TDS\", ...}\n  ]\n}",
                            "name": "List"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Deduction fetched successfully.\",\n  \"data\": {\"id\":1,\"title\":\"Provident Fund\", ...}\n}",
                            "name": "Single"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"error\": true, \"message\": \"Deduction not found.\"}",
                            "name": "Not found"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"error\": true, \"message\": \"An error occurred: ...\"}",
                            "name": "Error"
                        }
                    ]
                },
                {
                    "name": "Update Deduction",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/deductions\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/deductions\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the deduction."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"isApi\":true,\"id\":1,\"title\":\"Provident Fund\",\"type\":\"amount\",\"amount\":500,\"percentage\":10}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Deduction updated successfully.\",\n  \"id\": 1,\n  \"data\": {\"id\":1, ...}\n}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"error\": true, \"message\": \"...\"}",
                            "name": "Validation error"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"error\": true, \"message\": \"Deduction not found.\"}",
                            "name": "Not found"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"error\": true, \"message\": \"An error occurred: ...\"}",
                            "name": "Error"
                        }
                    ]
                },
                {
                    "name": "Delete Deduction(s)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/deductions\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/deductions\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the deduction."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"isApi\":true,\"ids\":[1,2]}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Deduction(s) deleted successfully.\",\n  \"id\": [1,2],\n  \"titles\": [\"Provident Fund\", \"TDS\"]\n}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"error\": true, \"message\": \"...\"}",
                            "name": "Validation error"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"error\": true, \"message\": \"An error occurred: ...\"}",
                            "name": "Error"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Payslips",
            "description": "",
            "item": [
                {
                    "name": "Create Payslip",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/payslips",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/payslips"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"isApi\":true,\"user_id\":2,\"month\":\"2024-06\",\"basic_salary\":50000,\"working_days\":22,\"lop_days\":2,\"paid_days\":20,\"bonus\":1000,\"incentives\":500,\"leave_deduction\":200,\"ot_hours\":5,\"ot_rate\":100,\"ot_payment\":500,\"total_allowance\":1500,\"total_deductions\":300,\"total_earnings\":52000,\"net_pay\":51700,\"payment_method_id\":1,\"payment_date\":\"2024-06-30\",\"status\":1,\"note\":\"June payslip\",\"allowances\":[1,2],\"deductions\":[1,2]}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Payslip created successfully.\",\n  \"id\": 1,\n  \"data\": {\"id\":1, ...}\n}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"error\": true, \"message\": \"...\"}",
                            "name": "Validation error"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"error\": true, \"message\": \"An error occurred: ...\"}",
                            "name": "Error"
                        }
                    ]
                },
                {
                    "name": "List Payslips (API)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/payslips\/:id",
                            "query": [
                                {
                                    "key": "id",
                                    "value": "5",
                                    "description": "Optional. If provided, returns the payslip with this ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "search",
                                    "value": "PSL-2024",
                                    "description": "Optional. Search term for payslips.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "month",
                                    "description": "Optional. Sort field. Default: id.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "ASC",
                                    "description": "Optional. Sort order. Default: DESC.",
                                    "disabled": false
                                },
                                {
                                    "key": "status",
                                    "value": "1",
                                    "description": "Optional. Filter by status (0=Unpaid, 1=Paid).",
                                    "disabled": false
                                },
                                {
                                    "key": "user_id",
                                    "value": "3",
                                    "description": "Optional. Filter by user.",
                                    "disabled": false
                                },
                                {
                                    "key": "created_by",
                                    "value": "2",
                                    "description": "Optional. Filter by creator.",
                                    "disabled": false
                                },
                                {
                                    "key": "month",
                                    "value": "2024-06",
                                    "description": "Optional. Filter by month (YYYY-MM).",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "10",
                                    "description": "Optional. Pagination limit. Default: 15.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/payslips\/:id?id=5&search=PSL-2024&sort=month&order=ASC&status=1&user_id=3&created_by=2&month=2024-06&limit=10",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the ."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Payslips fetched successfully.\",\n  \"total\": 2,\n  \"rows\": [\n    {\"id\":1,\"user\":\"John Doe\", ...},\n    {\"id\":2,\"user\":\"Jane Smith\", ...}\n  ]\n}",
                            "name": "List"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Payslip fetched successfully.\",\n  \"data\": {\"id\":1,\"user\":\"John Doe\", ...}\n}",
                            "name": "Single"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"error\": true, \"message\": \"Payslip not found.\"}",
                            "name": "Not found"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"error\": true, \"message\": \"An error occurred: ...\"}",
                            "name": "Error"
                        }
                    ]
                },
                {
                    "name": "Update Payslip",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/payslips\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/payslips\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the payslip."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"isApi\":true,\"id\":1,\"user_id\":2,\"month\":\"2024-06\",\"basic_salary\":50000,\"working_days\":22,\"lop_days\":2,\"paid_days\":20,\"bonus\":1000,\"incentives\":500,\"leave_deduction\":200,\"ot_hours\":5,\"ot_rate\":100,\"ot_payment\":500,\"total_allowance\":1500,\"total_deductions\":300,\"total_earnings\":52000,\"net_pay\":51700,\"payment_method_id\":1,\"payment_date\":\"2024-06-30\",\"status\":1,\"note\":\"June payslip\",\"allowances\":[1,2],\"deductions\":[1,2]}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Payslip updated successfully.\",\n  \"id\": 1,\n  \"data\": {\"id\":1, ...}\n}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"error\": true, \"message\": \"...\"}",
                            "name": "Validation error"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"error\": true, \"message\": \"Payslip not found.\"}",
                            "name": "Not found"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\"error\": true, \"message\": \"An error occurred: ...\"}",
                            "name": "Error"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Expenses & Expense Types",
            "description": "",
            "item": [
                {
                    "name": "Store a new expense.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/expenses",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/expenses"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"\\\"Travel Reimbursement\\\"\",\"expense_type_id\":1,\"user_id\":3,\"amount\":150.75,\"expense_date\":\"\\\"2024-06-30\\\"\",\"note\":\"\\\"Taxi fare for client meeting.\\\"\"}"
                        },
                        "description": "Create a new expense record in the workspace.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Expense created successfully.\",\n  \"id\": 12,\n  \"expenses\": {\"id\": 12, \"title\": \"Travel Reimbursement\", ...}\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Expense couldn't be created.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\"title\": [\"The title field is required.\"]}\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred: ...\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "List expenses (API).",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/expenses\/:id",
                            "query": [
                                {
                                    "key": "id",
                                    "value": "12",
                                    "description": "The ID of the expense to fetch.",
                                    "disabled": false
                                },
                                {
                                    "key": "search",
                                    "value": "%22Travel%22",
                                    "description": "Search term for filtering expenses.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "%22id%22",
                                    "description": "Field to sort by.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "%22DESC%22",
                                    "description": "Sort order (ASC or DESC).",
                                    "disabled": false
                                },
                                {
                                    "key": "type_id",
                                    "value": "1",
                                    "description": "Filter by expense type ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "user_id",
                                    "value": "3",
                                    "description": "Filter by user ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "date_from",
                                    "value": "%222024-06-01%22",
                                    "description": "date Filter expenses from this date.",
                                    "disabled": false
                                },
                                {
                                    "key": "date_to",
                                    "value": "%222024-06-30%22",
                                    "description": "date Filter expenses up to this date.",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "10",
                                    "description": "Number of records per page.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/expenses\/:id?id=12&search=%22Travel%22&sort=%22id%22&order=%22DESC%22&type_id=1&user_id=3&date_from=%222024-06-01%22&date_to=%222024-06-30%22&limit=10",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the ."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get a paginated list of expenses or a single expense by ID.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Expenses retrieved.\",\n  \"data\": {\n    \"rows\": [{\"id\": 12, \"title\": \"Travel Reimbursement\", ...}],\n    \"total\": 1\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Expense not found.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred: ...\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update an expense.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/expenses\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/expenses\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the expense."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":12,\"title\":\"\\\"Updated Title\\\"\",\"expense_type_id\":1,\"user_id\":3,\"amount\":200,\"expense_date\":\"\\\"2024-07-01\\\"\",\"note\":\"\\\"Updated note.\\\"\"}"
                        },
                        "description": "Update an existing expense record by ID.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Expense updated successfully.\",\n  \"id\": 12\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Expense couldn't be updated.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Expense not found.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\"title\": [\"The title field is required.\"]}\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred: ...\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete an expense.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/expenses\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/expenses\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "12",
                                    "description": "The ID of the expense."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Delete an expense by ID.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Expense deleted successfully.\",\n  \"id\": 12,\n  \"title\": \"Travel Reimbursement\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Expense not found.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Store a new expense type.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/expense-type",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/expense-type"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"title\":\"\\\"Travel\\\"\",\"description\":\"\\\"Expenses related to travel.\\\"\"}"
                        },
                        "description": "Create a new expense type in the workspace.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Expense type created successfully.\",\n  \"id\": 1,\n  \"expenses\": {\"id\": 1, \"title\": \"Travel\", ...}\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Expense type couldn't be created.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\"title\": [\"The title field is required.\"]}\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred: ...\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update an expense type.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/expense-type\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/expense-type\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the expense type."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":1,\"title\":\"\\\"Updated Type\\\"\",\"description\":\"\\\"Updated description.\\\"\"}"
                        },
                        "description": "Update an existing expense type by ID.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Expense Type updated successfully.\",\n  \"id\": 1\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Expense Type couldn't be updated.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Expense type not found.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\"title\": [\"The title field is required.\"]}\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred: ...\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete an expense type.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/expense-type\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/expense-type\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "The ID of the expense type."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Delete an expense type by ID. Will fail if the type is assigned to any expenses.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Expense type deleted successfully.\",\n  \"id\": 1,\n  \"title\": \"Travel\",\n  \"type\": \"expense_type\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Cannot delete this expense type as it is associated with one or more expenses.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Expense type not found.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "List or fetch expense types (API).",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/expense-type\/:id",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "%22Travel%22",
                                    "description": "Search term for filtering expense types.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "%22id%22",
                                    "description": "Field to sort by.",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "%22DESC%22",
                                    "description": "Sort order (ASC or DESC).",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "10",
                                    "description": "Number of records per page.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/expense-type\/:id?search=%22Travel%22&sort=%22id%22&order=%22DESC%22&limit=10",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "The ID of the expense type to fetch."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id:",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get a paginated list of expense types or a single expense type by ID.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Expense types fetched successfully.\",\n  \"data\": {\n    \"rows\": [{\"id\": 1, \"title\": \"Travel\", ...}],\n    \"total\": 1\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Expense type not found.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred: ...\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Setting Management",
            "description": "",
            "item": [
                {
                    "name": "Retrieve the settings for a specific variable.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/settings\/:variable",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/settings\/:variable",
                            "variable": [
                                {
                                    "id": "variable",
                                    "key": "variable",
                                    "value": "general_settings",
                                    "description": "The variable type for which settings are to be retrieved. Must be one of the following: general_settings, pusher_settings, email_settings, media_storage_settings, sms_gateway_settings, whatsapp_settings, privacy_policy, about_us, terms_conditions."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint returns the settings for a given variable. The user must be authenticated."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Settings retrieved successfully\",\n  \"settings\": {\n    \"company_title\": \"Taskify SaaS\",\n    \"currency_full_form\": \"Indian Rupee\",\n    \"currency_symbol\": \"\u20b9\",\n    \"currency_code\": \"INR\",\n    \"currency_symbol_position\": \"before\",\n    \"currency_formate\": \"comma_separated\",\n    \"decimal_points_in_currency\": \"2\",\n    \"allowed_max_upload_size\": \"2000\",\n    \"allowSignup\": 1,\n    \"timezone\": \"Asia\/Kolkata\",\n    \"date_format\": \"DD-MM-YYYY|d-m-Y\",\n    \"time_format\": \"H:i:s\",\n    \"toast_position\": \"toast-bottom-center\",\n    \"toast_time_out\": \"2\",\n    \"footer_text\": \"<p>made with \u2764\ufe0f by <a href=\\\"https:\/\/www.infinitietech.com\/\\\" target=\\\"_blank\\\" rel=\\\"noopener\\\">Infinitie Technologies<\/a><\/p>\",\n    \"full_logo\": \"https:\/\/test-taskify.infinitietech.com\/storage\/logos\/zEy4tSCAFSMczWbOoxBZ3B43Nc9eeqMlNBXDrOzn.png\",\n    \"half_logo\": null,\n    \"favicon\": \"https:\/\/test-taskify.infinitietech.com\/storage\/logos\/2FZTNY1qDTz7CTtwWC8Hh1eY4l7cIHgOXG2stVIU.png\"\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Un Authorized Action!\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Setting not found\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "leaverequest Managemant",
            "description": "This endpoint allows a user, admin, or leave editor to create a leave request.",
            "item": [
                {
                    "name": "Create a Leave Request",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/leaverequest",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/leaverequest"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"reason\":\"Family function\",\"from_date\":\"2025-06-10\",\"to_date\":\"2025-06-12\",\"partialLeave\":true,\"from_time\":\"10:00\",\"to_time\":\"14:00\",\"status\":\"pending\",\"leaveVisibleToAll\":true,\"visible_to_ids\":[3,5,7],\"user_id\":9,\"isApi\":true}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"error\": false,\n \"message\": \"Leave request created successfully.\",\n \"id\": 13,\n \"type\": \"leave_request\",\n \"data\": {\n   \"id\": 13,\n   \"user_id\": 9,\n   \"reason\": \"Family function\",\n   \"from_date\": \"2025-06-10\",\n   \"to_date\": \"2025-06-12\",\n   \"from_time\": null,\n   \"to_time\": null,\n   \"status\": \"pending\",\n   \"visible_to_all\": true,\n   ...\n }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n \"message\": \"The given data was invalid.\",\n \"errors\": {\n   \"reason\": [\"The reason field is required.\"],\n   \"from_date\": [\"The from date field is required.\"],\n   \"to_date\": [\"The to date field is required.\"]\n }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n \"error\": true,\n \"message\": \"leave request culd not created\",\n \"error\": \"Exception message\",\n \"line\": 125,\n \"file\": \"app\/Http\/Controllers\/LeaveRequestController.php\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "List Leave Requests (all or by ID)\n\nThis API returns either a paginated list of leave requests based on filters or a single leave request if an ID is provided.\n\nRequires authentication. Workspace must be set via header `workspace-id`.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/leaverequest\/:id",
                            "query": [
                                {
                                    "key": "isApi",
                                    "value": "",
                                    "description": "Optional. Set to `true` for API mode. Default: true",
                                    "disabled": true
                                },
                                {
                                    "key": "search",
                                    "value": "consequatur",
                                    "description": "Optional. Search by leave reason or ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "consequatur",
                                    "description": "Optional. Column to sort by. Default: id",
                                    "disabled": false
                                },
                                {
                                    "key": "order",
                                    "value": "consequatur",
                                    "description": "Optional. Sort direction: ASC or DESC. Default: DESC",
                                    "disabled": false
                                },
                                {
                                    "key": "user_ids[0]",
                                    "value": "consequatur",
                                    "description": "Optional. Filter by one or more user IDs.",
                                    "disabled": false
                                },
                                {
                                    "key": "action_by_ids[0]",
                                    "value": "consequatur",
                                    "description": "Optional. Filter by action_by user IDs.",
                                    "disabled": false
                                },
                                {
                                    "key": "types[0]",
                                    "value": "consequatur",
                                    "description": "Optional. Filter by types: full or partial.",
                                    "disabled": false
                                },
                                {
                                    "key": "statuses[0]",
                                    "value": "consequatur",
                                    "description": "Optional. Filter by status: pending, approved, rejected.",
                                    "disabled": false
                                },
                                {
                                    "key": "start_date_from",
                                    "value": "consequatur",
                                    "description": "date Optional. Start range for from_date filter.",
                                    "disabled": false
                                },
                                {
                                    "key": "start_date_to",
                                    "value": "consequatur",
                                    "description": "date Optional. End range for from_date filter.",
                                    "disabled": false
                                },
                                {
                                    "key": "end_date_from",
                                    "value": "consequatur",
                                    "description": "date Optional. Start range for to_date filter.",
                                    "disabled": false
                                },
                                {
                                    "key": "end_date_to",
                                    "value": "consequatur",
                                    "description": "date Optional. End range for to_date filter.",
                                    "disabled": false
                                },
                                {
                                    "key": "limit",
                                    "value": "17",
                                    "description": "Optional. Results per page. Default: 10",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/master-panel\/leaverequest\/:id?isApi=&search=consequatur&sort=consequatur&order=consequatur&user_ids[0]=consequatur&action_by_ids[0]=consequatur&types[0]=consequatur&statuses[0]=consequatur&start_date_from=consequatur&start_date_to=consequatur&end_date_from=consequatur&end_date_to=consequatur&limit=17",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "17",
                                    "description": "Optional. Leave request ID. If provided, returns only that leave request."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"message\": \"Leave request retrieved successfully.\",\n  \"data\": {\n    \"total\": 1,\n    \"data\": [\n      {\n        \"id\": 14,\n        \"user_name\": \"John Doe\",\n        \"action_by\": \"Jane Smith\",\n        \"from_date\": \"Mon, 2024-06-01\",\n        \"to_date\": \"Tue, 2024-06-02\",\n        \"type\": \"Full\",\n        \"duration\": \"2 days\",\n        \"reason\": \"Medical leave\",\n        \"status\": \"<span class='badge bg-warning'>Pending<\/span>\",\n        \"visible_to\": \"All\",\n        \"created_at\": \"2024-05-15 10:30 AM\",\n        \"updated_at\": \"2024-05-16 09:20 AM\",\n        \"actions\": \"<a href=...>Edit<\/a> <button>Delete<\/button>\"\n      }\n    ]\n  }\n}",
                            "name": "Single Leave Request Found"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"message\": \"Leave requests retrieved successfully.\",\n  \"data\": {\n    \"total\": 5,\n    \"data\": [\n      {\n        \"id\": 1,\n        \"user_name\": \"John Doe\",\n        \"action_by\": \"Jane Smith\",\n        \"from_date\": \"Mon, 2024-06-01\",\n        \"to_date\": \"Tue, 2024-06-02\",\n        \"type\": \"Full\",\n        \"duration\": \"2 days\",\n        \"reason\": \"Annual Leave\",\n        \"status\": \"<span class='badge bg-success'>Approved<\/span>\",\n        \"visible_to\": \"All\",\n        \"created_at\": \"2024-05-01 08:00 AM\",\n        \"updated_at\": \"2024-05-02 09:00 AM\",\n        \"actions\": \"<a href=...>Edit<\/a> <button>Delete<\/button>\"\n      }\n    ]\n  }\n}",
                            "name": "List of Leave Requests"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"success\": false,\n  \"message\": \"Unable to retrieve leave requests.\",\n  \"data\": []\n}",
                            "name": "Leave request not found"
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"success\": false,\n  \"message\": \"Unable to retrieve leave requests.\",\n  \"data\": [],\n  \"error\": \"Call to undefined relationship [actionBy] on model [App\\\\Models\\\\LeaveRequest].\"\n}",
                            "name": "Server error or internal exception"
                        }
                    ]
                },
                {
                    "name": "Update Leave Request",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/leaverequest\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/leaverequest\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "consequatur",
                                    "description": "The ID of the leaverequest."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":12,\"reason\":\"Family emergency\",\"from_date\":\"2025-06-10\",\"to_date\":\"2025-06-12\",\"from_time\":\"09:00\",\"to_time\":\"13:00\",\"partialLeave\":\"on\",\"leaveVisibleToAll\":\"on\",\"visible_to_ids\":[2,3,4],\"status\":\"approved\"}"
                        },
                        "description": "This endpoint allows authorized users to update an existing leave request.\nOnly admins or leave editors can change the status. Team members cannot approve their own leaves.\nLeave requests already actioned (approved\/rejected) can only be modified by an admin."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Leave request updated successfully.\",\n  \"data\": {\n    \"id\": 12,\n    \"data\": {\n      \"id\": 12,\n      \"user_id\": 3,\n      \"reason\": \"Family emergency\",\n      \"from_date\": \"2025-06-10\",\n      \"to_date\": \"2025-06-12\",\n      \"from_time\": \"09:00\",\n      \"to_time\": \"13:00\",\n      \"status\": \"approved\",\n      \"action_by\": 1,\n      \"visible_to_all\": 1,\n      \"created_at\": \"2025-06-01T12:30:00.000000Z\",\n      \"updated_at\": \"2025-06-06T10:45:00.000000Z\"\n    },\n    \"type\": \"leave_request\"\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Missing or invalid input.\",\n  \"details\": {\n    \"from_date\": [\n      \"The from date field is required.\"\n    ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\n  \"error\": true,\n  \"message\": \"You cannot approve your own leave request.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Once actioned only admin can update leave request.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\n  \"error\": true,\n  \"message\": \"You cannot set the status to pending if it has already been approved or rejected.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Validation failed.\",\n  \"details\": {\n    \"status\": [\n      \"The selected status is invalid.\"\n    ]\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred while updating the leave request.\",\n  \"details\": \"SQLSTATE[23000]: Integrity constraint violation...\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a leave request by ID.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/master-panel\/leaverequest\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/master-panel\/leaverequest\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "The ID of the leave request to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "workspace_id",
                                "value": "2"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"error\": false,\n  \"message\": \"Leave request deleted successfully.\",\n  \"id\": 1,\n  \"type\": \"leave_request\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"error\": true,\n  \"message\": \"Leave request not found.\",\n  \"data\": []\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 500,
                            "body": "{\n  \"error\": true,\n  \"message\": \"An error occurred while deleting the leave request.\",\n  \"data\": []\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "noauth"
    }
}