I am trying to create a WebApp item and assign it to a category. This is the request body I am using:
{
"name": "test",
"slug": "test",
"enabled": "true",
"webapp_field_5_1": "",
"category": "23"
}
I have also tried using the category name, but that does not work.
Is it possible to set the category for a new WebApp item using the API?
Hi @Dan Maitland
When creating a WebApp item it can be set with a body element of
category_array
with the data being an array of IDs of those categories. So for example:”category_array”: [“123”,”456”]
Let me know how you get on
Thanks Dean your solution works
Hi @Dean Vizer , another problem I have had with the Siteglide API is setting the release date (or a custom field date). The date field is always being set to a default value of "1-Jan-1970", no matter what date I provide. I am using the 'HH:mm:ss - YYYY-MM-DD' format for the date. This is the request body I have been using to set the release date:
Any help with this would be much appreciated.
Date fields need to be in the format of unix timestamp in milliseconds. Such as:
"release_date": 1629191387000
We definitely need to improve our API docs here or show some examples of how default fields are formatted. I've made an internal task to get that added to the API
Thanks for the response Dean. More documentation would be great.