DocScoDoc/docs/samples/sample_assiduites_create.json.md

697 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": "Cet \u00e9tudiant n'existe pas."
        }
    ],
    "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": [],
    "success": [
        {
            "indice": 0,
            "message": {
                "assiduite_id": 50
            }
        }
    ]
}