---
title: "Assign driver to channel"
method: POST
path: "/distchannels/{channelId}/drivers"
tags: ["Channels"]
---

# Assign driver to channel

`POST /distchannels/{channelId}/drivers`

## Request

- Base URL: `https://api.smartthings.com/v1`
- URL: `https://api.smartthings.com/v1/distchannels/{channelId}/drivers`
- Auth: OAuth 2
  - Implicit: `https://auth-global.api.smartthings.com`
  - Scopes: `w:channels:*`
- TypeScript: <https://skmtc.dev/smartthings/apis/smartthings-api/docs/distchannels/:channelId/drivers/post.ts> (a function with typed inputs; its response is checked against the schema)

Assign a specific driver and version to a channel

## Request body

- DriverRevision
  - `driverId` string, ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$: The ID of the Sprocket driver
  - `version` string: The version of the driver revision being returned

## Response `200`

Driver channel details

- DriverChannel
  - `channelId` string, uuid: The identifier of the Sprocket channel
  - `driverId` string, ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$: The ID of the Sprocket driver
  - `version` string: The version of the driver revision being returned
  - `createdDate` string: The ISO-8601 formatted timestamp when the channel was created
  - `lastModifiedDate` string: The ISO-8601 formatted timestamp when the channel was last modified

## Changes

- **2022-12-19** `adcacfc2749d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/smartthings/apis/smartthings-api/changes/distchannels/:channelId/drivers/post.md)

---

[API](https://skmtc.dev/smartthings/apis/smartthings-api.md) - [All operations](https://skmtc.dev/smartthings/apis/smartthings-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smartthings/apis/smartthings-api/revisions/2788a4236800?raw)
