Skip to content

Set project archived state

PUT
/api/v1/projects/{projectId}/archived
curl --request PUT \
--url https://localhost:10001/api/v1/projects/1/archived \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "archived": true }'

Archive or unarchive a specific project; archiving requires all project policies to be archived first

projectId
required
integer

Project ID

Archived state

Media type application/json
object
archived
boolean
Example generated
{
"archived": true
}

Updated project

Media type application/json
object
archivedAt
string
createdAt
string
description
string
id
integer
isArchived
boolean
name
string
organizationId
integer
status

Status field from auth-service

string
updatedAt
string
uuid
string
Example generated
{
"archivedAt": "example",
"createdAt": "example",
"description": "example",
"id": 1,
"isArchived": true,
"name": "example",
"organizationId": 1,
"status": "example",
"updatedAt": "example",
"uuid": "example"
}

Bad request - Invalid project ID, missing archived flag, or active policies remain

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}

Project not found

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}

Internal server error

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}