{"id":201,"date":"2021-03-16T04:11:21","date_gmt":"2021-03-16T04:11:21","guid":{"rendered":"http:\/\/developer.dev.tiki.services\/docs\/archives\/docs\/developer-document\/tiki-theory\/attribute"},"modified":"2021-03-16T04:11:21","modified_gmt":"2021-03-16T04:11:21","slug":"attribute","status":"publish","type":"docs","link":"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/attribute\/","title":{"rendered":"Attribute"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\"><p>Attribute example:<\/p><\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n      \"id\": 498,\n      \"code\": \"author\",\n      \"display_name\": \"Author\",\n      \"is_required\": 1\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Field<\/th><th>Type<\/th><th>Example<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>id<\/td><td>Integer<\/td><td>498<\/td><td>id of attribute<\/td><\/tr><tr><td>code<\/td><td>String<\/td><td>author<\/td><td>attribute code use to put into the attributes branch in payload<\/td><\/tr><tr><td>display_name<\/td><td>String<\/td><td>Author<\/td><td>the display name of this attribute<\/td><\/tr><tr><td>is_required<\/td><td>Integer<\/td><td>1\/0<\/td><td>user must complete all of required attribute in payload<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul><li>Only the primary category has attributes because other categories can&#8217;t add products, it&#8217;s so useless to have attributes.<\/li><li>Each category have some required attribute like <code>brand<\/code> . You have to complete this field base on our example.<\/li><li>But your side don&#8217;t have anything to map to these or you still don&#8217;t have any idea about this then I can give you a small tips.<br>It is you can complete required attribute with a dummy data like <code>updating<\/code> maybe it can bypass our automate review but I have to warn you if you abuse this TIKI content reviewer may reject your request.<\/li><\/ul>\n","protected":false},"featured_media":0,"parent":174,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Attribute - Open API docs<\/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:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/attribute\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Attribute - Open API docs\" \/>\n<meta property=\"og:description\" content=\"Attribute example: Field Type Example Description id Integer 498 id of attribute code String author attribute code use to put into the attributes branch in payload display_name String Author the display name of this attribute is_required Integer 1\/0 user must complete all of required attribute in payload Only the primary category has attributes because other [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/attribute\/\" \/>\n<meta property=\"og:site_name\" content=\"Open API docs\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/open.tiki.vn\/docs\/#website\",\"url\":\"https:\/\/open.tiki.vn\/docs\/\",\"name\":\"Open API docs\",\"description\":\"Open API docs\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/open.tiki.vn\/docs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/attribute\/#webpage\",\"url\":\"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/attribute\/\",\"name\":\"Attribute - Open API docs\",\"isPartOf\":{\"@id\":\"https:\/\/open.tiki.vn\/docs\/#website\"},\"datePublished\":\"2021-03-16T04:11:21+00:00\",\"dateModified\":\"2021-03-16T04:11:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/attribute\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/attribute\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/attribute\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/open.tiki.vn\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Current\",\"item\":\"https:\/\/open.tiki.vn\/docs\/docs\/current\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Guides\",\"item\":\"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"TIKI Theory\",\"item\":\"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Attribute\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Attribute - Open API docs","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:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/attribute\/","og_locale":"en_US","og_type":"article","og_title":"Attribute - Open API docs","og_description":"Attribute example: Field Type Example Description id Integer 498 id of attribute code String author attribute code use to put into the attributes branch in payload display_name String Author the display name of this attribute is_required Integer 1\/0 user must complete all of required attribute in payload Only the primary category has attributes because other [&hellip;]","og_url":"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/attribute\/","og_site_name":"Open API docs","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/open.tiki.vn\/docs\/#website","url":"https:\/\/open.tiki.vn\/docs\/","name":"Open API docs","description":"Open API docs","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/open.tiki.vn\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/attribute\/#webpage","url":"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/attribute\/","name":"Attribute - Open API docs","isPartOf":{"@id":"https:\/\/open.tiki.vn\/docs\/#website"},"datePublished":"2021-03-16T04:11:21+00:00","dateModified":"2021-03-16T04:11:21+00:00","breadcrumb":{"@id":"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/attribute\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/attribute\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/attribute\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/open.tiki.vn\/docs\/"},{"@type":"ListItem","position":2,"name":"Current","item":"https:\/\/open.tiki.vn\/docs\/docs\/current\/"},{"@type":"ListItem","position":3,"name":"Guides","item":"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/"},{"@type":"ListItem","position":4,"name":"TIKI Theory","item":"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/"},{"@type":"ListItem","position":5,"name":"Attribute"}]}]}},"_links":{"self":[{"href":"https:\/\/open.tiki.vn\/docs\/wp-json\/wp\/v2\/docs\/201"}],"collection":[{"href":"https:\/\/open.tiki.vn\/docs\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/open.tiki.vn\/docs\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/open.tiki.vn\/docs\/wp-json\/wp\/v2\/comments?post=201"}],"version-history":[{"count":0,"href":"https:\/\/open.tiki.vn\/docs\/wp-json\/wp\/v2\/docs\/201\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/open.tiki.vn\/docs\/wp-json\/wp\/v2\/docs\/174"}],"next":[{"title":"Variant","link":"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/variant\/","href":"https:\/\/open.tiki.vn\/docs\/wp-json\/wp\/v2\/docs\/203"}],"prev":[{"title":"Category","link":"https:\/\/open.tiki.vn\/docs\/docs\/current\/guides\/tiki-theory\/category\/","href":"https:\/\/open.tiki.vn\/docs\/wp-json\/wp\/v2\/docs\/200"}],"wp:attachment":[{"href":"https:\/\/open.tiki.vn\/docs\/wp-json\/wp\/v2\/media?parent=201"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/open.tiki.vn\/docs\/wp-json\/wp\/v2\/doc_tag?post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}