Aller au contenu principal
public

Modifier une tâche

PATCH
/v1/tasks/{id}
Authorizationstringheaderobligatoire

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

idstringobligatoire
if-matchstringheader

Version de la tâche, telle que l’en-tête ETag l’a rendue à la lecture. Quand elle est fournie, la modification n’est appliquée que si la tâche n’a pas changé depuis : sinon la réponse est 412 et la tâche reste intacte.

Corps

application/json
dueOnstring | null
Motif: ^\d{4}-\d{2}-\d{2}$
statusenum<string>
Options disponibles: todo, in_progress, waiting, done, cancelled
subStatusIdstring | null
Motif: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
titlestring
Required string length: 1 - 200

Réponse

200application/json
anchorobject | nullobligatoire
completedAtstring | nullobligatoire
contactsobject[]default:[]
createdAtstringobligatoire
createdBystring | nullobligatoire
createdByNamestring | nullobligatoire
dueOnstring | nullobligatoire
Motif: ^\d{4}-\d{2}-\d{2}$
idstringobligatoire
Motif: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
isPrivatebooleanobligatoire
managerNamestring | nullobligatoire
managerUserIdstring | nullobligatoire
minebooleanobligatoire
notesobject | nullobligatoire
ownersobject[]default:[]
remindersobject[]default:[]
statusenum<string>obligatoire
Options disponibles: todo, in_progress, waiting, done, cancelled
subStatusobject | nullobligatoire
titlestringobligatoire
updatedAtstringobligatoire