Membuat tugas baru di daftar tugas yang ditentukan. Tugas yang ditetapkan dari Dokumen atau Ruang Chat tidak dapat disisipkan dari Tasks Public API; tugas hanya dapat dibuat dengan menetapkannya dari Dokumen atau Ruang Chat. Pengguna dapat memiliki maksimal 20.000 tugas yang tidak disembunyikan per daftar dan total hingga 100.000 tugas sekaligus.
Permintaan HTTP
POST https://tasks.googleapis.com/tasks/v1/lists/{tasklist}/tasks
ID tugas induk. Jika tugas dibuat di tingkat teratas, parameter ini akan dihilangkan. Tugas yang ditetapkan tidak boleh berupa tugas induk, dan tidak boleh memiliki induk. Menetapkan induk ke tugas yang ditetapkan akan menyebabkan kegagalan permintaan. Opsional.
previous
string
ID tugas saudara sebelumnya. Jika tugas dibuat di posisi pertama di antara saudaranya, parameter ini akan dihilangkan. Opsional.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-25 UTC."],[],[],null,["# Method: tasks.insert\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a new task on the specified task list. Tasks assigned from Docs or Chat Spaces cannot be inserted from Tasks Public API; they can only be created by assigning them from Docs or Chat Spaces. A user can have up to 20,000 non-hidden tasks per list and up to 100,000 tasks in total at a time.\n\n### HTTP request\n\n`POST https://tasks.googleapis.com/tasks/v1/lists/{tasklist}/tasks`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|--------------------------------|\n| `tasklist` | `string` Task list identifier. |\n\n### Query parameters\n\n| Parameters ||\n|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Parent task identifier. If the task is created at the top level, this parameter is omitted. An assigned task cannot be a parent task, nor can it have a parent. Setting the parent to an assigned task results in failure of the request. Optional. |\n| `previous` | `string` Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional. |\n\n### Request body\n\nThe request body contains an instance of [Task](/workspace/tasks/reference/rest/v1/tasks#Task).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Task](/workspace/tasks/reference/rest/v1/tasks#Task).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/tasks`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]