POST api/colaborador/CriaColaborador

Request Information

URI Parameters

None.

Body Parameters

ColaboradorViewModel
NameDescriptionTypeAdditional information
Usuario_ID

integer

None.

Nome

string

Required

String length: inclusive between 3 and 128

Email

string

Required

String length: inclusive between 3 and 128

Cpf

string

Required

String length: inclusive between 11 and 14

DataNascimento

date

Required

Range: inclusive between 01/01/1940 and 01/01/2100

TelefoneCelular

string

Required

String length: inclusive between 10 and 20

DataAdmissao

date

Required

Range: inclusive between 01/01/1940 and 01/01/2100

Matricula

string

String length: inclusive between 1 and 20

CpfGestor

string

Required

String length: inclusive between 11 and 14

cdEmpresa

integer

Required

Range: inclusive between 1 and 2147483647

CnpjEmpresa

string

Required

String length: inclusive between 14 and 18

cdUnidade

integer

Required

Range: inclusive between 1 and 2147483647

CnpjUnidade

string

Required

String length: inclusive between 14 and 18

cdRegional

string

Required

String length: inclusive between 1 and 50

IdCentroCustoCliente

integer

Required

Range: inclusive between 1 and 2147483647

idCargo

integer

Range: inclusive between 1 and 2147483647

CargoNome

string

Required

String length: inclusive between 2 and 128

Salario

decimal number

Range: inclusive between 0 and 999999,99

Request Formats

application/json, text/json

Sample:
{
  "Usuario_ID": 1,
  "Nome": "sample string 1",
  "Email": "sample string 2",
  "Cpf": "sample string 3",
  "DataNascimento": "21-04-2025 08:59:07.848",
  "TelefoneCelular": "sample string 5",
  "DataAdmissao": "21-04-2025 08:59:07.848",
  "Matricula": "sample string 7",
  "CpfGestor": "sample string 8",
  "cdEmpresa": 9,
  "CnpjEmpresa": "sample string 10",
  "cdUnidade": 11,
  "CnpjUnidade": "sample string 12",
  "cdRegional": "sample string 13",
  "IdCentroCustoCliente": 14,
  "idCargo": 1,
  "CargoNome": "sample string 15",
  "Salario": 16.0
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of ColaboradorViewModel
NameDescriptionTypeAdditional information
Usuario_ID

integer

None.

Nome

string

Required

String length: inclusive between 3 and 128

Email

string

Required

String length: inclusive between 3 and 128

Cpf

string

Required

String length: inclusive between 11 and 14

DataNascimento

date

Required

Range: inclusive between 01/01/1940 and 01/01/2100

TelefoneCelular

string

Required

String length: inclusive between 10 and 20

DataAdmissao

date

Required

Range: inclusive between 01/01/1940 and 01/01/2100

Matricula

string

String length: inclusive between 1 and 20

CpfGestor

string

Required

String length: inclusive between 11 and 14

cdEmpresa

integer

Required

Range: inclusive between 1 and 2147483647

CnpjEmpresa

string

Required

String length: inclusive between 14 and 18

cdUnidade

integer

Required

Range: inclusive between 1 and 2147483647

CnpjUnidade

string

Required

String length: inclusive between 14 and 18

cdRegional

string

Required

String length: inclusive between 1 and 50

IdCentroCustoCliente

integer

Required

Range: inclusive between 1 and 2147483647

idCargo

integer

Range: inclusive between 1 and 2147483647

CargoNome

string

Required

String length: inclusive between 2 and 128

Salario

decimal number

Range: inclusive between 0 and 999999,99

Response Formats

application/json, text/json

Sample:
[
  {
    "Usuario_ID": 1,
    "Nome": "sample string 1",
    "Email": "sample string 2",
    "Cpf": "sample string 3",
    "DataNascimento": "21-04-2025 08:59:07.864",
    "TelefoneCelular": "sample string 5",
    "DataAdmissao": "21-04-2025 08:59:07.864",
    "Matricula": "sample string 7",
    "CpfGestor": "sample string 8",
    "cdEmpresa": 9,
    "CnpjEmpresa": "sample string 10",
    "cdUnidade": 11,
    "CnpjUnidade": "sample string 12",
    "cdRegional": "sample string 13",
    "IdCentroCustoCliente": 14,
    "idCargo": 1,
    "CargoNome": "sample string 15",
    "Salario": 16.0
  },
  {
    "Usuario_ID": 1,
    "Nome": "sample string 1",
    "Email": "sample string 2",
    "Cpf": "sample string 3",
    "DataNascimento": "21-04-2025 08:59:07.864",
    "TelefoneCelular": "sample string 5",
    "DataAdmissao": "21-04-2025 08:59:07.864",
    "Matricula": "sample string 7",
    "CpfGestor": "sample string 8",
    "cdEmpresa": 9,
    "CnpjEmpresa": "sample string 10",
    "cdUnidade": 11,
    "CnpjUnidade": "sample string 12",
    "cdRegional": "sample string 13",
    "IdCentroCustoCliente": 14,
    "idCargo": 1,
    "CargoNome": "sample string 15",
    "Salario": 16.0
  }
]