PUT api/unidadNegocio
Request Information
URI Parameters
None.
Body Parameters
UnidadNegocioUpdateDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Required |
|
| Nombre | string |
Required String length: inclusive between 0 and 200 |
|
| Estado | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Nombre": "sample string 2",
"Estado": true
}
application/xml, text/xml
Sample:
<UnidadNegocioUpdateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiGLM.Models.DTOs"> <Estado>true</Estado> <Id>1</Id> <Nombre>sample string 2</Nombre> </UnidadNegocioUpdateDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResponseDTOOfUnidadNegocioDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| Data | UnidadNegocioDTO |
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
},
"Errors": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<ApiResponseDTOOfUnidadNegocioDTOFGazmyZH 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>
<Nombre>sample string 2</Nombre>
</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>
</ApiResponseDTOOfUnidadNegocioDTOFGazmyZH>