DocAssiduites/docs/samples/sample_assiduites_create.json.md

727 B

assiduites_create

POST /assiduites/create

Content-Type: application/json

[{"etudid":1,"date_debut": "2023-10-26T08:00","date_fin": "2023-10-26T10:00","etat": "absent"}]

{
    "errors": [
        {
            "indice": 0,
            "message": "Duplication: la p\u00e9riode rentre en conflit avec une plage enregistr\u00e9e"
        }
    ],
    "success": []
}

POST /assiduites/create

Content-Type: application/json

[{"etudid":-1,"date_debut": "2023-10-26T08:00","date_fin": "2023-10-26T10:00","etat": "absent"}]

{
    "errors": [
        {
            "indice": 0,
            "message": "Cet \u00e9tudiant n'existe pas."
        }
    ],
    "success": []
}