POST api/v1/admin/placeholders
Adds a new placeholder onto the account.
Request Information
URI Parameters
None.
Body Parameters
The description of the new placeholder.
TwoSms.CustomerPortalRole.API.Admin.Misc.PlaceHolderRequestName | Description | Type | Additional information |
---|---|---|---|
Description |
Describes what this placeholder is to be used for. |
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "Description": "sample string 1" }
application/xml, text/xml
Sample:
<PlaceHolderRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Description>sample string 1</Description> </PlaceHolderRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
TwoSms.CustomerPortalRole.API.Misc.ResponseOfTwoSms.CustomerPortalRole.API.Admin.Misc.PlaceHolderResponseName | Description | Type | Additional information |
---|---|---|---|
Error | TwoSms.CustomerPortalRole.API.Misc.Error |
None. |
|
ResponseData | TwoSms.CustomerPortalRole.API.Misc.ResponseDataOfTwoSms.CustomerPortalRole.API.Admin.Misc.PlaceHolderResponse |
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": { "ID": 1, "ReadOnly": true, "Description": "sample string 3" } } }
application/xml, text/xml
Sample:
<ResponseOfPlaceHolderResponse 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> <Description>sample string 3</Description> <ID>1</ID> <ReadOnly>true</ReadOnly> </Detail> </ResponseData> </ResponseOfPlaceHolderResponse>