PUT api/empresa/atualizaEmpresa?IdEmpresa={IdEmpresa}&cnpj={cnpj}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
IdEmpresa

integer

Required

cnpj

string

Required

Body Parameters

AtualizaEmpresaViewModel
NameDescriptionTypeAdditional information
NomeEmpresa

string

Required

String length: inclusive between 3 and 100

CNPJ

string

Required

String length: inclusive between 14 and 18

Request Formats

application/json, text/json

Sample:
{
  "NomeEmpresa": "sample string 1",
  "CNPJ": "sample string 2"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of EmpresaViewModel
NameDescriptionTypeAdditional information
NomeEmpresa

string

Required

String length: inclusive between 3 and 100

CNPJ

string

Required

String length: inclusive between 14 and 18

Response Formats

application/json, text/json

Sample:
[
  {
    "NomeEmpresa": "sample string 1",
    "CNPJ": "sample string 2"
  },
  {
    "NomeEmpresa": "sample string 1",
    "CNPJ": "sample string 2"
  }
]