'* POST /api/libraries:
Creates a new library.
.. note:: Currently, only admin users can create libraries.
:param  payload: dictionary structure containing::
:param name:         (required) the new library\'s name
:type  name:         str
:param description:  the new library\'s description
:type  description:  str
:param synopsis:     the new library\'s synopsis
:type  synopsis:     str
:type   payload: dict
:returns:   detailed library information
:rtype:     dict
:raises: RequestParameterMissingException'

@expose_api
def create(self, trans, payload=None, **kwd):

    if payload:
        kwd.update(payload)
    name = kwd.get('name', None)
    if (not name):
        raise exceptions.RequestParameterMissingException("Missing    required    parameter    'name'.")
    description = kwd.get('description', '')
    synopsis = kwd.get('synopsis', '')
    if (synopsis in ['None', None]):
        synopsis = ''
    library = self.library_manager.create(trans, name, description, synopsis)
    library_dict = self.library_manager.get_library_dict(trans, library)
    return library_dict
