Status: Open
Status: Answered
Status: Closed
Status: Duplicate

REST API CS16 example of how to add category to NodeID

Posted Oct 25 by Roger Hiltpold.

I'm trying to find an example where a category is added to a NodeID, using the following REST API method in CS16.2:
POST api/v1/nodes/{id}/categories
api/v1/nodes/{NodeID}/categories/{category NodeID}

I have tried the following examples, but all end with "Bad Command":

Category NodeID=561765

Am I missing some parameter or do I have to include category version?

1 Answer

BEST ANSWER: As chosen by the author.

I am using following to attach a category (103217) and set values into a text field property (103217_2) in 16.0. Should work in 16.2 too.

POST /api/v1/nodes/271757/categories

 You have subscribed and will receive email notifications of updates to this topic. To unsubscribe, uncheck the checkbox.


Related categories

Your answer

To leave an answer, please sign in.