{"id":932,"date":"2024-01-28T13:37:35","date_gmt":"2024-01-28T13:37:35","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=932"},"modified":"2024-01-29T11:42:18","modified_gmt":"2024-01-29T11:42:18","slug":"get-category-attributes","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=932","title":{"rendered":"Get category attributes"},"content":{"rendered":"\r\n<h2>Get category attributes<\/h2>\r\n<p>Gets attribute definitions for given category<\/p>\r\n<h5>AUTHORIZATIONS:&gt; <i>access_token<\/i><\/h5>\r\n<h5>PATH\u00a0PARAMETERS<\/h5>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"categoryId\">categoryId required<\/td>\r\n<td>integer\r\n<p>Category ID<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h3>Responses<\/h3>\r\n<p><strong>200<\/strong><\/p>\r\n<p>Status 200<\/p>\r\n<h5>RESPONSE SCHEMA:\u00a0application\/json<\/h5>\r\n<p>Array<\/p>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"code\">code required<\/td>\r\n<td>string\r\n<p>Attribute code<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"label\">label required<\/td>\r\n<td>string<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"unit\">unit<\/td>\r\n<td>string\r\n<p>Attribute unit<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"validation\"><button aria-label=\"expand validation\">validation<\/button><\/td>\r\n<td>object\r\n<p>Attribute validation rules<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"values\"><button aria-label=\"expand values\">values<\/button><\/td>\r\n<td>Array of\u00a0objects\r\n<p>List of available values for an attribute<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<p>OLX Production Server<\/p>\r\n<p>https:\/\/www.olx.ro\/api\/partner\/categories\/{categoryId}\/attributes <code>GET\r\n\/categories\/{categoryId}\/attributes\r\nResponse samples\r\n200\r\nContent type\r\napplication\/json\r\n[\r\n{\r\n\"code\": \"price\",\r\n\"label\": \"Cena\",\r\n\"unit\": null,\r\n\"validation\": {},\r\n\"values\": [ ]\r\n}\r\n]\t\t\t<\/code> <button>Copy<\/button> GET \/categories\/{categoryId}\/attributes Response samples 200 Content type application\/json [ { &#8220;code&#8221;: &#8220;price&#8221;, &#8220;label&#8221;: &#8220;Cena&#8221;, &#8220;unit&#8221;: null, &#8220;validation&#8221;: {}, &#8220;values&#8221;: [ ] } ] Copied to clipboard<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Get category attributes Gets attribute definitions for given category AUTHORIZATIONS:&gt; access_token PATH\u00a0PARAMETERS categoryId required integer Category ID Responses 200 Status 200 RESPONSE SCHEMA:\u00a0application\/json Array code required string Attribute code label required string unit string Attribute unit validation object Attribute validation rules values Array of\u00a0objects List of available values for an attribute OLX Production Server https:\/\/www.olx.ro\/api\/partner\/categories\/{categoryId}\/attributes&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=932\" title=\"Read Get category attributes\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[91],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/932"}],"collection":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=932"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/932\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}