---
title: "Add botData writer"
method: POST
path: "/botData/{key}/writers"
tags: ["botData"]
---

# Add botData writer

`POST /botData/{key}/writers`

Add one or more users to a botDatas list of authorized writers.

## Path parameters

- `key` string, required

## Request body

- string[] — User name

## Response `201`

One or more of the valid users were added to the list of authorized writers.

- BotDataWriterResponse[]
  - `botDataId` string — Id of a write-protected botData
  - `userId` string — Id of a user having write permission to the botData
  - `createdAt` string — Timestamp at which the the write permission was created
  - `updatedAt` string — Timestamp at which the the write permission was modified

## Other responses

- `400` — Bad Request
- `401` — Authentication Error
- `403` — Forbidden
- `404` — Forbidden
- `default` — Error

## Changes

- **2018-10-22** (v1) `b2dc0f69a84c` — 1 info
  - endpoint added
- **2018-03-30** (v1) `4ca6b20ef8df` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/salesforce/apis/refocus-api/changes/botData/:key/writers/post.md)

---

[API](https://skmtc.dev/salesforce/apis/refocus-api.md) · [All operations](https://skmtc.dev/salesforce/apis/refocus-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/salesforce/refocus-api/revisions/42c2153b047e/schema)
