Set project archived state
const url = 'https://localhost:10001/api/v1/organizations/example/projects/example/archived';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"archived":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Organization ID or UUID (urn:uuid optional)
Project ID, UUID (urn:uuid optional), or slug:my-project
Request Body
Section titled “Request Body ”Archived state
object
Example generated
{ "archived": true}Responses
Section titled “ Responses ”Updated project
An AI initiative within an organization, and the scope most access is granted against
object
Set via the archive endpoint
Set via the archive endpoint
Taken from the path on create
Derived from name
Urn:uuid form
Example generated
{ "description": "example", "name": "example"}Bad request - Invalid project ID, missing archived flag, or active policies remain
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Unauthorized - Authentication required
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Forbidden - No project access or insufficient permissions
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Project not found
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Internal server error
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}