---
title: "Sets the archived flag for a project status."
method: POST
path: "/projectstatuses/{projectStatusId}/setarchived"
tags: ["projectStatuses"]
---

# Sets the archived flag for a project status.

`POST /projectstatuses/{projectStatusId}/setarchived`

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

## Path parameters

- `projectStatusId` string, uuid, required

## Headers

- `Authorization` string, required

## Request body

- ArchivedForm
  - `isArchived` boolean — Flags the entity as archived.

## Response `200`

OK

- ProjectStatus
  - `id` string, uuid — The primary identifier of this project status.
  - `name` string, nullable — The name of the project status.
  - `type` string, nullable — The general type of this project status.
  - `order` integer, nullable — The order of this status.
  - `createdOn` string, date-time — The date this entity was created.
  - `createdBy` string, uuid — The id of the user who created this entity.
  - `updatedOn` string, date-time — The date this entity was last modified.
  - `projectTemplateId` string, uuid, nullable — The id of the project template of the status.
  - `projectId` string, uuid, nullable — The id of the project the status belongs to.
  - `workflowId` string, uuid, nullable — The id of the workflow linked to this project status.
  - `updatedBy` string, uuid — The id of the user who last modified this entity.
  - `isExternal` boolean — True if the project status is coming from an external workspace (awork Connect).

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
