POST users/user/new

Cria novo Usuário, validando e-mail e propriedades obrigatórias.

Request Information

URI Parameters

None.

Body Parameters

NewVM
NameDescriptionTypeAdditional information
IdAplicativo

Obrigatório. Identificador relacional com a tabela Aplicativo

integer

None.

Nome

Obrigatório. Nome do usuário

string

None.

Apelido

Obrigatório. Apelido

string

None.

Telefone

Obrigatório. Telefone com DDI + DDD + Número Celular

string

None.

Email

Obrigatório. Email do usuário

string

None.

Senha

Obrigatório. Senha do usuário

string

None.

Ativo

Obrigatório. Ativo Default Value [true]

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "IdAplicativo": 1,
  "Nome": "sample string 2",
  "Apelido": "sample string 3",
  "Telefone": "sample string 4",
  "Email": "sample string 5",
  "Senha": "sample string 6",
  "Ativo": true
}

application/xml, text/xml

Sample:
<NewVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HTM.WebAPI.Areas.Seguranca.ViewModels">
  <Apelido>sample string 3</Apelido>
  <Ativo>true</Ativo>
  <Email>sample string 5</Email>
  <IdAplicativo>1</IdAplicativo>
  <Nome>sample string 2</Nome>
  <Senha>sample string 6</Senha>
  <Telefone>sample string 4</Telefone>
</NewVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Retorna o Objeto contendo informações sobre a situação da ação.

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.