GET api/v1/admin/accounts/{id}/features

Fetches all the features from the system and whether the account has them enabled or not.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The account ID

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

List of features

TwoSms.CustomerPortalRole.API.Misc.ResponseOfSystem.Collections.Generic.ListOfTwoSms.CustomerPortalRole.API.Admin.Accounts.AccountFeature
NameDescriptionTypeAdditional information
Error

TwoSms.CustomerPortalRole.API.Misc.Error

None.

ResponseData

TwoSms.CustomerPortalRole.API.Misc.ResponseDataOfSystem.Collections.Generic.ListOfTwoSms.CustomerPortalRole.API.Admin.Accounts.AccountFeature

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": [
      {
        "Allowed": true,
        "Description": "sample string 2",
        "Enabled": true,
        "FeatureID": "e1a2fd5e-a74d-4efe-8663-ab4c85d852bb",
        "Name": "sample string 5"
      },
      {
        "Allowed": true,
        "Description": "sample string 2",
        "Enabled": true,
        "FeatureID": "e1a2fd5e-a74d-4efe-8663-ab4c85d852bb",
        "Name": "sample string 5"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<ResponseOfListOfAccountFeature 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>
      <AccountFeature>
        <Allowed>true</Allowed>
        <Description>sample string 2</Description>
        <Enabled>true</Enabled>
        <FeatureID>e1a2fd5e-a74d-4efe-8663-ab4c85d852bb</FeatureID>
        <Name>sample string 5</Name>
      </AccountFeature>
      <AccountFeature>
        <Allowed>true</Allowed>
        <Description>sample string 2</Description>
        <Enabled>true</Enabled>
        <FeatureID>e1a2fd5e-a74d-4efe-8663-ab4c85d852bb</FeatureID>
        <Name>sample string 5</Name>
      </AccountFeature>
    </Detail>
  </ResponseData>
</ResponseOfListOfAccountFeature>