POST Create team user
Changed onCom este endpoint você pode criar contas de colaboradores, para que os mesmos possuam acesso ao sistema via front-end e possam utilizar a plataforma, assim como visualizar os dados submetidos via API.
Caso não queira fornecer acessos aos colaboradores, é possível manipular o sistema sem tais contas, executando todas as ações como administrador do sistema.
Atenção! Ao criar uma conta de colaborador, é possível avisá-lo ou não da criação. Caso você informe o parâmetro password, ele não será avisado da criação da conta nem receberá alertas do sistema (para uso WhiteLabel). Caso NÃO passe uma senha, o sistema vai gerar uma automaticamente e enviar para o e-mail do colaborador, portanto ele terá conhecimento da conta e uma forma de acessar a plataforma.
Regras:
- permissions é obrigatório e precisa ter pelo menos um valor (um array vazio responde 422).
- cpf aceita apenas números (um CPF formatado responde 422).
- cert_file e signature como arquivo exigem multipart/form-data; o editor desta página não suporta esse formato.
- Se o e-mail já existe em outra empresa, o usuário existente é apenas vinculado à sua empresa com o cargo e as permissões informados; nome, senha, certificado e assinatura enviados são ignorados e nenhum e-mail é enviado.
- Sem role, o cargo padrão é staff.
- A mensagem de sucesso é a mesma mesmo quando password foi informada (nesse caso nenhum e-mail é enviado).
Request
- Base URLhttps://app.plugsign.com.br
- URLhttps://app.plugsign.com.br/api/teams
- AuthAPI key in header Authorization
Request body
Response
200
Example response
{
"data": {
"id": 1,
"name": "João",
"last_name": "Silva",
"email": "developer@exemplo.com",
"phone": "11-99999-9999",
"permissions": [
"upload"
],
"recive_email": 1,
"recive_whatsapp": 1,
"role": "staff",
"status": "Active",
"birth": "1990-05-12"
},
"message": "Tudo pronto! Conta criada com sucesso! O colaborador vai receber um e-mail para criar sua senha."
}Changes
- breaking
request property
/was restricted to a list of enum values - breaking
request property
was restricted to a list of enum values - breaking
request property
was restricted to a list of enum values - breaking
the
request property type changed fromstringtointeger - breaking
the
request property type changed fromstringtointeger - info
added the new optional request property
- info
the
request property default valuestaffwas added - info
added the new
0.00enum value to the request property - info
added the new
0.00enum value to the request property - info
added the new
1.00enum value to the request property - info
added the new
1.00enum value to the request property - info
added the new
2.00enum value to the request property - info
added the new
2.00enum value to the request property - info
added the new
deleteenum value to the request property/ - info
added the new
editenum value to the request property/ - info
added the new
protectenum value to the request property/ - info
added the new
send_requestenum value to the request property/ - info
added the new
uploadenum value to the request property/ - info
added the new
view_all_requestsenum value to the request property/ - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
to the response with the status
- breaking