curl --request POST \
--url https://api.example.com/admin/category/parent/assign \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"categoryID": 123,
"newParentID": 123
}
'{
"success": true,
"data": "<unknown>"
}Assign the parent to category.
curl --request POST \
--url https://api.example.com/admin/category/parent/assign \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"categoryID": 123,
"newParentID": 123
}
'{
"success": true,
"data": "<unknown>"
}