
# Update an author

Update an author. Absent fields keep their stored values, and an optional field sent as an empty string is cleared. Ids come from [the list](/api/authors/get-authors).

```sh
PATCH https://sitepaste.com/api/v1/public/sites/{siteId}/authors/{authorId}
```

Requires the `content` scope.

## Usage

```bash
curl -X PATCH "https://sitepaste.com/api/v1/public/sites/default/authors/a7xkq3mz9r2t" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "bio": "Editor at large" }'
```


## Body

Any of `name`, `bio`, `imageUrl`, `email`, `website`, `twitter`, or `linkedin`. The rules match [create](/api/authors/post-authors).

## Response

200 OK with the updated author record. 400 when `{authorId}` is malformed; 404 when it is well formed but names no author on the site.