Hello,
Centreon API V2 has already work? I use Postman or my script python to post an add downtime but it’s doesn’t work.
I use multi format in my postman like:
-
{
"start_time": "2023-03-04T10:50:00Z",
"end_time": "2023-03-04T11:50:00Z",
"is_fixed": "true",
"author_id": 1453,
"comment": "Downtime set by admin",
"resource_id": 629136
"parent_resource_id": 44527
}
-
<{
"start_time": "2023-03-04T10:50:00Z",
"end_time": "2023-03-04T11:50:00Z",
"is_fixed": "true",
"author_id": 1453
"comment": "Downtime set by admin",
"resource_id": 629136,
"parent_resource_id": 44527
}]
Error 500: {"code":500,"message":"Object value found, but an array is required\n"}
Cordialy,
Francis