Profile
Get Campus
GET - /profile/
Description
Description
Retorna os dados pessoais do usuarios.
| Name | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
Authorization |
header | string | None | No | Obtained in Login |
Response Body
200
{
"pk_user": 1,
"username": "Administrador Alppi",
"cpf": "02353336035",
"phone": "54992358847",
"email": "admin@alppi.com",
"fk_city": 4911,
"city_name": "Pejuçara",
"fk_fu": 23,
"fu_name": "Rio Grande do Sul",
"sex": "M",
"birth_date": "1999-12-14",
"created": "2025-09-17T22:53:47",
"edited": "2025-09-20T01:44:04"
}
Schema
{
"pk_user": integer,
"username": string,
"cpf": string,
"phone": string,
"email": string,
"fk_city": integer,
"city_name": string,
"fk_fu": integer,
"fu_name": string,
"sex": string,
"birth_date": string,
"created": string,
"edited": string
}
400
{
"detail": "Não foi possivel encontrar este usuário.",
"render": 0
}
Schema
{
"detail": string,
"render": integer
}
500
{
"detail": "Problemas ao visualizar Profile",
"error": "descrição do erro interno"
}
Schema
{
"detail": string
"error": string
}
List Campus
PUT - /profile/
Description
Description
Rota para a atualização dos dados pessoais do usuários.
| Name | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
Authorization |
header | string | None | No | Obtained in Login |
Request Body
{
"username": "Administrador Alppi",
"cpf": "02353336035",
"phone": "54992358847",
"email": "admin@alppi.com",
"fk_city": 4911,
"fk_fu": 23,
"sex": "M",
"birth_date": "1999-12-14"
}
Body Schema
{
"username": string,
"cpf": string,
"phone": string,
"email": string,
"fk_city": integer,
"fk_fu": integer,
"sex": string,
"birth_date": string
}
Response Body
200
{
"pk_user": 1,
"username": "Administrador Alppi",
"cpf": "02353336035",
"phone": "54992358847",
"email": "admin@alppi.com",
"fk_city": 4913,
"city_name": "Picada Café",
"fk_fu": 23,
"fu_name": "Rio Grande do Sul",
"sex": "M",
"birth_date": "1999-12-14",
"created": "2025-09-17T22:53:47",
"edited": "2025-11-02T23:29:02"
}
Schema
{
"pk_user": integer,
"username": string,
"cpf": string,
"phone": string,
"email": string,
"fk_city": integer,
"city_name": string,
"fk_fu": integer,
"fu_name": string,
"sex": string,
"birth_date": string,
"created": string,
"edited": string
}
400
{
"detail": "Não foi possível encontrar este usuário.",
"render": 1
}
Schema
{
"detail": string,
"render": integer
}
{
"detail": "CNPJ-CPF invalido",
"render": 1
}
Schema
{
"detail": string,
"render": integer
}
{
"detail": {
"username": [
"This field is required."
]
},
"render": 0|
}
Schema
{
"detail": object,
"render": integer
}
500
{
"detail": "Problemas ao editar este perfil.",
"error": "descrição do erro interno"
}
Schema
{
"detail": string
"error": string
}
PUT - /profile/change-password/
Description
Description
Rota para mudar senha do usuario.
É mudado a senha do proprio usuario.
| Name | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
Authorization |
header | string | None | No | Obtained in Login |
Request Body
{
"old_password" : "EscolaTiradentes@2025",
"new_password": "Teste@2025"
}
Body Schema
{
"old_password" : string,
"new_password": string
}
Response Body
200
{
"results": "Senha atualizada com sucesso."
}
Schema
{
"results": string
}
400
{
"detail": "Não foi possivel encontrar este User.",
"render": 1
}
Schema
{
"detail": string,
"render": integer
}
{
"detail": "Senha atual incorreta.",
"render": 1
}
Schema
{
"detail": string,
"render": integer
}
500
{
"detail": "Problemas ao mudar senha do usuario",
"error": "descrição do erro interno"
}
Schema
{
"detail": string,
"error": string
}