Skip to navigation

Create changes

Preview

Adds changes to your list of changes. Each change has a type. If any individual change fails, the entire request fails.

Supported change types:

  • deleted: Marks the file at path for deletion. CAD ROOMS removes the file from the project when you contribute the changes.
  • renamed: Moves the file from path to newPath. You must hold the check-out for the file. If the file is new in your changes or is already marked as deleted, CAD ROOMS removes the old path from your changes. Otherwise, CAD ROOMS adds the old path to your changes with a deleted status. CAD ROOMS then adds the new path to your changes with the same file content. If the new path already exists in your changes, CAD ROOMS replaces its content while preserving its existing status, even if that status is deleted.

When renaming a file, CAD ROOMS checks out the new path to you if it does not exist in any contribution. If the new path exists in a contribution, you must already hold its check-out.

The request fails if another user holds a check-out on either the file or the new path. If Unique Filenames is enabled for the workspace, the request also fails if another file in the workspace has the same name.

Required permission: Collaborator or higher in the project.

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

projectIdstringRequired
Unique identifier of the project.

Request

This endpoint expects an object.
changeslist of objectsRequired
The changes to add.

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 changes that were added. A rename adds two changes: the old path as deleted and the new path as added.

datalist of objects
The changes that were added.

Errors

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