URSY.DEVPART OF THE URSY NETWORKSign inBuild with URSY

Every contract sourcedEvery check datedGaps shown, never filledBuild with URSY

Capabilities

trash_file

Move one file to recoverable trash with its current ETag; folders with children are rejected.

How this capability is exposed

Stable ID
ursy.cloud:trash_file
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

REGISTRY JSON
{
    "id": "ursy.cloud:trash_file",
    "name": "trash_file",
    "description": "Move one file to recoverable trash with its current ETag; folders with children are rejected.",
    "method": "DELETE",
    "path": "/v1/files/{file_id}",
    "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
            "file_id": {
                "type": "string",
                "pattern": "^file_[1-9][0-9]{0,14}$"
            },
            "if_match": {
                "type": "string",
                "pattern": "^\"[0-9a-f]{64}\"$"
            },
            "idempotency_key": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9._:-]+$"
            }
        },
        "required": [
            "file_id",
            "if_match",
            "idempotency_key"
        ]
    },
    "outputSchema": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
            "file": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                    "schema": {
                        "type": "string",
                        "enum": [
                            "ursy.cloud/file/v1"
                        ]
                    },
                    "id": {
                        "type": "string",
                        "pattern": "^file_[1-9][0-9]{0,14}$"
                    },
                    "workspace_id": {
                        "type": "string",
                        "pattern": "^ws_[1-9][0-9]*$"
                    },
                    "parent_id": {
                        "oneOf": [
                            {
                                "type": "string",
                                "pattern": "^file_[1-9][0-9]{0,14}$"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 190,
                        "x-ursy-maxBytes": 190
                    },
                    "type": {
                        "type": "string",
                        "enum": [
                            "folder",
                            "document",
                            "spreadsheet",
                            "presentation",
                            "note",
                            "publication",
                            "pdf",
                            "uploaded_file"
                        ]
                    },
                    "current_version_id": {
                        "oneOf": [
                            {
                                "type": "string",
                                "pattern": "^ver_[1-9][0-9]*$"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "etag": {
                        "type": "string",
                        "pattern": "^\"[a-f0-9]{64}\"$"
                    },
                    "state": {
                        "type": "string",
                        "enum": [
                            "active",
                            "trashed"
                        ]
                    },
                    "created_at": {
                        "type": "string"
                    },
                    "updated_at": {
                        "type": "string"
                    },
                    "human_url": {
                        "type": "string"
                    }
                },
                "required": [
                    "schema",
                    "id",
                    "workspace_id",
                    "parent_id",
                    "name",
                    "type",
                    "current_version_id",
                    "etag",
                    "state",
                    "created_at",
                    "updated_at",
                    "human_url"
                ]
            },
            "request_id": {
                "type": "string"
            },
            "replayed": {
                "type": "boolean"
            }
        },
        "required": [
            "file"
        ]
    },
    "auth_required": true,
    "scope": "cloud.files.trash",
    "read_only": false,
    "service_id": "ursy-cloud",
    "parent_id": "",
    "summary": "Move one file to recoverable trash with its current ETag; folders with children are rejected.",
    "source_url": "https://api.ursy.cloud/v1/registry-capabilities",
    "source_type": "capability_manifest",
    "verified_at": "2026-10-15 07:03:21",
    "revision": "fa865690a2b7f07e753caacc82668cbb31eaff856634397d9805db90f2f30808",
    "type": "capabilities",
    "source": {
        "url": "https://api.ursy.cloud/v1/registry-capabilities",
        "type": "capability_manifest"
    },
    "last_verified_at": "2026-10-15 07:03:21",
    "stale": false
}