Create a contribution
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
projectId
Unique identifier of the project.
Request
Send either changeIds or all.
title
Title of the contribution.
description
Description of the contribution.
changeIds
The changes to contribute.
all
Contributes all your changes in the project.
checkIn
Also checks in the contributed files.
Response headers
Request-Id
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.
id
Unique identifier for the contribution.
projectId
ID of the project.
title
Title provided by the user when submitting the contribution.
description
Description of the contribution. Returns an empty string if none was provided.
hash
Hash of the contribution. The app shows its first 6 characters.
fileCount
Number of files changed.
createdAt
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