POST api/v1/cliente

Request Information

URI Parameters

None.

Body Parameters

ClienteCreateRequestDto
NameDescriptionTypeAdditional information
RUC

string

Required

String length: inclusive between 8 and 18

Nombre

string

String length: inclusive between 0 and 250

Direccion

string

String length: inclusive between 0 and 200

Distrito

string

String length: inclusive between 0 and 50

Telefono

string

String length: inclusive between 0 and 50

CodTipo

integer

None.

Industria

string

String length: inclusive between 0 and 500

Fuente

string

String length: inclusive between 0 and 100

Visualizar

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ruc": "sample string 1",
  "nombre": "sample string 2",
  "direccion": "sample string 3",
  "distrito": "sample string 4",
  "telefono": "sample string 5",
  "codTipo": 1,
  "industria": "sample string 6",
  "fuente": "sample string 7",
  "visualizar": true
}

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.