Wiki

Clone wiki

BibSonomy / documentation / api / methods / ChangePersonDetails

Change Person Details

Method PUT
URL https://www.bibsonomy.org/api/persons/[personid]

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/persons/personid" --header "Content-Type:application/xml" -d \
'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bibsonomy>
    <person homepage="https://www.bibsonomy.org"/>
</bibsonomy>'

Response:

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

XML Schema

<!--
  a person
-->
<xsd:complexType name="PersonType">
    <xsd:complexContent>
        <xsd:extension base="LinkableType">
            <xsd:sequence>
                <xsd:element name="mainName" type="PersonNameType" />
                <xsd:element name="names" type="PersonNameType" minOccurs="0" maxOccurs="unbounded" />
                <xsd:element name="user" type="UserType" minOccurs="0" />
            </xsd:sequence>
            <xsd:attribute name="college" type="xsd:string" />
            <xsd:attribute name="academicDegree" type="xsd:string" />
            <xsd:attribute name="personId" type="xsd:string" />
            <xsd:attribute name="homepage" type="xsd:anyURI" />
            <xsd:attribute name="email" type="xsd:string" />
            <xsd:attribute name="orcid" type="xsd:string" />
            <xsd:attribute name="gender" type="GenderType" />
        </xsd:extension>
    </xsd:complexContent>
</xsd:complexType>

Updated