{"id":23135,"date":"2025-07-18T14:05:59","date_gmt":"2025-07-18T14:05:59","guid":{"rendered":"https:\/\/leanmote.com\/docs\/set-up\/rest-api\/best-practices\/"},"modified":"2025-07-18T15:56:43","modified_gmt":"2025-07-18T15:56:43","slug":"best-practices","status":"publish","type":"docs","link":"https:\/\/leanmote.com\/es\/docs\/set-up\/rest-api\/best-practices\/","title":{"rendered":"Best Practices"},"content":{"rendered":"<p>To ensure smooth data integration and performance, we recommend following these guidelines when using the Leanmote API:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Integration Flow<\/h4>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Fetch Organization Info First:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Use <code>GET \/api\/v1\/organizations<\/code> to obtain the <code>organization_id<\/code> needed for all subsequent operations.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Create Projects Before Tasks:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Use <code>POST \/api\/v1\/projects<\/code> to ensure each project exists before adding tasks to it.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Define Statuses Before Creating Tasks:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Use <code>POST \/api\/v1\/projects\/{project_id}\/statuses<\/code> to define the complete workflow for a project.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Insert Tasks:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Use <code>POST \/api\/v1\/tasks<\/code> after setting up projects and statuses.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Insert Status Logs Chronologically:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Use <code>POST \/api\/v1\/tasks\/{task_id}\/status-logs<\/code> and send logs in the correct date order for accurate cycle time and flow tracking.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Real-Time Sync &amp; Updates<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ud83d\udd04 <strong>Only send updated entities<\/strong>: Avoid sending unchanged data repeatedly.<\/li>\n\n\n\n<li>\u2705 <strong>Validate references before syncing<\/strong>: Ensure that project, status, and task IDs exist before referencing them.<\/li>\n\n\n\n<li>\ud83d\udc41\ufe0f <strong>Monitor for duplicates<\/strong>: While duplicates are automatically detected, avoiding them improves performance and clarity.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Optimization Tips<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ud83d\udce6 <strong>Use batch operations<\/strong>: Send data in arrays to minimize API calls and improve performance.<\/li>\n\n\n\n<li>\ud83d\udcc5 <strong>Validate date formats<\/strong>: Always use valid UTC datetime strings.<\/li>\n\n\n\n<li>\u26a0\ufe0f <strong>Handle warnings<\/strong>: Pay attention to response messages and warnings to prevent silent errors.<\/li>\n<\/ul>\n\n\n\n<p>Following these best practices will help ensure robust and scalable integrations with Leanmote\u2019s platform.<\/p>","protected":false},"excerpt":{"rendered":"<p>To ensure smooth data integration and performance, we recommend following these guidelines when using the Leanmote API: Integration Flow Real-Time Sync &amp; Updates Optimization Tips Following these best practices will help ensure robust and scalable integrations with Leanmote\u2019s platform.<\/p>","protected":false},"author":3,"featured_media":0,"parent":23120,"menu_order":2,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-23135","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>Best Practices - 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:\/\/www.leanmote.com\/docs\/set-up\/rest-api\/best-practices\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Best Practices - Leanmote\" \/>\n<meta property=\"og:description\" content=\"To ensure smooth data integration and performance, we recommend following these guidelines when using the Leanmote API: Integration Flow Real-Time Sync &amp; Updates Optimization Tips Following these best practices will help ensure robust and scalable integrations with Leanmote\u2019s platform.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.leanmote.com\/docs\/set-up\/rest-api\/best-practices\/\" \/>\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-07-18T15:56:43+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:\\\/\\\/www.leanmote.com\\\/docs\\\/set-up\\\/rest-api\\\/best-practices\\\/\",\"url\":\"https:\\\/\\\/www.leanmote.com\\\/docs\\\/set-up\\\/rest-api\\\/best-practices\\\/\",\"name\":\"Best Practices - Leanmote\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/leanmote.com\\\/#website\"},\"datePublished\":\"2025-07-18T14:05:59+00:00\",\"dateModified\":\"2025-07-18T15:56:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.leanmote.com\\\/docs\\\/set-up\\\/rest-api\\\/best-practices\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.leanmote.com\\\/docs\\\/set-up\\\/rest-api\\\/best-practices\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.leanmote.com\\\/docs\\\/set-up\\\/rest-api\\\/best-practices\\\/#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\":\"Best Practices\"}]},{\"@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":"Best Practices - 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:\/\/www.leanmote.com\/docs\/set-up\/rest-api\/best-practices\/","og_locale":"es_ES","og_type":"article","og_title":"Best Practices - Leanmote","og_description":"To ensure smooth data integration and performance, we recommend following these guidelines when using the Leanmote API: Integration Flow Real-Time Sync &amp; Updates Optimization Tips Following these best practices will help ensure robust and scalable integrations with Leanmote\u2019s platform.","og_url":"https:\/\/www.leanmote.com\/docs\/set-up\/rest-api\/best-practices\/","og_site_name":"Leanmote","article_publisher":"https:\/\/www.facebook.com\/leanmote.au","article_modified_time":"2025-07-18T15:56:43+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:\/\/www.leanmote.com\/docs\/set-up\/rest-api\/best-practices\/","url":"https:\/\/www.leanmote.com\/docs\/set-up\/rest-api\/best-practices\/","name":"Best Practices - Leanmote","isPartOf":{"@id":"https:\/\/leanmote.com\/#website"},"datePublished":"2025-07-18T14:05:59+00:00","dateModified":"2025-07-18T15:56:43+00:00","breadcrumb":{"@id":"https:\/\/www.leanmote.com\/docs\/set-up\/rest-api\/best-practices\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.leanmote.com\/docs\/set-up\/rest-api\/best-practices\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.leanmote.com\/docs\/set-up\/rest-api\/best-practices\/#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":"Best Practices"}]},{"@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\/23135","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=23135"}],"version-history":[{"count":3,"href":"https:\/\/leanmote.com\/es\/wp-json\/wp\/v2\/docs\/23135\/revisions"}],"predecessor-version":[{"id":23168,"href":"https:\/\/leanmote.com\/es\/wp-json\/wp\/v2\/docs\/23135\/revisions\/23168"}],"up":[{"embeddable":true,"href":"https:\/\/leanmote.com\/es\/wp-json\/wp\/v2\/docs\/23120"}],"wp:attachment":[{"href":"https:\/\/leanmote.com\/es\/wp-json\/wp\/v2\/media?parent=23135"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/leanmote.com\/es\/wp-json\/wp\/v2\/doc_tag?post=23135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}