cpatrianakos
Customer
dbtech-ecommerce/categories/{id}/
Updates the specified category
Parameters
Input | Type | Description |
---|---|---|
category[title] | string | |
category[description] | string | |
category[parent_node_id] | integer | |
category[display_order] | integer |
On the above, I am struggling to figure out the Parameters.
as you can see, I tried a few different things here. I can make a post to update a Category, but it just isnt reading any of my Edits.
C#:
var category = new Dictionary<string, object>
{
{ "category[title]", $"{title}" },
{ "description", description },
{ "parent_category_id", NP.Parent_Category_ID.text },
{ "display_order", NP.Display_Order.text }
};
string json = JsonConvert.SerializeObject(new { category });
as you see, I try a few different ideas between the different paameters, nothing I tried has seemed to work. the fact that you have brackets in the text tells me I am missing something. I figured out how to use the "Context[]" ones, but this one seems to go above my head.