PUT api/centrocusto/atualizaCentroCusto?IdCentroCusto={IdCentroCusto}&codigoCentroCusto={codigoCentroCusto}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
IdCentroCusto

integer

Required

codigoCentroCusto

string

Required

Body Parameters

AtualizaCentroCustoViewModel
NameDescriptionTypeAdditional information
CodigoCentroCusto

string

Required

String length: inclusive between 1 and 50

IdCentroCustoCliente

integer

Required

Range: inclusive between 1 and 2147483647

NomeCentroCusto

string

Required

String length: inclusive between 3 and 100

id_empresa

integer

Required

Range: inclusive between 1 and 2147483647

id_regional_pai

integer

None.

Id_diretoria

integer

None.

BU

string

None.

Segmento

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CodigoCentroCusto": "sample string 1",
  "IdCentroCustoCliente": 2,
  "NomeCentroCusto": "sample string 3",
  "id_empresa": 4,
  "id_regional_pai": 1,
  "Id_diretoria": 1,
  "BU": "sample string 5",
  "Segmento": "sample string 6"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of AtualizaCentroCustoViewModel
NameDescriptionTypeAdditional information
CodigoCentroCusto

string

Required

String length: inclusive between 1 and 50

IdCentroCustoCliente

integer

Required

Range: inclusive between 1 and 2147483647

NomeCentroCusto

string

Required

String length: inclusive between 3 and 100

id_empresa

integer

Required

Range: inclusive between 1 and 2147483647

id_regional_pai

integer

None.

Id_diretoria

integer

None.

BU

string

None.

Segmento

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CodigoCentroCusto": "sample string 1",
    "IdCentroCustoCliente": 2,
    "NomeCentroCusto": "sample string 3",
    "id_empresa": 4,
    "id_regional_pai": 1,
    "Id_diretoria": 1,
    "BU": "sample string 5",
    "Segmento": "sample string 6"
  },
  {
    "CodigoCentroCusto": "sample string 1",
    "IdCentroCustoCliente": 2,
    "NomeCentroCusto": "sample string 3",
    "id_empresa": 4,
    "id_regional_pai": 1,
    "Id_diretoria": 1,
    "BU": "sample string 5",
    "Segmento": "sample string 6"
  }
]