POST api/colaborador/CriaColaborador
Request Information
URI Parameters
None.
Body Parameters
ColaboradorViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Usuario_ID | integer |
None. |
|
| Nome | string |
Required String length: inclusive between 3 and 128 |
|
| 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 |
String length: inclusive between 2 and 128 |
|
| Salario | decimal number |
Range: inclusive between 0 and 999999,99 |
Request Formats
application/json, text/json
{
"Usuario_ID": 1,
"Nome": "sample string 1",
"Email": "sample string 2",
"Cpf": "sample string 3",
"DataNascimento": "05-11-2025 14:58:19.143",
"TelefoneCelular": "sample string 5",
"DataAdmissao": "05-11-2025 14:58:19.143",
"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 not available.
Response Information
Resource Description
Collection of ColaboradorViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Usuario_ID | integer |
None. |
|
| Nome | string |
Required String length: inclusive between 3 and 128 |
|
| 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 |
String length: inclusive between 2 and 128 |
|
| Salario | decimal number |
Range: inclusive between 0 and 999999,99 |
Response Formats
application/json, text/json
[
{
"Usuario_ID": 1,
"Nome": "sample string 1",
"Email": "sample string 2",
"Cpf": "sample string 3",
"DataNascimento": "05-11-2025 14:58:19.143",
"TelefoneCelular": "sample string 5",
"DataAdmissao": "05-11-2025 14:58:19.143",
"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": "05-11-2025 14:58:19.143",
"TelefoneCelular": "sample string 5",
"DataAdmissao": "05-11-2025 14:58:19.143",
"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
}
]