Breadcrumbs

Create a license plate collection

Create a license plate collection

Creating a new collection for car numbers. First, a collection for car numbers is created. Then, license plate numbers are added to it.

POST  /api/license_plate_collections/?format=json

200  OK

Returns a JSON object with the ID of the created collection

JSON
{
    "license_plate_collection_uid": "<license-plate-collection-uid>"
}
cURL
Bash
curl -k --request POST \
	--url 'https://your-domain/api/license_plate_collections/?format=json' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '[]'
PHP
PHP
$data = array (
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'POST',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/license_plate_collections/?format=json', false, $context);