Clone wiki

BibSonomy / documentation / api / methods / AddUserToGroup

Add a user to a group

Adds one or more existing users to a group.

Method POST
URL https://www.bibsonomy.org/api/groups/[groupname]/users

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/groups/group1/users" --header "Content-Type:application/xml" -d '
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bibsonomy>
  <users>
    <user name="username"/>
  </users>
</bibsonomy>'

Response:

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

Updated