/api/groups/assign

Add new user to a group.

This resource is available only for Global admin or Domain admin.

Resource Information

Request Body

Content-Type

application/json

userIdID of user, you want to add
groupIdID of group you want add user



{
  "userId": 14,
  "groupId": 7
} 


Sample Request / Response

Using curl:

curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -H "Content-Type: application/json"  -d "data={ \"userId\": 14,  \"groupId\": 7}" https://service.belladati.com/api/groups/assign

When the form has been submitted successfully, the server replies with an HTTP status code of 200

  • No labels