POST api/centrocusto/criaCentroCusto
Request Information
URI Parameters
None.
Body Parameters
CentroCustoViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id_gerencia_regional | integer |
None. |
|
| 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 |
None. |
|
| cd_empresa | integer |
None. |
|
| id_regional_pai | integer |
None. |
|
| Id_diretoria | integer |
None. |
|
| BU | string |
None. |
|
| Segmento | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id_gerencia_regional": 1,
"CodigoCentroCusto": "sample string 1",
"IdCentroCustoCliente": 2,
"NomeCentroCusto": "sample string 3",
"id_empresa": 1,
"cd_empresa": 1,
"id_regional_pai": 1,
"Id_diretoria": 1,
"BU": "sample string 4",
"Segmento": "sample string 5"
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of CentroCustoViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id_gerencia_regional | integer |
None. |
|
| 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 |
None. |
|
| cd_empresa | integer |
None. |
|
| id_regional_pai | integer |
None. |
|
| Id_diretoria | integer |
None. |
|
| BU | string |
None. |
|
| Segmento | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"id_gerencia_regional": 1,
"CodigoCentroCusto": "sample string 1",
"IdCentroCustoCliente": 2,
"NomeCentroCusto": "sample string 3",
"id_empresa": 1,
"cd_empresa": 1,
"id_regional_pai": 1,
"Id_diretoria": 1,
"BU": "sample string 4",
"Segmento": "sample string 5"
},
{
"id_gerencia_regional": 1,
"CodigoCentroCusto": "sample string 1",
"IdCentroCustoCliente": 2,
"NomeCentroCusto": "sample string 3",
"id_empresa": 1,
"cd_empresa": 1,
"id_regional_pai": 1,
"Id_diretoria": 1,
"BU": "sample string 4",
"Segmento": "sample string 5"
}
]