mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
48 lines
853 B
Markdown
48 lines
853 B
Markdown
---
|
|
title: Dump Update
|
|
---
|
|
|
|
# Dump Update Endpoint
|
|
|
|
The dump update endpoint updates a dump and returns the updated dump resource.
|
|
|
|
For example, the `/dump/1?path=animethemes-db-dump-content-1663559663946.sql` endpoint will update the dump path attribute and return the updated dump resource.
|
|
|
|
## URL
|
|
|
|
```sh
|
|
PUT|PATCH /dump/{id}
|
|
```
|
|
|
|
## Authentication
|
|
|
|
**Required Permission**: update dump
|
|
|
|
**Roles with Permission**: Admin
|
|
|
|
## Parameters
|
|
|
|
| Name | Required | Rules |
|
|
| :-----: | :------: | :---------------- |
|
|
| path | No | string, max:192 |
|
|
|
|
## Response
|
|
|
|
```json
|
|
{
|
|
dump: {
|
|
id: id,
|
|
path: "path",
|
|
created_at: "created_at",
|
|
updated_at: "updated_at",
|
|
link: "link"
|
|
}
|
|
}
|
|
```
|
|
|
|
## Example
|
|
|
|
```bash
|
|
curl -X PATCH -H "Authorization: Bearer {token}" https://api.animethemes.moe/dump/1
|
|
```
|