---
title: "Create Action Requests for LwM2M Devices."
method: POST
path: "/v1/integrate/devices/actions/LWM2M"
tags: ["IoT Integrator"]
---

# Create Action Requests for LwM2M Devices.

`POST /v1/integrate/devices/actions/LWM2M`

## Request

- Base URL: `https://api.1nce.com/management-api`
- URL: `https://api.1nce.com/management-api/v1/integrate/devices/actions/LWM2M`
- Auth: HTTP bearer

Initiate LwM2M actions like read, write, execute on the specified devices. The devices have to be connected to 1NCE LwM2M endpoint to invoke this event.

## Request body

- BulkPostschema: Bulk Post LwM2M device action.
  - `deviceIds` string[], required: Devices that should receive the data
  - `action` 'read' | 'write' | 'execute' | 'observe-start' | 'observe-end', required: LwM2M action name to send to the devices.
  - `resourceAddress` string, required: LwM2M OMA object resource address.
  - `data` string: Data which should be written to some resource, should be passed only in write operation.
  - `requestMode` 'SEND_NOW' | 'SEND_WHEN_ACTIVE': Action request execution mode
  - `sendAttempts` number: The maximum number of attempts to send data to the devices

## Response `202`

Message describing the result of operation

- BulkPostResponseschema: Post device action response.
  - `acceptedRequests` BulkPostResponseschemaAcceptedRequestsInner[], required: successfully created action requests
    - `deviceId` string: Id of the device.
    - `requestId` string: Id of the request.
  - `rejectedDevices` string[], required: A list of devices for which it was not possible to send data.
  - `message` string, required: Message describing the result of operation.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal Server Error

---

[API](https://skmtc.dev/1nce/apis/1nce-os.md) - [All operations](https://skmtc.dev/1nce/apis/1nce-os/llms.txt) - [OpenAPI document](https://skmtc.dev/1nce/apis/1nce-os/revisions/f1aabbc6aeea?raw)
