List Board Members
curl -X GET https://api.sociapp.com/configuracion/junta \
-H "Authorization: Bearer YOUR_TOKEN"
[
{
"id": 1,
"idUsuario": 5,
"cargo": "Presidente",
"Nombre": "Juan",
"Apellidos": "García López"
},
{
"id": 2,
"idUsuario": 8,
"cargo": "Secretario",
"Nombre": "María",
"Apellidos": "Martínez Ruiz"
}
]
Endpoint
Authentication
Requires JWT authentication token.
Response Fields
User ID of the board member
Get Available Cargos
curl -X GET https://api.sociapp.com/configuracion/junta/cargos \
-H "Authorization: Bearer YOUR_TOKEN"
[
{ "value": "Presidente", "label": "Presidente" },
{ "value": "Secretario", "label": "Secretario" },
{ "value": "Tesorero", "label": "Tesorero" },
{ "value": "Vocal", "label": "Vocal" }
]
Endpoint
GET /configuracion/junta/cargos
Authentication
Requires JWT authentication token.
Get Available Users
curl -X GET https://api.sociapp.com/configuracion/junta/usuarios-lista \
-H "Authorization: Bearer YOUR_TOKEN"
[
{
"idUsuario": 12,
"Nombre": "Carlos",
"Apellidos": "Fernández Pérez"
},
{
"idUsuario": 15,
"Nombre": "Ana",
"Apellidos": "Rodríguez Sánchez"
}
]
Endpoint
GET /configuracion/junta/usuarios-lista
Authentication
Requires JWT authentication token.
Notes
Returns only users who are NOT currently in the board (Junta Directiva).
Add Board Member
curl -X POST https://api.sociapp.com/configuracion/junta \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"idUsuario": 12,
"cargo": "Tesorero"
}'
{
"id": 3,
"idUsuario": 12,
"cargo": "Tesorero"
}
Endpoint
POST /configuracion/junta
Authentication
Requires JWT authentication token.
Request Body
User ID to add to the board
Board position/role (e.g., “Presidente”, “Secretario”, “Tesorero”)
Update Board Member
curl -X PUT https://api.sociapp.com/configuracion/junta/3 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"idUsuario": 12,
"cargo": "Vocal"
}'
{
"id": 3,
"idUsuario": 12,
"cargo": "Vocal"
}
Endpoint
PUT /configuracion/junta/:id
Authentication
Requires JWT authentication token.
Path Parameters
Request Body
Delete Board Member
curl -X DELETE https://api.sociapp.com/configuracion/junta/3 \
-H "Authorization: Bearer YOUR_TOKEN"
{
"message": "Board member deleted successfully"
}
Endpoint
DELETE /configuracion/junta/:id
Authentication
Requires JWT authentication token.
Path Parameters
Board member record ID to delete