Capabilities
discard_scratch
Discard a staged draft without changing saved workspace files.
How this capability is exposed
- Stable ID
ursy.cloud:discard_scratch- Owning service
- URSY.cloud
- Runtime
- See the source declaration
Capability declarations describe what the service exposes. They are not a guarantee of availability or permission to execute an operation.
Accepted contract
{
"id": "ursy.cloud:discard_scratch",
"name": "discard_scratch",
"description": "Discard a staged draft without changing saved workspace files.",
"method": "DELETE",
"path": "/v1/scratch/{draft_id}",
"inputSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"draft_id": {
"type": "string",
"pattern": "^draft_[a-f0-9]{32}$"
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9._:-]+$"
}
},
"required": [
"draft_id",
"idempotency_key"
]
},
"outputSchema": {
"type": "object",
"additionalProperties": true,
"properties": {
"discarded": {
"const": true
}
},
"required": [
"discarded"
]
},
"auth_required": true,
"scope": "cloud.scratch.manage",
"read_only": false,
"service_id": "ursy-cloud",
"parent_id": "",
"summary": "Discard a staged draft without changing saved workspace files.",
"source_url": "https://api.ursy.cloud/v1/registry-capabilities",
"source_type": "capability_manifest",
"verified_at": "2026-10-14 04:03:00",
"revision": "33ec00ab14b09a8221ab2ec3f128d0882b48b2e378dae99d3d5e06d49d59eb67",
"type": "capabilities",
"source": {
"url": "https://api.ursy.cloud/v1/registry-capabilities",
"type": "capability_manifest"
},
"last_verified_at": "2026-10-14 04:03:00",
"stale": false
}