Clone wiki

BibSonomy / documentation / api / methods / CreateUser

Create user

Method POST
URL https://www.bibsonomy.org/api/users

Hint: you can't change the user's name once its created.

Status codes

  • 201 created

  • 400 bad request

  • 401 Unauthorized
  • 403 Forbidden

  • 500 Internal Server Error

Example

Request:

curl -XPOST --user  username:apikey "https://www.bibsonomy.org/api/users" --header "Content-Type:application/xml" -d '
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bibsonomy>
  <user name="username" realname="Max Mustermann" password="secret" email="mustermann@web.de"/>
</bibsonomy>'

Response:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bibsonomy stat="ok">
    <userid>username</userid>
</bibsonomy>

XML Schema

<!--
  a user
-->
<xsd:complexType name="UserType">
  <xsd:sequence>
    <xsd:element name="groups" type="GroupsType" minOccurs="0" maxOccurs="1"/>
  </xsd:sequence>
  <xsd:attribute name="name" type="xsd:string" use="required" />
  <xsd:attribute name="realname" type="xsd:string" />
  <xsd:attribute name="email" type="xsd:string" />
  <xsd:attribute name="homepage" type="xsd:string" />
  <xsd:attribute name="href" type="xsd:anyURI" />
</xsd:complexType>

Updated