{"id":336,"date":"2023-02-07T12:14:06","date_gmt":"2023-02-07T12:14:06","guid":{"rendered":"https:\/\/devdocs.resales-online.com\/index.php\/docs\/new-development-updates-api\/update-by-unit-name\/"},"modified":"2023-02-17T12:24:39","modified_gmt":"2023-02-17T12:24:39","slug":"update-by-unit-name","status":"publish","type":"docs","link":"https:\/\/devdocs.resales-online.com\/index.php\/docs\/new-development-updates-api\/update-by-unit-name\/","title":{"rendered":"Update by unit name"},"content":{"rendered":"\n<p>Update a development unit by a unit name and development project id.<\/p>\n\n\n\n<p>ATHORIZATIONS: This API use <strong>OAuth2<\/strong> with the client credentials flow<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Flow type: <code>clientCredentials<\/code><\/li>\n\n\n\n<li>Token URL: <code>https:\/\/api.propq.com\/oauth\/token<\/code><\/li>\n<\/ul>\n\n\n\n<p>END POINT: <code>https:\/\/api.propq.com\/v1\/developments\/{path_parameters}\/units\/update-by-name<\/code><\/p>\n\n\n\n<p>METHOD: <code>POST<\/code><\/p>\n\n\n\n<p>PATH PARAMETERS:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><em><strong>name<\/strong><\/em><\/td><td><em><strong>required<\/strong><\/em><\/td><td><em><strong>type<\/strong><\/em><\/td><td><strong><em>Value<\/em><\/strong><\/td><\/tr><tr><td>development_id<\/td><td><em>required<\/em><\/td><td>string<\/td><td>The ID of the development project<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>REQUEST BODY SCHEMA:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><em><strong>name<\/strong><\/em><\/td><td><em><strong>required<\/strong><\/em><\/td><td><em><strong>type<\/strong><\/em><\/td><td><strong><em>Value<\/em><\/strong><\/td><\/tr><tr><td>UntName<\/td><td><em>required<\/em><\/td><td>string<\/td><td>The name of the unit to be updated<\/td><\/tr><tr><td>UntStatus<\/td><td><em>required<\/em><\/td><td>number<\/td><td>Enum: <code>{\"1\":\"AVAILABLE\"}<\/code>  <code>{\"2\":\"HOLD\"}<\/code>  <code>{\"4\":\"SOLD\"}<\/code>  <code>{\"8\":\"RESERVED\"}<\/code><br>The new status of the unit<\/td><\/tr><tr><td>UntPrice<\/td><td><em>required<\/em><\/td><td>number<\/td><td>The new price of the unit<\/td><\/tr><tr><td>UntDirections<\/td><td><em>required<\/em><\/td><td>Array of arrays<\/td><td>The new direction list of the unit<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Example:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n    &quot;UntName&quot;: &quot;Test&quot;,\n    &quot;UntStatus&quot;: 1,\n    &quot;UntPrice&quot;: 123456,\n    &quot;UntDirections&quot;: \n    [\n        &quot;N&quot;,\n        &quot;S&quot;\n    ]\n}<\/code><\/pre><\/div>\n","protected":false},"featured_media":0,"parent":326,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-336","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/docs\/336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/comments?post=336"}],"version-history":[{"count":3,"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/docs\/336\/revisions"}],"predecessor-version":[{"id":407,"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/docs\/336\/revisions\/407"}],"up":[{"embeddable":true,"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/docs\/326"}],"next":[{"title":"Publish a development","link":"https:\/\/devdocs.resales-online.com\/index.php\/docs\/new-development-updates-api\/publish-a-development\/","href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/docs\/342"}],"prev":[{"title":"Authentication","link":"https:\/\/devdocs.resales-online.com\/index.php\/docs\/new-development-updates-api\/authentication\/","href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/docs\/327"}],"wp:attachment":[{"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/media?parent=336"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/doc_tag?post=336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}