---
title: "Change the project settings"
method: POST
path: "/projects/{projectId}"
tags: ["Projects"]
---

# Change the project settings

`POST /projects/{projectId}`

## Request

- Base URL: `https://app.ketryx.com/api/v1`
- URL: `https://app.ketryx.com/api/v1/projects/{projectId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/ketryx/apis/ketryx-api/docs/projects/:projectId/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `key` string: Human-readable project key (1-10 uppercase alphanumeric characters, must start with a letter). Send an empty string to clear. "ORG" and "GLOBAL" are reserved.
  - `repositories` object[]
    - `url` string: Repository URL. While SSH cloning is enabled for the organization, a repository with an Oracle Cloud DevOps ssh:// URL keeps the SSH key selected in the project settings; one without a key is refused, since the API cannot select one.
    - `mainRef` string
    - `releaseRef` string
    - `browseUrl` string, nullable: Console URL for hosts whose clone URL cannot be browsed (Oracle DevOps code repositories). Omit to keep the stored value; send null or an empty string to clear it.
    - `authUser` string
    - `authToken` string
  - `settings` object: Object with advanced setting names as keys and a JSON value for each setting

## Response `200`

OK

- object
  - `id` string

## Other responses

- `400`: The request is not valid.
- `401`: The requester is not authenticated.
- `403`: The requester is unauthorized.
- `404`: The resource was not found.

---

[API](https://skmtc.dev/ketryx/apis/ketryx-api.md) - [All operations](https://skmtc.dev/ketryx/apis/ketryx-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ketryx/apis/ketryx-api/revisions/a2a484dc35ca?raw)
