---
title: "Change DCI status"
method: POST
path: "/objects/{object-id}/data-collection/set-status"
tags: ["Data Collection"]
---

# Change DCI status

`POST /objects/{object-id}/data-collection/set-status`

Enables or disables multiple DCIs

## Path parameters

- `object-id` string, required

## Query parameters

- `command` 'disable' | 'activate', required

## Request body

- object
  - `dcis` integer[], required — Array of DCI IDs

## Response `200`

Status changed

## Other responses

- `401` — Access denied

## Changes

> 15 revisions in range; 12 could not be searched.

- **2023-02-23** `9c09a2aad349` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/netxms/apis/netxms-rest-api/changes/objects/:object-id/data-collection/set-status/post.md)

---

[API](https://skmtc.dev/netxms/apis/netxms-rest-api.md) · [All operations](https://skmtc.dev/netxms/apis/netxms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netxms/netxms-rest-api/revisions/04789afedcb3/schema)
