Create an IoT Hub Using REST API and POSTMAN

Bhupendra Pratap Singh 6 Reputation points
2021-05-26T12:41:13.977+00:00

HI,

I am looking to create IoT Hub using REST API and POSTMAN but didn't find the correct document to create an IoT Hub?

Having said that API(s) for Delete a IoT Hub is available on below docs.

https://learn.microsoft.com/en-us/rest/api/iothub/iothubresource/delete

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. QuantumCache 20,671 Reputation points Moderator
    2021-05-26T22:38:12.713+00:00

    Hello @Bhupendra Pratap Singh

    Postman:Iot Hub Resource - Create Or Update
    I have followed the same document to create my new IOTHub via REST API.

    100024-image.png

    Code SDK API: Please follow this document section.
    Use the resource provider REST API to create an IoT hub

    var requestUri = string.Format("https://management.azure.com/subscriptions/{0}/resourcegroups/{1}/providers/Microsoft.devices/IotHubs/{2}?api-version=2016-02-03", subscriptionId, rgName, iotHubName)  
    

    Use the IoT Hub resource provider REST API to create an IoT hub in your resource group. You can also use the resource provider REST API to make changes to an existing IoT hub.

    If the response is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.