POST api/DeleteAttribute

Adds or updates an account attribute.

Request Information

URI Parameters

None.

Body Parameters

DeleteAttributeRequest
NameDescriptionTypeAdditional information
SessionKey

string
AttributeId

integer

Request Formats

application/json, text/json

Sample:
{
  "SessionKey": "sample string 1",
  "AttributeId": 2
}

application/xml, text/xml

Sample:
<DeleteAttributeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Account">
  <AttributeId>2</AttributeId>
  <SessionKey>sample string 1</SessionKey>
</DeleteAttributeRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DeleteAttributeRequest'.

Response Information

Resource Description

SetAttributeResult object

ApiSuccessOfBoolean
NameDescriptionTypeAdditional information
Success

boolean
Data

boolean

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": true
}

application/xml, text/xml

Sample:
<ApiSuccessOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Api">
  <Data>true</Data>
</ApiSuccessOfboolean>