Create Multiple Things
With this method, you can create multiple thing instances for a specific thing type.
When you create multiple things using this method, it is mandatory that you provide a unique alternate ID for each and every thing instance. The method validates the request payload and initiates the thing creation job at the backend. In addition to the thing type, you can specify the thing template created for that thing type.
As a result, the method displays the response message 202 accepted and generates a correlation ID. You can find the correlation ID in the response header. For every correlation ID, the method generates unique log IDs one each for the number of things specified in the request payload. Using the correlation ID and the log ID, you can know the success or failure status of individual things. For more information, see Monitoring and Logging.
The multiple things that you are planning to create using this method, must belong a specific thing type. You cannot create things for multiple thing types or multiple thing templates in the same request payload. The things in the request payload must belong to only one object group and you cannot provide different object groups for different things.
Request URI:/v2/Things
Response Header
| Header | Description |
|---|---|
| correlationid | Unique correlation ID generated for the service executed. |
Payload Examples