Since you've extracted UniqueId value using any extractor component it's stored in jmeter variable (pointed in the extractor's configuration) and can be referred as e.g. ${uniqueId}
.
To pass into the further request you can use HTTP Request where in Post Body
you can set your JSON request code with ${uniqueId}
inserted in the right place.