Skip to main content
Skip table of contents

Add a license plate number

Add a license plate to a collection

Add license plates to a previously created collection.

JSON
{
    "license_plate": "1223-34"
}

PUT /api/license_plate_collections/{license-plate-collection-uid}/?format=json

Parameters

string license_plate REQUIRED – a license plate.

200 OK

Returns a JSON object with the ID of the created license plate

JSON
{
    "license_plate_uid": "<license-plate-uid>"
}

404 Not Found

Collection with this UID not found

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

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.