Skip to navigation

Discard changes

Preview

Discards changes from your list and checks in the associated files. CAD ROOMS also removes the content of any discarded uploads.

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

Send either changeIds or all.

changeIdslist of stringsOptional
The changes to discard.
allbooleanOptionalDefaults to false
Discards all your changes in the project.

Response

The changes were discarded.

Errors

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