PUT api/unidade/atualizaUnidade?IdUnidade={IdUnidade}&IdEmpresa={IdEmpresa}&cnpj={cnpj}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
IdUnidade | integer |
Required |
|
IdEmpresa | integer |
Required |
|
cnpj | string |
Required |
Body Parameters
AtualizaUnidadeViewModelName | Description | Type | Additional information |
---|---|---|---|
CodigoUnidade | integer |
Required Range: inclusive between 1 and 2147483647 |
|
NomeUnidade | string |
Required String length: inclusive between 3 and 200 |
|
CNPJ | string |
Required String length: inclusive between 14 and 18 |
|
CidadeId | integer |
Required Range: inclusive between 1 and 5866 |
|
EstadoId | integer |
Required Range: inclusive between 1 and 27 |
Request Formats
application/json, text/json
Sample:
{ "CodigoUnidade": 1, "NomeUnidade": "sample string 2", "CNPJ": "sample string 3", "CidadeId": 4, "EstadoId": 5 }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of AtualizaUnidadeViewModelName | Description | Type | Additional information |
---|---|---|---|
CodigoUnidade | integer |
Required Range: inclusive between 1 and 2147483647 |
|
NomeUnidade | string |
Required String length: inclusive between 3 and 200 |
|
CNPJ | string |
Required String length: inclusive between 14 and 18 |
|
CidadeId | integer |
Required Range: inclusive between 1 and 5866 |
|
EstadoId | integer |
Required Range: inclusive between 1 and 27 |
Response Formats
application/json, text/json
Sample:
[ { "CodigoUnidade": 1, "NomeUnidade": "sample string 2", "CNPJ": "sample string 3", "CidadeId": 4, "EstadoId": 5 }, { "CodigoUnidade": 1, "NomeUnidade": "sample string 2", "CNPJ": "sample string 3", "CidadeId": 4, "EstadoId": 5 } ]