POST api/clasesActivo
Request Information
URI Parameters
None.
Body Parameters
ClaseActivoCreateDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Nombre | string |
Required String length: inclusive between 0 and 300 |
|
| IdTipoActivo | integer |
Required |
|
| Estado | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{
"Nombre": "sample string 1",
"IdTipoActivo": 2,
"Estado": true
}
application/xml, text/xml
Sample:
<ClaseActivoCreateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiGLM.Models.DTOs"> <Estado>true</Estado> <IdTipoActivo>2</IdTipoActivo> <Nombre>sample string 1</Nombre> </ClaseActivoCreateDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResponseDTOOfClaseActivoDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| Data | ClaseActivoDTO |
None. |
|
| Errors | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Message": "sample string 2",
"Data": {
"Id": 1,
"Nombre": "sample string 2",
"Estado": true,
"IdTipoActivo": 4,
"NombreTipoActivo": "sample string 5"
},
"Errors": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<ApiResponseDTOOfClaseActivoDTOFGazmyZH xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiGLM.Models.DTOs">
<Data>
<Estado>true</Estado>
<Id>1</Id>
<IdTipoActivo>4</IdTipoActivo>
<Nombre>sample string 2</Nombre>
<NombreTipoActivo>sample string 5</NombreTipoActivo>
</Data>
<Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Errors>
<Message>sample string 2</Message>
<Success>true</Success>
</ApiResponseDTOOfClaseActivoDTOFGazmyZH>