PHP
$data = array (
'image' => 'string',
);
$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/collections/{collection-uid}/images?format=json?collection=<collection>', false, $context);