Ir al contenido

Obtener equipo por ID

GET
/teams/{teamId}
curl --request GET \
--url https://api.dev.lade.com.mx/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Retorna información detallada de un equipo. El usuario debe ser miembro del equipo.

teamId
required
string format: uuid

ID del equipo (UUID)

Información del equipo

Media typeapplication/json

Respuesta de GET /teams/{teamId}

object
team
object
teamId
string format: uuid
name
string
logo
string
status
string
Allowed values: ACTIVE INACTIVE SUSPENDED
joinCode

Código para unirse al equipo

string
address
object
street
required
string
<= 300 characters
exteriorNumber
required
string
<= 50 characters
interiorNumber
string
<= 50 characters
neighborhood
required
string
<= 100 characters
city
required
string
<= 100 characters
state
required
string
<= 100 characters
country
required
string
<= 100 characters
postalCode
required
string
<= 10 characters
createdAt
string format: date-time
updatedAt
string format: date-time
userRole

Rol del usuario autenticado en este equipo

string
Allowed values: OWNER ADMIN USER
Example
{
"team": {
"teamId": "550e8400-e29b-41d4-a716-446655440000",
"name": "Transportes García",
"logo": "",
"status": "ACTIVE",
"joinCode": "ABC123",
"address": {
"street": "Av. Principal",
"exteriorNumber": "123",
"neighborhood": "Centro",
"city": "Monterrey",
"state": "Nuevo León",
"country": "México",
"postalCode": "64000"
},
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"userRole": "OWNER"
}
}

No autenticado

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Unauthorized",
"message": "Invalid or expired token"
}

Sin permisos

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Forbidden",
"message": "You don't have permission to access this resource"
}

Recurso no encontrado

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Not found",
"message": "Resource not found"
}