PUT api/centroCostos

Request Information

URI Parameters

None.

Body Parameters

CentroCostosUpdateDTO
NameDescriptionTypeAdditional information
Id

integer

Required

Nombre

string

Required

String length: inclusive between 0 and 300

Codigo

string

Required

String length: inclusive between 0 and 100

Estado

boolean

Required

IdUnidadNegocio

integer

Required

IdEmpresa

integer

Required

IdZona

integer

Required

CorreosNotificacion

string

String length: inclusive between 0 and 500

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Nombre": "sample string 2",
  "Codigo": "sample string 3",
  "Estado": true,
  "IdUnidadNegocio": 5,
  "IdEmpresa": 6,
  "IdZona": 7,
  "CorreosNotificacion": "sample string 8"
}

application/xml, text/xml

Sample:
<CentroCostosUpdateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiGLM.Models.DTOs">
  <Codigo>sample string 3</Codigo>
  <CorreosNotificacion>sample string 8</CorreosNotificacion>
  <Estado>true</Estado>
  <Id>1</Id>
  <IdEmpresa>6</IdEmpresa>
  <IdUnidadNegocio>5</IdUnidadNegocio>
  <IdZona>7</IdZona>
  <Nombre>sample string 2</Nombre>
</CentroCostosUpdateDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResponseDTOOfCentroCostosDTO
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Data

CentroCostosDTO

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",
    "Codigo": "sample string 3",
    "Estado": true,
    "IdUnidadNegocio": 5,
    "NombreUnidadNegocio": "sample string 6",
    "IdEmpresa": 7,
    "NombreEmpresa": "sample string 8",
    "IdZona": 9,
    "NombreZona": "sample string 10",
    "CorreosNotificacion": "sample string 11",
    "DetalleBusqueda": "sample string 12"
  },
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ApiResponseDTOOfCentroCostosDTOFGazmyZH xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiGLM.Models.DTOs">
  <Data>
    <Codigo>sample string 3</Codigo>
    <CorreosNotificacion>sample string 11</CorreosNotificacion>
    <DetalleBusqueda>sample string 12</DetalleBusqueda>
    <Estado>true</Estado>
    <Id>1</Id>
    <IdEmpresa>7</IdEmpresa>
    <IdUnidadNegocio>5</IdUnidadNegocio>
    <IdZona>9</IdZona>
    <Nombre>sample string 2</Nombre>
    <NombreEmpresa>sample string 8</NombreEmpresa>
    <NombreUnidadNegocio>sample string 6</NombreUnidadNegocio>
    <NombreZona>sample string 10</NombreZona>
  </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>
</ApiResponseDTOOfCentroCostosDTOFGazmyZH>