Update
PUT/projects/{projectId}
Update the name of a Project
Body ParametersJSON
description: optional string
High-level markdown description of the project Set to null to clear the description
maxLength2000
disableIpDetection: optional boolean
Switch IP detection off for this project only. The team’s posture (see PUT /teams/{teamId}) applies to every project by default; set this to true to opt this project out of it, false to opt it back in. A project cannot choose a posture of its own. Team-admin only.
maxConsumption: optional number
Max consumption (CU) for this project over the billing period.
Set to null to remove the cap. Team admins only, or a team API key holding
team.members.manage, which may then send this field alone.
privacyMode: optional boolean
Toggle the privacyMode mode When enabled, users can only see their own generated assets (except admins)
Update
curl https://api.cloud.scenario.com/v1/projects/$PROJECT_ID \
-X PUT \
-H 'Content-Type: application/json' \
-u "$SCENARIO_SDK_API_KEY:SCENARIO_SDK_API_SECRET" \
-d '{}'{
"project": {
"id": "id",
"createdAt": "createdAt",
"keys": [
{
"id": "id",
"apiKeyId": "apiKeyId",
"apiKeyStatus": "active",
"createdAt": "createdAt",
"name": "name",
"role": "role",
"scope": "project",
"updatedAt": "updatedAt",
"authorId": "authorId",
"consumption": 0,
"lastUsedAt": "lastUsedAt",
"maxConsumption": 0,
"ownerId": "ownerId",
"projects": [
{
"projectId": "projectId",
"role": "role"
}
]
}
],
"name": "name",
"privacyMode": true,
"teamId": "teamId",
"updatedAt": "updatedAt",
"users": [
{
"id": "id",
"createdAt": "createdAt",
"email": "email",
"role": "role",
"updatedAt": "updatedAt",
"avatar": {
"assetId": "assetId",
"url": "url"
},
"consumption": 0,
"maxConsumption": 0
}
],
"avatar": {
"assetId": "assetId",
"url": "url"
},
"consumption": 0,
"description": "description",
"descriptionDate": "descriptionDate",
"disableIpDetection": true,
"maxConsumption": 0,
"qualityGateAutoDetect": true,
"settings": {
"homepage": {
"foo": "bar"
}
}
}
}Returns Examples
{
"project": {
"id": "id",
"createdAt": "createdAt",
"keys": [
{
"id": "id",
"apiKeyId": "apiKeyId",
"apiKeyStatus": "active",
"createdAt": "createdAt",
"name": "name",
"role": "role",
"scope": "project",
"updatedAt": "updatedAt",
"authorId": "authorId",
"consumption": 0,
"lastUsedAt": "lastUsedAt",
"maxConsumption": 0,
"ownerId": "ownerId",
"projects": [
{
"projectId": "projectId",
"role": "role"
}
]
}
],
"name": "name",
"privacyMode": true,
"teamId": "teamId",
"updatedAt": "updatedAt",
"users": [
{
"id": "id",
"createdAt": "createdAt",
"email": "email",
"role": "role",
"updatedAt": "updatedAt",
"avatar": {
"assetId": "assetId",
"url": "url"
},
"consumption": 0,
"maxConsumption": 0
}
],
"avatar": {
"assetId": "assetId",
"url": "url"
},
"consumption": 0,
"description": "description",
"descriptionDate": "descriptionDate",
"disableIpDetection": true,
"maxConsumption": 0,
"qualityGateAutoDetect": true,
"settings": {
"homepage": {
"foo": "bar"
}
}
}
}