List assignment periods visible in the caller's organization scope.
GET
/v1/devices/{deviceId}/organization-assignments
const url = 'https://api.dev.iot-sens.schlossers.at/v1/devices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/organization-assignments?limit=25';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.dev.iot-sens.schlossers.at/v1/devices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/organization-assignments?limit=25' \ --header 'Authorization: Bearer <token>'Returns 25 reverse-chronological periods at a time without an exact total. The first request fixes an upper anchor; continuations retain it, the Device, Tenant, and caller’s current Organization visibility.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”deviceId
required
string format: uuid
Query Parameters
Section titled “Query Parameters”cursor
string
Opaque continuation token; reuse the original filters and scope.
limit
integer
Number of timeline records to return; defaults to 25, accepts 1 through 100, and is bound into continuation cursors.
Responses
Section titled “Responses”Filtered append-only assignment history.
Media typeapplication/json
object
items
required
Array<object>
object
deviceAssignmentId
required
string format: uuid
deviceId
required
string format: uuid
tenantId
required
string format: uuid
organizationUnitId
required
string format: uuid
validFrom
required
string format: date-time
assignedAt
required
string format: date-time
nextCursor
string
Examplegenerated
{ "items": [ { "deviceAssignmentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "deviceId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "tenantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "organizationUnitId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "validFrom": "2026-04-15T12:00:00Z", "validTo": "2026-04-15T12:00:00Z", "assignedAt": "2026-04-15T12:00:00Z" } ], "nextCursor": "example"}default
Section titled “default”A safe platform error response.
Media typeapplication/json
object
error
required
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”Cache-Control
string