Is your question related to the free trial, or to a production (customer) instance?
Production
What are you trying to achieve? Please describe it in detail.
Append custom fragment to a Managed object using InventoryApi.update()
Code works when run from a remote connection from IntelliJ but when deployed on the server I get 403
I have ROLE_INVENTORY_ADMIN declared in the cumulocity.json and I checked that there is a permission on the micro-service after deploying.
Do you get any error messages? Please provide a full error message screenshot and log file.
2023-03-09 10:55:36.738 INFO 13 --- [http-nio-80-exec-3] i.c.a.m.mgm.controller.ModelController : Response of model pull: 200 OK
2023-03-09 10:55:36.738 INFO 13 --- [http-nio-80-exec-3] i.c.a.m.mgm.controller.ModelController : Uploading model to Zementis...
2023-03-09 10:55:37.365 INFO 13 --- [http-nio-80-exec-3] i.c.a.m.mgm.controller.ModelController : Response of model push: 201 CREATED
2023-03-09 10:55:37.366 INFO 13 --- [http-nio-80-exec-3] i.c.a.m.m.service.ManagedObjectService : Attaching model metadata to ManagedObject
2023-03-09 10:55:37.779 WARN 13 --- [http-nio-80-exec-3] c.c.m.context.ContextServiceImpl : execution of task failed within tenant : t71212956 - org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.cumulocity.sdk.client.SDKException: Http status code: 403
{error="security/Forbidden",message="Access is denied",info="https://www.cumulocity.com/guides/reference/rest-implementation//#a-name-error-reporting-a-error-reporting",details="null"}
Have you installed all the latest fixes for the products and systems you are using?
Thanks Stefan. Of course you are correct, it works. Much appreciated. I checked requirements for upload but I assumed that admin can read. This is my bad.
Have a great day.