APG|SGA
infosnowAPI Type 1API Type 2Divers

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

EntityTypeValuesDescription
mediaclients[]arraymediaclientslist of mediaclient objects

mediaclients

EntityTypeValuesDescription
idintany valid valueid of mediaclient
operationobjectoperationoperation times
(continuous if start and end time are the same)

operation

EntityTypeValuesDescription
startstring00:00-24:00start time
endstring00:00-24:00end 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

CodeDescription
1000Invalid JSON data
1001Required attributes missing
1002Access denied