Events
Endpoints for managing scheduling events and updating attendance marks on existing planning records.
Actualizar Marca
POST https://api.mitrabajo.uy/actualizar-marca
Updates the entry, break, return, and/or exit timestamps for an existing planning record. Only the fields you provide are updated; omitted fields are left unchanged.
Request Headers
| Header | Value | Required |
|---|---|---|
X-Api-Key |
Your access token | Yes |
Content-Type |
application/json |
Yes |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
id |
integer | Yes | ID of the planning record to update |
fecha_entrada |
string | No | Entry date — format YYYY-MM-DD |
hora_entrada |
string | No | Entry time — format HH:MM:SS |
fecha_descanso |
string | No | Break start date — format YYYY-MM-DD |
hora_descanso |
string | No | Break start time — format HH:MM:SS |
fecha_retorno |
string | No | Return from break date — format YYYY-MM-DD |
hora_retorno |
string | No | Return from break time — format HH:MM:SS |
fecha_salida |
string | No | Exit date — format YYYY-MM-DD |
hora_salida |
string | No | Exit time — format HH:MM:SS |
Example
curl -X POST https://api.mitrabajo.uy/actualizar-marca \
-H "X-Api-Key: EPZoeOHHDPz-ucc5HweJYt6xehe_1bV-" \
-H "Content-Type: application/json" \
-d '{
"id": 501,
"fecha_entrada": "2026-07-29",
"hora_entrada": "08:05:00",
"fecha_salida": "2026-07-29",
"hora_salida": "17:10:00"
}'
Response
{ "code": 1, "message": "Marca actualizada correctamente" }
Agregar Evento
POST https://api.mitrabajo.uy/agregar-evento
Adds a new extra event to an existing planning record.
Request Headers
| Header | Value | Required |
|---|---|---|
X-Api-Key |
Your access token | Yes |
Content-Type |
application/json |
Yes |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
id_planificacion |
integer | Yes | ID of the planning record |
tipo |
integer | Yes | Event type code (see /codigo-eventos-extras) |
fecha_hora_inicio |
string | Yes | Start datetime — format YYYY-MM-DD HH:MM:SS |
fecha_hora_fin |
string | Yes | End datetime — format YYYY-MM-DD HH:MM:SS |
texto |
string | No | Free-text description of the event |
Example
curl -X POST https://api.mitrabajo.uy/agregar-evento \
-H "X-Api-Key: EPZoeOHHDPz-ucc5HweJYt6xehe_1bV-" \
-H "Content-Type: application/json" \
-d '{
"id_planificacion": 501,
"tipo": 2,
"fecha_hora_inicio": "2026-07-29 10:00:00",
"fecha_hora_fin": "2026-07-29 10:30:00",
"texto": "Reunión de equipo"
}'
Response
{ "code": 1, "message": "Evento extra agregado correctamente" }
Modificar Evento
POST https://api.mitrabajo.uy/modificar-evento
Updates an existing extra event on a planning record.
Request Headers
| Header | Value | Required |
|---|---|---|
X-Api-Key |
Your access token | Yes |
Content-Type |
application/json |
Yes |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
id |
integer | Yes | ID of the extra event to update |
id_planificacion |
integer | Yes | ID of the parent planning record |
tipo |
integer | Yes | Event type code (see /codigo-eventos-extras) |
fecha_hora_inicio |
string | Yes | New start datetime — format YYYY-MM-DD HH:MM:SS |
fecha_hora_fin |
string | Yes | New end datetime — format YYYY-MM-DD HH:MM:SS |
texto |
string | No | Free-text description of the event |
Example
curl -X POST https://api.mitrabajo.uy/modificar-evento \
-H "X-Api-Key: EPZoeOHHDPz-ucc5HweJYt6xehe_1bV-" \
-H "Content-Type: application/json" \
-d '{
"id": 88,
"id_planificacion": 501,
"tipo": 2,
"fecha_hora_inicio": "2026-07-29 10:15:00",
"fecha_hora_fin": "2026-07-29 10:45:00",
"texto": "Reunión de equipo (reprogramada)"
}'
Response
{ "code": 1, "message": "Evento extra modificado correctamente" }
Borrar Evento
POST https://api.mitrabajo.uy/borrar-evento
Deletes an extra event from a planning record.
Request Headers
| Header | Value | Required |
|---|---|---|
X-Api-Key |
Your access token | Yes |
Content-Type |
application/json |
Yes |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
id |
integer | Yes | ID of the extra event to delete |
id_planificacion |
integer | Yes | ID of the parent planning record |
Example
curl -X POST https://api.mitrabajo.uy/borrar-evento \
-H "X-Api-Key: EPZoeOHHDPz-ucc5HweJYt6xehe_1bV-" \
-H "Content-Type: application/json" \
-d '{
"id": 88,
"id_planificacion": 501
}'
Response
{ "code": 1, "message": "Evento extra borrado correctamente" }