Update Integration Device
PUThttps://app.infodeck.io/api/organizations/:organizationId/integrations/:serviceId/devices/:deviceId
Update Integration Device
Request
Path Parameters
organizationId stringrequired
The ID of organization.
integrationServiceId stringrequired
The ID of integration.
deviceId stringrequired
The ID of integration device.
- application/json
Body
required
devEui stringrequired
The devEui of integration device.
name stringrequired
The name of integration device.
description string
The description of integration.
attributes object[]
Responses
- 200
- 401
- 403
- 422
- application/json
- Schema
- Example (from schema)
- Example
Schema
data objectrequired
{
"data": {
"id": "string",
"organizationId": "string",
"integrationServiceId": "string",
"name": "string",
"description": "string",
"devEui": "string",
"updatedAtDateString": "string",
"updatedAt": 0
}
}
{
"data": {
"id": "a-24e124535b312345",
"organizationId": "o-organizationId",
"integrationServiceId": "is-integrationServiceId",
"name": "IDT-Bot",
"description": "IDT-Bot-Description",
"devEui": "24e124535b312345",
"updatedAtDateString": "2024-01-31T00:00:00.000Z",
"updatedAt": 1706659200000
}
}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The request has not permission.
message stringrequired
The request has not permission message.
{
"error": "string",
"message": "string"
}
{
"error": "Unauthenticated",
"message": "Authentication is required and has failed or has not yet been provided."
}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The request has not permission.
message stringrequired
The request has not permission message.
{
"error": "string",
"message": "string"
}
{
"error": "Forbidden",
"message": "Access to the requested resource is forbidden."
}
The input data has invalid.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The input data has invalid.
message stringrequired
The input data has invalid message.
{
"error": "string",
"message": "string"
}
{
"error": "ValidationError",
"message": "Input data validation failed."
}
Authorization: http
name: usertype: httpscheme: bearerbearerFormat: JWTdescription: Get your API token via POST /authentications/tokens
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT 'https://app.infodeck.io/api/organizations/:organizationId/integrations/:serviceId/devices/:deviceId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"devEui": "string",
"name": "string",
"description": "string",
"attributes": [
{}
]
}'
ResponseClear