Import a temporary create-only snapshot from IOTA.
const url = 'https://api.dev.iot-sens.schlossers.at/v1/tenants/1/imports/iota-snapshot';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"baseUrl":"https://example.com","username":"example","password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.dev.iot-sens.schlossers.at/v1/tenants/1/imports/iota-snapshot \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "baseUrl": "https://example.com", "username": "example", "password": "example" }'Loads every tenant visible to the supplied IOTA credentials and creates the valid device types and devices in the active target tenant. Existing SENS records are never changed, deleted, reactivated, or moved. The credentials are used only for this request and are never persisted or included in logs or audit metadata. Only platform administrators may call this temporary V1 migration operation. Responses are not cacheable.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Examplegenerated
{ "baseUrl": "https://example.com", "username": "example", "password": "example"}Responses
Section titled “Responses”The valid snapshot subset was persisted atomically.
object
object
object
object
object
Example
{ "issues": [ { "entity": "device_type", "code": "invalid_device_type_code" } ]}Headers
Section titled “Headers”A safe platform error response.
object
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”Bearer authentication is missing, invalid, expired, or revoked.
object
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”A safe platform error response.
object
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”A safe platform error response.
object
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”A safe platform error response.
object
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”A safe platform error response.
object
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”A safe platform error response.
object
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”A safe platform error response.
object
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”A safe platform error response.
object
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}