Documentation Index
Fetch the complete documentation index at: https://mintlify.com/LizandroCanul/back_sdo/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Tipos de Proyecto (project types) define the categories for public works projects such as “INFRAESTRUCTURA VIAL” (road infrastructure) or “EDUCACIÓN” (education). This catalog provides reference data for classifying projects.Get All Project Types
Retrieves a list of all project types in the system.Authentication
This endpoint requires authentication using a Bearer token.Response
Unique identifier for the project type
Name of the project type (max 150 characters, unique)
Status flag indicating if the project type is active (default: true)
Example Request
Example Response
Get Project Type by ID
Retrieves a single project type by its unique identifier.Authentication
This endpoint requires authentication using a Bearer token.Path Parameters
The unique identifier of the project type to retrieve
Response
Returns a single project type object with the following fields:Unique identifier for the project type
Name of the project type
Status flag indicating if the project type is active
Example Request
Example Response
Error Responses
HTTP status code (404 if project type not found)
Error message describing what went wrong
Create Project Type
Creates a new project type in the system.Authentication
This endpoint requires authentication using a Bearer token.Request Body
Name of the project type (max 150 characters, must be unique)
Status flag (defaults to true if not provided)
Validation Rules
- nombre is required and must be a non-empty string
- nombre must be unique across all project types
- activo is optional and defaults to true
Example Request
Example Response
Error Response
Update Project Type
Updates an existing project type.Authentication
This endpoint requires authentication using a Bearer token.Path Parameters
The unique identifier of the project type to update
Request Body
All fields are optional. Only include fields you want to update.Name of the project type (must be unique if provided)
Status flag
Example Request
Example Response
Delete Project Type
Deletes a project type from the system.Authentication
This endpoint requires authentication using a Bearer token.Path Parameters
The unique identifier of the project type to delete
Deleting a project type that is referenced by existing projects may fail due to foreign key constraints. Consider setting activo to false instead.