Skip to navigation

Create a contribution

Preview

Contributes your changes to the project, creating new revisions of the affected files. Triggers the contribution.created webhook event.

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.

titlestringRequired>=1 character
Title of the contribution.
descriptionstringOptional
Description of the contribution.
changeIdslist of stringsOptional
The changes to contribute.
allbooleanOptionalDefaults to false
Contributes all your changes in the project.
checkInbooleanOptionalDefaults to false
Also checks in the contributed files.

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 new contribution.
idstring
Unique identifier for the contribution.
projectIdstring
ID of the project.
titlestring
Title provided by the user when submitting the contribution.
descriptionstring
Description of the contribution. Returns an empty string if none was provided.
authorobject
Represents a CAD ROOMS user.
hashstring
Hash of the contribution. The app shows its first 6 characters.
fileCountinteger
Number of files changed.
createdAtdatetime
Timestamp when the contribution was submitted.

Errors

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