@requires_auth<EOL><INDENT>def edit_prefix(self, args):<DEDENT>
try:<EOL><INDENT>res = self.nip.edit_prefix(args.get('<STR_LIT>'), args.get('<STR_LIT>'), args.get('<STR_LIT>'))<EOL>for prefix in res:<EOL><INDENT>prefix = _mangle_prefix(prefix)<EOL><DEDENT>return res<EOL><DEDENT>except (AuthError, NipapError) as exc:<EOL><INDENT>self.logger.debug(unicode(exc))<EOL>raise Fault(exc.error_code, unicode(exc))<EOL><DEDENT>
Edit prefix.

            Valid keys in the `args`-struct:

            * `auth` [struct]
                Authentication options passed to the :class:`AuthFactory`.
            * `prefix` [struct]
                Prefix attributes which describes what prefix(es) to edit.
            * `attr` [struct]
                Attribuets to set on the new prefix.