thrownewResourceException(Status.CLIENT_ERROR_NOT_FOUND.getCode(),"User info with key '"+key+"' does not exists for user '"+user.getId()+"'.",null,null);
thrownewResourceException(Status.CLIENT_ERROR_NOT_FOUND.getCode(),"User info with key '"+key+"' does not exists for user '"+user.getId()+"'.",null,null);
All request values are optional. For example, you can only include the 'firstName' attribute in the request body JSON-object, only updating the firstName of the user, leaving all other fields unaffected. When an attribute is explicitly included and is set to null, the user-value will be updated to null. Example: <literal>{"firstName" : null}</literal> will clear the firstName of the user).
</para>
<para>
<table>
<title>Response codes</title>
<tgroupcols='2'>
<thead>
<row>
<entry>Response code</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry>201</entry>
<entry>Indicates the user was created.</entry>
</row>
<row>
<entry>400</entry>
<entry>Indicates the id of the user was missing.</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
<para>
<emphasisrole="bold">Success response body:</emphasis> see response for <literal>identity/users/{userId}</literal>.
</para>
</section>
...
...
@@ -4674,7 +4719,7 @@ Only the attachment name is required to create a new attachment.
<entry>Indicates the user was found and the user has info for the given key..</entry>
</row>
<row>
<entry>404</entry>
<entry>Indicates the requested user was not found or the user doesn't have info for the given key. Status description contains additional information about the error.</entry>
<entry>Indicates the user was found and the info has been updated.</entry>
</row>
<row>
<entry>400</entry>
<entry>Indicates the value was missing from the request body.</entry>
</row>
<row>
<entry>404</entry>
<entry>Indicates the requested user was not found or the user doesn't have info for the given key. Status description contains additional information about the error.</entry>
<entry>The id of the user to delete the info for.</entry>
</row>
<row>
<entry>key</entry>
<entry>Yes</entry>
<entry>String</entry>
<entry>The key of the user info to delete.</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
<para>
<table>
<title>Response codes</title>
<tgroupcols='2'>
<thead>
<row>
<entry>Response code</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry>204</entry>
<entry>Indicates the user was found and the info for the given key has been deleted. Response body is left empty intentionally.</entry>
</row>
<row>
<entry>404</entry>
<entry>Indicates the requested user was not found or the user doesn't have info for the given key. Status description contains additional information about the error.</entry>