POST api/mvno/contel/block

Request Information

URI Parameters

None.

Body Parameters

BlockLine
NameDescriptionTypeAdditional information
numero

string

None.

observacoes

string

None.

motivo

string

None.

Request Formats

application/json, text/json

Sample:
{
  "numero": "sample string 1",
  "observacoes": "sample string 2",
  "motivo": "sample string 3"
}

text/html

Sample:
{"numero":"sample string 1","observacoes":"sample string 2","motivo":"sample string 3"}

application/xml, text/xml

Sample:
<BlockLine xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.FoneClube">
  <motivo>sample string 3</motivo>
  <numero>sample string 1</numero>
  <observacoes>sample string 2</observacoes>
</BlockLine>

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

Response Information

Resource Description

BlockLineResponse
NameDescriptionTypeAdditional information
status

boolean

None.

mensagem

string

None.

data

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": true,
  "mensagem": "sample string 2",
  "data": "sample string 3"
}

text/html

Sample:
{"status":true,"mensagem":"sample string 2","data":"sample string 3"}

application/xml, text/xml

Sample:
<BlockLineResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.FoneClube">
  <data>sample string 3</data>
  <mensagem>sample string 2</mensagem>
  <status>true</status>
</BlockLineResponse>