/v1/workspaces/{workspace_id}/configs/{config_id}AuthUpdate a config
Key, name, description or order. Only the fields you send change. Needs `flags.project.manage`.
Path parameters
config_id*string · uuidId of the config.
workspace_id*string · uuidId of the workspace.
Request body
keystringNew key; must be a lowercase slug: a-z, 0-9 and "-", 1-63 characters, not starting with "-". SDKs address configs by SDK key, not by this key.
Example: "checkout"
namestringDisplay name, 1-100 characters.
Example: "Checkout"
descriptionstringFree-text description, at most 1000 characters.
ordinalintegerSort position.
Example: 1
notestringA change note (at most 500 characters), saved on the history entry. Environments with `require_note` refuse value writes without one.
Example: "Ticket FLAG-142"
Response · 200 The updated config.
id*string · uuidThe config's id.
workspace_id*string · uuidThe workspace that owns the config.
project_id*string · uuidThe project the config belongs to.
key*stringStable key, unique in the project.
Example: "main"
name*stringDisplay name.
Example: "Main"
description*stringFree-text description (may be empty).
Example: ""
ordinal*integerSort position in the project (ascending).
Example: 0
created_at*string · date-timeWhen the config was created.
updated_at*string · date-timeWhen the config last changed.
Example
Request
PATCH https://api.flags.productcraft.co/v1/workspaces/{workspace_id}/configs/{config_id}
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"key": "checkout",
"name": "Checkout",
"description": "string",
"ordinal": 1,
"note": "Ticket FLAG-142"
}Response
{
"id": "00000000-0000-0000-0000-000000000000",
"workspace_id": "00000000-0000-0000-0000-000000000000",
"project_id": "00000000-0000-0000-0000-000000000000",
"key": "main",
"name": "Main",
"description": "",
"ordinal": 0,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}