Wiki

Clone wiki

BibSonomy / documentation / api / methods / ChangeConcept

Change a concept of a user

Method PUT
URL https://www.bibsonomy.org/api/users/[username]/concepts/[conceptname]

Hint: you can't change the concepts name, but add relations to an existing concept.

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/concepts/conceptname" --header "Content-Type:application/xml" -d \
'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bibsonomy>
  <tag name="conceptname">
    <subTags>
      <tag name="newTag"/>
    </subTags>
  </tag>
</bibsonomy>'

Response:

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

Updated