---
title: "Create an author if not exists for a mapper"
method: POST
path: "/admin/api/author/createIfNotExistsFor"
tags: ["Authors"]
---

# Create an author if not exists for a mapper

`POST /admin/api/author/createIfNotExistsFor`

Creates an author for a mapper if it doesn't exist, otherwise returns existing author ID

## Request body

- AuthorCreateAuthorIfNotExistsForRequest
  - `authorMapper` string, required
  - `name` string

## Response `200`

OK

- AuthorCreateDtoResponse
  - `authorId` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

## Changes

> 2 revisions in range; 1 could not be searched.

- **2024-11-20** `f9c7961056cc` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ether/apis/etherpad-go-api/changes/admin/api/author/createIfNotExistsFor/post.md)

---

[API](https://skmtc.dev/ether/apis/etherpad-go-api.md) · [All operations](https://skmtc.dev/ether/apis/etherpad-go-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ether/etherpad-go-api/revisions/6f3a072916e8/schema)
