Update a feature's name, description, default or enum options
const url = 'https://api.seal0.app/v1/features/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"add_enum_options":["example"],"default_value":true,"description":"example","grace_percent":1,"name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.seal0.app/v1/features/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "add_enum_options": [ "example" ], "default_value": true, "description": "example", "grace_percent": 1, "name": "example" }'Merge semantics. Absent fields are unchanged; null clears a nullable field.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Optional; replays the stored response for 24 hours.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Metered features only: how far usage may exceed the limit before the feature is no longer granted. 0 is a hard limit. Only metered features accept a non-zero value.
Example generated
{ "add_enum_options": [ "example" ], "default_value": true, "description": "example", "grace_percent": 1, "name": "example"}Responses
Section titled “Responses”The updated feature.
object
Metered features only: how far usage may exceed the limit before the feature is no longer granted. 0 is a hard limit. Always 0 for other types.
Feature or plan key.
Example generated
{ "created_at": "2026-04-15T12:00:00Z", "default_value": true, "description": "example", "enum_options": [ "example" ], "grace_percent": 1, "id": "example", "key": "example", "name": "example", "updated_at": "2026-04-15T12:00:00Z", "value_type": "example"}Error envelope.
object
object
Stable snake_case error code.
Offending input field, when known.
Example generated
{ "error": { "code": "example", "field": "example", "message": "example", "request_id": "example" }}Error envelope.
object
object
Stable snake_case error code.
Offending input field, when known.
Example generated
{ "error": { "code": "example", "field": "example", "message": "example", "request_id": "example" }}Error envelope.
object
object
Stable snake_case error code.
Offending input field, when known.
Example generated
{ "error": { "code": "example", "field": "example", "message": "example", "request_id": "example" }}Error envelope.
object
object
Stable snake_case error code.
Offending input field, when known.
Example generated
{ "error": { "code": "example", "field": "example", "message": "example", "request_id": "example" }}Error envelope.
object
object
Stable snake_case error code.
Offending input field, when known.
Example generated
{ "error": { "code": "example", "field": "example", "message": "example", "request_id": "example" }}default
Section titled “default”Error envelope.
object
object
Stable snake_case error code.
Offending input field, when known.
Example generated
{ "error": { "code": "example", "field": "example", "message": "example", "request_id": "example" }}