It's all about the answers!

Ask a question

Get and Post only Enumeration values - problem with POST

Janko Maksic (633) | asked Feb 15 '18, 4:46 a.m.

 I have some enumeration that I can get values through Postman GET method with this URL:


And JSON looks like this

        "rdf:resource": "https://server:port/jazz/oslc/enumerations/projectUID/test-enum/test-enum.literal.l1",
        "dc:title": "value1"
        "rdf:resource": "https://server:port/jazz/oslc/enumerations/projectUID/test-enum/test-enum.literal.l2",
        "dc:title": "value 2"

Why I can't POST some new value over old one?
I have basic authorization with accept and content-type headers as application/json.
If I use resource URL in POST method  https://server:port/jazz/oslc/enumerations/projectUID/test-enum/test-enum.literal.l1 and try to change value from "value 1" to say "value 9856 "I get message:

<html xmlns="">
        <title>Jazz - Permission Denied</title>
        <link type="text/css" rel="stylesheet" href="/jazz/web/"/>
        <h2>Permission Denied</h2>
        <div>Your account does not have the group memberships required to access the requested resource.</div>
As far I know, I have all permissions as Admin User.
How this can be accomplished? Is it possible to update only enumeration value with OSLC API?

One answer

permanent link
Donald Nong (14.4k313) | answered Feb 19 '18, 2:03 a.m.

You cannot do that - the OSLC API has no implementation to allow you to add or modify enumeration definitions like that. The permission denied message is caused by a missing request header "X-Jazz-CSRF-Prevent" (its value should be the current JSESSIONID cookie), which is required for most if not all POST operations against CLM applications. When you get rid of the permission restriction, you should get an HTTP 405 "Method Not Allowed" response for either a PUT or POST operation.

Janko Maksic commented Feb 19 '18, 2:41 a.m.

 How than can this be implemented? Can you point me to some direction what to look for...

Donald Nong commented Feb 21 '18, 1:10 a.m.

You just do on using Web UI.

Your answer

Register or to post your answer.