Aller au contenu principal
public

Enregistrer une saisie de temps

POST
/v1/time-entries
Authorizationstringheaderobligatoire

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

idempotency-keystringheader

Clé de reprise choisie par le client (8 à 255 caractères). Quand elle est fournie, une reprise portant la même clé et la même charge ne crée rien : elle rend la ressource déjà créée, relue au moment de la reprise. La même clé sur une charge différente est refusée.

Corps

application/json
activityDatestringobligatoire
billablebooleandefault:true
descriptionstring | nulldefault:null
Maximum string length: 2000
matterIdstring | nulldefault:null
Motif: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
quantitynumberdefault:0
Plage requise: 0 <= x

Réponse

201application/json
activityDatestring | nullobligatoire
amountHtnumber | nullobligatoire
authorIdstring | nullobligatoire
billablebooleanobligatoire
billedbooleanobligatoire
categoryenum<string>obligatoire
Options disponibles: temps, frais, prestation, debours
createdAtstringobligatoire
deletedAtstring | nullobligatoire
descriptionstring | nullobligatoire
discountKindenum<string> | nullobligatoire
Options disponibles: percent, amount
discountValuenumber | nullobligatoire
idstringobligatoire
Motif: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
invoiceIdstring | nullobligatoire
Motif: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
invoiceLabelstring | nullobligatoire
matterIdstring | nullobligatoire
Motif: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
quantitynumber | nullobligatoire
stakeholderIdstring | nullobligatoire
Motif: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
statusenum<string>default:confirmed
Options disponibles: draft, confirmed
tenantIdstringobligatoire
Motif: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
titlestring | nullobligatoire
unitCostnumber | nullobligatoire
updatedAtstringobligatoire
vatRatenumber | nullobligatoire
Plage requise: 0 <= x <= 1
workedQuantitynumber | nullobligatoire