Wiki
Clone wikiBibSonomy / documentation / api / methods / ChangeUserDetails
Change user details
Method | PUT |
---|---|
URL | https://www.bibsonomy.org/api/users/[username] |
Status codes
-
200 ok
-
400 bad request
- 401 Unauthorized
-
403 Forbidden
-
500 Internal Server Error
Example
Request:
curl -XPUT --user username:apikey "https://www.bibsonomy.org/api/users/username" --header "Content-Type:application/xml" -d \ '<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <bibsonomy> <user name="username" realname="newName"> </user> </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