Skip to content

UpdateAssetFileRequest

Source code in docs_src/capo_devops_agent/types/update_asset_file_request.py
class UpdateAssetFileRequest(TypedDict, closed=True):
    agent_space_id: (
        "capo_devops_agent.types.agent_space_identifier.AgentSpaceIdentifier"
    )
    """<p>The unique identifier for the agent space containing the asset</p>"""
    asset_id: "capo_devops_agent.types.resource_id.ResourceId"
    """<p>The unique identifier of the asset containing the file</p>"""
    path: "capo_devops_agent.types.asset_file_path.AssetFilePath"
    """<p>The path of the file within the asset to update</p>"""
    content: NotRequired["capo_devops_agent.types.asset_file_body.AssetFileBody"]
    """<p>Updated file content. If omitted, the existing content is unchanged.</p>"""
    metadata: NotRequired["object"]
    """<p>Metadata fields to update. Only the fields present in this document are updated. Omitted fields retain their current values.</p>"""
    client_token: NotRequired["str"]
    """<p>A unique, case-sensitive identifier used for idempotent asset file update</p>"""

agent_space_id instance-attribute

agent_space_id: AgentSpaceIdentifier

The unique identifier for the agent space containing the asset

asset_id instance-attribute

asset_id: ResourceId

The unique identifier of the asset containing the file

client_token instance-attribute

client_token: NotRequired[str]

A unique, case-sensitive identifier used for idempotent asset file update

content instance-attribute

content: NotRequired[AssetFileBody]

Updated file content. If omitted, the existing content is unchanged.

metadata instance-attribute

metadata: NotRequired[object]

Metadata fields to update. Only the fields present in this document are updated. Omitted fields retain their current values.

path instance-attribute

The path of the file within the asset to update