Skip to content
SENS Platform Docs

List assignment periods visible in the caller's organization scope.

GET
/v1/devices/{deviceId}/organization-assignments
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.

deviceId
required
string format: uuid
cursor
string
<= 512 characters

Opaque continuation token; reuse the original filters and scope.

limit
integer
default: 25 >= 1 <= 100

Number of timeline records to return; defaults to 25, accepts 1 through 100, and is bound into continuation cursors.

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
validTo
required
One of:
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"
}

A safe platform error response.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: VALIDATION_FAILED AUTHENTICATION_FAILED AUTHORIZATION_FAILED RESOURCE_NOT_FOUND CONFLICT DEPENDENCY_FAILURE FLOW_FAILURE RATE_LIMITED INTERNAL_ERROR
category
required
string
Allowed values: validation authentication authorization not_found conflict dependency_failure flow_failure rate_limit internal
message
required

Safe client-facing diagnostic message.

string
correlationId
required

Correlation ID for operational investigation.

string
>= 1 characters
details

Safe bounded diagnostic details.

object
key
additional properties
One of:
string
Example
{
"error": {
"code": "VALIDATION_FAILED",
"category": "validation"
}
}
Cache-Control
string
Allowed value: no-store