---
title: "Create Action Request On Specific LwM2M Device"
method: POST
path: "/v1/devices/{deviceId}/actions"
tags: ["Devices"]
---

# Create Action Request On Specific LwM2M Device

`POST /v1/devices/{deviceId}/actions`

## Request

- Base URL: `https://api.1nce.com/management-api`
- URL: `https://api.1nce.com/management-api/v1/devices/{deviceId}/actions`
- Auth: HTTP bearer

Initiate LwM2M action like read, write, execute on specific device. It has to be connected to 1NCE LwM2M endpoint to invoke this event.

## Path parameters

- `deviceId` string, required

## Request body

- Postschema1: Post LwM2M device action.
  - `action` 'read' | 'write' | 'execute' | 'observe-start' | 'observe-end', required: LwM2M action name to send to device.
  - `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 a device

## Response `202`

Message describing the result of operation

- PostResponseschema: Post device action response.
  - `id` string, required: Id of the created action request
  - `message` string, required: Message describing the result of operation.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found Error
- `409`: Conflict
- `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)
