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

# Update

# 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": {
    "/tasks/{task}": {
      "patch": {
        "summary": "Update",
        "description": "",
        "operationId": "update-task",
        "parameters": [
          {
            "name": "task",
            "in": "path",
            "description": "Task ID",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "notes": {
                    "type": "string",
                    "description": "Max: 255"
                  },
                  "recipient_notes": {
                    "type": "string",
                    "description": "Customer notes."
                  },
                  "items": {
                    "type": "array",
                    "description": "Ordered products. If sent, existing products are deleted and new ones are added.",
                    "items": {
                      "properties": {
                        "integration_id": {
                          "type": "string",
                          "description": "Sipariş bazında benzersiz olmalıdır. Bir sipariş için aynı integration_id birden fazla kez gönderilemez."
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "notes": {
                          "type": "string"
                        },
                        "quantity": {
                          "type": "integer",
                          "format": "int32"
                        },
                        "currency": {
                          "type": "string",
                          "description": "TRY, USD, EUR"
                        },
                        "amount": {
                          "type": "integer",
                          "format": "int32"
                        }
                      },
                      "required": [
                        "integration_id",
                        "name"
                      ],
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"id\": 1,\n\t\"integration_id\": \"22\",\n\t\"tracking_code\": \"QD1-22124F6ZFOO\",\n\t\"type_slug\": \"assignable\",\n\t\"obligation_slug\": \"mandatory\",\n\t\"status_id\": 3,\n\t\"status_category_slug\": \"assigned\",\n\t\"plan_id\": null,\n\t\"company_id\": 1,\n\t\"owner_id\": 2,\n\t\"courier_id\": 73,\n\t\"team_id\": null,\n\t\"hub_id\": 1,\n\t\"origin_hub_id\": 1,\n\t\"destination_hub_id\": null,\n\t\"origin_address\": \"Kozyatağı Mah, Şakacı Sk. Selimoğlu Residence No:14\\/1-A, 34742 Kadıköy\\/İstanbul\",\n\t\"origin_address_building\": null,\n\t\"origin_address_floor\": null,\n\t\"origin_address_apartment\": null,\n\t\"origin_phone\": null,\n\t\"origin_phone_country\": null,\n\t\"origin_name\": \"Anadolu Depo\",\n\t\"origin_lat\": 40.971301,\n\t\"origin_lng\": 29.094388,\n\t\"destination_address\": \"Vişnezade, Hüsrev Gerede Cd. No:15, 34357 Beşiktaş\\/İstanbul\",\n\t\"destination_address_building\": null,\n\t\"destination_address_floor\": null,\n\t\"destination_address_apartment\": null,\n\t\"destination_phone\": null,\n\t\"destination_phone_country\": null,\n\t\"destination_name\": \"Avrupa Mağazası\",\n\t\"destination_lat\": 41.04608914,\n\t\"destination_lng\": 28.9996297,\n\t\"is_origin_resolved\": false,\n\t\"is_destination_resolved\": false,\n\t\"slot\": \"2022041510001200\",\n\t\"starts_at\": \"2022-02-04T10:00:00.000000Z\",\n\t\"ends_at\": \"2022-02-04T10:11:00.000000Z\",\n\t\"quantity\": 1,\n\t\"service_time\": 0,\n\t\"response_time\": 0,\n\t\"requires_delivery_code\": false,\n\t\"requires_delivery_code_mandatory\": false,\n\t\"requires_pod_photo\": false,\n\t\"requires_pod_photo_mandatory\": false,\n\t\"requirements_delivery_code\": null,\n\t\"requirements_pod_photo\": null,\n\t\"notes\": \"Task note güncelleme\",\n\t\"channel\": \"api\",\n\t\"provider_id\": null,\n\t\"status_at\": \"2022-05-05T10:54:58.000000Z\",\n\t\"seen_at\": null,\n\t\"claimed_at\": null,\n\t\"created_at\": \"2022-05-05T10:54:58.000000Z\",\n\t\"updated_at\": \"2022-05-05T10:56:06.000000Z\",\n\t\"route_order\": 0,\n\t\"priority\": 0,\n\t\"contents\": [],\n\t\"payment_type\": null,\n\t\"foreign_carrier\": null,\n\t\"handled_by_foreign_carrier\": false,\n\t\"rating\": 0,\n\t\"comment\": null,\n\t\"distance\": 17014,\n\t\"duration\": 2245,\n\t\"was_finalized_duly\": true,\n\t\"was_delayed\": false,\n\t\"started_at\": null,\n\t\"ended_at\": null,\n\t\"courier\": {\n\t\t\"id\": 73,\n\t\t\"name\": \"Berk Akbulut\",\n\t\t\"phone_country\": \"TR\",\n\t\t\"phone\": \"+905433506550\",\n\t\t\"courier_detail\": {\n\t\t\t\"code\": \"KV8MWO\",\n\t\t\t\"vehicle_license_plate\": \"34UE5426\",\n\t\t\t\"vehicle_type\": \"On Foot\",\n\t\t\t\"vehicle_type_slug\": \"foot\",\n\t\t\t\"vehicle_description\": null,\n\t\t\t\"vehicle_color\": \"Kırmızı\",\n\t\t\t\"capacity\": 12,\n\t\t\t\"pool_capacity\": 8,\n\t\t\t\"vehicle_icon\": \"https:\\/\\/qdelivery-api.test\\/images\\/vehicle-icons\\/foot.png\"\n\t\t},\n\t\t\"courier_location\": {\n\t\t\t\"is_online\": false,\n\t\t\t\"lat\": 40.96138184,\n\t\t\t\"lng\": 29.08072511,\n\t\t\t\"last_seen_at\": \"2022-05-05T09:54:19.000000Z\"\n\t\t}\n\t},\n\t\"requirements_pod_photo_url\": null,\n\t\"team\": null,\n\t\"hub\": {\n\t\t\"id\": 1,\n\t\t\"name\": \"Anadolu Depo\",\n\t\t\"address\": \"Kozyatağı Mah, Şakacı Sk. Selimoğlu Residence No:14\\/1-A, 34742 Kadıköy\\/İstanbul\",\n\t\t\"address_building\": null,\n\t\t\"address_apartment\": null,\n\t\t\"address_floor\": null,\n\t\t\"lat\": 40.971301,\n\t\t\"lng\": 29.094388,\n\t\t\"teams_count\": null,\n\t\t\"created_at\": \"2022-05-05T10:05:45.000000Z\",\n\t\t\"updated_at\": \"2022-05-05T10:05:45.000000Z\"\n\t},\n\t\"status\": {\n\t\t\"id\": 3,\n\t\t\"name\": \"Atandı\"\n\t},\n\t\"status_logs\": [\n\t\t{\n\t\t\t\"id\": 1,\n\t\t\t\"task_id\": 1,\n\t\t\t\"courier_id\": 73,\n\t\t\t\"status_id\": 3,\n\t\t\t\"status_category_slug\": \"assigned\",\n\t\t\t\"notes\": null,\n\t\t\t\"lat\": null,\n\t\t\t\"lng\": null,\n\t\t\t\"latlng\": null,\n\t\t\t\"geohash\": null,\n\t\t\t\"created_at\": \"2022-05-05T10:54:58.000000Z\",\n\t\t\t\"updated_at\": \"2022-05-05T10:54:58.000000Z\",\n\t\t\t\"status\": {\n\t\t\t\t\"id\": 3,\n\t\t\t\t\"status_category_slug\": \"assigned\",\n\t\t\t\t\"name\": \"Atandı\"\n\t\t\t}\n\t\t}\n\t]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "integration_id": {
                      "type": "string",
                      "example": "22"
                    },
                    "tracking_code": {
                      "type": "string",
                      "example": "QD1-22124F6ZFOO"
                    },
                    "type_slug": {
                      "type": "string",
                      "example": "assignable"
                    },
                    "obligation_slug": {
                      "type": "string",
                      "example": "mandatory"
                    },
                    "status_id": {
                      "type": "integer",
                      "example": 3,
                      "default": 0
                    },
                    "status_category_slug": {
                      "type": "string",
                      "example": "assigned"
                    },
                    "plan_id": {},
                    "company_id": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "owner_id": {
                      "type": "integer",
                      "example": 2,
                      "default": 0
                    },
                    "courier_id": {
                      "type": "integer",
                      "example": 73,
                      "default": 0
                    },
                    "team_id": {},
                    "hub_id": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "origin_hub_id": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "destination_hub_id": {},
                    "origin_address": {
                      "type": "string",
                      "example": "Kozyatağı Mah, Şakacı Sk. Selimoğlu Residence No:14/1-A, 34742 Kadıköy/İstanbul"
                    },
                    "origin_address_building": {},
                    "origin_address_floor": {},
                    "origin_address_apartment": {},
                    "origin_phone": {},
                    "origin_phone_country": {},
                    "origin_name": {
                      "type": "string",
                      "example": "Anadolu Depo"
                    },
                    "origin_lat": {
                      "type": "number",
                      "example": 40.971301,
                      "default": 0
                    },
                    "origin_lng": {
                      "type": "number",
                      "example": 29.094388,
                      "default": 0
                    },
                    "destination_address": {
                      "type": "string",
                      "example": "Vişnezade, Hüsrev Gerede Cd. No:15, 34357 Beşiktaş/İstanbul"
                    },
                    "destination_address_building": {},
                    "destination_address_floor": {},
                    "destination_address_apartment": {},
                    "destination_phone": {},
                    "destination_phone_country": {},
                    "destination_name": {
                      "type": "string",
                      "example": "Avrupa Mağazası"
                    },
                    "destination_lat": {
                      "type": "number",
                      "example": 41.04608914,
                      "default": 0
                    },
                    "destination_lng": {
                      "type": "number",
                      "example": 28.9996297,
                      "default": 0
                    },
                    "is_origin_resolved": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "is_destination_resolved": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "slot": {
                      "type": "string",
                      "example": "2022041510001200"
                    },
                    "starts_at": {
                      "type": "string",
                      "example": "2022-02-04T10:00:00.000000Z"
                    },
                    "ends_at": {
                      "type": "string",
                      "example": "2022-02-04T10:11:00.000000Z"
                    },
                    "quantity": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "service_time": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "response_time": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "requires_delivery_code": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "requires_delivery_code_mandatory": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "requires_pod_photo": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "requires_pod_photo_mandatory": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "requirements_delivery_code": {},
                    "requirements_pod_photo": {},
                    "notes": {
                      "type": "string",
                      "example": "Task note güncelleme"
                    },
                    "channel": {
                      "type": "string",
                      "example": "api"
                    },
                    "provider_id": {},
                    "status_at": {
                      "type": "string",
                      "example": "2022-05-05T10:54:58.000000Z"
                    },
                    "seen_at": {},
                    "claimed_at": {},
                    "created_at": {
                      "type": "string",
                      "example": "2022-05-05T10:54:58.000000Z"
                    },
                    "updated_at": {
                      "type": "string",
                      "example": "2022-05-05T10:56:06.000000Z"
                    },
                    "route_order": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "priority": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "contents": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    },
                    "payment_type": {},
                    "foreign_carrier": {},
                    "handled_by_foreign_carrier": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "rating": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "comment": {},
                    "distance": {
                      "type": "integer",
                      "example": 17014,
                      "default": 0
                    },
                    "duration": {
                      "type": "integer",
                      "example": 2245,
                      "default": 0
                    },
                    "was_finalized_duly": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "was_delayed": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "started_at": {},
                    "ended_at": {},
                    "courier": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 73,
                          "default": 0
                        },
                        "name": {
                          "type": "string",
                          "example": "Berk Akbulut"
                        },
                        "phone_country": {
                          "type": "string",
                          "example": "TR"
                        },
                        "phone": {
                          "type": "string",
                          "example": "+905433506550"
                        },
                        "courier_detail": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "example": "KV8MWO"
                            },
                            "vehicle_license_plate": {
                              "type": "string",
                              "example": "34UE5426"
                            },
                            "vehicle_type": {
                              "type": "string",
                              "example": "On Foot"
                            },
                            "vehicle_type_slug": {
                              "type": "string",
                              "example": "foot"
                            },
                            "vehicle_description": {},
                            "vehicle_color": {
                              "type": "string",
                              "example": "Kırmızı"
                            },
                            "capacity": {
                              "type": "integer",
                              "example": 12,
                              "default": 0
                            },
                            "pool_capacity": {
                              "type": "integer",
                              "example": 8,
                              "default": 0
                            },
                            "vehicle_icon": {
                              "type": "string",
                              "example": "https://qdelivery-api.test/images/vehicle-icons/foot.png"
                            }
                          }
                        },
                        "courier_location": {
                          "type": "object",
                          "properties": {
                            "is_online": {
                              "type": "boolean",
                              "example": false,
                              "default": true
                            },
                            "lat": {
                              "type": "number",
                              "example": 40.96138184,
                              "default": 0
                            },
                            "lng": {
                              "type": "number",
                              "example": 29.08072511,
                              "default": 0
                            },
                            "last_seen_at": {
                              "type": "string",
                              "example": "2022-05-05T09:54:19.000000Z"
                            }
                          }
                        }
                      }
                    },
                    "requirements_pod_photo_url": {},
                    "team": {},
                    "hub": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "name": {
                          "type": "string",
                          "example": "Anadolu Depo"
                        },
                        "address": {
                          "type": "string",
                          "example": "Kozyatağı Mah, Şakacı Sk. Selimoğlu Residence No:14/1-A, 34742 Kadıköy/İstanbul"
                        },
                        "address_building": {},
                        "address_apartment": {},
                        "address_floor": {},
                        "lat": {
                          "type": "number",
                          "example": 40.971301,
                          "default": 0
                        },
                        "lng": {
                          "type": "number",
                          "example": 29.094388,
                          "default": 0
                        },
                        "teams_count": {},
                        "created_at": {
                          "type": "string",
                          "example": "2022-05-05T10:05:45.000000Z"
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2022-05-05T10:05:45.000000Z"
                        }
                      }
                    },
                    "status": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 3,
                          "default": 0
                        },
                        "name": {
                          "type": "string",
                          "example": "Atandı"
                        }
                      }
                    },
                    "status_logs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "task_id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "courier_id": {
                            "type": "integer",
                            "example": 73,
                            "default": 0
                          },
                          "status_id": {
                            "type": "integer",
                            "example": 3,
                            "default": 0
                          },
                          "status_category_slug": {
                            "type": "string",
                            "example": "assigned"
                          },
                          "notes": {},
                          "lat": {},
                          "lng": {},
                          "latlng": {},
                          "geohash": {},
                          "created_at": {
                            "type": "string",
                            "example": "2022-05-05T10:54:58.000000Z"
                          },
                          "updated_at": {
                            "type": "string",
                            "example": "2022-05-05T10:54:58.000000Z"
                          },
                          "status": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 3,
                                "default": 0
                              },
                              "status_category_slug": {
                                "type": "string",
                                "example": "assigned"
                              },
                              "name": {
                                "type": "string",
                                "example": "Atandı"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "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:6602b14a5613fc002042a7b8"
}
```