You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/includes/v3/_products.md
+117Lines changed: 117 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ This section lists all API endpoints that can be used to create, edit or otherwi
58
58
|`parent_id`| integer | Product parent ID (post_parent) |
59
59
|`categories`| array | List of product categories names (`string`). In write-mode need to pass a array of categories IDs (`integer`) ([uses wp_set_object_terms()](http://codex.wordpress.org/Function_Reference/wp_set_object_terms)) |
60
60
|`tags`| array | List of product tags names (`string`). In write-mode need to pass a array of tags IDs (`integer`) ([uses wp_set_object_terms()](http://codex.wordpress.org/Function_Reference/wp_set_object_terms)) |
61
+
|`brands`| array | List of product brands. See [Brands Properties](#brands-properties). In write-mode pass an array of brand objects with `id` property ([uses wp_set_object_terms()](http://codex.wordpress.org/Function_Reference/wp_set_object_terms)) |
61
62
|`images`| array | List of products images. See [Images Properties](#images-properties)|
62
63
|`featured_src`| string | Featured image URL <iclass="label label-info">read-only</i> |
63
64
|`attributes`| array | List of product attributes. See [Attributes Properties](#attributes-properties). Note: the attribute must be registered in WooCommerce before. |
@@ -103,6 +104,14 @@ This section lists all API endpoints that can be used to create, edit or otherwi
103
104
<code>alt</code> and <code>title</code> attributes are writable starting from WooCommerce 2.5.
0 commit comments