Skip to content
FeedbackDashboard

Update project

projects.update(**kwargs) -> Project { config_repo, display_name, object, 3 more }
PATCH/v0/projects/{project}

Update a project's properties.

ParametersExpand Collapse
project: String
display_name: String
ReturnsExpand Collapse
class Project { config_repo, display_name, object, 3 more }

A project is a collection of SDKs generated from the same set of config files.

config_repo: String
display_name: String
object: :project
org: String
slug: String
targets: Array[Target]
Accepts one of the following:
:node
:typescript
:python
:go
:java
:kotlin
:ruby
:terraform
:cli
:php
:csharp
:sql
:openapi

Update project

require "stainless_v0"

stainless = StainlessV0::Client.new(
  api_key: "My API Key",
  environment: "staging" # defaults to "production"
)

project = stainless.projects.update(project: "project")

puts(project)
{
  "config_repo": "config_repo",
  "display_name": "display_name",
  "object": "project",
  "org": "org",
  "slug": "slug",
  "targets": [
    "node"
  ]
}
Returns Examples
{
  "config_repo": "config_repo",
  "display_name": "display_name",
  "object": "project",
  "org": "org",
  "slug": "slug",
  "targets": [
    "node"
  ]
}