Get and Post only Enumeration values - problem with POST
![](http://jazz.net/_images/myphoto/225e6878448185a0eb29d567cb8d3e4e.jpg)
I have some enumeration that I can get values through Postman GET method with this URL:
https://server:port/jazz/oslc/enumerations/projectUID/test-enum?oslc_cm.properties=dc:title
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="http://www.w3.org/1999/xhtml">As far I know, I have all permissions as Admin User.
<head>
<title>Jazz - Permission Denied</title>
<link type="text/css" rel="stylesheet" href="/jazz/web/jazz.app/internal/templates/StaticLoginWidget.css"/>
</head>
<body>
<h2>Permission Denied</h2>
<div>Your account does not have the group memberships required to access the requested resource.</div>
</body>
</html>
How this can be accomplished? Is it possible to update only enumeration value with OSLC API?
One answer
![](http://jazz.net/_images/myphoto/225e6878448185a0eb29d567cb8d3e4e.jpg)
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.