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

# Update a project

PATCH https://tester.army/api/v1/projects/{projectId}
Content-Type: application/json

Update project name, URL, description, or settings.

Reference: https://tester.army/docs/api-reference/tester-army-api/projects/update-a-project

## Authentication

- `Authorization` header (bearer token, required) — API key authentication using Bearer token format

## Request

### Path parameters

- `projectId` (string, required) — Project ID

### Body (application/json)

- `browserRegion` (enum, optional, nullable) — Default proxy exit region for web runs. null keeps the provider's default networking. Web projects only.
  - Allowed values: `eu`, `us`
- `prTestingEnabled` (boolean, optional) — Test PR deployments automatically.
- `prTestingInstructions` (string, optional, nullable) — Free-form instructions for the PR exploration agent.
- `prTestingDebounceMinutes` (integer, optional) — Quiet period before a PR deployment is tested. 0 disables debouncing.
- `prTestingBlockMerge` (boolean, optional) — Conclude the GitHub check run as failed when tests fail, so a required TesterArmy check blocks the merge. Off by default.
- `includeExampleMobileApp` (boolean, optional) — Offer the example app as a run target. Mobile projects only.
- `autoDeleteOldestMobileApp` (boolean, optional) — Delete the oldest unused app builds when an upload exceeds the storage quota. Mobile projects only.
- `accessibilityAuditEnabled` (boolean, optional) — Scan visited pages with axe-core during web runs and report critical accessibility violations as non-blocking warnings. On by default. Web projects only.
- `name` (string, optional)
- `url` (string, optional)
- `description` (string, optional, nullable)

## Response

### 200

Project updated

- `project` (object, required)
  - `id` (string, required)
  - `shortId` (string, required, nullable)
  - `name` (string, required)
  - `url` (string, required, nullable)
  - `projectType` (enum, required)
    - Allowed values: `web`, `mobile`
  - `description` (string, required, nullable)
  - `environments` (list of object, required)
    - `id` (string, required)
    - `name` (string, required)
    - `slug` (string, required)
    - `kind` (enum, required)
      - Allowed values: `production`, `pr_preview`, `static`
    - `url` (string, required, nullable)
  - `browserRegion` (enum, optional, nullable) — Default proxy exit region for web runs. null keeps the provider's default networking. Web projects only.
    - Allowed values: `eu`, `us`
  - `prTestingEnabled` (boolean, optional) — Test PR deployments automatically.
  - `prTestingInstructions` (string, optional, nullable) — Free-form instructions for the PR exploration agent.
  - `prTestingDebounceMinutes` (integer, optional) — Quiet period before a PR deployment is tested. 0 disables debouncing.
  - `prTestingBlockMerge` (boolean, optional) — Conclude the GitHub check run as failed when tests fail, so a required TesterArmy check blocks the merge. Off by default.
  - `includeExampleMobileApp` (boolean, optional) — Offer the example app as a run target. Mobile projects only.
  - `autoDeleteOldestMobileApp` (boolean, optional) — Delete the oldest unused app builds when an upload exceeds the storage quota. Mobile projects only.
  - `accessibilityAuditEnabled` (boolean, optional) — Scan visited pages with axe-core during web runs and report critical accessibility violations as non-blocking warnings. On by default. Web projects only.
  - `createdAt` (datetime, optional)
  - `updatedAt` (datetime, optional)

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "project": {
    "id": "string",
    "shortId": "string",
    "name": "string",
    "url": "string",
    "projectType": "web",
    "description": "string",
    "environments": [
      {
        "id": "string",
        "name": "string",
        "slug": "string",
        "kind": "production",
        "url": "string"
      }
    ],
    "browserRegion": "eu",
    "prTestingEnabled": true,
    "prTestingInstructions": "string",
    "prTestingDebounceMinutes": 1,
    "prTestingBlockMerge": true,
    "includeExampleMobileApp": true,
    "autoDeleteOldestMobileApp": true,
    "accessibilityAuditEnabled": true,
    "createdAt": "2024-01-15T09:30:00Z",
    "updatedAt": "2024-01-15T09:30:00Z"
  }
}
```

**SDK Code**

```python
import requests

url = "https://tester.army/api/v1/projects/projectId"

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://tester.army/api/v1/projects/projectId';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

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

```go
package main

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

func main() {

	url := "https://tester.army/api/v1/projects/projectId"

	payload := strings.NewReader("{}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	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
require 'uri'
require 'net/http'

url = URI("https://tester.army/api/v1/projects/projectId")

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

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

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

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

HttpResponse<String> response = Unirest.patch("https://tester.army/api/v1/projects/projectId")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://tester.army/api/v1/projects/projectId', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://tester.army/api/v1/projects/projectId");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://tester.army/api/v1/projects/projectId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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()
```