StarterTemplate ASP.NET Host

<back to all web services

RequestUserSecurityGroupPut

User security groups service

The following routes are available for this service:
PUT/service/api/v1/depts/{DeptId}/users/{Id}/securitygroupsUpdates user security groups
Parameters:
NameParameterData TypeRequiredDescription
DeptIdpathintYesThe ID of the department that includes the user profile
IdpathintYesThe ID of the user profile with security groups you need to update

To override the Content-type in your clients HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/RequestUserSecurityGroupPut HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: application/xml
Content-Length: length

<RequestUserSecurityGroupPut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.UserSecurityGroup">
  <DeptId>0</DeptId>
  <Groups>
    <UserSecurityGroup>
      <GroupName>String</GroupName>
      <ProjId>0</ProjId>
    </UserSecurityGroup>
  </Groups>
  <Id>0</Id>
</RequestUserSecurityGroupPut>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ResponseUserSecurityGroupsCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.UserSecurityGroup">
  <Metadata i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Common" />
  <Results xmlns:d2p1="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.UserSecurityGroup" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Common">
    <d2p1:ResponseSingleUserSecurityGroup>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:ProjectId>0</d2p1:ProjectId>
    </d2p1:ResponseSingleUserSecurityGroup>
  </Results>
</ResponseUserSecurityGroupsCollection>