API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console

POST /v1/time-accounts/transactions/{txId}/reject

POST/v1/time-accounts/transactions/{txId}/reject

Reject a PENDING outside-flex overtime booking (ADR 0050a Phase 2)

Modèle de données

Cette opération porte sur l'entité Time Account (time_account). Les 14 champs (type, validation, caractère obligatoire, relations) figurent dans la référence du schéma.

Corps de la requête

NomTypeDescription
noteobligatoirestring

Paramètres de chemin

NomTypeDescription
txIdobligatoirestring

Exemple

curl -X POST https://api.codemeta-os.de/v1/time-accounts/transactions/{txId}/reject \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "note": "string"
}'
const result = await cm.time-accounts.post({
  "note": "string"
});

Codes de réponse

HTTP Signification
200 Default Response

Recherche