{"id":23143,"date":"2025-07-18T14:10:22","date_gmt":"2025-07-18T14:10:22","guid":{"rendered":"https:\/\/leanmote.com\/docs\/set-up\/rest-api\/tasks\/post-tasks\/"},"modified":"2025-09-19T16:10:26","modified_gmt":"2025-09-19T16:10:26","slug":"post-tasks","status":"publish","type":"docs","link":"https:\/\/leanmote.com\/es\/docs\/set-up\/rest-api\/tasks\/post-tasks\/","title":{"rendered":"[POST] tasks"},"content":{"rendered":"<h4 class=\"wp-block-heading\">POST \/api\/v1\/tasks<\/h4>\n\n\n\n<p>Creates or updates tasks. If the task already exists (based on <code>task_app_id<\/code>), it will be updated; otherwise, it will be created. The project must exist beforehand.<\/p>\n\n\n\n<p><strong>Required Body Parameters:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>tasks<\/code> (array): list of task objects containing:\n<ul class=\"wp-block-list\">\n<li><code>project_id<\/code> (integer): ID of the associated project in Leanmote<\/li>\n\n\n\n<li><code>task_app_id<\/code> (string): unique identifier for the task in the external tool<\/li>\n\n\n\n<li><code>task_name<\/code> (string): name\/title of the task<\/li>\n\n\n\n<li><code>created_at<\/code> (string): UTC timestamp of task creation<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><strong>Optional Parameters:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>task_url<\/code> (string): direct URL to the task in the external tool<\/li>\n\n\n\n<li><code>owner_id<\/code> (string): external ID of the task owner<\/li>\n\n\n\n<li><code>owner_name<\/code> (string): name of the task owner<\/li>\n\n\n\n<li><code>parent_task_id<\/code> (integer): ID of the parent task in Leanmote (must exist if provided and must belong to the same board as the child)<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"tasks\": &#91;\n    {\n      \"project_id\": 1,\n      \"task_app_id\": \"TASK-001\",\n      \"task_name\": \"Implement OAuth2 Authentication\",\n      \"task_url\": \"https:\/\/client.com\/tasks\/TASK-001\",\n      \"owner_id\": \"user-123\",\n      \"owner_name\": \"John Doe\",\n      \"parent_task_id\": 3,\n      \"created_at\": \"2024-01-20 09:00:00\"\n    }\n  ]\n}<\/code><\/pre>\n\n\n\n<p><strong>Example Response:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"status\": \"success\",\n  \"message\": \"Tasks processed successfully\",\n  \"data\": {\n    \"processed_tasks\": &#91;\n      {\n        \"project_id\": 1,\n        \"task_id\": 1,\n        \"task_app_id\": \"TASK-001\",\n        \"action\": \"created\",\n        \"task_id\": 101\n      }\n    ]\n  }\n}<\/code><\/pre>\n\n\n\n<p><strong>Validations:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2705 The project must exist<\/li>\n\n\n\n<li>\u2705 The project must belong to an organization within the token scope<\/li>\n\n\n\n<li>\u2705 If provided, <code>parent_task_id<\/code> must correspond to an existing task<\/li>\n\n\n\n<li>\u2705 The date format must be valid UTC<\/li>\n\n\n\n<li>\u2705 All required fields must be present<\/li>\n<\/ul>\n\n\n\n<p><strong>Error Codes:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>400: Invalid input data<\/li>\n\n\n\n<li>401: Invalid or missing token<\/li>\n\n\n\n<li>403: Organization out of token scope<\/li>\n\n\n\n<li>404: Project or parent task not found<\/li>\n\n\n\n<li>500: Internal server error<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>POST \/api\/v1\/tasks Creates or updates tasks. If the task already exists (based on task_app_id), it will be updated; otherwise, it will be created. The project must exist beforehand. Required Body Parameters: Optional Parameters: Example Response: Validations: Error Codes:<\/p>","protected":false},"author":3,"featured_media":0,"parent":23133,"menu_order":4,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-23143","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[POST] tasks - Leanmote<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/leanmote.com\/es\/docs\/set-up\/rest-api\/tasks\/post-tasks\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[POST] tasks - Leanmote\" \/>\n<meta property=\"og:description\" content=\"POST \/api\/v1\/tasks Creates or updates tasks. If the task already exists (based on task_app_id), it will be updated; otherwise, it will be created. The project must exist beforehand. Required Body Parameters: Optional Parameters: Example Response: Validations: Error Codes:\" \/>\n<meta property=\"og:url\" content=\"https:\/\/leanmote.com\/es\/docs\/set-up\/rest-api\/tasks\/post-tasks\/\" \/>\n<meta property=\"og:site_name\" content=\"Leanmote\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/leanmote.au\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-19T16:10:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/leanmote.com\/wp-content\/uploads\/2021\/11\/leanmote-share.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"453\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@Leanmote1\" \/>\n<meta name=\"twitter:label1\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/leanmote.com\\\/docs\\\/set-up\\\/rest-api\\\/tasks\\\/post-tasks\\\/\",\"url\":\"https:\\\/\\\/leanmote.com\\\/docs\\\/set-up\\\/rest-api\\\/tasks\\\/post-tasks\\\/\",\"name\":\"[POST] tasks - Leanmote\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/leanmote.com\\\/#website\"},\"datePublished\":\"2025-07-18T14:10:22+00:00\",\"dateModified\":\"2025-09-19T16:10:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/leanmote.com\\\/docs\\\/set-up\\\/rest-api\\\/tasks\\\/post-tasks\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/leanmote.com\\\/docs\\\/set-up\\\/rest-api\\\/tasks\\\/post-tasks\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/leanmote.com\\\/docs\\\/set-up\\\/rest-api\\\/tasks\\\/post-tasks\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.leanmote.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Administration\",\"item\":\"https:\\\/\\\/leanmote.com\\\/docs\\\/set-up\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"REST API\",\"item\":\"https:\\\/\\\/leanmote.com\\\/docs\\\/set-up\\\/rest-api\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Tasks\",\"item\":\"https:\\\/\\\/leanmote.com\\\/docs\\\/set-up\\\/rest-api\\\/tasks\\\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"[POST] tasks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/leanmote.com\\\/#website\",\"url\":\"https:\\\/\\\/leanmote.com\\\/\",\"name\":\"Leanmote\",\"description\":\"Faster Projects, Leaner Teams, Lower Costs. Leanmote optimizes workflows, costs, and guides your teams - enabling leaders to actively manage performance and hit strategic goals.\",\"publisher\":{\"@id\":\"https:\\\/\\\/leanmote.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/leanmote.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/leanmote.com\\\/#organization\",\"name\":\"Leanmote\",\"url\":\"https:\\\/\\\/leanmote.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/leanmote.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/leanmote.com\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/leanmote-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/leanmote.com\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/leanmote-logo.jpg\",\"width\":625,\"height\":175,\"caption\":\"Leanmote\"},\"image\":{\"@id\":\"https:\\\/\\\/leanmote.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/leanmote.au\",\"https:\\\/\\\/x.com\\\/Leanmote1\",\"https:\\\/\\\/www.instagram.com\\\/leanmote.au\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/leanmote\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCIvphN0fePUw1F4c32OXjdg\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[POST] tasks - Leanmote","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/leanmote.com\/es\/docs\/set-up\/rest-api\/tasks\/post-tasks\/","og_locale":"es_ES","og_type":"article","og_title":"[POST] tasks - Leanmote","og_description":"POST \/api\/v1\/tasks Creates or updates tasks. If the task already exists (based on task_app_id), it will be updated; otherwise, it will be created. The project must exist beforehand. Required Body Parameters: Optional Parameters: Example Response: Validations: Error Codes:","og_url":"https:\/\/leanmote.com\/es\/docs\/set-up\/rest-api\/tasks\/post-tasks\/","og_site_name":"Leanmote","article_publisher":"https:\/\/www.facebook.com\/leanmote.au","article_modified_time":"2025-09-19T16:10:26+00:00","og_image":[{"width":750,"height":453,"url":"https:\/\/leanmote.com\/wp-content\/uploads\/2021\/11\/leanmote-share.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@Leanmote1","twitter_misc":{"Tiempo de lectura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/leanmote.com\/docs\/set-up\/rest-api\/tasks\/post-tasks\/","url":"https:\/\/leanmote.com\/docs\/set-up\/rest-api\/tasks\/post-tasks\/","name":"[POST] tasks - Leanmote","isPartOf":{"@id":"https:\/\/leanmote.com\/#website"},"datePublished":"2025-07-18T14:10:22+00:00","dateModified":"2025-09-19T16:10:26+00:00","breadcrumb":{"@id":"https:\/\/leanmote.com\/docs\/set-up\/rest-api\/tasks\/post-tasks\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/leanmote.com\/docs\/set-up\/rest-api\/tasks\/post-tasks\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/leanmote.com\/docs\/set-up\/rest-api\/tasks\/post-tasks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.leanmote.com\/"},{"@type":"ListItem","position":2,"name":"Administration","item":"https:\/\/leanmote.com\/docs\/set-up\/"},{"@type":"ListItem","position":3,"name":"REST API","item":"https:\/\/leanmote.com\/docs\/set-up\/rest-api\/"},{"@type":"ListItem","position":4,"name":"Tasks","item":"https:\/\/leanmote.com\/docs\/set-up\/rest-api\/tasks\/"},{"@type":"ListItem","position":5,"name":"[POST] tasks"}]},{"@type":"WebSite","@id":"https:\/\/leanmote.com\/#website","url":"https:\/\/leanmote.com\/","name":"Leanmote.","description":"Faster Projects, Leaner Teams, Lower Costs. Leanmote optimizes workflows, costs, and guides your teams - enabling leaders to actively manage performance and hit strategic goals.","publisher":{"@id":"https:\/\/leanmote.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/leanmote.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/leanmote.com\/#organization","name":"Leanmote.","url":"https:\/\/leanmote.com\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/leanmote.com\/#\/schema\/logo\/image\/","url":"https:\/\/leanmote.com\/wp-content\/uploads\/2021\/11\/leanmote-logo.jpg","contentUrl":"https:\/\/leanmote.com\/wp-content\/uploads\/2021\/11\/leanmote-logo.jpg","width":625,"height":175,"caption":"Leanmote"},"image":{"@id":"https:\/\/leanmote.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/leanmote.au","https:\/\/x.com\/Leanmote1","https:\/\/www.instagram.com\/leanmote.au\/","https:\/\/www.linkedin.com\/company\/leanmote","https:\/\/www.youtube.com\/channel\/UCIvphN0fePUw1F4c32OXjdg"]}]}},"_links":{"self":[{"href":"https:\/\/leanmote.com\/es\/wp-json\/wp\/v2\/docs\/23143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/leanmote.com\/es\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/leanmote.com\/es\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/leanmote.com\/es\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/leanmote.com\/es\/wp-json\/wp\/v2\/comments?post=23143"}],"version-history":[{"count":8,"href":"https:\/\/leanmote.com\/es\/wp-json\/wp\/v2\/docs\/23143\/revisions"}],"predecessor-version":[{"id":23784,"href":"https:\/\/leanmote.com\/es\/wp-json\/wp\/v2\/docs\/23143\/revisions\/23784"}],"up":[{"embeddable":true,"href":"https:\/\/leanmote.com\/es\/wp-json\/wp\/v2\/docs\/23133"}],"wp:attachment":[{"href":"https:\/\/leanmote.com\/es\/wp-json\/wp\/v2\/media?parent=23143"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/leanmote.com\/es\/wp-json\/wp\/v2\/doc_tag?post=23143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}