Update one existing flag (404 if missing)

Authenticate every request with Authorization: Bearer <token> — a JWT or API token.

Download OpenAPI JSON
Overview
PUT/ecosystem/feature-flags/{id}/{key}ecosystem

Update one existing flag (404 if missing)

Replace a record in feature-flags by id, key.

Auth: bearerAuth — calls run as the authenticated user.

Parameters
  • idpathstring
  • keypathstring
Request body

application/json · optional

  • enabledoptionalboolean
  • descriptionoptionalstring
Example
{
  "enabled": true,
  "description": "string"
}
Responses
200

Updated flag

  • keystring
  • enabledboolean
  • descriptionstring
  • createdAtstring
  • updatedAtstring
Example
{
  "key": "string",
  "enabled": true,
  "description": "string",
  "createdAt": "string",
  "updatedAt": "string"
}
400

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
403

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
404

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
Code examples
cURL
curl -X PUT "https://api.agenticdeveloperhub.com/ecosystem/feature-flags/{id}/{key}" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "enabled": true,
  "description": "string"
}'
JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/ecosystem/feature-flags/{id}/{key}", {
  method: "PUT",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN",
    "Content-Type": "application/json"
  },
  body: "{\n  \"enabled\": true,\n  \"description\": \"string\"\n}",
});
const data = await res.json();