mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
939 B
939 B
title
| 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-wiki-1663559663946.sql endpoint will update the dump path attribute and return the updated dump resource.
URL
PUT|PATCH /dump/{id}
Authentication
Required Permission: update dump
Roles with Permission: Admin
Other Requirements: Dump must not be soft deleted
Parameters
| Name | Required | Rules |
|---|---|---|
| path | No | string, max:192 |
Response
{
dump: {
id: id,
path: "path",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at",
link: "link"
}
}
Example
curl -X PATCH -H "Authorization: Bearer {token}" https://api.animethemes.moe/dump/1