Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

POST http://IP-address:port/prefix/archive/contents/bookmarks/create

The request body must contain the JSON with the Body zapytania musi zawierać JSON z parametrami begins_at, ends_atcomment, is_protectedendpoint and oraz storage_id parameters (see Get bookmarks from archive(zobacz: Pozyskaj zakładki z archiwum):

Code Block
[
	{
		"begins_at":"20190226T102523.000",
		"comment":"text",
		"ends_at":"20190226T102646.000",
		"is_protected":true, 
		"endpoint":"hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
		"storage_id":"hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage"
	}
]

JSON for creating a group bookmarkdo tworzenia grupy zakładek:

Code Block
[
	{
		"begins_at":"20190226T102523.000",
		"comment":"text",
		"ends_at":"20190226T102646.000",
		"is_protected":true, 
		"endpoint":"hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
		"storage_id":"hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage"
	},
	{   "endpoint":"hosts/Server1/DeviceIpint.2/SourceEndpoint.video:0:0",
		"storage_id":"hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage"
	}
]

A group bookmark will be linked to several cameras, however the Grupa zakładek zostanie powiązana z kilkoma kamerami, lecz parametry begins_at, ends_atcomment and  oraz is_protected parameters are taken from the first array of elements zostaną pobrane z pierwszej tabeli elementów.

Note
titleAttention!

Grupa zakładek w zapytaniu GET (zobacz: Pozyskaj zakładki z archiwum) będzie wyglądać jak kilka zakładek z różnymi parametrami endpoint oraz storage_id.

Aby dokonać edycji grupy zakładek (zobacz: Edytowanie zakładek), niezbędna jest edycja wszystkich pojedynczych zakładek w tym samym czasie; upewnij się, że wszystkie inne parametry oprócz endpoint oraz storage_id są takie same

A group bookmark in a GET request (see Get bookmarks from archive) will look like several bookmarks with different endpoint and storage_id parameters.

To edit a group bookmark (see Edit bookmarks), it is necessary to edit all single bookmarks at the same time, and make sure that all their other parameters except endpoint and storage_id match.