---
agentTools:
  projectIndex: https://docs.qdelivery.app/llms.txt
---

# Close

Index

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Integration",
    "version": "1.6.1"
  },
  "servers": [
    {
      "url": "https://api.dev.qdelivery.app/api/integration"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/task-slots/{slot}/close": {
      "post": {
        "summary": "Close",
        "description": "Index",
        "operationId": "close-task-slot",
        "parameters": [
          {
            "name": "slot",
            "in": "path",
            "description": "Ex: 2022041518002000 (2022-04-15 18:00-20:00)",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "hub_id",
                  "shift"
                ],
                "properties": {
                  "hub_id": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "team_id": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "online": {
                    "type": "string",
                    "description": "online, offline, all",
                    "default": "all"
                  },
                  "shift": {
                    "type": "string",
                    "description": "working, resting, all",
                    "default": "working"
                  },
                  "duty": {
                    "type": "string",
                    "description": "on_duty, idle, all",
                    "default": "all"
                  },
                  "tour": {
                    "type": "boolean",
                    "description": "If true, the vehicle returns to the starting point; If false, the last point of the route will be the last task.",
                    "default": true
                  },
                  "dispatch_early": {
                    "type": "boolean",
                    "description": "If true, the vehicle will depart for example in the 12:00-14:00 slot, delivering the first task at 12:00; If false, it will depart at 12:00. If tour=true, a 30-minute advance is given to the vehicle for its return to the store.",
                    "default": false
                  },
                  "from_hub": {
                    "type": "boolean",
                    "description": "If true, the vehicle departs from the store; If false, the exit point is the first task.",
                    "default": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6602b1495613fc002042a788:6602b14a5613fc002042a7b6"
}
```