Clone wiki

BibSonomy / documentation / api / methods / ChangePost

Change post

Method PUT
URL https://www.bibsonomy.org/api/users/[username]/posts/[resourceHash]

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

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/posts/resourceHash" --header "Content-Type:application/xml" -d '
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bibsonomy>
  <post>
    <user name="username"/>
    <tag name="tag1"/>
    <tag name="newTag"/>
    <bookmark url="http://www.google.de" intrahash="ed646a3334ca891fd3467db131372140"
              interhash="ed646a3334ca891fd3467db131372140" title="an exemplary website"/>
  </post>
</bibsonomy>'

Response:

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

Updated