Aller au contenu principal
public

Créer une tâche

POST
/v1/tasks
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
anchorobject | null
contactIdsstring[]default:[]
Maximum array length: 20
dueOnstring | null
Motif: ^\d{4}-\d{2}-\d{2}$
isPrivatebooleandefault:false
ownerUserIdsstring[]default:[]
Maximum array length: 20
statusenum<string>default:todo
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}$
titlestringobligatoire
Required string length: 1 - 200

Réponse

201application/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