modify example to use POST to get generated uuid