> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cadrooms.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cadrooms.com/_mcp/server.

# Release a revision

POST https://api.cadrooms.workers.dev/v1/revisions/{revisionId}/release
Content-Type: application/json

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.


Reference: https://docs.cadrooms.com/api-reference/revisions/release-revision

## Authentication

- `Authorization` header (bearer token, required) — An API key associated with your user account and workspace. API requests inherit your existing workspace permissions.
- `Authorization` header (bearer token, required) — The session token of a user signed in to the CAD ROOMS app. Every endpoint accepts it in place of an API key.

## Request

### Path parameters

- `revisionId` (string, required) — Unique identifier of the revision.

### Body (application/json)

This endpoint expects an object.

- `description` (string, optional) — Description of the release.

## Response

### 201

Returns the new revision.

- `id` (string, required) — Unique identifier for the revision.
- `projectId` (string, required) — ID of the project containing the file.
- `path` (string, required) — Full file path, including its folder and filename, separated by `/`.
- `name` (string, required) — Filename, including its extension.
- `major` (string, required) — Letter part of the revision. Advances when the file is released, from `A` to `Z`, then `AA`.
- `minor` (integer, required) — Number part of the revision. Advances with each contribution.
- `isObsolete` (boolean, required) — Indicates whether the revision was created before the most recent release.
- `contentType` (string, required, nullable) — 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`.
- `sizeBytes` (integer, required, nullable) — Size of the revision's file content in bytes, or `null` if unavailable.
- `sha256` (string, required, nullable) — Hash of the file content, as sent by the uploading client. The server does not check it. Returns `null` if unavailable.
- `contribution` (Contribution, required) — Details of the contribution that created this revision.
- `createdAt` (datetime, required) — Timestamp when the revision was created.

## Errors

### 400 Bad Request Error

The request contains invalid or missing parameters. See `details` for specific validation errors.

- `error` (ErrorError, required)

### 401 Unauthorized Error

The API key is missing, invalid, expired, or revoked.

- `error` (ErrorError, required)

### 404 Not Found Error

The requested resource does not exist or is not accessible to your account. Both cases return the same response.

- `error` (ErrorError, required)

### 429 Too Many Requests Error

The rate limit has been exceeded. Wait for the duration specified in the `Retry-After` header before retrying.

- `error` (ErrorError, required)

### 500 Internal Server Error

An unexpected server error occurred. Retry later. Include the `requestId` when contacting support.

- `error` (ErrorError, required)

## Types

### Contribution

Represents a set of changes submitted to a project by a user.

- `id` (string, required) — Unique identifier for the contribution.
- `title` (string, required) — Title provided by the user when submitting the contribution.
- `description` (string, required) — Description of the contribution. Returns an empty string if none was provided.
- `author` (User, required) — User who submitted the contribution.
- `createdAt` (datetime, required) — Timestamp when the contribution was submitted.

### ErrorError

- `code` (string, required) — Stable error identifier for programmatic error handling. Every endpoint can return the general codes listed on the Errors page. Where a business condition applies, an endpoint returns a more specific code, documented on that endpoint.
- `message` (string, required) — Human-readable error description. May change over time.
- `requestId` (string, required) — Unique request identifier used for troubleshooting. The same value is returned in the `Request-Id` header of every response. Include this when contacting support.
- `details` (list of ErrorErrorDetailsItems, optional) — Optional. Contains field-level validation errors for `400` responses.

### User

Represents a CAD ROOMS user.

- `id` (string, required) — Unique identifier for the user.
- `displayName` (string, required) — User's display name in the CAD ROOMS app.

### ErrorErrorDetailsItems

- `field` (string, required) — Name of the request field that failed validation.
- `message` (string, required) — Description of the validation issue.

## Examples

**Request**

```json
{
  "description": "Released for client review"
}
```

**Response**

```json
{
  "id": "5e2f66fe-f4dd-49b9-acba-b84f5e66328b",
  "projectId": "356d9a6c-31e9-4d9c-ad55-de709172d893",
  "path": "parts/bracket.prt",
  "name": "bracket.prt",
  "major": "B",
  "minor": 1,
  "isObsolete": false,
  "contentType": "application/octet-stream",
  "sizeBytes": 482113,
  "sha256": "9b74c1a3e5f2d8b0c6a1e4f7d2b9c8a5e3f1d0b7a6c4e2f9d8b1a0c7e5f3d2b1",
  "contribution": {
    "id": "a41c7e0b-2d5f-4f7a-9b3e-6c8d1f2a4b5c",
    "title": "Released for client review",
    "description": "Released for client review",
    "author": {
      "id": "40a078d1-1f99-459a-a09a-f21da9c5dce4",
      "displayName": "John Doe"
    },
    "createdAt": "2026-10-07T14:03:11Z"
  },
  "createdAt": "2026-10-07T14:03:11Z"
}
```

**SDK Code**

```python Revisions_releaseRevision_example
import requests

url = "https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/release"

payload = { "description": "Released for client review" }
headers = {
    "Authorization": "Bearer <API key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Revisions_releaseRevision_example
const url = 'https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/release';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <API key>', 'Content-Type': 'application/json'},
  body: '{"description":"Released for client review"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Revisions_releaseRevision_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/release"

	payload := strings.NewReader("{\n  \"description\": \"Released for client review\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <API key>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Revisions_releaseRevision_example
require 'uri'
require 'net/http'

url = URI("https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/release")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <API key>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"description\": \"Released for client review\"\n}"

response = http.request(request)
puts response.read_body
```

```java Revisions_releaseRevision_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/release")
  .header("Authorization", "Bearer <API key>")
  .header("Content-Type", "application/json")
  .body("{\n  \"description\": \"Released for client review\"\n}")
  .asString();
```

```php Revisions_releaseRevision_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/release', [
  'body' => '{
  "description": "Released for client review"
}',
  'headers' => [
    'Authorization' => 'Bearer <API key>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Revisions_releaseRevision_example
using RestSharp;

var client = new RestClient("https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/release");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <API key>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"description\": \"Released for client review\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Revisions_releaseRevision_example
import Foundation

let headers = [
  "Authorization": "Bearer <API key>",
  "Content-Type": "application/json"
]
let parameters = ["description": "Released for client review"] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/release")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```