mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
852 B
852 B
title
| title |
|---|
| Feature Update |
Feature Update Endpoint
The feature update endpoint updates a feature and returns the updated feature resource.
For example, the /feature/1?value=false endpoint will update the feature path attribute and return the updated feature resource.
URL
PUT|PATCH /feature/{id}
Authentication
Required Permission: update feature
Roles with Permission: Admin
Parameters
| Name | Required | Rules |
|---|---|---|
| value | No | string, max:192 |
Response
{
feature: {
id: id,
name: "name",
value: "value",
created_at: "created_at",
updated_at: "updated_at"
}
}
Example
curl -X PATCH -H "Authorization: Bearer {token}" https://api.animethemes.moe/feature/1