POST api/profile/flags/insert

Request Information

URI Parameters

None.

Body Parameters

GenericFlag
NameDescriptionTypeAdditional information
Id

integer

None.

IdPhone

integer

None.

Registro

date

None.

Update

date

None.

PendingInteraction

boolean

None.

Description

string

None.

IdFlagType

integer

None.

IdPerson

integer

None.

PlanId

integer

None.

FullEmail

FullEmail

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "IdPhone": 1,
  "Registro": "2024-11-16T18:50:05.1526892-03:00",
  "Update": "2024-11-16T18:50:05.1526892-03:00",
  "PendingInteraction": true,
  "Description": "sample string 2",
  "IdFlagType": 1,
  "IdPerson": 1,
  "PlanId": 1,
  "FullEmail": {
    "To": "sample string 1",
    "Title": "sample string 2",
    "Body": "sample string 3",
    "Cc": "sample string 4",
    "Bcc": "sample string 5",
    "BodyHtml": "sample string 6"
  }
}

text/html

Sample:
{"Id":1,"IdPhone":1,"Registro":"2024-11-16T18:50:05.1526892-03:00","Update":"2024-11-16T18:50:05.1526892-03:00","PendingInteraction":true,"Description":"sample string 2","IdFlagType":1,"IdPerson":1,"PlanId":1,"FullEmail":{"To":"sample string 1","Title":"sample string 2","Body":"sample string 3","Cc":"sample string 4","Bcc":"sample string 5","BodyHtml":"sample string 6"}}

application/xml, text/xml

Sample:
<GenericFlag xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.FoneClube.flag">
  <Description>sample string 2</Description>
  <FullEmail xmlns:d2p1="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.FoneClube.email">
    <d2p1:Bcc>sample string 5</d2p1:Bcc>
    <d2p1:Body>sample string 3</d2p1:Body>
    <d2p1:BodyHtml>sample string 6</d2p1:BodyHtml>
    <d2p1:Cc>sample string 4</d2p1:Cc>
    <d2p1:Title>sample string 2</d2p1:Title>
    <d2p1:To>sample string 1</d2p1:To>
  </FullEmail>
  <Id>1</Id>
  <IdFlagType>1</IdFlagType>
  <IdPerson>1</IdPerson>
  <IdPhone>1</IdPhone>
  <PendingInteraction>true</PendingInteraction>
  <PlanId>1</PlanId>
  <Registro>2024-11-16T18:50:05.1526892-03:00</Registro>
  <Update>2024-11-16T18:50:05.1526892-03:00</Update>
</GenericFlag>

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 'GenericFlag'.

Response Information

Resource Description

FlagResponse
NameDescriptionTypeAdditional information
FlagSuccess

boolean

None.

EmailSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "FlagSuccess": true,
  "EmailSuccess": true
}

text/html

Sample:
{"FlagSuccess":true,"EmailSuccess":true}

application/xml, text/xml

Sample:
<FlagResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.FoneClube.flag">
  <EmailSuccess>true</EmailSuccess>
  <FlagSuccess>true</FlagSuccess>
</FlagResponse>