{

"get": {
  "operationId": "getTimeTracks",
  "description": "List of time tracks",
  "tags": ["Time Track"],
  "parameters": [
    { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
    { "$ref": "../../common/components.json#/components/request/parameters/id_param" },
    { "$ref": "../../common/components.json#/components/request/parameters/object_param" }
  ],
  "responses": {
    "200": {
      "description": "Object was returned correctly",
      "content": {
        "application/json": {
          "schema": {
            "description": "List of time tracks",
            "type": "array",
            "items": { "$ref": "../../common/schemas/service_desk/time_track.json#/components/schemas/response" }
          }
        },
        "application/xml": {
          "schema": {
            "description": "List of time tracks",
            "type": "array",
            "xml": { "name": "/", "wrapped": true },
            "items": { "$ref": "../../common/schemas/service_desk/time_track.json#/components/schemas/response" }
          }
        }
      }
    },
    "400": { "description": "Bad request" },
    "404": { "description": "Not found" },
    "500": { "description": "Server error" }
  }
},
"post": {
  "operationId": "createTimeTrack",
  "description": "Create new time track",
  "tags": ["Time Track"],
  "parameters": [
    { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
    { "$ref": "../../common/components.json#/components/request/parameters/id_param" },
    { "$ref": "../../common/components.json#/components/request/parameters/object_param" }
  ],
  "requestBody": {
    "required": true,
    "description": "Time track fields to fill",
    "content": {
      "application/json": { "schema": { "$ref": "../../common/schemas/service_desk/time_track.json#/components/schemas/request" } },
      "application/xml": { "schema": { "$ref": "../../common/schemas/service_desk/time_track.json#/components/schemas/request" } }
    }
  },
  "responses": {
    "200": {
      "description": "Object created and returned correctly",
      "content": {
        "application/json": { "schema": { "$ref": "../../common/schemas/service_desk/time_track.json#/components/schemas/response" } },
        "application/xml": { "schema": { "$ref": "../../common/schemas/service_desk/time_track.json#/components/schemas/response" } }
      }
    },
    "400": { "description": "Bad request" },
    "500": { "description": "Server error" }
  }
}

}