Move thing to another tenant
PUThttps://apis.<domain>/iot/provision/things/:id/move
Move a thing to a different tenant.
Authorization Action:
core:provision:move
Request
Path Parameters
id stringrequired
- application/json
Bodyrequired
tenantstringrequired
Responses
- 204
- 400
- 401
- 500
No Content - thing moved successfully
Malformed request body
Unauthorized
Unexpected server-side error occurred.
Authorization: http
name: bearerAuthtype: httpscheme: bearerdescription: * Users access: `Authorization: Bearer <user_token>`
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://apis.<domain>/iot/provision/things/:id/move");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"tenant\": \"string\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());