Skip to navigation

Link or ignore a file

Preview

Links a component of a file to another file in CAD ROOMS, or ignores the component. A component represents a dependency of the file.

This operation corresponds to the Link File, Relink File, and Ignore File actions in the File Relationships panel of the CAD ROOMS app.

Specify either path or status:

  • path: Links the component to the latest state of the specified file and sets its status to resolved. The target file can belong to another project that you have access to.
  • status: Specify ignored to set the component’s status to ignored and remove any existing link to a file.

CAD ROOMS starts CAD processing once the file has no remaining missing references.

Required permission: Collaborator or higher in the project of the revision.

Authentication

AuthorizationBearer
An API key associated with your user account and workspace. API requests inherit your existing workspace permissions.
OR
AuthorizationBearer
The session token of a user signed in to the CAD ROOMS app. Every endpoint accepts it in place of an API key.

Path parameters

revisionIdstringRequired
Unique identifier of the revision.
dependencyIdstringRequired

Unique identifier of the component. Use the id of a dependency.

Request

This endpoint expects an object.
pathstringOptional
Path of the file to link to.
projectIdstringOptional
Project of the file to link to. Defaults to the project of the revision.
statusenumOptional

Send ignored to ignore the component.

Allowed values:

Response headers

Request-IdstringOptional

Request-Id. Unique identifier for the request. Every response, success or error, returns it. Error bodies carry the same value in requestId. Include it when contacting CAD ROOMS support.

Response

Returns the updated component.
idstring
Unique identifier for the link between the two files.
referencedNamestring
Filename referenced by the parent file.
statusenum

Indicates whether the referenced file has been resolved.

  • resolved: The referenced file was found in the project. The file field contains its details.
  • missing: The referenced file could not be found in the project.
  • ignored: The reference has been marked as ignored.
Allowed values:
fileobject or null

Details of the referenced file when status is resolved. Returns null otherwise.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error