GET api/v1/admin/clients
Returns a list of clients.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of clients, including name, id and the creators user display name
TwoSms.CustomerPortalRole.API.Misc.ResponseOfSystem.Collections.Generic.ListOfTwoSms.CustomerPortalRole.API.Admin.Clients.ClientName | Description | Type | Additional information |
---|---|---|---|
Error | TwoSms.CustomerPortalRole.API.Misc.Error |
None. |
|
ResponseData | TwoSms.CustomerPortalRole.API.Misc.ResponseDataOfSystem.Collections.Generic.ListOfTwoSms.CustomerPortalRole.API.Admin.Clients.Client |
None. |
Response Formats
application/json, text/json
Sample:
{ "Error": { "ErrorCode": "sample string 1", "ErrorReason": "sample string 2" }, "ResponseData": { "Identification": { "UserId": "sample string 1" }, "Result": "sample string 1", "Detail": [ { "Name": "sample string 1", "ClientID": "c1557fa0-1a63-4f1b-a42e-d78d1eae0998", "UserName": "sample string 3", "UserID": "0a4e63e2-4f41-45da-9186-f1daa322875e", "CanDelete": true, "CreatorsPermission": 0 }, { "Name": "sample string 1", "ClientID": "c1557fa0-1a63-4f1b-a42e-d78d1eae0998", "UserName": "sample string 3", "UserID": "0a4e63e2-4f41-45da-9186-f1daa322875e", "CanDelete": true, "CreatorsPermission": 0 } ] } }
application/xml, text/xml
Sample:
<ResponseOfListOfClient xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Error> <ErrorCode>sample string 1</ErrorCode> <ErrorReason>sample string 2</ErrorReason> </Error> <ResponseData> <Result>sample string 1</Result> <Identification> <UserId>sample string 1</UserId> </Identification> <Detail> <Client> <Name>sample string 1</Name> <ClientID>c1557fa0-1a63-4f1b-a42e-d78d1eae0998</ClientID> <UserName>sample string 3</UserName> <UserID>0a4e63e2-4f41-45da-9186-f1daa322875e</UserID> <CanDelete>true</CanDelete> <CreatorsPermission>STANDARD_USER</CreatorsPermission> </Client> <Client> <Name>sample string 1</Name> <ClientID>c1557fa0-1a63-4f1b-a42e-d78d1eae0998</ClientID> <UserName>sample string 3</UserName> <UserID>0a4e63e2-4f41-45da-9186-f1daa322875e</UserID> <CanDelete>true</CanDelete> <CreatorsPermission>STANDARD_USER</CreatorsPermission> </Client> </Detail> </ResponseData> </ResponseOfListOfClient>