VMware Cloud Community
jmedd
Enthusiast
Enthusiast
Jump to solution

Error creating a Category with the REST API

vRO 7.0.1

I am trying to create a Category in the Workflow Root folder using the REST API.

URL = https://vroserver.fqdn:8281/vco/api/categories

Method = POST

The API docs suggest the body should be like this:

{

  "categoryType": "WorkflowCategory",

  "name": "Test5",

  "description": "Testing"

}

However, I only ever get a 400 Response: The request sent by the client was syntactically incorrect.

which the docs translate to: Category name must be specified

Can anyone help?

Blog: http://jonathanmedd.net | Twitter: @jonathanmedd
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

Request body should be:

{

   "type":"WorkflowCategory",

   "name":"Test5",

   "description":"Testing"

}

View solution in original post

0 Kudos
2 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

Request body should be:

{

   "type":"WorkflowCategory",

   "name":"Test5",

   "description":"Testing"

}

0 Kudos
jmedd
Enthusiast
Enthusiast
Jump to solution

Great, thanks!

Would be a good idea for someone to update the documenation (see attached image) Smiley Happy

Blog: http://jonathanmedd.net | Twitter: @jonathanmedd