SnarkWay
SnarkWay

Reputation: 11

SAP CAP: PATCH call for OData.Draft.enabled Entity returns 404

For my SAP CAP Bookstore app, I am trying to make a PATCH call from my Workflow App via Service Task (PATCH).

This worked fine. Now we changed the target app to @OData.Draft.Enabled which adds an appendix to the target URL. Through that the PATCH call does not work any more as you can see in the screenshots.

Before OData.Draft.Enabled → field "title" changed successfully

enter image description here

Including OData.Draft.Enabled - the GET Request in that scenario worked fine and responded the desired data.

enter image description here

Does anyone know about this?

I would much appreciate any thoughts/hints for a potential solution.

Upvotes: 1

Views: 844

Answers (1)

Ben Nelligan
Ben Nelligan

Reputation: 1

Since you're getting a 404 I would check your user Authorization Roles.

Assuming your service has "@requires: 'authenticated-user'" as an annotation, you need to go to the story board and define user roles.

Upvotes: 0

Related Questions