{
    "openapi": "3.0.0",
    "info": {
        "title": "Trackabi API Documentation",
        "description": "<p>The Trackabi API documentation below provides detailed descriptions of available routes, required parameters, and expected responses. You can also test API requests directly using the interactive forms within the documentation.</p><p>To get started:</p><ul><li>Click the Authorize button below, enter your API key in the pop-up window, and click Authorize.</li><li>Select the API endpoint you want to test and click Try it out.</li><li>Fill in all required parameters and click Execute to run the request.</li></ul><p>Your subscription plan may limit how many API requests you can make per hour. When it does, every response carries an X-RateLimit-Remaining header with the number of requests left in the current hour; once it reaches 0, requests are rejected with 429 until the next hour starts.</p><p>List endpoints return one page of results as a JSON array, with the pagination details in the response headers: X-Pagination-Total-Count, X-Pagination-Page-Count, X-Pagination-Current-Page and X-Pagination-Page-Size. Read X-Pagination-Page-Count from the first response to know how many pages to request.</p>",
        "contact": {
            "name": "API Support Team",
            "email": "support@trackabi.com"
        },
        "license": {
            "name": "Commercial",
            "url": "https://trackabi.com"
        },
        "version": "1.0 Beta"
    },
    "servers": [
        {
            "url": "https://api.trackabi.com",
            "description": "Production Server"
        }
    ],
    "paths": {
        "/api/v1/activity": {
            "get": {
                "tags": [
                    "Activity"
                ],
                "summary": "Get members' activity",
                "description": "Per member, for a period of at most 31 days: activity time while a timer was running (total, productive, unproductive, in seconds), the average activity score and the 5 most used apps. Without member_id, returns every member whose activity you may view, sorted by name. Time added manually has no activity data.",
                "operationId": "GetActivity",
                "parameters": [
                    {
                        "name": "start_date",
                        "in": "query",
                        "description": "The first day of the period, 'YYYY-MM-DD'.",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "end_date",
                        "in": "query",
                        "description": "The last day of the period, 'YYYY-MM-DD'. At most 31 days in all.",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "member_id",
                        "in": "query",
                        "description": "Only this member. For several members send member_id[]=1&member_id[]=2.",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/page"
                    },
                    {
                        "$ref": "#/components/parameters/page_size"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response. Pagination is in the X-Pagination-* headers.",
                        "headers": {
                            "X-Pagination-Total-Count": {
                                "$ref": "#/components/headers/X-Pagination-Total-Count"
                            },
                            "X-Pagination-Page-Count": {
                                "$ref": "#/components/headers/X-Pagination-Page-Count"
                            },
                            "X-Pagination-Current-Page": {
                                "$ref": "#/components/headers/X-Pagination-Current-Page"
                            },
                            "X-Pagination-Page-Size": {
                                "$ref": "#/components/headers/X-Pagination-Page-Size"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "properties": {
                                            "member_id": {
                                                "type": "integer",
                                                "example": 101
                                            },
                                            "first_name": {
                                                "type": "string",
                                                "example": "Anna"
                                            },
                                            "last_name": {
                                                "type": "string",
                                                "example": "Smith"
                                            },
                                            "email": {
                                                "type": "string",
                                                "example": "anna@example.com"
                                            },
                                            "total_activity_time": {
                                                "description": "Seconds; productive_time + unproductive_time.",
                                                "type": "integer",
                                                "example": 114000
                                            },
                                            "productive_time": {
                                                "description": "Seconds.",
                                                "type": "integer",
                                                "example": 97500
                                            },
                                            "unproductive_time": {
                                                "description": "Seconds.",
                                                "type": "integer",
                                                "example": 16500
                                            },
                                            "activity_score": {
                                                "description": "Average activity score, 0-100. null when activity score is not enabled for the company or not in its plan.",
                                                "type": "number",
                                                "example": 72.4,
                                                "nullable": true
                                            },
                                            "top_apps": {
                                                "description": "At most 5, most used first. share_percent is of the time of all apps.",
                                                "type": "array",
                                                "items": {
                                                    "properties": {
                                                        "app_id": {
                                                            "type": "integer",
                                                            "example": 17
                                                        },
                                                        "name": {
                                                            "type": "string",
                                                            "example": "code"
                                                        },
                                                        "title": {
                                                            "type": "string",
                                                            "example": "Visual Studio Code"
                                                        },
                                                        "time": {
                                                            "description": "Seconds.",
                                                            "type": "integer",
                                                            "example": 52200
                                                        },
                                                        "share_percent": {
                                                            "type": "number",
                                                            "example": 45.8
                                                        }
                                                    },
                                                    "type": "object"
                                                }
                                            }
                                        },
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/activity/ranges": {
            "get": {
                "tags": [
                    "Activity"
                ],
                "summary": "Get members' activity ranges",
                "description": "Per member, for a period of at most 3 days: the productive and unproductive time ranges while a timer was running, in time order. Times are ISO 8601 in the member's time zone. Where both kinds overlap, the time counts as productive. Without member_id, returns every member whose activity you may view, sorted by name.",
                "operationId": "GetActivityRanges",
                "parameters": [
                    {
                        "name": "start_date",
                        "in": "query",
                        "description": "The first day, 'YYYY-MM-DD'.",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "end_date",
                        "in": "query",
                        "description": "The last day, 'YYYY-MM-DD'. At most 3 days in all.",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "member_id",
                        "in": "query",
                        "description": "Only this member. For several members send member_id[]=1&member_id[]=2.",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "min_gap",
                        "in": "query",
                        "description": "Join ranges of the same kind that are less than this many seconds apart (0-3600, default 0). The totals are not affected.",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "maximum": 3600,
                            "minimum": 0
                        }
                    },
                    {
                        "$ref": "#/components/parameters/page"
                    },
                    {
                        "$ref": "#/components/parameters/page_size"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response. Pagination is in the X-Pagination-* headers.",
                        "headers": {
                            "X-Pagination-Total-Count": {
                                "$ref": "#/components/headers/X-Pagination-Total-Count"
                            },
                            "X-Pagination-Page-Count": {
                                "$ref": "#/components/headers/X-Pagination-Page-Count"
                            },
                            "X-Pagination-Current-Page": {
                                "$ref": "#/components/headers/X-Pagination-Current-Page"
                            },
                            "X-Pagination-Page-Size": {
                                "$ref": "#/components/headers/X-Pagination-Page-Size"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "properties": {
                                            "member_id": {
                                                "type": "integer",
                                                "example": 101
                                            },
                                            "first_name": {
                                                "type": "string",
                                                "example": "Anna"
                                            },
                                            "last_name": {
                                                "type": "string",
                                                "example": "Smith"
                                            },
                                            "email": {
                                                "type": "string",
                                                "example": "anna@example.com"
                                            },
                                            "timezone": {
                                                "type": "string",
                                                "example": "Europe/Berlin"
                                            },
                                            "productive_time": {
                                                "description": "Seconds.",
                                                "type": "integer",
                                                "example": 22200
                                            },
                                            "unproductive_time": {
                                                "description": "Seconds.",
                                                "type": "integer",
                                                "example": 2700
                                            },
                                            "productive_ranges": {
                                                "type": "array",
                                                "items": {
                                                    "properties": {
                                                        "start": {
                                                            "type": "string",
                                                            "format": "date-time",
                                                            "example": "2026-10-20T09:05:12+03:00"
                                                        },
                                                        "end": {
                                                            "type": "string",
                                                            "format": "date-time",
                                                            "example": "2026-10-20T10:40:03+03:00"
                                                        },
                                                        "duration": {
                                                            "description": "Seconds.",
                                                            "type": "integer",
                                                            "example": 5691
                                                        }
                                                    },
                                                    "type": "object"
                                                }
                                            },
                                            "unproductive_ranges": {
                                                "description": "Same shape as productive_ranges.",
                                                "type": "array",
                                                "items": {
                                                    "type": "object"
                                                }
                                            }
                                        },
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/clients": {
            "get": {
                "tags": [
                    "Clients"
                ],
                "summary": "Get clients",
                "description": "Returns a paginated list of clients.",
                "operationId": "GetClents",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/page"
                    },
                    {
                        "$ref": "#/components/parameters/page_size"
                    },
                    {
                        "$ref": "#/components/parameters/reverse"
                    },
                    {
                        "name": "order_by",
                        "in": "query",
                        "description": "Orders the results by the specified field. Note that certain fields, such as currency or hourly_rate, may be unavailable depending on the access permissions associated with the API key.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "id",
                                "name",
                                "short_name",
                                "contact_person",
                                "address",
                                "email",
                                "phone",
                                "notes",
                                "currency",
                                "hourly_rate",
                                "cost_hourly_rate"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "headers": {
                            "X-Pagination-Total-Count": {
                                "$ref": "#/components/headers/X-Pagination-Total-Count"
                            },
                            "X-Pagination-Page-Count": {
                                "$ref": "#/components/headers/X-Pagination-Page-Count"
                            },
                            "X-Pagination-Current-Page": {
                                "$ref": "#/components/headers/X-Pagination-Current-Page"
                            },
                            "X-Pagination-Page-Size": {
                                "$ref": "#/components/headers/X-Pagination-Page-Size"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "properties": {
                                            "id": {
                                                "description": "The ID of the created client.",
                                                "type": "integer",
                                                "example": 17
                                            },
                                            "name": {
                                                "description": "The name of the client.",
                                                "type": "string",
                                                "example": "King's College London"
                                            },
                                            "logo": {
                                                "description": "The logo of the client.",
                                                "type": "string",
                                                "example": "https://trackabi.net/uploads/api/9835ufjoielkfnfio34jof.png",
                                                "nullable": true
                                            },
                                            "short_name": {
                                                "description": "Short name of the client.",
                                                "type": "string",
                                                "example": "KCL",
                                                "nullable": true
                                            },
                                            "contact_person": {
                                                "description": "Contact person.",
                                                "type": "string",
                                                "example": "Ada Lovelace",
                                                "nullable": true
                                            },
                                            "address": {
                                                "description": "Address of the client.",
                                                "type": "string",
                                                "example": "123 Street Name, City",
                                                "nullable": true
                                            },
                                            "email": {
                                                "description": "Email of the client.",
                                                "type": "string",
                                                "format": "email",
                                                "example": "ada.l@trackabi.co",
                                                "nullable": true
                                            },
                                            "phone": {
                                                "description": "Client's phone number.",
                                                "type": "string",
                                                "example": "+1234567890",
                                                "nullable": true
                                            },
                                            "notes": {
                                                "description": "Additional notes.",
                                                "type": "string",
                                                "example": "Important client",
                                                "nullable": true
                                            },
                                            "currency": {
                                                "description": "Client's currency.",
                                                "type": "string",
                                                "example": "USD",
                                                "nullable": true
                                            },
                                            "hourly_rate": {
                                                "description": "Hourly rate.",
                                                "type": "number",
                                                "format": "float",
                                                "example": 50,
                                                "nullable": true
                                            },
                                            "cost_hourly_rate": {
                                                "description": "Cost hourly rate.",
                                                "type": "number",
                                                "format": "float",
                                                "example": 45.5,
                                                "nullable": true
                                            }
                                        },
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationError"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Clients"
                ],
                "summary": "Create a new client",
                "description": "Creates a new client under the current account.",
                "operationId": "CreateNewClient",
                "requestBody": {
                    "description": "Client details",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "description": "The client's name.",
                                        "type": "string",
                                        "example": "New Client"
                                    },
                                    "short_name": {
                                        "description": "Short name of the client.",
                                        "type": "string",
                                        "example": "ShortName",
                                        "nullable": true
                                    },
                                    "contact_person": {
                                        "description": "Contact person.",
                                        "type": "string",
                                        "example": "John Doe",
                                        "nullable": true
                                    },
                                    "address": {
                                        "description": "Address of the client.",
                                        "type": "string",
                                        "example": "123 Street Name, City",
                                        "nullable": true
                                    },
                                    "email": {
                                        "description": "Client's email.",
                                        "type": "string",
                                        "format": "email",
                                        "example": "client@example.com",
                                        "nullable": true
                                    },
                                    "phone": {
                                        "description": "Client's phone number.",
                                        "type": "string",
                                        "example": "+123456789",
                                        "nullable": true
                                    },
                                    "notes": {
                                        "description": "Additional notes about the client.",
                                        "type": "string",
                                        "example": "Important client",
                                        "nullable": true
                                    },
                                    "currency": {
                                        "description": "Client's currency (access-restricted).",
                                        "type": "string",
                                        "example": "USD",
                                        "nullable": true
                                    },
                                    "hourly_rate": {
                                        "description": "Hourly rate (access-restricted).",
                                        "type": "number",
                                        "format": "float",
                                        "example": 50,
                                        "nullable": true
                                    },
                                    "cost_hourly_rate": {
                                        "description": "Cost hourly rate (access-restricted).",
                                        "type": "number",
                                        "format": "float",
                                        "example": 45.5,
                                        "nullable": true
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "A client has been successfully created.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "description": "The ID of the created client.",
                                            "type": "integer",
                                            "example": 17
                                        },
                                        "name": {
                                            "description": "The name of the client.",
                                            "type": "string",
                                            "example": "New Client"
                                        },
                                        "logo": {
                                            "description": "The logo of the client.",
                                            "type": "string",
                                            "example": null,
                                            "nullable": true
                                        },
                                        "short_name": {
                                            "description": "Short name of the client.",
                                            "type": "string",
                                            "example": "",
                                            "nullable": true
                                        },
                                        "contact_person": {
                                            "description": "Contact person.",
                                            "type": "string",
                                            "example": "",
                                            "nullable": true
                                        },
                                        "address": {
                                            "description": "Address of the client.",
                                            "type": "string",
                                            "example": "",
                                            "nullable": true
                                        },
                                        "email": {
                                            "description": "Email of the client.",
                                            "type": "string",
                                            "format": "email",
                                            "example": "",
                                            "nullable": true
                                        },
                                        "phone": {
                                            "description": "Client's phone number.",
                                            "type": "string",
                                            "example": "",
                                            "nullable": true
                                        },
                                        "notes": {
                                            "description": "Additional notes.",
                                            "type": "string",
                                            "example": "",
                                            "nullable": true
                                        },
                                        "currency": {
                                            "description": "Client's currency.",
                                            "type": "string",
                                            "example": "",
                                            "nullable": true
                                        },
                                        "hourly_rate": {
                                            "description": "Hourly rate.",
                                            "type": "number",
                                            "format": "float",
                                            "example": null,
                                            "nullable": true
                                        },
                                        "cost_hourly_rate": {
                                            "description": "Cost hourly rate.",
                                            "type": "number",
                                            "format": "float",
                                            "example": null,
                                            "nullable": true
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationError"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/clients/{client_id}": {
            "get": {
                "tags": [
                    "Clients"
                ],
                "summary": "Get client details",
                "description": "Returns detailed information about a specific client, identified by their unique ID.",
                "operationId": "GetClientDetails",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/client_id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "description": "Client ID",
                                            "type": "integer",
                                            "example": 17
                                        },
                                        "name": {
                                            "description": "Client name",
                                            "type": "string",
                                            "example": "King's College London"
                                        },
                                        "logo": {
                                            "description": "Client’s logo URL (nullable)",
                                            "type": "string",
                                            "example": "https://trackabi.net/uploads/api/9835ufjoielkfnfio34jof.png",
                                            "nullable": true
                                        },
                                        "short_name": {
                                            "description": "Client’s short name",
                                            "type": "string",
                                            "example": "KCL",
                                            "nullable": true
                                        },
                                        "contact_person": {
                                            "description": "Client’s contact person",
                                            "type": "string",
                                            "example": "Ada Lovelace",
                                            "nullable": true
                                        },
                                        "address": {
                                            "description": "Client's address",
                                            "type": "string",
                                            "example": "123 Street Name, City",
                                            "nullable": true
                                        },
                                        "email": {
                                            "description": "Client’s email address",
                                            "type": "string",
                                            "format": "email",
                                            "example": "ada.l@trackabi.co",
                                            "nullable": true
                                        },
                                        "phone": {
                                            "description": "Client’s phone number",
                                            "type": "string",
                                            "example": "+1234567890",
                                            "nullable": true
                                        },
                                        "notes": {
                                            "description": "Notes about the client",
                                            "type": "string",
                                            "example": "Important client",
                                            "nullable": true
                                        },
                                        "currency": {
                                            "description": "Currency used by the client (a special access permission is needed)",
                                            "type": "string",
                                            "example": "USD",
                                            "nullable": true
                                        },
                                        "hourly_rate": {
                                            "description": "Client’s billable hourly rate (a special access permission is needed)",
                                            "type": "number",
                                            "format": "float",
                                            "example": 50,
                                            "nullable": true
                                        },
                                        "cost_hourly_rate": {
                                            "description": "Client’s cost hourly rate (a special access permission is needed)",
                                            "type": "number",
                                            "format": "float",
                                            "example": 45.5,
                                            "nullable": true
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Clients"
                ],
                "summary": "Update client details",
                "description": "Updates details of the specified client.",
                "operationId": "UpdatedClientDetails",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/client_id"
                    }
                ],
                "requestBody": {
                    "description": "Client fields to update",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "description": "The client's name.",
                                        "type": "string",
                                        "example": "Client Example Name"
                                    },
                                    "short_name": {
                                        "description": "Short name of the client",
                                        "type": "string",
                                        "example": "ShortName",
                                        "nullable": true
                                    },
                                    "contact_person": {
                                        "description": "Contact person",
                                        "type": "string",
                                        "example": "John Doe",
                                        "nullable": true
                                    },
                                    "address": {
                                        "description": "Address of the client",
                                        "type": "string",
                                        "example": "123 Street Name, City",
                                        "nullable": true
                                    },
                                    "email": {
                                        "description": "Client's email",
                                        "type": "string",
                                        "format": "email",
                                        "example": "client@example.com",
                                        "nullable": true
                                    },
                                    "phone": {
                                        "description": "Client's phone number",
                                        "type": "string",
                                        "example": "+123456789",
                                        "nullable": true
                                    },
                                    "notes": {
                                        "description": "Additional notes",
                                        "type": "string",
                                        "example": "Important client",
                                        "nullable": true
                                    },
                                    "currency": {
                                        "description": "Client's currency (access-restricted)",
                                        "type": "string",
                                        "example": "USD",
                                        "nullable": true
                                    },
                                    "hourly_rate": {
                                        "description": "Hourly rate (access-restricted)",
                                        "type": "number",
                                        "format": "float",
                                        "example": 50,
                                        "nullable": true
                                    },
                                    "cost_hourly_rate": {
                                        "description": "Cost hourly rate (access-restricted)",
                                        "type": "number",
                                        "format": "float",
                                        "example": 45.5,
                                        "nullable": true
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "description": "The client ID",
                                            "type": "integer",
                                            "example": 4
                                        },
                                        "name": {
                                            "description": "The client's name",
                                            "type": "string",
                                            "example": "Client Example Name"
                                        },
                                        "logo": {
                                            "description": "The client logo URL (nullable)",
                                            "type": "string",
                                            "example": null,
                                            "nullable": true
                                        },
                                        "short_name": {
                                            "description": "Short name of the client",
                                            "type": "string",
                                            "example": "",
                                            "nullable": true
                                        },
                                        "contact_person": {
                                            "description": "Contact person",
                                            "type": "string",
                                            "example": "Client contact Person",
                                            "nullable": true
                                        },
                                        "address": {
                                            "description": "Client's address",
                                            "type": "string",
                                            "example": "13 West Lake Crescent USA",
                                            "nullable": true
                                        },
                                        "email": {
                                            "description": "Client's email",
                                            "type": "string",
                                            "format": "email",
                                            "example": "example@example.com",
                                            "nullable": true
                                        },
                                        "phone": {
                                            "description": "Client's phone number",
                                            "type": "string",
                                            "example": "+1234567890",
                                            "nullable": true
                                        },
                                        "notes": {
                                            "description": "Additional notes",
                                            "type": "string",
                                            "example": "",
                                            "nullable": true
                                        },
                                        "currency": {
                                            "description": "Client's currency",
                                            "type": "string",
                                            "example": "USD",
                                            "nullable": true
                                        },
                                        "hourly_rate": {
                                            "description": "Hourly rate",
                                            "type": "number",
                                            "format": "float",
                                            "example": 7.4,
                                            "nullable": true
                                        },
                                        "cost_hourly_rate": {
                                            "description": "Cost hourly rate",
                                            "type": "number",
                                            "format": "float",
                                            "example": 7,
                                            "nullable": true
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationError"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Clients"
                ],
                "summary": "Delete a client",
                "description": "Deletes the specified client. This action is irreversible.",
                "operationId": "DeleteClient",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/client_id"
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/leaves": {
            "get": {
                "tags": [
                    "Leaves"
                ],
                "summary": "Get company leaves",
                "description": "Retrieves a paginated list of leaves.",
                "operationId": "GetCompanyLeaves",
                "parameters": [
                    {
                        "name": "start_date",
                        "in": "query",
                        "description": "The start date for filtering records. Only records with dates equal to or later than this date will be included. The date format must be 'YYYY-MM-DD'.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "end_date",
                        "in": "query",
                        "description": "The end date for filtering records. Only records with dates equal to or earlier than this date will be included. The date format must be 'YYYY-MM-DD'.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "own",
                        "in": "query",
                        "description": "If set to 1, only leaves belonging to the API key owner will be returned.",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "enum": [
                                0,
                                1
                            ]
                        }
                    },
                    {
                        "$ref": "#/components/parameters/page"
                    },
                    {
                        "$ref": "#/components/parameters/page_size"
                    },
                    {
                        "$ref": "#/components/parameters/reverse"
                    },
                    {
                        "name": "order_by",
                        "in": "query",
                        "description": "Sorts results by a specified field.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "id",
                                "organization_id",
                                "leave_type_id",
                                "member_id",
                                "start_date",
                                "start_date_half_day",
                                "end_date",
                                "end_date_half_day",
                                "working_days",
                                "notes",
                                "status",
                                "rejection_reason",
                                "cancellation_reason"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "headers": {
                            "X-Pagination-Total-Count": {
                                "$ref": "#/components/headers/X-Pagination-Total-Count"
                            },
                            "X-Pagination-Page-Count": {
                                "$ref": "#/components/headers/X-Pagination-Page-Count"
                            },
                            "X-Pagination-Current-Page": {
                                "$ref": "#/components/headers/X-Pagination-Current-Page"
                            },
                            "X-Pagination-Page-Size": {
                                "$ref": "#/components/headers/X-Pagination-Page-Size"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "properties": {
                                            "id": {
                                                "description": "Leave ID",
                                                "type": "integer",
                                                "example": "30740"
                                            },
                                            "organization_id": {
                                                "description": "Company ID",
                                                "type": "integer",
                                                "example": "843"
                                            },
                                            "leave_type": {
                                                "description": "Linked leave type information",
                                                "type": "object"
                                            },
                                            "member_id": {
                                                "description": "Member ID",
                                                "type": "integer",
                                                "example": "101"
                                            },
                                            "start_date": {
                                                "description": "Start day",
                                                "type": "string",
                                                "example": "2024-12-24"
                                            },
                                            "start_date_half_day": {
                                                "description": "Start date half day",
                                                "type": "integer",
                                                "example": "0"
                                            },
                                            "end_date": {
                                                "description": "End date",
                                                "type": "string",
                                                "example": "2024-12-25"
                                            },
                                            "end_date_half_day": {
                                                "description": "End date half day",
                                                "type": "integer",
                                                "example": "0"
                                            },
                                            "working_days": {
                                                "description": "Working days",
                                                "type": "string",
                                                "example": "1"
                                            },
                                            "notes": {
                                                "description": "Leave Notes",
                                                "type": "string",
                                                "example": "I need to rest and relax"
                                            },
                                            "status": {
                                                "description": "Leave Status",
                                                "type": "string",
                                                "example": "pending"
                                            },
                                            "rejection_reason": {
                                                "description": "Rejection reason",
                                                "type": "string",
                                                "example": ""
                                            },
                                            "cancellation_reason": {
                                                "description": "Cancellation reason",
                                                "type": "string",
                                                "example": ""
                                            }
                                        },
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationError"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/members": {
            "get": {
                "tags": [
                    "Members"
                ],
                "summary": "Get company members (users)",
                "description": "Retrieves a paginated list of members (users).",
                "operationId": "GetMembers",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/page"
                    },
                    {
                        "$ref": "#/components/parameters/page_size"
                    },
                    {
                        "$ref": "#/components/parameters/reverse"
                    },
                    {
                        "name": "order_by",
                        "in": "query",
                        "description": "Order results by a specified field.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "id",
                                "first_name",
                                "last_name",
                                "email",
                                "phone",
                                "avatar",
                                "personal_email",
                                "address",
                                "birthdate",
                                "emergency_contact",
                                "emergency_phone",
                                "education",
                                "notes"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "headers": {
                            "X-Pagination-Total-Count": {
                                "$ref": "#/components/headers/X-Pagination-Total-Count"
                            },
                            "X-Pagination-Page-Count": {
                                "$ref": "#/components/headers/X-Pagination-Page-Count"
                            },
                            "X-Pagination-Current-Page": {
                                "$ref": "#/components/headers/X-Pagination-Current-Page"
                            },
                            "X-Pagination-Page-Size": {
                                "$ref": "#/components/headers/X-Pagination-Page-Size"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "properties": {
                                            "id": {
                                                "description": "Member ID",
                                                "type": "integer",
                                                "example": "101"
                                            },
                                            "first_name": {
                                                "description": "Member’s first name",
                                                "type": "string",
                                                "example": "Ada"
                                            },
                                            "last_name": {
                                                "description": "Member’s second name",
                                                "type": "string",
                                                "example": "Lovelace"
                                            },
                                            "email": {
                                                "description": "Member’s email",
                                                "type": "string",
                                                "format": "email",
                                                "example": "ada.lovelace@trackabi.com"
                                            },
                                            "phone": {
                                                "description": "Member’s phone number",
                                                "type": "string",
                                                "example": "+12345678390"
                                            },
                                            "avatar": {
                                                "description": "Member’s avatar",
                                                "type": "string",
                                                "format": "url",
                                                "example": "https://trackabi.com/uploads/api/9823u4fj34289fu3jflf.png"
                                            },
                                            "personal_email": {
                                                "description": "Member’s personal email",
                                                "type": "string",
                                                "example": "ada.lovelace@trackabi.com"
                                            },
                                            "address": {
                                                "description": "Member’s address",
                                                "type": "string",
                                                "example": "14261 SW 120th St, STE 103-277 Miami, FL 33186 USA"
                                            },
                                            "birthdate": {
                                                "description": "Member’s birth date",
                                                "type": "string",
                                                "example": "1980-04-21"
                                            },
                                            "emergency_contact": {
                                                "description": "Member’s emergency contact",
                                                "type": "string",
                                                "example": "George Byron"
                                            },
                                            "emergency_phone": {
                                                "description": "Member’s emergency phone",
                                                "type": "string",
                                                "example": "+12345678906"
                                            },
                                            "education": {
                                                "description": "Member’s education",
                                                "type": "string",
                                                "example": "Masters degree in Mathematics"
                                            },
                                            "notes": {
                                                "description": "Member’s notes",
                                                "type": "string",
                                                "example": "Some additional info about Ada"
                                            },
                                            "pay_rate": {
                                                "description": "Member pay rate. Null if currently authenticated member no access to view pay rates.",
                                                "properties": {
                                                    "amount": {
                                                        "description": "Member pay rate amount",
                                                        "type": "string",
                                                        "format": "float",
                                                        "example": "10.5"
                                                    },
                                                    "currency": {
                                                        "description": "Currency of the pay rate",
                                                        "type": "string",
                                                        "example": "USD",
                                                        "nullable": false
                                                    }
                                                },
                                                "type": "object"
                                            },
                                            "billable_rate": {
                                                "description": "Member billable rate. Null if currently authenticated member has no access to view billable rates.",
                                                "properties": {
                                                    "amount": {
                                                        "description": "Member billable rate amount",
                                                        "type": "string",
                                                        "format": "float",
                                                        "example": "10.5"
                                                    },
                                                    "currency": {
                                                        "description": "Currency of the billable rate",
                                                        "type": "string",
                                                        "example": "USD",
                                                        "nullable": false
                                                    }
                                                },
                                                "type": "object"
                                            },
                                            "leave_allowance": {
                                                "description": "The active leave allowance",
                                                "type": "integer",
                                                "example": "21"
                                            },
                                            "deleted": {
                                                "description": "The member was deleted from the organization",
                                                "type": "boolean",
                                                "example": false
                                            }
                                        },
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationError"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/company/profile": {
            "get": {
                "tags": [
                    "Company"
                ],
                "summary": "Get company details",
                "description": "Retrieves the company details.",
                "operationId": "GetCompanyDetails",
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "name": {
                                            "description": "The company name.",
                                            "type": "string",
                                            "example": "Trackabi"
                                        },
                                        "alias": {
                                            "description": "The company alias.",
                                            "type": "string",
                                            "example": "trackabi"
                                        },
                                        "address": {
                                            "description": "The company address.",
                                            "type": "string",
                                            "example": "123 Street Name, City"
                                        },
                                        "phone": {
                                            "description": "The company phone number.",
                                            "type": "string",
                                            "example": "+1 (000) 000-0000"
                                        },
                                        "email": {
                                            "description": "The company email address.",
                                            "type": "string",
                                            "format": "email",
                                            "example": "info@trackabi.co"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/company/time-types": {
            "get": {
                "tags": [
                    "Company"
                ],
                "summary": "Get time types",
                "description": "Returns a list of available time types that can be used within the system.",
                "operationId": "GetTimeTypes",
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "properties": {
                                            "id": {
                                                "description": "ID of the time type",
                                                "type": "integer",
                                                "example": "22810"
                                            },
                                            "name": {
                                                "description": "Name of the time type",
                                                "type": "string",
                                                "example": "Normal"
                                            },
                                            "short_name": {
                                                "description": "Short name of the time type",
                                                "type": "string",
                                                "example": "N"
                                            }
                                        },
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/projects": {
            "get": {
                "tags": [
                    "Projects"
                ],
                "summary": "Get projects",
                "description": "Retrieves a paginated list of projects.",
                "operationId": "GetProjects",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/page"
                    },
                    {
                        "$ref": "#/components/parameters/page_size"
                    },
                    {
                        "$ref": "#/components/parameters/reverse"
                    },
                    {
                        "$ref": "#/components/parameters/show_removed_members"
                    },
                    {
                        "name": "order_by",
                        "in": "query",
                        "description": "Sorts the results by a specified field. Some data, such as hourly_rate, cost_hourly_rate, or currency, may be unavailable due to API key restrictions.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "id",
                                "name",
                                "short_name",
                                "description",
                                "start_date",
                                "end_date",
                                "hourly_rate",
                                "cost_hourly_rate",
                                "currency",
                                "estimate_units",
                                "not_billable"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "headers": {
                            "X-Pagination-Total-Count": {
                                "$ref": "#/components/headers/X-Pagination-Total-Count"
                            },
                            "X-Pagination-Page-Count": {
                                "$ref": "#/components/headers/X-Pagination-Page-Count"
                            },
                            "X-Pagination-Current-Page": {
                                "$ref": "#/components/headers/X-Pagination-Current-Page"
                            },
                            "X-Pagination-Page-Size": {
                                "$ref": "#/components/headers/X-Pagination-Page-Size"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "properties": {
                                            "id": {
                                                "description": "The project ID",
                                                "type": "integer",
                                                "example": "37059"
                                            },
                                            "name": {
                                                "description": "The project name",
                                                "type": "string",
                                                "example": "Motion and universal gravitation"
                                            },
                                            "short_name": {
                                                "description": "The short name of the project",
                                                "type": "string",
                                                "example": "MUG"
                                            },
                                            "client": {
                                                "description": "Linked client information",
                                                "properties": {
                                                    "id": {
                                                        "description": "Client ID",
                                                        "type": "integer",
                                                        "example": 17
                                                    },
                                                    "name": {
                                                        "description": "Client name",
                                                        "type": "string",
                                                        "example": "King's College London"
                                                    },
                                                    "logo": {
                                                        "description": "Client’s logo URL (nullable)",
                                                        "type": "string",
                                                        "example": "https://trackabi.net/uploads/api/9835ufjoielkfnfio34jof.png",
                                                        "nullable": true
                                                    },
                                                    "short_name": {
                                                        "description": "Client’s short name",
                                                        "type": "string",
                                                        "example": "KCL",
                                                        "nullable": true
                                                    },
                                                    "contact_person": {
                                                        "description": "Client’s contact person",
                                                        "type": "string",
                                                        "example": "Ada Lovelace",
                                                        "nullable": true
                                                    },
                                                    "address": {
                                                        "description": "Client's address",
                                                        "type": "string",
                                                        "example": "123 Street Name, City",
                                                        "nullable": true
                                                    },
                                                    "email": {
                                                        "description": "Client’s email address",
                                                        "type": "string",
                                                        "format": "email",
                                                        "example": "ada.l@trackabi.co",
                                                        "nullable": true
                                                    },
                                                    "phone": {
                                                        "description": "Client’s phone number",
                                                        "type": "string",
                                                        "example": "+1234567890",
                                                        "nullable": true
                                                    },
                                                    "notes": {
                                                        "description": "Notes about the client",
                                                        "type": "string",
                                                        "example": "Important client",
                                                        "nullable": true
                                                    },
                                                    "currency": {
                                                        "description": "Currency used by the client (a special access permission is needed)",
                                                        "type": "string",
                                                        "example": "USD",
                                                        "nullable": true
                                                    },
                                                    "hourly_rate": {
                                                        "description": "Client’s billable hourly rate (a special access permission is needed)",
                                                        "type": "number",
                                                        "format": "float",
                                                        "example": 50,
                                                        "nullable": true
                                                    },
                                                    "cost_hourly_rate": {
                                                        "description": "Client’s cost hourly rate (a special access permission is needed)",
                                                        "type": "number",
                                                        "format": "float",
                                                        "example": 45.5,
                                                        "nullable": true
                                                    }
                                                },
                                                "type": "object"
                                            },
                                            "description": {
                                                "description": "The project description",
                                                "type": "string",
                                                "example": "Motion and universal gravitation description"
                                            },
                                            "start_date": {
                                                "description": "Start date of the project",
                                                "type": "string",
                                                "example": "2024-02-21"
                                            },
                                            "end_date": {
                                                "description": "End date of the project",
                                                "type": "string",
                                                "example": null
                                            },
                                            "hourly_rate": {
                                                "description": "Hourly rate (access-restricted)",
                                                "type": "number",
                                                "example": "135.00"
                                            },
                                            "cost_hourly_rate": {
                                                "description": "Cost hourly rate (access-restricted)",
                                                "example": "135.00"
                                            },
                                            "currency": {
                                                "description": "Project currency rate (access-restricted)",
                                                "example": "GBP"
                                            },
                                            "estimate_units": {
                                                "description": "Estimate units of the project",
                                                "type": "string",
                                                "example": "days"
                                            },
                                            "not_billable": {
                                                "description": "Flag. It's mean is project billable or not",
                                                "type": "integer",
                                                "example": "0"
                                            },
                                            "assigned_members": {
                                                "description": "Array of assigned members",
                                                "type": "array",
                                                "items": {
                                                    "properties": {
                                                        "id": {
                                                            "description": "Member ID",
                                                            "type": "integer",
                                                            "example": "101"
                                                        },
                                                        "first_name": {
                                                            "description": "Member’s first name",
                                                            "type": "string",
                                                            "example": "Ada"
                                                        },
                                                        "last_name": {
                                                            "description": "Member’s second name",
                                                            "type": "string",
                                                            "example": "Lovelace"
                                                        },
                                                        "email": {
                                                            "description": "Member’s email",
                                                            "type": "string",
                                                            "format": "email",
                                                            "example": "ada.lovelace@trackabi.com"
                                                        },
                                                        "phone": {
                                                            "description": "Member’s phone number",
                                                            "type": "string",
                                                            "example": "+12345678390"
                                                        },
                                                        "avatar": {
                                                            "description": "Member’s avatar",
                                                            "type": "string",
                                                            "format": "url",
                                                            "example": "https://trackabi.com/uploads/api/9823u4fj34289fu3jflf.png"
                                                        },
                                                        "personal_email": {
                                                            "description": "Member’s personal email",
                                                            "type": "string",
                                                            "example": "ada.lovelace@trackabi.com"
                                                        },
                                                        "address": {
                                                            "description": "Member’s address",
                                                            "type": "string",
                                                            "example": "14261 SW 120th St, STE 103-277 Miami, FL 33186 USA"
                                                        },
                                                        "birthdate": {
                                                            "description": "Member’s birth date",
                                                            "type": "string",
                                                            "example": "1980-04-21"
                                                        },
                                                        "emergency_contact": {
                                                            "description": "Member’s emergency contact",
                                                            "type": "string",
                                                            "example": "George Byron"
                                                        },
                                                        "emergency_phone": {
                                                            "description": "Member’s emergency phone",
                                                            "type": "string",
                                                            "example": "+12345678906"
                                                        },
                                                        "education": {
                                                            "description": "Member’s education",
                                                            "type": "string",
                                                            "example": "Masters degree in Mathematics"
                                                        },
                                                        "notes": {
                                                            "description": "Member’s notes",
                                                            "type": "string",
                                                            "example": "Some additional info about Ada"
                                                        },
                                                        "deleted": {
                                                            "description": "The member was deleted from the organization",
                                                            "type": "boolean",
                                                            "example": false
                                                        },
                                                        "removed_from_project": {
                                                            "description": "The member was removed from the project and is no longer assigned to it through a team. Listed only with show_removed_members=1",
                                                            "type": "boolean",
                                                            "example": false
                                                        }
                                                    },
                                                    "type": "object"
                                                }
                                            },
                                            "teams": {
                                                "description": "Array of assigned teams",
                                                "type": "array",
                                                "items": {
                                                    "properties": {
                                                        "id": {
                                                            "description": "Team ID",
                                                            "type": "integer",
                                                            "example": "34957"
                                                        },
                                                        "name": {
                                                            "description": "Team name",
                                                            "type": "string",
                                                            "example": "Marketing"
                                                        }
                                                    },
                                                    "type": "object"
                                                }
                                            }
                                        },
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Projects"
                ],
                "summary": "Create a new project",
                "description": "Creates a new project under the current account.",
                "operationId": "CreateNewProject",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "name",
                                    "short_name",
                                    "currency"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "example": "Motion and universal gravitation"
                                    },
                                    "client_id": {
                                        "description": "Required, if the client column is mandatory according to the timesheet settings.",
                                        "type": "integer",
                                        "example": "17"
                                    },
                                    "short_name": {
                                        "type": "string",
                                        "example": "MUG"
                                    },
                                    "description": {
                                        "type": "string",
                                        "example": "Motion and universal gravitation description"
                                    },
                                    "start_date": {
                                        "type": "string",
                                        "format": "date",
                                        "example": "2024-02-21"
                                    },
                                    "end_date": {
                                        "type": "string",
                                        "format": "date",
                                        "example": null
                                    },
                                    "hourly_rate": {
                                        "description": "Cost hourly rate (access-restricted)",
                                        "type": "number",
                                        "format": "float",
                                        "example": 135
                                    },
                                    "cost_hourly_rate": {
                                        "description": "Project currency rate (access-restricted)",
                                        "type": "number",
                                        "format": "float",
                                        "example": 135
                                    },
                                    "currency": {
                                        "description": "Project currency",
                                        "type": "string",
                                        "example": "GBP"
                                    },
                                    "estimate_units": {
                                        "description": "Estimate units of the project",
                                        "type": "string",
                                        "example": "days"
                                    },
                                    "not_billable": {
                                        "description": "1 or 0",
                                        "type": "integer",
                                        "example": 0
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "description": "The project ID",
                                            "type": "integer",
                                            "example": "37059"
                                        },
                                        "name": {
                                            "description": "The project name",
                                            "type": "string",
                                            "example": "Motion and universal gravitation"
                                        },
                                        "short_name": {
                                            "description": "The short name of the project",
                                            "type": "string",
                                            "example": "MUG"
                                        },
                                        "client": {
                                            "description": "Linked client information",
                                            "properties": {
                                                "id": {
                                                    "description": "Client ID",
                                                    "type": "integer",
                                                    "example": 17
                                                },
                                                "name": {
                                                    "description": "Client name",
                                                    "type": "string",
                                                    "example": "King's College London"
                                                },
                                                "logo": {
                                                    "description": "Client’s logo URL (nullable)",
                                                    "type": "string",
                                                    "example": "https://trackabi.net/uploads/api/9835ufjoielkfnfio34jof.png",
                                                    "nullable": true
                                                },
                                                "short_name": {
                                                    "description": "Client’s short name",
                                                    "type": "string",
                                                    "example": "KCL",
                                                    "nullable": true
                                                },
                                                "contact_person": {
                                                    "description": "Client’s contact person",
                                                    "type": "string",
                                                    "example": "Ada Lovelace",
                                                    "nullable": true
                                                },
                                                "address": {
                                                    "description": "Client's address",
                                                    "type": "string",
                                                    "example": "123 Street Name, City",
                                                    "nullable": true
                                                },
                                                "email": {
                                                    "description": "Client’s email address",
                                                    "type": "string",
                                                    "format": "email",
                                                    "example": "ada.l@trackabi.co",
                                                    "nullable": true
                                                },
                                                "phone": {
                                                    "description": "Client’s phone number",
                                                    "type": "string",
                                                    "example": "+1234567890",
                                                    "nullable": true
                                                },
                                                "notes": {
                                                    "description": "Notes about the client",
                                                    "type": "string",
                                                    "example": "Important client",
                                                    "nullable": true
                                                },
                                                "currency": {
                                                    "description": "Currency used by the client (a special access permission is needed)",
                                                    "type": "string",
                                                    "example": "USD",
                                                    "nullable": true
                                                },
                                                "hourly_rate": {
                                                    "description": "Client’s billable hourly rate (a special access permission is needed)",
                                                    "type": "number",
                                                    "format": "float",
                                                    "example": 50,
                                                    "nullable": true
                                                },
                                                "cost_hourly_rate": {
                                                    "description": "Client’s cost hourly rate (a special access permission is needed)",
                                                    "type": "number",
                                                    "format": "float",
                                                    "example": 45.5,
                                                    "nullable": true
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "description": {
                                            "description": "The project description",
                                            "type": "string",
                                            "example": "Motion and universal gravitation description"
                                        },
                                        "start_date": {
                                            "description": "Start date of the project",
                                            "type": "string",
                                            "example": "2024-02-21"
                                        },
                                        "end_date": {
                                            "description": "End date of the project",
                                            "type": "string",
                                            "example": null
                                        },
                                        "hourly_rate": {
                                            "description": "Hourly rate (access-restricted)",
                                            "type": "number",
                                            "example": "135.00"
                                        },
                                        "cost_hourly_rate": {
                                            "description": "Cost hourly rate (access-restricted)",
                                            "example": "135.00"
                                        },
                                        "currency": {
                                            "description": "Project currency rate (access-restricted)",
                                            "example": "GBP"
                                        },
                                        "estimate_units": {
                                            "description": "Estimate units of the project",
                                            "type": "string",
                                            "example": "days"
                                        },
                                        "not_billable": {
                                            "description": "Flag. It's mean is project billable or not",
                                            "type": "integer",
                                            "example": "0"
                                        },
                                        "assigned_members": {
                                            "description": "Array of assigned users",
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        },
                                        "teams": {
                                            "description": "Array of the assigned teams",
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationError"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/projects/{project_id}": {
            "get": {
                "tags": [
                    "Projects"
                ],
                "summary": "Get project details",
                "description": "Returns detailed information about a specific project, identified by its unique ID.",
                "operationId": "GetProjectDetails",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/project_id"
                    },
                    {
                        "$ref": "#/components/parameters/show_removed_members"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "description": "The project ID",
                                            "type": "integer",
                                            "example": "37059"
                                        },
                                        "name": {
                                            "description": "The project name",
                                            "type": "string",
                                            "example": "Motion and universal gravitation"
                                        },
                                        "short_name": {
                                            "description": "The short name of the project",
                                            "type": "string",
                                            "example": "MUG"
                                        },
                                        "client": {
                                            "description": "Linked client information",
                                            "properties": {
                                                "id": {
                                                    "description": "Client ID",
                                                    "type": "integer",
                                                    "example": 17
                                                },
                                                "name": {
                                                    "description": "Client name",
                                                    "type": "string",
                                                    "example": "King's College London"
                                                },
                                                "logo": {
                                                    "description": "Client’s logo URL (nullable)",
                                                    "type": "string",
                                                    "example": "https://trackabi.net/uploads/api/9835ufjoielkfnfio34jof.png",
                                                    "nullable": true
                                                },
                                                "short_name": {
                                                    "description": "Client’s short name",
                                                    "type": "string",
                                                    "example": "KCL",
                                                    "nullable": true
                                                },
                                                "contact_person": {
                                                    "description": "Client’s contact person",
                                                    "type": "string",
                                                    "example": "Ada Lovelace",
                                                    "nullable": true
                                                },
                                                "address": {
                                                    "description": "Client's address",
                                                    "type": "string",
                                                    "example": "123 Street Name, City",
                                                    "nullable": true
                                                },
                                                "email": {
                                                    "description": "Client’s email address",
                                                    "type": "string",
                                                    "format": "email",
                                                    "example": "ada.l@trackabi.co",
                                                    "nullable": true
                                                },
                                                "phone": {
                                                    "description": "Client’s phone number",
                                                    "type": "string",
                                                    "example": "+1234567890",
                                                    "nullable": true
                                                },
                                                "notes": {
                                                    "description": "Notes about the client",
                                                    "type": "string",
                                                    "example": "Important client",
                                                    "nullable": true
                                                },
                                                "currency": {
                                                    "description": "Currency used by the client (a special access permission is needed)",
                                                    "type": "string",
                                                    "example": "USD",
                                                    "nullable": true
                                                },
                                                "hourly_rate": {
                                                    "description": "Client’s billable hourly rate (a special access permission is needed)",
                                                    "type": "number",
                                                    "format": "float",
                                                    "example": 50,
                                                    "nullable": true
                                                },
                                                "cost_hourly_rate": {
                                                    "description": "Client’s cost hourly rate (a special access permission is needed)",
                                                    "type": "number",
                                                    "format": "float",
                                                    "example": 45.5,
                                                    "nullable": true
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "description": {
                                            "description": "The project description",
                                            "type": "string",
                                            "example": "Motion and universal gravitation description"
                                        },
                                        "start_date": {
                                            "description": "Start date of the project",
                                            "type": "string",
                                            "example": "2024-02-21"
                                        },
                                        "end_date": {
                                            "description": "End date of the project",
                                            "type": "string",
                                            "example": null
                                        },
                                        "hourly_rate": {
                                            "description": "Hourly rate (access-restricted)",
                                            "type": "number",
                                            "example": "135.00"
                                        },
                                        "cost_hourly_rate": {
                                            "description": "Cost hourly rate (access-restricted)",
                                            "example": "135.00"
                                        },
                                        "currency": {
                                            "description": "Project currency rate (access-restricted)",
                                            "example": "GBP"
                                        },
                                        "estimate_units": {
                                            "description": "Estimate units of the project",
                                            "type": "string",
                                            "example": "days"
                                        },
                                        "not_billable": {
                                            "description": "Flag. It's mean is project billable or not",
                                            "type": "integer",
                                            "example": "0"
                                        },
                                        "assigned_members": {
                                            "description": "Array of assigned members",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "id": {
                                                        "description": "Member ID",
                                                        "type": "integer",
                                                        "example": "101"
                                                    },
                                                    "first_name": {
                                                        "description": "Member’s first name",
                                                        "type": "string",
                                                        "example": "Ada"
                                                    },
                                                    "last_name": {
                                                        "description": "Member’s second name",
                                                        "type": "string",
                                                        "example": "Lovelace"
                                                    },
                                                    "email": {
                                                        "description": "Member’s email",
                                                        "type": "string",
                                                        "format": "email",
                                                        "example": "ada.lovelace@trackabi.com"
                                                    },
                                                    "phone": {
                                                        "description": "Member’s phone number",
                                                        "type": "string",
                                                        "example": "+12345678390"
                                                    },
                                                    "avatar": {
                                                        "description": "Member’s avatar",
                                                        "type": "string",
                                                        "format": "url",
                                                        "example": "https://trackabi.com/uploads/api/9823u4fj34289fu3jflf.png"
                                                    },
                                                    "personal_email": {
                                                        "description": "Member’s personal email",
                                                        "type": "string",
                                                        "example": "ada.lovelace@trackabi.com"
                                                    },
                                                    "address": {
                                                        "description": "Member’s address",
                                                        "type": "string",
                                                        "example": "14261 SW 120th St, STE 103-277 Miami, FL 33186 USA"
                                                    },
                                                    "birthdate": {
                                                        "description": "Member’s birth date",
                                                        "type": "string",
                                                        "example": "1980-04-21"
                                                    },
                                                    "emergency_contact": {
                                                        "description": "Member’s emergency contact",
                                                        "type": "string",
                                                        "example": "George Byron"
                                                    },
                                                    "emergency_phone": {
                                                        "description": "Member’s emergency phone",
                                                        "type": "string",
                                                        "example": "+12345678906"
                                                    },
                                                    "education": {
                                                        "description": "Member’s education",
                                                        "type": "string",
                                                        "example": "Masters degree in Mathematics"
                                                    },
                                                    "notes": {
                                                        "description": "Member’s notes",
                                                        "type": "string",
                                                        "example": "Some additional info about Ada"
                                                    },
                                                    "deleted": {
                                                        "description": "The member was deleted from the organization",
                                                        "type": "boolean",
                                                        "example": false
                                                    },
                                                    "removed_from_project": {
                                                        "description": "The member was removed from the project and is no longer assigned to it through a team. Listed only with show_removed_members=1",
                                                        "type": "boolean",
                                                        "example": false
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        },
                                        "teams": {
                                            "description": "Array of assigned teams",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "id": {
                                                        "description": "Team ID",
                                                        "type": "integer",
                                                        "example": "34957"
                                                    },
                                                    "name": {
                                                        "description": "Team name",
                                                        "type": "string",
                                                        "example": "Marketing"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Projects"
                ],
                "summary": "Update project details",
                "description": "Updates the specified project details",
                "operationId": "UpdateProjectDetails",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/project_id"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "example": "Motion and universal gravitation"
                                    },
                                    "client_id": {
                                        "description": "Required, if the client column is mandatory according to the timesheet settings.",
                                        "type": "integer",
                                        "example": "17"
                                    },
                                    "short_name": {
                                        "type": "string",
                                        "example": "MUG"
                                    },
                                    "description": {
                                        "type": "string",
                                        "example": "Motion and universal gravitation description"
                                    },
                                    "start_date": {
                                        "type": "string",
                                        "format": "date",
                                        "example": "2024-02-21"
                                    },
                                    "end_date": {
                                        "type": "string",
                                        "format": "date",
                                        "example": null
                                    },
                                    "hourly_rate": {
                                        "description": "Cost hourly rate (access-restricted)",
                                        "type": "number",
                                        "format": "float",
                                        "example": 135
                                    },
                                    "cost_hourly_rate": {
                                        "description": "Project currency rate (access-restricted)",
                                        "type": "number",
                                        "format": "float",
                                        "example": 135
                                    },
                                    "currency": {
                                        "description": "Project currency",
                                        "type": "string",
                                        "example": "GBP"
                                    },
                                    "estimate_units": {
                                        "description": "Estimate units of the project",
                                        "type": "string",
                                        "example": "days"
                                    },
                                    "not_billable": {
                                        "description": "1 or 0",
                                        "type": "integer",
                                        "example": 0
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "description": "The project ID",
                                            "type": "integer",
                                            "example": "37059"
                                        },
                                        "name": {
                                            "description": "The project name",
                                            "type": "string",
                                            "example": "Motion and universal gravitation"
                                        },
                                        "short_name": {
                                            "description": "The short name of the project",
                                            "type": "string",
                                            "example": "MUG"
                                        },
                                        "client": {
                                            "description": "Linked client information",
                                            "properties": {
                                                "id": {
                                                    "description": "Client ID",
                                                    "type": "integer",
                                                    "example": 17
                                                },
                                                "name": {
                                                    "description": "Client name",
                                                    "type": "string",
                                                    "example": "King's College London"
                                                },
                                                "logo": {
                                                    "description": "Client’s logo URL (nullable)",
                                                    "type": "string",
                                                    "example": "https://trackabi.net/uploads/api/9835ufjoielkfnfio34jof.png",
                                                    "nullable": true
                                                },
                                                "short_name": {
                                                    "description": "Client’s short name",
                                                    "type": "string",
                                                    "example": "KCL",
                                                    "nullable": true
                                                },
                                                "contact_person": {
                                                    "description": "Client’s contact person",
                                                    "type": "string",
                                                    "example": "Ada Lovelace",
                                                    "nullable": true
                                                },
                                                "address": {
                                                    "description": "Client's address",
                                                    "type": "string",
                                                    "example": "123 Street Name, City",
                                                    "nullable": true
                                                },
                                                "email": {
                                                    "description": "Client’s email address",
                                                    "type": "string",
                                                    "format": "email",
                                                    "example": "ada.l@trackabi.co",
                                                    "nullable": true
                                                },
                                                "phone": {
                                                    "description": "Client’s phone number",
                                                    "type": "string",
                                                    "example": "+1234567890",
                                                    "nullable": true
                                                },
                                                "notes": {
                                                    "description": "Notes about the client",
                                                    "type": "string",
                                                    "example": "Important client",
                                                    "nullable": true
                                                },
                                                "currency": {
                                                    "description": "Currency used by the client (a special access permission is needed)",
                                                    "type": "string",
                                                    "example": "USD",
                                                    "nullable": true
                                                },
                                                "hourly_rate": {
                                                    "description": "Client’s billable hourly rate (a special access permission is needed)",
                                                    "type": "number",
                                                    "format": "float",
                                                    "example": 50,
                                                    "nullable": true
                                                },
                                                "cost_hourly_rate": {
                                                    "description": "Client’s cost hourly rate (a special access permission is needed)",
                                                    "type": "number",
                                                    "format": "float",
                                                    "example": 45.5,
                                                    "nullable": true
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "description": {
                                            "description": "The project description",
                                            "type": "string",
                                            "example": "Motion and universal gravitation description"
                                        },
                                        "start_date": {
                                            "description": "Start date of the project",
                                            "type": "string",
                                            "example": "2024-02-21"
                                        },
                                        "end_date": {
                                            "description": "End date of the project",
                                            "type": "string",
                                            "example": null
                                        },
                                        "hourly_rate": {
                                            "description": "Hourly rate (access-restricted)",
                                            "type": "number",
                                            "example": "135.00"
                                        },
                                        "cost_hourly_rate": {
                                            "description": "Cost hourly rate (access-restricted)",
                                            "example": "135.00"
                                        },
                                        "currency": {
                                            "description": "Project currency rate (access-restricted)",
                                            "example": "GBP"
                                        },
                                        "estimate_units": {
                                            "description": "Estimate units of the project",
                                            "type": "string",
                                            "example": "days"
                                        },
                                        "not_billable": {
                                            "description": "Flag. It's mean is project billable or not",
                                            "type": "integer",
                                            "example": "0"
                                        },
                                        "assigned_members": {
                                            "description": "Array of assigned members",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "id": {
                                                        "description": "Member ID",
                                                        "type": "integer",
                                                        "example": "101"
                                                    },
                                                    "first_name": {
                                                        "description": "Member’s first name",
                                                        "type": "string",
                                                        "example": "Ada"
                                                    },
                                                    "last_name": {
                                                        "description": "Member’s second name",
                                                        "type": "string",
                                                        "example": "Lovelace"
                                                    },
                                                    "email": {
                                                        "description": "Member’s email",
                                                        "type": "string",
                                                        "format": "email",
                                                        "example": "ada.lovelace@trackabi.com"
                                                    },
                                                    "phone": {
                                                        "description": "Member’s phone number",
                                                        "type": "string",
                                                        "example": "+12345678390"
                                                    },
                                                    "avatar": {
                                                        "description": "Member’s avatar",
                                                        "type": "string",
                                                        "format": "url",
                                                        "example": "https://trackabi.com/uploads/api/9823u4fj34289fu3jflf.png"
                                                    },
                                                    "personal_email": {
                                                        "description": "Member’s personal email",
                                                        "type": "string",
                                                        "example": "ada.lovelace@trackabi.com"
                                                    },
                                                    "address": {
                                                        "description": "Member’s address",
                                                        "type": "string",
                                                        "example": "14261 SW 120th St, STE 103-277 Miami, FL 33186 USA"
                                                    },
                                                    "birthdate": {
                                                        "description": "Member’s birth date",
                                                        "type": "string",
                                                        "example": "1980-04-21"
                                                    },
                                                    "emergency_contact": {
                                                        "description": "Member’s emergency contact",
                                                        "type": "string",
                                                        "example": "George Byron"
                                                    },
                                                    "emergency_phone": {
                                                        "description": "Member’s emergency phone",
                                                        "type": "string",
                                                        "example": "+12345678906"
                                                    },
                                                    "education": {
                                                        "description": "Member’s education",
                                                        "type": "string",
                                                        "example": "Masters degree in Mathematics"
                                                    },
                                                    "notes": {
                                                        "description": "Member’s notes",
                                                        "type": "string",
                                                        "example": "Some additional info about Ada"
                                                    },
                                                    "deleted": {
                                                        "description": "The member was deleted from the organization",
                                                        "type": "boolean",
                                                        "example": false
                                                    },
                                                    "removed_from_project": {
                                                        "description": "The member was removed from the project and is no longer assigned to it through a team. Listed only with show_removed_members=1",
                                                        "type": "boolean",
                                                        "example": false
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        },
                                        "teams": {
                                            "description": "Array of assigned teams",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "id": {
                                                        "description": "Team ID",
                                                        "type": "integer",
                                                        "example": "345"
                                                    },
                                                    "name": {
                                                        "description": "Team name",
                                                        "type": "string",
                                                        "example": "Projetc Team"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationError"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Projects"
                ],
                "summary": "Delete a project",
                "description": "Deletes the specified project. This action is irreversible.",
                "operationId": "DeleteProject",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/project_id"
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/projects/{project_id}/assign-members": {
            "post": {
                "tags": [
                    "Projects"
                ],
                "summary": "Assign members (users) to a project",
                "description": "Assigns one or more members to a specified project and sets their roles within the project.",
                "operationId": "AssignMembersToProject",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/project_id"
                    }
                ],
                "requestBody": {
                    "description": "A list of member objects. Each object must include a member_id and may optionally include a role_id.",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "array",
                                "items": {
                                    "required": [
                                        "member_id"
                                    ],
                                    "properties": {
                                        "member_id": {
                                            "description": "Member ID",
                                            "type": "integer",
                                            "example": 101
                                        },
                                        "role_id": {
                                            "description": "Role ID",
                                            "type": "integer",
                                            "example": 13
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "description": "The project ID",
                                            "type": "integer",
                                            "example": "37059"
                                        },
                                        "name": {
                                            "description": "The project name",
                                            "type": "string",
                                            "example": "Motion and universal gravitation"
                                        },
                                        "short_name": {
                                            "description": "The short name of the project",
                                            "type": "string",
                                            "example": "MUG"
                                        },
                                        "client": {
                                            "description": "Linked client information",
                                            "properties": {
                                                "id": {
                                                    "description": "Client ID",
                                                    "type": "integer",
                                                    "example": 17
                                                },
                                                "name": {
                                                    "description": "Client name",
                                                    "type": "string",
                                                    "example": "King's College London"
                                                },
                                                "logo": {
                                                    "description": "Client’s logo URL (nullable)",
                                                    "type": "string",
                                                    "example": "https://trackabi.net/uploads/api/9835ufjoielkfnfio34jof.png",
                                                    "nullable": true
                                                },
                                                "short_name": {
                                                    "description": "Client’s short name",
                                                    "type": "string",
                                                    "example": "KCL",
                                                    "nullable": true
                                                },
                                                "contact_person": {
                                                    "description": "Client’s contact person",
                                                    "type": "string",
                                                    "example": "Ada Lovelace",
                                                    "nullable": true
                                                },
                                                "address": {
                                                    "description": "Client's address",
                                                    "type": "string",
                                                    "example": "123 Street Name, City",
                                                    "nullable": true
                                                },
                                                "email": {
                                                    "description": "Client’s email address",
                                                    "type": "string",
                                                    "format": "email",
                                                    "example": "ada.l@trackabi.co",
                                                    "nullable": true
                                                },
                                                "phone": {
                                                    "description": "Client’s phone number",
                                                    "type": "string",
                                                    "example": "+1234567890",
                                                    "nullable": true
                                                },
                                                "notes": {
                                                    "description": "Notes about the client",
                                                    "type": "string",
                                                    "example": "Important client",
                                                    "nullable": true
                                                },
                                                "currency": {
                                                    "description": "Currency used by the client (a special access permission is needed)",
                                                    "type": "string",
                                                    "example": "USD",
                                                    "nullable": true
                                                },
                                                "hourly_rate": {
                                                    "description": "Client’s billable hourly rate (a special access permission is needed)",
                                                    "type": "number",
                                                    "format": "float",
                                                    "example": 50,
                                                    "nullable": true
                                                },
                                                "cost_hourly_rate": {
                                                    "description": "Client’s cost hourly rate (a special access permission is needed)",
                                                    "type": "number",
                                                    "format": "float",
                                                    "example": 45.5,
                                                    "nullable": true
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "description": {
                                            "description": "The project description",
                                            "type": "string",
                                            "example": "Motion and universal gravitation description"
                                        },
                                        "start_date": {
                                            "description": "Start date of the project",
                                            "type": "string",
                                            "example": "2024-02-21"
                                        },
                                        "end_date": {
                                            "description": "End date of the project",
                                            "type": "string",
                                            "example": null
                                        },
                                        "hourly_rate": {
                                            "description": "Hourly rate (access-restricted)",
                                            "type": "number",
                                            "example": "135.00"
                                        },
                                        "cost_hourly_rate": {
                                            "description": "Cost hourly rate (access-restricted)",
                                            "example": "135.00"
                                        },
                                        "currency": {
                                            "description": "Project currency rate (access-restricted)",
                                            "example": "GBP"
                                        },
                                        "estimate_units": {
                                            "description": "Estimate units of the project",
                                            "type": "string",
                                            "example": "days"
                                        },
                                        "not_billable": {
                                            "description": "Flag. It's mean is project billable or not",
                                            "type": "integer",
                                            "example": "0"
                                        },
                                        "assigned_members": {
                                            "description": "Array of assigned members",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "id": {
                                                        "description": "Member ID",
                                                        "type": "integer",
                                                        "example": "101"
                                                    },
                                                    "first_name": {
                                                        "description": "Member’s first name",
                                                        "type": "string",
                                                        "example": "Ada"
                                                    },
                                                    "last_name": {
                                                        "description": "Member’s second name",
                                                        "type": "string",
                                                        "example": "Lovelace"
                                                    },
                                                    "email": {
                                                        "description": "Member’s email",
                                                        "type": "string",
                                                        "format": "email",
                                                        "example": "ada.lovelace@trackabi.com"
                                                    },
                                                    "phone": {
                                                        "description": "Member’s phone number",
                                                        "type": "string",
                                                        "example": "+12345678390"
                                                    },
                                                    "avatar": {
                                                        "description": "Member’s avatar",
                                                        "type": "string",
                                                        "format": "url",
                                                        "example": "https://trackabi.com/uploads/api/9823u4fj34289fu3jflf.png"
                                                    },
                                                    "personal_email": {
                                                        "description": "Member’s personal email",
                                                        "type": "string",
                                                        "example": "ada.lovelace@trackabi.com"
                                                    },
                                                    "address": {
                                                        "description": "Member’s address",
                                                        "type": "string",
                                                        "example": "14261 SW 120th St, STE 103-277 Miami, FL 33186 USA"
                                                    },
                                                    "birthdate": {
                                                        "description": "Member’s birth date",
                                                        "type": "string",
                                                        "example": "1980-04-21"
                                                    },
                                                    "emergency_contact": {
                                                        "description": "Member’s emergency contact",
                                                        "type": "string",
                                                        "example": "George Byron"
                                                    },
                                                    "emergency_phone": {
                                                        "description": "Member’s emergency phone",
                                                        "type": "string",
                                                        "example": "+12345678906"
                                                    },
                                                    "education": {
                                                        "description": "Member’s education",
                                                        "type": "string",
                                                        "example": "Masters degree in Mathematics"
                                                    },
                                                    "notes": {
                                                        "description": "Member’s notes",
                                                        "type": "string",
                                                        "example": "Some additional info about Ada"
                                                    },
                                                    "deleted": {
                                                        "description": "The member was deleted from the organization",
                                                        "type": "boolean",
                                                        "example": false
                                                    },
                                                    "removed_from_project": {
                                                        "description": "The member was removed from the project and is no longer assigned to it through a team. Listed only with show_removed_members=1",
                                                        "type": "boolean",
                                                        "example": false
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        },
                                        "teams": {
                                            "description": "Array of assigned teams",
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "id": {
                                                        "description": "Team ID",
                                                        "type": "integer",
                                                        "example": "34957"
                                                    },
                                                    "name": {
                                                        "description": "Team name",
                                                        "type": "string",
                                                        "example": "Marketing"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationError"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/projects/{project_id}/tasks": {
            "get": {
                "tags": [
                    "Tasks"
                ],
                "summary": "Get project tasks",
                "description": "Retrieves a paginated list of tasks for a specified project",
                "operationId": "GetProjectTasks",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/project_id"
                    },
                    {
                        "$ref": "#/components/parameters/page"
                    },
                    {
                        "$ref": "#/components/parameters/page_size"
                    },
                    {
                        "$ref": "#/components/parameters/reverse"
                    },
                    {
                        "name": "order_by",
                        "in": "query",
                        "description": "Sort results by a specified field.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "id",
                                "name",
                                "project_id",
                                "description",
                                "parent_task_id",
                                "start_date",
                                "end_date",
                                "not_billable",
                                "estimated_time",
                                "progress"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "headers": {
                            "X-Pagination-Total-Count": {
                                "$ref": "#/components/headers/X-Pagination-Total-Count"
                            },
                            "X-Pagination-Page-Count": {
                                "$ref": "#/components/headers/X-Pagination-Page-Count"
                            },
                            "X-Pagination-Current-Page": {
                                "$ref": "#/components/headers/X-Pagination-Current-Page"
                            },
                            "X-Pagination-Page-Size": {
                                "$ref": "#/components/headers/X-Pagination-Page-Size"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "properties": {
                                            "id": {
                                                "description": "Task ID",
                                                "type": "integer",
                                                "example": "250796"
                                            },
                                            "name": {
                                                "description": "Task name",
                                                "type": "string",
                                                "example": "Conducting experiments"
                                            },
                                            "project_id": {
                                                "description": "Project ID, null for a task without a project",
                                                "type": "integer",
                                                "example": "37059",
                                                "nullable": true
                                            },
                                            "description": {
                                                "description": "Description of the task",
                                                "type": "string",
                                                "example": "Task description"
                                            },
                                            "subtasks_count": {
                                                "description": "Count of subtasks",
                                                "type": "integer",
                                                "example": "1"
                                            },
                                            "parent_task_id": {
                                                "description": "Parent Task ID",
                                                "type": "integer",
                                                "example": "250795"
                                            },
                                            "estimated_time": {
                                                "description": "Estimated Time. Depending on the estimated project units",
                                                "type": "string",
                                                "format": "email",
                                                "example": null
                                            },
                                            "start_date": {
                                                "description": "Task start date",
                                                "type": "string",
                                                "example": null
                                            },
                                            "end_date": {
                                                "description": "Task end date",
                                                "type": "string",
                                                "example": null
                                            },
                                            "not_billable": {
                                                "description": "Is task billable",
                                                "type": "string",
                                                "example": "0"
                                            },
                                            "progress": {
                                                "description": "How ready the task is, 0-100. A multiple of 5 on a task without subtasks; on a task with subtasks it is the average of its subtasks (cancelled ones left out), rounded down, and cannot be changed",
                                                "type": "integer",
                                                "example": "35"
                                            }
                                        },
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Tasks"
                ],
                "summary": "Create a new task",
                "description": "Creates a new task for the specified project.",
                "operationId": "CreateNewTask",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/project_id"
                    }
                ],
                "requestBody": {
                    "description": "Task fields to update",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "name"
                                ],
                                "properties": {
                                    "name": {
                                        "description": "Task name",
                                        "type": "string",
                                        "example": "Conducting experiments"
                                    },
                                    "description": {
                                        "description": "Task description",
                                        "type": "string",
                                        "example": "Task description",
                                        "nullable": true
                                    },
                                    "parent_task_id": {
                                        "description": "Parent task",
                                        "type": "integer",
                                        "example": "250795",
                                        "nullable": true
                                    },
                                    "estimated_time": {
                                        "description": "Estimated Time.",
                                        "type": "string",
                                        "example": "5",
                                        "nullable": true
                                    },
                                    "start_date": {
                                        "description": "Task start date",
                                        "type": "string",
                                        "format": "date",
                                        "example": null,
                                        "nullable": true
                                    },
                                    "end_date": {
                                        "description": "Task end date",
                                        "type": "string",
                                        "format": "date",
                                        "example": null,
                                        "nullable": true
                                    },
                                    "not_billable": {
                                        "description": "Flag means is task billable",
                                        "type": "integer",
                                        "example": "0"
                                    },
                                    "progress": {
                                        "description": "How ready the task is, 0-100. A multiple of 5 on a task without subtasks; on a task with subtasks it is the average of its subtasks (cancelled ones left out), rounded down, and cannot be changed",
                                        "type": "integer",
                                        "example": "35"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "description": "Task ID",
                                            "type": "integer",
                                            "example": "250796"
                                        },
                                        "name": {
                                            "description": "Task name",
                                            "type": "string",
                                            "example": "Conducting experiments"
                                        },
                                        "project_id": {
                                            "description": "Project ID, null for a task without a project",
                                            "type": "integer",
                                            "example": "37059",
                                            "nullable": true
                                        },
                                        "description": {
                                            "description": "Description of the task",
                                            "type": "string",
                                            "example": "Task description"
                                        },
                                        "subtasks_count": {
                                            "description": "Count of subtasks",
                                            "type": "integer",
                                            "example": "1"
                                        },
                                        "parent_task_id": {
                                            "description": "Parent Task ID",
                                            "type": "integer",
                                            "example": "250795"
                                        },
                                        "estimated_time": {
                                            "description": "Estimated Time.",
                                            "type": "string",
                                            "format": "email",
                                            "example": null
                                        },
                                        "start_date": {
                                            "description": "Task start date",
                                            "type": "string",
                                            "example": null
                                        },
                                        "end_date": {
                                            "description": "Task end date",
                                            "type": "string",
                                            "example": null
                                        },
                                        "not_billable": {
                                            "description": "Is task billable",
                                            "type": "string",
                                            "example": "0"
                                        },
                                        "progress": {
                                            "description": "How ready the task is, 0-100. A multiple of 5 on a task without subtasks; on a task with subtasks it is the average of its subtasks (cancelled ones left out), rounded down, and cannot be changed",
                                            "type": "integer",
                                            "example": "35"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationError"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/tasks": {
            "get": {
                "tags": [
                    "Tasks"
                ],
                "summary": "Get tasks",
                "description": "Retrieves a paginated list of tasks",
                "operationId": "GetTasks",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/page"
                    },
                    {
                        "$ref": "#/components/parameters/page_size"
                    },
                    {
                        "$ref": "#/components/parameters/reverse"
                    },
                    {
                        "name": "order_by",
                        "in": "query",
                        "description": "Sort results by a specified field.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "id",
                                "name",
                                "project_id",
                                "description",
                                "parent_task_id",
                                "start_date",
                                "end_date",
                                "not_billable",
                                "estimated_time",
                                "progress"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "headers": {
                            "X-Pagination-Total-Count": {
                                "$ref": "#/components/headers/X-Pagination-Total-Count"
                            },
                            "X-Pagination-Page-Count": {
                                "$ref": "#/components/headers/X-Pagination-Page-Count"
                            },
                            "X-Pagination-Current-Page": {
                                "$ref": "#/components/headers/X-Pagination-Current-Page"
                            },
                            "X-Pagination-Page-Size": {
                                "$ref": "#/components/headers/X-Pagination-Page-Size"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "properties": {
                                            "id": {
                                                "description": "Task ID",
                                                "type": "integer",
                                                "example": "250796"
                                            },
                                            "name": {
                                                "description": "Task name",
                                                "type": "string",
                                                "example": "Conducting experiments"
                                            },
                                            "project_id": {
                                                "description": "Project ID, null for a task without a project",
                                                "type": "integer",
                                                "example": "37059",
                                                "nullable": true
                                            },
                                            "description": {
                                                "description": "Description of the task",
                                                "type": "string",
                                                "example": "Task description"
                                            },
                                            "subtasks_count": {
                                                "description": "Count of subtasks",
                                                "type": "integer",
                                                "example": "1"
                                            },
                                            "parent_task_id": {
                                                "description": "Parent Task ID",
                                                "type": "integer",
                                                "example": "250795"
                                            },
                                            "estimated_time": {
                                                "description": "Estimated Time. Depending on the estimated project units",
                                                "type": "string",
                                                "format": "email",
                                                "example": null
                                            },
                                            "start_date": {
                                                "description": "Task start date",
                                                "type": "string",
                                                "example": null
                                            },
                                            "end_date": {
                                                "description": "Task end date",
                                                "type": "string",
                                                "example": null
                                            },
                                            "not_billable": {
                                                "description": "Is task billable",
                                                "type": "string",
                                                "example": "0"
                                            },
                                            "progress": {
                                                "description": "How ready the task is, 0-100. A multiple of 5 on a task without subtasks; on a task with subtasks it is the average of its subtasks (cancelled ones left out), rounded down, and cannot be changed",
                                                "type": "integer",
                                                "example": "35"
                                            }
                                        },
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Tasks"
                ],
                "summary": "Create a task with or without a project",
                "description": "With a project_id, works exactly like POST /api/v1/projects/{project_id}/tasks. With project_id null or left out, creates a task without a project, open to every member of the organization; this needs the 'manage tasks' permission and the feature enabled for the organization.",
                "operationId": "CreateTask",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "name"
                                ],
                                "properties": {
                                    "project_id": {
                                        "description": "Project ID, or null for a task without a project",
                                        "type": "integer",
                                        "example": null,
                                        "nullable": true
                                    },
                                    "name": {
                                        "description": "Task name",
                                        "type": "string",
                                        "example": "Office move"
                                    },
                                    "description": {
                                        "description": "Task description",
                                        "type": "string",
                                        "example": "Task description",
                                        "nullable": true
                                    },
                                    "parent_task_id": {
                                        "description": "Parent task (must have the same project, or none)",
                                        "type": "integer",
                                        "example": null,
                                        "nullable": true
                                    },
                                    "estimated_time": {
                                        "description": "Estimated Time.",
                                        "type": "string",
                                        "example": "5",
                                        "nullable": true
                                    },
                                    "start_date": {
                                        "description": "Task start date",
                                        "type": "string",
                                        "format": "date",
                                        "example": null,
                                        "nullable": true
                                    },
                                    "end_date": {
                                        "description": "Task end date",
                                        "type": "string",
                                        "format": "date",
                                        "example": null,
                                        "nullable": true
                                    },
                                    "not_billable": {
                                        "description": "Flag means is task billable",
                                        "type": "integer",
                                        "example": "0"
                                    },
                                    "progress": {
                                        "description": "How ready the task is, 0-100. A multiple of 5 on a task without subtasks; on a task with subtasks it is the average of its subtasks (cancelled ones left out), rounded down, and cannot be changed",
                                        "type": "integer",
                                        "example": "35"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful response, the same task fields as POST /api/v1/projects/{project_id}/tasks; project_id is null for a task without a project"
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationError"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/tasks/{task_id}": {
            "get": {
                "tags": [
                    "Tasks"
                ],
                "summary": "Get task details",
                "description": "Gets task details",
                "operationId": "GetTaskDetails",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/task_id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "description": "Task ID",
                                            "type": "integer",
                                            "example": "250796"
                                        },
                                        "name": {
                                            "description": "Task name",
                                            "type": "string",
                                            "example": "Conducting experiments"
                                        },
                                        "project_id": {
                                            "description": "Project ID, null for a task without a project",
                                            "type": "integer",
                                            "example": "37059",
                                            "nullable": true
                                        },
                                        "description": {
                                            "description": "Description of the task",
                                            "type": "string",
                                            "example": "Task description"
                                        },
                                        "subtasks_count": {
                                            "description": "Count of subtasks",
                                            "type": "integer",
                                            "example": "1"
                                        },
                                        "parent_task_id": {
                                            "description": "Parent Task ID",
                                            "type": "integer",
                                            "example": "250795"
                                        },
                                        "estimated_time": {
                                            "description": "Estimated Time. Depending on the estimated project units",
                                            "type": "string",
                                            "format": "email",
                                            "example": null
                                        },
                                        "start_date": {
                                            "description": "Task start date",
                                            "type": "string",
                                            "example": null
                                        },
                                        "end_date": {
                                            "description": "Task end date",
                                            "type": "string",
                                            "example": null
                                        },
                                        "not_billable": {
                                            "description": "Is task billable",
                                            "type": "string",
                                            "example": "0"
                                        },
                                        "progress": {
                                            "description": "How ready the task is, 0-100. A multiple of 5 on a task without subtasks; on a task with subtasks it is the average of its subtasks (cancelled ones left out), rounded down, and cannot be changed",
                                            "type": "integer",
                                            "example": "35"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Tasks"
                ],
                "summary": "Update task details",
                "description": "Updates details of the specified task.",
                "operationId": "UpdateTaskDetails",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/task_id"
                    }
                ],
                "requestBody": {
                    "description": "Task fields to update",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "description": "Task name",
                                        "type": "string",
                                        "example": "Conducting experiments"
                                    },
                                    "description": {
                                        "description": "Task description",
                                        "type": "string",
                                        "example": "Task description",
                                        "nullable": true
                                    },
                                    "parent_task_id": {
                                        "description": "Parent task",
                                        "type": "integer",
                                        "example": "250795",
                                        "nullable": true
                                    },
                                    "estimated_time": {
                                        "description": "Estimated Time.",
                                        "type": "string",
                                        "example": "5",
                                        "nullable": true
                                    },
                                    "start_date": {
                                        "description": "Task start date",
                                        "type": "string",
                                        "format": "date",
                                        "example": null,
                                        "nullable": true
                                    },
                                    "end_date": {
                                        "description": "Task end date",
                                        "type": "string",
                                        "format": "date",
                                        "example": null,
                                        "nullable": true
                                    },
                                    "not_billable": {
                                        "description": "Flag means is task billable",
                                        "type": "integer",
                                        "example": "0"
                                    },
                                    "progress": {
                                        "description": "How ready the task is, 0-100. A multiple of 5 on a task without subtasks; on a task with subtasks it is the average of its subtasks (cancelled ones left out), rounded down, and cannot be changed",
                                        "type": "integer",
                                        "example": "35"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "description": "Task ID",
                                            "type": "integer",
                                            "example": "250796"
                                        },
                                        "name": {
                                            "description": "Task name",
                                            "type": "string",
                                            "example": "Conducting experiments"
                                        },
                                        "project_id": {
                                            "description": "Project ID, null for a task without a project",
                                            "type": "integer",
                                            "example": "37059",
                                            "nullable": true
                                        },
                                        "description": {
                                            "description": "Description of the task",
                                            "type": "string",
                                            "example": "Task description"
                                        },
                                        "subtasks_count": {
                                            "description": "Count of subtasks",
                                            "type": "integer",
                                            "example": "1"
                                        },
                                        "parent_task_id": {
                                            "description": "Parent Task ID",
                                            "type": "integer",
                                            "example": "250795"
                                        },
                                        "estimated_time": {
                                            "description": "Estimated Time.",
                                            "type": "string",
                                            "format": "email",
                                            "example": null
                                        },
                                        "start_date": {
                                            "description": "Task start date",
                                            "type": "string",
                                            "example": null
                                        },
                                        "end_date": {
                                            "description": "Task end date",
                                            "type": "string",
                                            "example": null
                                        },
                                        "not_billable": {
                                            "description": "Is task billable",
                                            "type": "string",
                                            "example": "0"
                                        },
                                        "progress": {
                                            "description": "How ready the task is, 0-100. A multiple of 5 on a task without subtasks; on a task with subtasks it is the average of its subtasks (cancelled ones left out), rounded down, and cannot be changed",
                                            "type": "integer",
                                            "example": "35"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationError"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Tasks"
                ],
                "summary": "Delete a task",
                "description": "Deletes the specified task. This action is irreversible.",
                "operationId": "DeleteTask",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/task_id"
                    },
                    {
                        "name": "recursive",
                        "in": "query",
                        "description": "Delete task with subtasks recursively",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "true"
                            ]
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/tasks/{task_id}/subtasks": {
            "get": {
                "tags": [
                    "Tasks"
                ],
                "summary": "Get subtasks of a task",
                "description": "Retrieves a paginated list of subtasks for a specified task.",
                "operationId": "GetSubtasksOfTask",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/task_id"
                    },
                    {
                        "$ref": "#/components/parameters/page"
                    },
                    {
                        "$ref": "#/components/parameters/page_size"
                    },
                    {
                        "$ref": "#/components/parameters/reverse"
                    },
                    {
                        "name": "order_by",
                        "in": "query",
                        "description": "Sort results by a specified field.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "id",
                                "name",
                                "project_id",
                                "description",
                                "parent_task_id",
                                "start_date",
                                "end_date",
                                "not_billable",
                                "estimated_time",
                                "progress"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "headers": {
                            "X-Pagination-Total-Count": {
                                "$ref": "#/components/headers/X-Pagination-Total-Count"
                            },
                            "X-Pagination-Page-Count": {
                                "$ref": "#/components/headers/X-Pagination-Page-Count"
                            },
                            "X-Pagination-Current-Page": {
                                "$ref": "#/components/headers/X-Pagination-Current-Page"
                            },
                            "X-Pagination-Page-Size": {
                                "$ref": "#/components/headers/X-Pagination-Page-Size"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "properties": {
                                            "id": {
                                                "description": "Task ID",
                                                "type": "integer",
                                                "example": "250796"
                                            },
                                            "name": {
                                                "description": "Task name",
                                                "type": "string",
                                                "example": "Conducting experiments"
                                            },
                                            "project_id": {
                                                "description": "Project ID, null for a task without a project",
                                                "type": "integer",
                                                "example": "37059",
                                                "nullable": true
                                            },
                                            "description": {
                                                "description": "Description of the task",
                                                "type": "string",
                                                "example": "Task description"
                                            },
                                            "subtasks_count": {
                                                "description": "Count of subtasks",
                                                "type": "integer",
                                                "example": "1"
                                            },
                                            "parent_task_id": {
                                                "description": "Parent Task ID",
                                                "type": "integer",
                                                "example": "250795"
                                            },
                                            "estimated_time": {
                                                "description": "Estimated Time. Depending on the estimated project units",
                                                "type": "string",
                                                "format": "email",
                                                "example": null
                                            },
                                            "start_date": {
                                                "description": "Task start date",
                                                "type": "string",
                                                "example": null
                                            },
                                            "end_date": {
                                                "description": "Task end date",
                                                "type": "string",
                                                "example": null
                                            },
                                            "not_billable": {
                                                "description": "Is task billable",
                                                "type": "string",
                                                "example": "0"
                                            },
                                            "progress": {
                                                "description": "How ready the task is, 0-100. A multiple of 5 on a task without subtasks; on a task with subtasks it is the average of its subtasks (cancelled ones left out), rounded down, and cannot be changed",
                                                "type": "integer",
                                                "example": "35"
                                            }
                                        },
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/time-entries": {
            "get": {
                "tags": [
                    "Timesheet"
                ],
                "summary": "Get company timesheet",
                "description": "Retrieves a paginated company timesheet.",
                "operationId": "GetCompanyTimesheet",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/page"
                    },
                    {
                        "$ref": "#/components/parameters/page_size"
                    },
                    {
                        "$ref": "#/components/parameters/reverse"
                    },
                    {
                        "name": "order_by",
                        "in": "query",
                        "description": "Sorts the results by a specified field. Some data (e.g., id, client_id, etc.) may be unavailable due to API key access restrictions.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "id",
                                "member_id",
                                "client_id",
                                "project_id",
                                "task_id",
                                "date_logged",
                                "logged_time",
                                "description",
                                "billable",
                                "time_type"
                            ]
                        }
                    },
                    {
                        "name": "start_date",
                        "in": "query",
                        "description": "The start date for filtering records. Only records with dates equal to or later than this date will be included. The date format must be 'YYYY-MM-DD'.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "end_date",
                        "in": "query",
                        "description": "The end date for filtering records. Only records with dates equal to or earlier than this date will be included. The date format must be 'YYYY-MM-DD'.",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "client_id",
                        "in": "query",
                        "description": "Used to filter records belonging to a specific client by ID. Cannot be used together with clientName",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "сlient_name",
                        "in": "query",
                        "description": "Used to filter records belonging to a specific client by name. Cannot be used together with clientId",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "project_id",
                        "in": "query",
                        "description": "Used to filter records belonging to a specific project by ID. Cannot be used together with projectName",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "project_name",
                        "in": "query",
                        "description": "Used to filter records belonging to a specific project by name. Cannot be used together with projectId",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "email",
                        "in": "query",
                        "description": "Used to filter records belonging to a specific member by email. Cannot be used together with memberId",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "member_id",
                        "in": "query",
                        "description": "Used to filter records belonging to a specific member by ID. Cannot be used together with email",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "headers": {
                            "X-Pagination-Total-Count": {
                                "$ref": "#/components/headers/X-Pagination-Total-Count"
                            },
                            "X-Pagination-Page-Count": {
                                "$ref": "#/components/headers/X-Pagination-Page-Count"
                            },
                            "X-Pagination-Current-Page": {
                                "$ref": "#/components/headers/X-Pagination-Current-Page"
                            },
                            "X-Pagination-Page-Size": {
                                "$ref": "#/components/headers/X-Pagination-Page-Size"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "properties": {
                                            "id": {
                                                "description": "Time Entry ID",
                                                "type": "integer",
                                                "example": "4209806"
                                            },
                                            "member": {
                                                "description": "Linked member information",
                                                "properties": {
                                                    "id": {
                                                        "description": "Member ID",
                                                        "type": "integer",
                                                        "example": "101"
                                                    },
                                                    "avatar": {
                                                        "description": "Member’s avatar",
                                                        "type": "string",
                                                        "format": "url",
                                                        "example": "https://trackabi.com/uploads/api/9823u4fj34289fu3jflf.png"
                                                    },
                                                    "email": {
                                                        "description": "Member’s email",
                                                        "type": "string",
                                                        "format": "email",
                                                        "example": "ada.lovelace@trackabi.com"
                                                    },
                                                    "first_name": {
                                                        "description": "Member’s first name",
                                                        "type": "string",
                                                        "example": "Ada"
                                                    },
                                                    "last_name": {
                                                        "description": "Member’s second name",
                                                        "type": "string",
                                                        "example": "Lovelace"
                                                    }
                                                },
                                                "type": "object"
                                            },
                                            "client": {
                                                "description": "Linked client information",
                                                "properties": {
                                                    "id": {
                                                        "description": "The ID of the created client.",
                                                        "type": "integer",
                                                        "example": 17
                                                    },
                                                    "name": {
                                                        "description": "The name of the client.",
                                                        "type": "string",
                                                        "example": "King's College London"
                                                    },
                                                    "logo": {
                                                        "description": "The logo of the client.",
                                                        "type": "string",
                                                        "example": "https://trackabi.net/uploads/api/9835ufjoielkfnfio34jof.png",
                                                        "nullable": true
                                                    },
                                                    "short_name": {
                                                        "description": "Short name of the client.",
                                                        "type": "string",
                                                        "example": "KCL",
                                                        "nullable": true
                                                    }
                                                },
                                                "type": "object"
                                            },
                                            "project": {
                                                "description": "Linked project information",
                                                "properties": {
                                                    "id": {
                                                        "description": "The project ID",
                                                        "type": "integer",
                                                        "example": "37059"
                                                    },
                                                    "name": {
                                                        "description": "The project name",
                                                        "type": "string",
                                                        "example": "Motion and universal gravitation"
                                                    },
                                                    "short_name": {
                                                        "description": "The short name of the project",
                                                        "type": "string",
                                                        "example": "MUG"
                                                    }
                                                },
                                                "type": "object"
                                            },
                                            "task": {
                                                "description": "Linked task information",
                                                "properties": {
                                                    "id": {
                                                        "description": "Task ID",
                                                        "type": "integer",
                                                        "example": "250796"
                                                    },
                                                    "name": {
                                                        "description": "Task name",
                                                        "type": "string",
                                                        "example": "Conducting experiments"
                                                    },
                                                    "parent_task_id": {
                                                        "description": "Parent Task ID",
                                                        "type": "integer",
                                                        "example": "250795"
                                                    }
                                                },
                                                "type": "object"
                                            },
                                            "date_logged": {
                                                "description": "Date logged in YYYY-MM-DD format",
                                                "type": "string",
                                                "format": "date",
                                                "example": "2025-03-12"
                                            },
                                            "description": {
                                                "description": "Work perfomed of timesheet entry",
                                                "type": "string",
                                                "example": "Developing mathematical models and simulations to understand the atom structure"
                                            },
                                            "logged_time": {
                                                "description": "Total logged time in HH:MM:SS format",
                                                "type": "string",
                                                "example": "01:00:00"
                                            },
                                            "billable": {
                                                "description": "Total billable time in HH:MM:SS format",
                                                "type": "string",
                                                "example": "01:00:00"
                                            },
                                            "start_time": {
                                                "description": "Start time in HH:MM:SS format",
                                                "type": "string",
                                                "example": "16:29:00"
                                            },
                                            "end_time": {
                                                "description": "End time in HH:MM:SS format",
                                                "type": "string",
                                                "example": "17:29:00"
                                            },
                                            "timer_started_at": {
                                                "description": "Timer started at in HH:MM:SS format. Timer is running when this field is not null",
                                                "type": "string",
                                                "example": null
                                            },
                                            "time_type": {
                                                "description": "Time time",
                                                "type": "string",
                                                "example": "Normal"
                                            }
                                        },
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "Timesheet"
                ],
                "summary": "Create a new time entry",
                "description": "Creates one or more time entries. Accepts either a single time entry object or an array of time entry objects as input.",
                "operationId": "CreateNewTimeEntry",
                "requestBody": {
                    "description": "Time entry fields to update (can be a single object or an array of objects)",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "oneOf": [
                                    {
                                        "properties": {
                                            "member_id": {
                                                "description": "Member ID (Do not use together with email)",
                                                "type": "integer",
                                                "example": "101"
                                            },
                                            "email": {
                                                "description": "Member email (Do not use together with member_id)",
                                                "type": "string",
                                                "example": "ada.lovelace@trackabi.com"
                                            },
                                            "client_id": {
                                                "description": "Client ID (Do not use together with client_name). Required, if the client column is mandatory according to the timesheet settings.",
                                                "type": "integer",
                                                "example": "17"
                                            },
                                            "client_name": {
                                                "description": "Client name (Do not use together with client_id). Required, if the client column is mandatory according to the timesheet settings.",
                                                "type": "string",
                                                "example": "King's College London"
                                            },
                                            "project_id": {
                                                "description": "Project ID (Do not use together with project_name) Required, if the project column is mandatory according to the timesheet settings.",
                                                "type": "integer",
                                                "example": "37059"
                                            },
                                            "project_name": {
                                                "description": "Project name (Do not use together with project_id) Required, if the project column is mandatory according to the timesheet settings.",
                                                "type": "string",
                                                "example": "Motion and universal gravitation"
                                            },
                                            "task_id": {
                                                "description": "Task ID (Do not use together with task_name). Required, if the task column is mandatory according to the timesheet settings.",
                                                "type": "integer",
                                                "example": "250796"
                                            },
                                            "task_name": {
                                                "description": "Task name (Do not use together with task_id). Required, if the task column is mandatory according to the timesheet settings.",
                                                "type": "string",
                                                "example": "Conducting experiments"
                                            },
                                            "date_logged": {
                                                "description": "Date logged of time entry in YYYY-MM-DD format. Required, if the date logged column is mandatory according to the timesheet settings.",
                                                "type": "string",
                                                "format": "date",
                                                "example": "2025-03-12"
                                            },
                                            "description": {
                                                "description": "Description of work. Required, if the description column is mandatory according to the timesheet settings.",
                                                "type": "string",
                                                "example": "Developing mathematical models and simulations to understand the atom structure",
                                                "nullable": false
                                            },
                                            "logged_time": {
                                                "description": "Logged time in HH:MM:SS format. Required, if the logged time column is mandatory according to the timesheet settings.",
                                                "type": "string",
                                                "format": "time",
                                                "example": "01:00:00",
                                                "nullable": false
                                            },
                                            "billable": {
                                                "description": "Billable time in HH:MM:SS format. Required, if the billable time column is mandatory according to the timesheet settings.",
                                                "type": "string",
                                                "format": "time",
                                                "example": "01:00:00",
                                                "nullable": false
                                            },
                                            "start_time": {
                                                "description": "Start time in HH:MM:SS format",
                                                "type": "string",
                                                "example": "16:29:00"
                                            },
                                            "end_time": {
                                                "description": "End time in HH:MM:SS format",
                                                "type": "string",
                                                "example": "17:29:00"
                                            },
                                            "time_type": {
                                                "description": "Name of time time",
                                                "type": "string",
                                                "example": "Normal"
                                            }
                                        },
                                        "type": "object"
                                    },
                                    {
                                        "type": "array",
                                        "items": {
                                            "properties": {
                                                "member_id": {
                                                    "description": "Member ID (Do not use together with email)",
                                                    "type": "integer",
                                                    "example": "101"
                                                },
                                                "email": {
                                                    "description": "Member email (Do not use together with member_id)",
                                                    "type": "string",
                                                    "example": "ada.lovelace@trackabi.com"
                                                },
                                                "client_id": {
                                                    "description": "Client ID (Do not use together with client_name). Required, if the client column is mandatory according to the timesheet settings.",
                                                    "type": "integer",
                                                    "example": "17"
                                                },
                                                "client_name": {
                                                    "description": "Client name (Do not use together with client_id). Required, if the client column is mandatory according to the timesheet settings.",
                                                    "type": "string",
                                                    "example": "King's College London"
                                                },
                                                "project_id": {
                                                    "description": "Project ID (Do not use together with project_name) Required, if the project column is mandatory according to the timesheet settings.",
                                                    "type": "integer",
                                                    "example": "37059"
                                                },
                                                "project_name": {
                                                    "description": "Project name (Do not use together with project_id) Required, if the project column is mandatory according to the timesheet settings.",
                                                    "type": "string",
                                                    "example": "Motion and universal gravitation"
                                                },
                                                "task_id": {
                                                    "description": "Task ID (Do not use together with task_name). Required, if the task column is mandatory according to the timesheet settings.",
                                                    "type": "integer",
                                                    "example": "250796"
                                                },
                                                "task_name": {
                                                    "description": "Task name (Do not use together with task_id). Required, if the task column is mandatory according to the timesheet settings.",
                                                    "type": "string",
                                                    "example": "Conducting experiments"
                                                },
                                                "date_logged": {
                                                    "description": "Date logged of time entry in YYYY-MM-DD format. Required, if the date logged column is mandatory according to the timesheet settings.",
                                                    "type": "string",
                                                    "format": "date",
                                                    "example": "2025-03-12"
                                                },
                                                "description": {
                                                    "description": "Description of work. Required, if the description column is mandatory according to the timesheet settings.",
                                                    "type": "string",
                                                    "example": "Developing mathematical models and simulations to understand the atom structure",
                                                    "nullable": false
                                                },
                                                "logged_time": {
                                                    "description": "Logged time in HH:MM:SS format. Required, if the logged time column is mandatory according to the timesheet settings.",
                                                    "type": "string",
                                                    "format": "time",
                                                    "example": "01:00:00",
                                                    "nullable": false
                                                },
                                                "billable": {
                                                    "description": "Billable time in HH:MM:SS format. Required, if the billable time column is mandatory according to the timesheet settings.",
                                                    "type": "string",
                                                    "format": "time",
                                                    "example": "01:00:00",
                                                    "nullable": false
                                                },
                                                "start_time": {
                                                    "description": "Start time in HH:MM:SS format",
                                                    "type": "string",
                                                    "example": "16:29:00"
                                                },
                                                "end_time": {
                                                    "description": "End time in HH:MM:SS format",
                                                    "type": "string",
                                                    "example": "17:29:00"
                                                },
                                                "time_type": {
                                                    "description": "Name of time time",
                                                    "type": "string",
                                                    "example": "Normal"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    }
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "description": "Time Entry ID",
                                            "type": "integer",
                                            "example": "4209806"
                                        },
                                        "member": {
                                            "description": "Linked member information",
                                            "properties": {
                                                "id": {
                                                    "description": "Member ID",
                                                    "type": "integer",
                                                    "example": "101"
                                                },
                                                "avatar": {
                                                    "description": "Member’s avatar",
                                                    "type": "string",
                                                    "format": "url",
                                                    "example": "https://trackabi.com/uploads/api/9823u4fj34289fu3jflf.png"
                                                },
                                                "email": {
                                                    "description": "Member’s email",
                                                    "type": "string",
                                                    "format": "email",
                                                    "example": "ada.lovelace@trackabi.com"
                                                },
                                                "first_name": {
                                                    "description": "Member’s first name",
                                                    "type": "string",
                                                    "example": "Ada"
                                                },
                                                "last_name": {
                                                    "description": "Member’s second name",
                                                    "type": "string",
                                                    "example": "Lovelace"
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "client": {
                                            "description": "Linked client information",
                                            "properties": {
                                                "id": {
                                                    "description": "The ID of the created client.",
                                                    "type": "integer",
                                                    "example": 17
                                                },
                                                "name": {
                                                    "description": "The name of the client.",
                                                    "type": "string",
                                                    "example": "King's College London"
                                                },
                                                "logo": {
                                                    "description": "The logo of the client.",
                                                    "type": "string",
                                                    "example": "https://trackabi.net/uploads/api/9835ufjoielkfnfio34jof.png",
                                                    "nullable": true
                                                },
                                                "short_name": {
                                                    "description": "Short name of the client.",
                                                    "type": "string",
                                                    "example": "KCL",
                                                    "nullable": true
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "project": {
                                            "description": "Linked project information",
                                            "properties": {
                                                "id": {
                                                    "description": "The project ID",
                                                    "type": "integer",
                                                    "example": "37059"
                                                },
                                                "name": {
                                                    "description": "The project name",
                                                    "type": "string",
                                                    "example": "Motion and universal gravitation"
                                                },
                                                "short_name": {
                                                    "description": "The short name of the project",
                                                    "type": "string",
                                                    "example": "MUG"
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "task": {
                                            "description": "Linked task information",
                                            "properties": {
                                                "id": {
                                                    "description": "Task ID",
                                                    "type": "integer",
                                                    "example": "250796"
                                                },
                                                "name": {
                                                    "description": "Task name",
                                                    "type": "string",
                                                    "example": "Conducting experiments"
                                                },
                                                "parent_task_id": {
                                                    "description": "Parent Task ID",
                                                    "type": "integer",
                                                    "example": "250795"
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "date_logged": {
                                            "description": "Date logged in YYYY-MM-DD format",
                                            "type": "string",
                                            "format": "date",
                                            "example": "2025-03-12"
                                        },
                                        "description": {
                                            "description": "Work perfomed of timesheet entry",
                                            "type": "string",
                                            "example": "Developing mathematical models and simulations to understand the atom structure"
                                        },
                                        "logged_time": {
                                            "description": "Total logged time in HH:MM:SS format",
                                            "type": "string",
                                            "example": "01:00:00"
                                        },
                                        "billable": {
                                            "description": "Total billable time in HH:MM:SS format",
                                            "type": "string",
                                            "example": "01:00:00"
                                        },
                                        "start_time": {
                                            "description": "Start time in HH:MM:SS format",
                                            "type": "string",
                                            "example": "16:29:00"
                                        },
                                        "end_time": {
                                            "description": "End time in HH:MM:SS format",
                                            "type": "string",
                                            "example": "17:29:00"
                                        },
                                        "timer_started_at": {
                                            "description": "Timer started at in HH:MM:SS format. Timer is running when this field is not null",
                                            "type": "string",
                                            "example": null
                                        },
                                        "time_type": {
                                            "description": "Time time",
                                            "type": "string",
                                            "example": "Normal"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationError"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/time-entry/{time_entry_id}": {
            "get": {
                "tags": [
                    "Timesheet"
                ],
                "summary": "Get a time entry",
                "description": "Retrieves a time entry.",
                "operationId": "GetTimeEntry",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/time_entry_id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "description": "Time Entry ID",
                                            "type": "integer",
                                            "example": "4209806"
                                        },
                                        "member": {
                                            "description": "Linked member information",
                                            "properties": {
                                                "id": {
                                                    "description": "Member ID",
                                                    "type": "integer",
                                                    "example": "101"
                                                },
                                                "avatar": {
                                                    "description": "Member’s avatar",
                                                    "type": "string",
                                                    "format": "url",
                                                    "example": "https://trackabi.com/uploads/api/9823u4fj34289fu3jflf.png"
                                                },
                                                "email": {
                                                    "description": "Member’s email",
                                                    "type": "string",
                                                    "format": "email",
                                                    "example": "ada.lovelace@trackabi.com"
                                                },
                                                "first_name": {
                                                    "description": "Member’s first name",
                                                    "type": "string",
                                                    "example": "Ada"
                                                },
                                                "last_name": {
                                                    "description": "Member’s second name",
                                                    "type": "string",
                                                    "example": "Lovelace"
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "client": {
                                            "description": "Linked client information",
                                            "properties": {
                                                "id": {
                                                    "description": "The ID of the created client.",
                                                    "type": "integer",
                                                    "example": 17
                                                },
                                                "name": {
                                                    "description": "The name of the client.",
                                                    "type": "string",
                                                    "example": "King's College London"
                                                },
                                                "logo": {
                                                    "description": "The logo of the client.",
                                                    "type": "string",
                                                    "example": "https://trackabi.net/uploads/api/9835ufjoielkfnfio34jof.png",
                                                    "nullable": true
                                                },
                                                "short_name": {
                                                    "description": "Short name of the client.",
                                                    "type": "string",
                                                    "example": "KCL",
                                                    "nullable": true
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "project": {
                                            "description": "Linked project information",
                                            "properties": {
                                                "id": {
                                                    "description": "The project ID",
                                                    "type": "integer",
                                                    "example": "37059"
                                                },
                                                "name": {
                                                    "description": "The project name",
                                                    "type": "string",
                                                    "example": "Motion and universal gravitation"
                                                },
                                                "short_name": {
                                                    "description": "The short name of the project",
                                                    "type": "string",
                                                    "example": "MUG"
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "task": {
                                            "description": "Linked task information",
                                            "properties": {
                                                "id": {
                                                    "description": "Task ID",
                                                    "type": "integer",
                                                    "example": "250796"
                                                },
                                                "name": {
                                                    "description": "Task name",
                                                    "type": "string",
                                                    "example": "Conducting experiments"
                                                },
                                                "parent_task_id": {
                                                    "description": "Parent Task ID",
                                                    "type": "integer",
                                                    "example": "250795"
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "date_logged": {
                                            "description": "Date logged in YYYY-MM-DD format",
                                            "type": "string",
                                            "format": "date",
                                            "example": "2025-03-12"
                                        },
                                        "description": {
                                            "description": "Work perfomed of timesheet entry",
                                            "type": "string",
                                            "example": "Developing mathematical models and simulations to understand the atom structure"
                                        },
                                        "logged_time": {
                                            "description": "Total logged time in HH:MM:SS format",
                                            "type": "string",
                                            "example": "01:00:00"
                                        },
                                        "billable": {
                                            "description": "Total billable time in HH:MM:SS format",
                                            "type": "string",
                                            "example": "01:00:00"
                                        },
                                        "start_time": {
                                            "description": "Start time in HH:MM:SS format",
                                            "type": "string",
                                            "example": "16:29:00"
                                        },
                                        "end_time": {
                                            "description": "End time in HH:MM:SS format",
                                            "type": "string",
                                            "example": "17:29:00"
                                        },
                                        "timer_started_at": {
                                            "description": "Timer started at in HH:MM:SS format. Timer is running when this field is not null",
                                            "type": "string",
                                            "example": null
                                        },
                                        "time_type": {
                                            "description": "Time time",
                                            "type": "string",
                                            "example": "Normal"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "put": {
                "tags": [
                    "Timesheet"
                ],
                "summary": "Update time entry details",
                "description": "Update time entry details",
                "operationId": "UpdateTimeEntryDetails",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/time_entry_id"
                    }
                ],
                "requestBody": {
                    "description": "Time entry fields to update",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "member_id": {
                                        "description": "Member ID (Do not use together with email)",
                                        "type": "integer",
                                        "example": "101"
                                    },
                                    "email": {
                                        "description": "Member email (Do not use together with member_id)",
                                        "type": "string",
                                        "example": "ada.lovelace@trackabi.com"
                                    },
                                    "client_id": {
                                        "description": "Client ID (Do not use together with client_name). Required, if the client column is mandatory according to the timesheet settings.",
                                        "type": "integer",
                                        "example": "17"
                                    },
                                    "client_name": {
                                        "description": "Client name (Do not use together with client_id). Required, if the client column is mandatory according to the timesheet settings.",
                                        "type": "string",
                                        "example": "King's College London"
                                    },
                                    "project_id": {
                                        "description": "Project ID (Do not use together with project_name) Required, if the project column is mandatory according to the timesheet settings.",
                                        "type": "integer",
                                        "example": "37059"
                                    },
                                    "project_name": {
                                        "description": "Project name (Do not use together with project_id) Required, if the project column is mandatory according to the timesheet settings.",
                                        "type": "string",
                                        "example": "Motion and universal gravitation"
                                    },
                                    "task_id": {
                                        "description": "Task ID (Do not use together with task_name). Required, if the task column is mandatory according to the timesheet settings.",
                                        "type": "integer",
                                        "example": "250796"
                                    },
                                    "task_name": {
                                        "description": "Task name (Do not use together with task_id). Required, if the task column is mandatory according to the timesheet settings.",
                                        "type": "string",
                                        "example": "Conducting experiments"
                                    },
                                    "date_logged": {
                                        "description": "Date logged of time entry in YYYY-MM-DD format. Required, if the date logged column is mandatory according to the timesheet settings.",
                                        "type": "string",
                                        "format": "date",
                                        "example": "2025-03-12"
                                    },
                                    "description": {
                                        "description": "Description of work. Required, if the description column is mandatory according to the timesheet settings.",
                                        "type": "string",
                                        "example": "Developing mathematical models and simulations to understand the atom structure",
                                        "nullable": false
                                    },
                                    "logged_time": {
                                        "description": "Logged time in HH:MM:SS format. Required, if the logged time column is mandatory according to the timesheet settings.",
                                        "type": "string",
                                        "format": "time",
                                        "example": "01:00:00",
                                        "nullable": false
                                    },
                                    "billable": {
                                        "description": "Billable time in HH:MM:SS format. Required, if the billable time column is mandatory according to the timesheet settings.",
                                        "type": "string",
                                        "format": "time",
                                        "example": "01:00:00",
                                        "nullable": false
                                    },
                                    "start_time": {
                                        "description": "Start time in HH:MM:SS format",
                                        "type": "string",
                                        "example": "16:29:00"
                                    },
                                    "end_time": {
                                        "description": "End time in HH:MM:SS format",
                                        "type": "string",
                                        "example": "17:29:00"
                                    },
                                    "time_type": {
                                        "description": "Name of time time",
                                        "type": "string",
                                        "example": "Normal"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "id": {
                                            "description": "Time Entry ID",
                                            "type": "integer",
                                            "example": "4209806"
                                        },
                                        "member": {
                                            "description": "Linked member information",
                                            "properties": {
                                                "id": {
                                                    "description": "Member ID",
                                                    "type": "integer",
                                                    "example": "101"
                                                },
                                                "avatar": {
                                                    "description": "Member’s avatar",
                                                    "type": "string",
                                                    "format": "url",
                                                    "example": "https://trackabi.com/uploads/api/9823u4fj34289fu3jflf.png"
                                                },
                                                "email": {
                                                    "description": "Member’s email",
                                                    "type": "string",
                                                    "format": "email",
                                                    "example": "ada.lovelace@trackabi.com"
                                                },
                                                "first_name": {
                                                    "description": "Member’s first name",
                                                    "type": "string",
                                                    "example": "Ada"
                                                },
                                                "last_name": {
                                                    "description": "Member’s second name",
                                                    "type": "string",
                                                    "example": "Lovelace"
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "client": {
                                            "description": "Linked client information",
                                            "properties": {
                                                "id": {
                                                    "description": "The ID of the created client.",
                                                    "type": "integer",
                                                    "example": 17
                                                },
                                                "name": {
                                                    "description": "The name of the client.",
                                                    "type": "string",
                                                    "example": "King's College London"
                                                },
                                                "logo": {
                                                    "description": "The logo of the client.",
                                                    "type": "string",
                                                    "example": "https://trackabi.net/uploads/api/9835ufjoielkfnfio34jof.png",
                                                    "nullable": true
                                                },
                                                "short_name": {
                                                    "description": "Short name of the client.",
                                                    "type": "string",
                                                    "example": "KCL",
                                                    "nullable": true
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "project": {
                                            "description": "Linked project information",
                                            "properties": {
                                                "id": {
                                                    "description": "The project ID",
                                                    "type": "integer",
                                                    "example": "37059"
                                                },
                                                "name": {
                                                    "description": "The project name",
                                                    "type": "string",
                                                    "example": "Motion and universal gravitation"
                                                },
                                                "short_name": {
                                                    "description": "The short name of the project",
                                                    "type": "string",
                                                    "example": "MUG"
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "task": {
                                            "description": "Linked task information",
                                            "properties": {
                                                "id": {
                                                    "description": "Task ID",
                                                    "type": "integer",
                                                    "example": "250796"
                                                },
                                                "name": {
                                                    "description": "Task name",
                                                    "type": "string",
                                                    "example": "Conducting experiments"
                                                },
                                                "parent_task_id": {
                                                    "description": "Parent Task ID",
                                                    "type": "integer",
                                                    "example": "250795"
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "date_logged": {
                                            "description": "Date logged in YYYY-MM-DD format",
                                            "type": "string",
                                            "format": "date",
                                            "example": "2025-03-12"
                                        },
                                        "description": {
                                            "description": "Work perfomed of timesheet entry",
                                            "type": "string",
                                            "example": "Developing mathematical models and simulations to understand the atom structure"
                                        },
                                        "logged_time": {
                                            "description": "Total logged time in HH:MM:SS format",
                                            "type": "string",
                                            "example": "01:00:00"
                                        },
                                        "billable": {
                                            "description": "Total billable time in HH:MM:SS format",
                                            "type": "string",
                                            "example": "01:00:00"
                                        },
                                        "start_time": {
                                            "description": "Start time in HH:MM:SS format",
                                            "type": "string",
                                            "example": "16:29:00"
                                        },
                                        "end_time": {
                                            "description": "End time in HH:MM:SS format",
                                            "type": "string",
                                            "example": "17:29:00"
                                        },
                                        "timer_started_at": {
                                            "description": "Timer started at in HH:MM:SS format. Timer is running when this field is not null",
                                            "type": "string",
                                            "example": null
                                        },
                                        "time_type": {
                                            "description": "Time time",
                                            "type": "string",
                                            "example": "Normal"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationError"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "Timesheet"
                ],
                "summary": "Delete a time entry",
                "description": "Deletes a specified time entry.",
                "operationId": "DeleteTimeEntry",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/time_entry_id"
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content",
                        "content": {
                            "application/json": {}
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/EntryNotFound"
                    },
                    "403": {
                        "$ref": "#/components/responses/AccessDenied"
                    },
                    "400": {
                        "$ref": "#/components/responses/BadRequest"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        }
    },
    "components": {
        "responses": {
            "EntryNotFound": {
                "description": "Entry Not Found",
                "content": {
                    "application/json": {
                        "schema": {
                            "properties": {
                                "error": {
                                    "description": "The error message",
                                    "type": "string"
                                },
                                "code": {
                                    "description": "The trackabi error code",
                                    "type": "string"
                                }
                            },
                            "type": "object"
                        },
                        "example": {
                            "error": "The requested entry was not found",
                            "code": "CODE_005"
                        }
                    }
                }
            },
            "ValidationError": {
                "description": "Validation error",
                "content": {
                    "application/json": {
                        "schema": {
                            "properties": {
                                "error": {
                                    "description": "The error message",
                                    "type": "string"
                                },
                                "code": {
                                    "description": "The trackabi error code",
                                    "type": "string"
                                },
                                "validationErrors": {
                                    "description": "Object where keys are attribute names and values are error messages",
                                    "type": "object",
                                    "additionalProperties": {
                                        "type": "string"
                                    }
                                }
                            },
                            "type": "object"
                        },
                        "example": {
                            "error": "Validation error",
                            "code": "CODE_002",
                            "validationErrors": {
                                "name": "This field is required"
                            }
                        }
                    }
                }
            },
            "AccessDenied": {
                "description": "Access denied. The code GLBL_012 means API access for the whole organization has been suspended by Trackabi; contact support@trackabi.com to restore it.",
                "content": {
                    "application/json": {
                        "schema": {
                            "properties": {
                                "error": {
                                    "description": "The error message",
                                    "type": "string",
                                    "example": "Access denied"
                                },
                                "code": {
                                    "description": "The trackabi error code",
                                    "type": "string",
                                    "example": "CODE_004"
                                }
                            },
                            "type": "object"
                        }
                    }
                }
            },
            "BadRequest": {
                "description": "Bad Request",
                "content": {
                    "application/json": {
                        "schema": {
                            "properties": {
                                "error": {
                                    "description": "The error message",
                                    "type": "string",
                                    "example": "Bad Request"
                                },
                                "code": {
                                    "description": "The trackabi error code",
                                    "type": "string",
                                    "example": "CODE_000"
                                }
                            },
                            "type": "object"
                        }
                    }
                }
            },
            "TooManyRequests": {
                "description": "The hourly API request limit of your subscription plan has been reached. The limit is counted per member across all their API keys and resets at the start of every clock hour.",
                "headers": {
                    "Retry-After": {
                        "description": "Seconds until the hourly limit resets",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    "X-RateLimit-Remaining": {
                        "description": "Requests left in the current hour (0 here)",
                        "schema": {
                            "type": "integer"
                        }
                    }
                },
                "content": {
                    "application/json": {
                        "schema": {
                            "properties": {
                                "error": {
                                    "description": "The error message",
                                    "type": "string",
                                    "example": "You've reached the limit of 100 API requests per hour. Please retry after the time given in the Retry-After header."
                                },
                                "code": {
                                    "description": "The trackabi error code",
                                    "type": "string",
                                    "example": "GLBL_013"
                                }
                            },
                            "type": "object"
                        }
                    }
                }
            },
            "415": {
                "description": "Invalid Content-Type. This API only accepts requests with 'application/json'.",
                "content": {
                    "application/json": {
                        "schema": {
                            "properties": {
                                "error": {
                                    "type": "string",
                                    "example": "Invalid Content-Type. This API only accepts requests with 'application/json'."
                                },
                                "code": {
                                    "type": "string",
                                    "example": "GLBL_000"
                                }
                            },
                            "type": "object"
                        }
                    }
                }
            },
            "401": {
                "description": "Unauthorized request due to invalid credentials.",
                "content": {
                    "application/json": {
                        "schema": {
                            "properties": {
                                "error": {
                                    "type": "string",
                                    "example": "Your request could not be completed due to invalid credentials"
                                },
                                "code": {
                                    "type": "string",
                                    "example": "GLBL_006"
                                }
                            },
                            "type": "object"
                        }
                    }
                }
            }
        },
        "parameters": {
            "page": {
                "name": "page",
                "in": "query",
                "description": "The page number. Must be an integer greater than 0.",
                "required": false,
                "schema": {
                    "type": "integer",
                    "minimum": 1
                }
            },
            "page_size": {
                "name": "page_size",
                "in": "query",
                "description": "Defines the maximum number of items to return per page. Accepts values from 1 to 100. If not specified, the default is 30.",
                "required": false,
                "schema": {
                    "type": "integer",
                    "maximum": 100,
                    "minimum": 1
                }
            },
            "reverse": {
                "name": "reverse",
                "in": "query",
                "description": "If set to 1, the results are sorted in descending order. If not set or set to 0, results are sorted in ascending order.",
                "required": false,
                "schema": {
                    "type": "integer",
                    "enum": [
                        0,
                        1
                    ]
                }
            },
            "show_removed_members": {
                "name": "show_removed_members",
                "in": "query",
                "description": "If set to 1, assigned_members also lists members removed from the project, marked with removed_from_project = true. A member who is still in a team assigned to the project counts as assigned.",
                "required": false,
                "schema": {
                    "type": "integer",
                    "enum": [
                        0,
                        1
                    ]
                }
            },
            "company_alias": {
                "name": "company_alias",
                "in": "path",
                "description": "The the company alias (subdomain of the account).",
                "required": true,
                "schema": {
                    "type": "string"
                }
            },
            "client_id": {
                "name": "client_id",
                "in": "path",
                "description": "The unique ID of the client.",
                "required": true,
                "schema": {
                    "type": "integer"
                }
            },
            "task_id": {
                "name": "task_id",
                "in": "path",
                "description": "The unique ID of the task.",
                "required": true,
                "schema": {
                    "type": "integer"
                }
            },
            "project_id": {
                "name": "project_id",
                "in": "path",
                "description": "The unique ID of the project.",
                "required": true,
                "schema": {
                    "type": "integer"
                }
            },
            "time_entry_id": {
                "name": "time_entry_id",
                "in": "path",
                "description": "The unique ID of the time entry.",
                "required": true,
                "schema": {
                    "type": "integer"
                }
            }
        },
        "headers": {
            "Content-Type": {
                "description": "Content type for all requests",
                "schema": {
                    "type": "string",
                    "example": "application/json"
                }
            },
            "X-Pagination-Total-Count": {
                "description": "The total number of records matching the request, across all pages.",
                "schema": {
                    "type": "integer"
                }
            },
            "X-Pagination-Page-Count": {
                "description": "The total number of pages. 0 when no records match.",
                "schema": {
                    "type": "integer"
                }
            },
            "X-Pagination-Current-Page": {
                "description": "The number of the returned page, starting from 1.",
                "schema": {
                    "type": "integer"
                }
            },
            "X-Pagination-Page-Size": {
                "description": "The maximum number of records per page. Requested page_size values above 100 are reduced to 100.",
                "schema": {
                    "type": "integer"
                }
            }
        },
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "description": "Bearer {{apiKey}}. Example: 'Bearer apiKey'",
                "bearerFormat": "apiKey",
                "scheme": "bearer"
            }
        }
    },
    "tags": [
        {
            "name": "Activity",
            "description": "Activity"
        },
        {
            "name": "Clients",
            "description": "Clients"
        },
        {
            "name": "Leaves",
            "description": "Leaves"
        },
        {
            "name": "Members",
            "description": "Members"
        },
        {
            "name": "Company",
            "description": "Company"
        },
        {
            "name": "Projects",
            "description": "Projects"
        },
        {
            "name": "Tasks",
            "description": "Tasks"
        },
        {
            "name": "Timesheet",
            "description": "Timesheet"
        }
    ]
}