Few questions related to API
I am just trying to use the APIs to do the initial setup and hitting few speed bumps..
- How to add labels using API ? I could only find service "serviceGetLabels". I am trying to create groups using the API, so far Ok, but I am not able to find the correct variables for adding labels.
- How to find the id of different entities. For example
bx_srv('system', 'update', ["bx_posts", 123, ["title" => "new title"]], 'TemplServiceContent');
Here the id 123. How can I find the correct id of the item ? Say I need categories of group.. Is there an API to return this, or any way to get it from Studio ?
-
-
·
LeonidS
- ·
Hello @highlightings !
1) If you mean how to add smth as the label which should be available in the forms - then there is no such method for now. If you mean how to save it via the form into some content info - then you may transfer the super global array like $_POST['labels'][]
2) In the given example the id of the post can be found in the bx_posts_posts table. If you have the deal with the profiles you may read about here:
-
·
LeonidS