Skip to navigation

Release a revision

Preview

Releases a file at the specified revision, advancing the file to its next major revision. For example, A.3 becomes B.1. The request fails if the file is already at a release revision. Returns the new revision.

Sends the contribution.created and revision.released events.

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

revisionIdstringRequired
Unique identifier of the revision.

Request

This endpoint expects an object.
descriptionstringOptional
Description of the release.

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 revision.
idstring
Unique identifier for the revision.
projectIdstring
ID of the project containing the file.
pathstring

Full file path, including its folder and filename, separated by /.

namestring
Filename, including its extension.
majorstring

Letter part of the revision. Advances when the file is released, from A to Z, then AA.

minorinteger
Number part of the revision. Advances with each contribution.
isObsoleteboolean
Indicates whether the revision was created before the most recent release.
contentTypestring or null

MIME type of the revision’s file content, or null if unknown. After CAD processing, this can hold a CAD format code such as creo_prt.

sizeBytesinteger or null

Size of the revision’s file content in bytes, or null if unavailable.

sha256string or null

Hash of the file content, as sent by the uploading client. The server does not check it. Returns null if unavailable.

contributionobject
Details of the contribution that created this revision.
createdAtdatetime
Timestamp when the revision was created.

Errors

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