API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola

POST /v1/work-planning/reject-week

POST/v1/work-planning/reject-week

Reject a week of submitted work schedule entries (team leader). Accepts employeeId (ADR 0123, kanonisch) ODER userId (Legacy).

Cuerpo de la solicitud

NombreTipoDescripción
userIdstringEmployee user ID whose week to reject
employeeIdstringemployee_profile._id (bevorzugt)
weekStartobligatoriostring<date>
reasonobligatoriostringMandatory rejection reason shown to the employee

Ejemplo

curl -X POST https://api.codemeta-os.de/v1/work-planning/reject-week \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "userId": "string",
  "employeeId": "string",
  "weekStart": "string",
  "reason": "string"
}'
const result = await cm.work-planning.post({
  "userId": "string",
  "employeeId": "string",
  "weekStart": "string",
  "reason": "string"
});

Códigos de respuesta

HTTP Significado
200 Default Response

Búsqueda