Returning 404 error when asking for userboostrap in microservices

651 Views Asked by At

I'm trying to develop microservices on cumulocity. I'm following this https://cumulocity.com/guides/microservice-sdk/java/. I'm able to create the application having this response

"availability": "MARKET",
"id": "23",
"key": "TESTMICRO-microservice-key",
"manifest": {
"imports": [],
"noAppSwitcher": true
},
"name": "TESTMICRO",
"owner": {
"self": "my_tenant/tenant/tenants/management",
"tenant": {
"id": "management"
}
},
"requiredRoles": [
"ROLE_INVENTORY_READ"
],
"roles": [
"ROLE_CUSTOM_MICROSERVICE"
],
"self": "my_tenant/application/applications/23",
"type": "MICROSERVICE"
}

Nevertheless when I try the GET URL/application/applications/23/bootstrapUser it returns me 404 Error.

Anyone that can help me?

1

There are 1 best solutions below

2
On

You probably need to subscribe the application to the tenant:

POST {{url}}/tenant/tenants/{{tenant}}/applications

Body

{
   "application": {
      "id": "{APPLICATION_ID}"
   }
}