StarterTemplate ASP.NET Host

<back to all web services

RequestSecurityGroupByName

Security groups service

The following routes are available for this service:
GET/service/api/v1/depts/{DeptId}/securitygroups/{Name}Returns list of priveleges for specified security group
Parameters:
NameParameterData TypeRequiredDescription
DeptIdpathintYesThe ID of the department that includes the security group
NamepathintYesThe name of the security group you need to get

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/RequestSecurityGroupByName HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: application/xml
Content-Length: length

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

<ResponseSecurityGroupsPrivsCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.SecurityGroup">
  <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.SecurityGroup" xmlns="http://schemas.datacontract.org/2004/07/SwpStack.Service.Entity.Common">
    <d2p1:ResponseSingleSecurityGroupPrivs>
      <d2p1:CanAdd>false</d2p1:CanAdd>
      <d2p1:CanDelete>false</d2p1:CanDelete>
      <d2p1:CanRead>false</d2p1:CanRead>
      <d2p1:CanUpdate>false</d2p1:CanUpdate>
      <d2p1:EntityCode>String</d2p1:EntityCode>
    </d2p1:ResponseSingleSecurityGroupPrivs>
  </Results>
</ResponseSecurityGroupsPrivsCollection>