Skip to content

Set project archived state

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

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

orgId
required
string

Organization ID or UUID (urn:uuid optional)

projectId
required
string

Project ID, UUID (urn:uuid optional), or slug:my-project

Archived state

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

Updated project

Media type application/json

An AI initiative within an organization, and the scope most access is granted against

object
archivedAt

Set via the archive endpoint

string format: date-time
createdAt
string format: date-time
description
string
id
integer
isArchived

Set via the archive endpoint

boolean
name
string
organizationId

Taken from the path on create

integer
slug

Derived from name

string
updatedAt
string format: date-time
uuid

Urn:uuid form

string
Example generated
{
"description": "example",
"name": "example"
}

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

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Unauthorized - Authentication required

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Forbidden - No project access or insufficient permissions

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Project not found

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Internal server error

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}