POST Category/CrearCategoria

Request Information

URI Parameters

None.

Body Parameters

CategoriaModelo
NameDescriptionTypeAdditional information
idCategoria

globally unique identifier

None.

idCategoriaPadre

globally unique identifier

None.

nombreCategoria

string

None.

descripcionCategoria

string

None.

codigoCategoria

string

None.

tieneDescuento

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "idCategoria": "e04638b2-8e01-44cd-9eb2-6d4fb08553fc",
  "idCategoriaPadre": "88716c52-2593-4793-a2bf-5f03d474631c",
  "nombreCategoria": "sample string 3",
  "descripcionCategoria": "sample string 4",
  "codigoCategoria": "sample string 5",
  "tieneDescuento": true
}

application/xml, text/xml

Sample:
<CategoriaModelo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SportifyApi.Entities.Modelos">
  <codigoCategoria>sample string 5</codigoCategoria>
  <descripcionCategoria>sample string 4</descripcionCategoria>
  <idCategoria>e04638b2-8e01-44cd-9eb2-6d4fb08553fc</idCategoria>
  <idCategoriaPadre>88716c52-2593-4793-a2bf-5f03d474631c</idCategoriaPadre>
  <nombreCategoria>sample string 3</nombreCategoria>
  <tieneDescuento>true</tieneDescuento>
</CategoriaModelo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.