DocScoDoc/docs/samples/sample_assiduite_create.json.md

39 lines
722 B
Markdown
Raw Normal View History

### assiduite_create
#### POST /assiduite/1/create
> `Content-Type: application/json`
>
> `[{"date_debut": "2023-10-27T08:00","date_fin": "2023-10-27T10:00","etat": "absent"}]`
```json
{
2024-07-27 13:34:32 +02:00
"errors": [],
"success": [
{
"indice": 0,
2024-07-27 13:34:32 +02:00
"message": {
"assiduite_id": 39
}
}
2024-07-27 13:34:32 +02:00
]
}
```
2023-07-28 11:30:28 +02:00
#### POST /assiduite/1/create
> `Content-Type: application/json`
>
> `[{"date_debut": "2023-10-27T08:00","date_fin": "2023-10-27T10:00","etat": "absent"}]`
```json
{
2024-07-25 16:04:18 +02:00
"errors": [
{
"indice": 0,
2024-07-25 16:04:18 +02:00
"message": "Duplication: la p\u00e9riode rentre en conflit avec une plage enregistr\u00e9e"
}
2024-07-25 16:04:18 +02:00
],
"success": []
}
```