Skip to main content
Glama

Datasets Attach Dataset

datasets_attach_dataset
Destructive

Attach an existing DataSource row to a revision.

For a fresh file upload, POST .../datasets/upload creates the DataSource + link in one shot. A client that can only send JSON — every MCP client — uploads with POST /uploads/presign, sends the file the way its method says, calls POST /uploads/confirm and attaches the result here, with the file's role. The upload is checked after confirm answers: until it is confirmed this answers 409 with details.reason upload_pending and Retry-After (also as details.retry_after_s) — ask again then. An upload that was refused, could not be checked or was cancelled answers 409 upload_rejected, upload_failed or upload_cancelled, which waiting does not change.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roleNoRole of the file on the revision (e.g. cad_3d for a 3D CAD model, drawing_2d for a 2D drawing).other
part_idYes
attributesNoFree-form metadata for the attachment, as a JSON object.
is_primaryNoWhether this dataset is the primary one for the revision.
revision_idYes
data_source_idYesIdentifier of the uploaded data source to attach to the revision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources