API Type 2 - Update mediaclients
Update one or more mediaclients of a certain resort.
API endpoint
mediaclients/id of resort
Request method
PUT
Request headers
Content-length: Length of submitted data in bytes
URL parameters
-
Request content
main entity
mediaclients
|
id | int | any valid value | id of mediaclient |
operation | object | operation | operation times (continuous if start and end time are the same) |
operation
|
start | string | 00:00-24:00 | start time |
end | string | 00:00-24:00 | end time |
Example
{
"mediaclients": [{
"id": 1,
"operation": {
"start": "12:31",
"end": "14:22"
}
}, {
"id": 2,
"operation": {
"start": "15:32",
"end": "18:23"
}
}]
}
Response content: OK
{}
Response content: Error
{
"error": 1000
}
Error codes
|
1000 | Invalid JSON data |
1001 | Required attributes missing |
1002 | Access denied |