class UserNamespaceAuthorizationRestController extends HerdBaseController {

    @RequestMapping(value = USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX + "/userIds/{userId}/namespaces/{namespace}",
        method = RequestMethod.PUT,
        consumes = {"application/xml", "application/json"})
    @Secured(SecurityFunctions.FN_USER_NAMESPACE_AUTHORIZATIONS_PUT)
    public UserNamespaceAuthorization updateUserNamespaceAuthorization(@PathVariable("userId") String userId, @PathVariable("namespace") String namespace,
        @RequestBody UserNamespaceAuthorizationUpdateRequest request)
    {
        return userNamespaceAuthorizationService.updateUserNamespaceAuthorization(new UserNamespaceAuthorizationKey(userId, namespace), request);
    }

}