Headers
-
request-id
string Unique identifier for the API request. Example: f7ecf495-ca1c-4468-a6c2-6ee3f723fa00
Path parameters
-
assetId
string Required The identifier of the Asset
Body
Required
-
replaceExistingLabel
boolean Indicate whether to replace the existing Label, in the case where the Asset is already linked to a Label
-
nfcId
string Required Label NFC identifier, used when creating an Asset and linking a Label at the same time. Example: '0000007B'
Maximum length is
20
. Format should match the following pattern:^[a-zA-Z0-9]*$
.
POST
/assets/{assetId}/labels
curl \
--request POST 'https://api.reelables.com/v1/assets/{assetId}/labels' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "request-id: string" \
--data '{"replaceExistingLabel":true,"nfcId":"string"}'
Request examples
# Headers
request-id: string
# Payload
{
"replaceExistingLabel": true,
"nfcId": "string"
}
Response examples (200)
{
"inSpaces": [
{
"spaceName": "string",
"spaceId": "string",
"hasExited": true,
"enteredOn": "2025-05-04T09:42:00Z",
"exitedOn": "2025-05-04T09:42:00Z"
}
],
"temperatures": {
"nextToken": "string",
"items": [
{
"timestamp": "2025-05-04T09:42:00Z",
"degreesCelsius": 42.0
}
]
},
"name": "string",
"locations": {
"nextToken": "string",
"items": [
{
"lastSeenTimestamp": "2025-05-04T09:42:00Z",
"coordinate": {
"latitude": 42.0,
"accuracy": 42,
"longitude": 42.0
},
"address": {
"country": "string",
"road": "string",
"city": "string",
"district": "string",
"postalCode": "string",
"county": "string",
"state": "string"
},
"error": 42,
"timestamp": "2025-05-04T09:42:00Z"
}
]
},
"id": "string",
"label": {
"bleId": 42,
"nfcId": "string",
"addedOn": "2025-05-04T09:42:00Z"
},
"createdOn": "2025-05-04T09:42:00Z",
"workspaceId": "string"
}
Response examples (401)
{
"errors": [
{
"code": "string",
"id": "string",
"detail": "string",
"title": "string",
"status": "string"
}
]
}
Response examples (403)
{
"errors": [
{
"code": "string",
"id": "string",
"detail": "string",
"title": "string",
"status": "string"
}
]
}
Response examples (404)
{
"errors": [
{
"code": "string",
"id": "string",
"detail": "string",
"title": "string",
"status": "string"
}
]
}
Response examples (429)
{
"errors": [
{
"code": "string",
"id": "string",
"detail": "string",
"title": "string",
"status": "string"
}
]
}