Skip to main content
PATCH
/
projects
/
{projectId}
/
settings
Update a project setting
curl --request PATCH \
  --url {schemes}://api.upsun.com/projects/{projectId}/settings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "initialize": {},
  "data_retention": {},
  "build_resources": {
    "cpu": 123,
    "memory": 123
  },
  "maintenance_window": {
    "recurrence": {
      "interval": "<string>",
      "day_of_week": 123,
      "time": "<string>"
    }
  }
}
'
{
  "status": "<string>",
  "code": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectId
string
required

Body

application/json
initialize
Initialization key · object
data_retention
Data retention configuration · object

Data retention configuration

build_resources
Build Resources · object
maintenance_window
Maintenance window configuration · object

Configuration for the maintenance window schedule

Response

default - application/json
status
string
required

The status text of the response

code
integer
required

The status code of the response

Last modified on June 16, 2026