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

# Add generator writer

`POST /generators/{key}/writers`

Add one or more users to an generator’s list of authorized writers.

## Path parameters

- `key` string, required

## Request body

- string[] — User name or id

## Response `201`

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

- GeneratorWriterResponse[]
  - `generatorId` string — Id of a write-protected generator
  - `userId` string — Id of a user having write permission to the generator
  - `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
- `403` — Forbidden
- `404` — Resource Not Found
- `default` — Error

---

[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)
