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
Ejercicio Fiscal (fiscal year) defines the budget year for public works projects. This catalog maintains the list of fiscal years that can be associated with projects.Get All Fiscal Years
Retrieves a list of all fiscal years in the system.Authentication
This endpoint requires authentication using a Bearer token.Response
Unique identifier for the fiscal year
The fiscal year (e.g., 2025, must be unique)
Status flag indicating if the fiscal year is active (default: true)
Example Request
Example Response
Get Active Fiscal Years
Retrieves a list of only active fiscal years in the system.Authentication
This endpoint requires authentication using a Bearer token.Response
Returns an array of fiscal year objects whereactivo is true.
Unique identifier for the fiscal year
The fiscal year
Always true for this endpoint
Example Request
Example Response
Get Fiscal Year by ID
Retrieves a single fiscal year by its unique identifier.Authentication
This endpoint requires authentication using a Bearer token.Path Parameters
The unique identifier of the fiscal year to retrieve
Response
Returns a single fiscal year object with the following fields:Unique identifier for the fiscal year
The fiscal year
Status flag indicating if the fiscal year is active
Example Request
Example Response
Error Responses
HTTP status code (404 if fiscal year not found)
Error message describing what went wrong
Create Fiscal Year
Creates a new fiscal year in the system.Authentication
This endpoint requires authentication using a Bearer token.Request Body
The fiscal year (must be unique, between 2000 and 2100)
Status flag (defaults to true if not provided)
Validation Rules
- anio is required and must be a number
- anio must be between 2000 and 2100
- anio must be unique across all fiscal years
- activo is optional and defaults to true
Example Request
Example Response
Error Response
Update Fiscal Year
Updates an existing fiscal year.Authentication
This endpoint requires authentication using a Bearer token.Path Parameters
The unique identifier of the fiscal year to update
Request Body
All fields are optional. Only include fields you want to update.The fiscal year (must be unique if provided, between 2000 and 2100)
Status flag
Example Request
Example Response
Delete Fiscal Year
Deletes a fiscal year from the system.Authentication
This endpoint requires authentication using a Bearer token.Path Parameters
The unique identifier of the fiscal year to delete
Deleting a fiscal year that is referenced by existing projects may fail due to foreign key constraints. Consider setting activo to false instead.