Files
animethemes-api-docs/docs/jsonapi/reference/admin/feature/update/index.md
T
2025-07-29 00:56:10 +02:00

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