Updating requires the internal recordID. Creating a record does not need this value.
(if you are working with previous versions:
https://community.filemaker.com/docs/DOC-5778 (FMS14 CWP guide)
https://community.filemaker.com/docs/DOC-4254 (FMS13 CWP guide)
Thank you beverly for your reply.
Is there a way to specify record id in script?
I did the following:
modified my php code to:
$editCommand = $fm->newEditCommand('products', $recordID, $editedData);
$result = $editCommand->execute();
and FM script (addContainerData) to:
Set Variable [$url; Value: Get(ScriptParameter)]
Insert from URL [Select, No Dialog; products::brochure; $url]
Exit Script 
But, still with no success. the record is modified with $editedData array but can't insert to the container.