Skip to content

Commit

Permalink
archive project
Browse files Browse the repository at this point in the history
/v2/projects/{{project_id}}/archive
  • Loading branch information
meagerfindings committed Dec 23, 2024
1 parent 6731148 commit 193e672
Showing 1 changed file with 59 additions and 1 deletion.
60 changes: 59 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,61 @@ paths:
schema:
$ref: "#/components/schemas/Error"
example:
errors: ["An unexpected error occured"]
errors: ["An unexpected error occurred"]
/projects/{id}/archive:
patch:
summary: "Archive Project"
parameters:
- name: id
in: path
description: ID of the Project
required: true
schema:
type: string
format: id
operationId: archiveProject
tags:
- Projects
- Archive
responses:
"200":
description: "Details about the project"
content:
application/json:
schema:
$ref: "#/components/schemas/Project"
"400":
description: "Bad Request"
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
example:
errors: ["Bad Request"]
"403":
description: "Forbidden"
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
example:
errors: ["Forbidden"]
"404":
description: "Not found"
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
example:
errors: ["Record not found"]
"500":
description: Unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
example:
errors: ["An unexpected error occurred"]
/projects/{id}/restore:
put:
summary: "Restore Project"
Expand Down Expand Up @@ -3269,6 +3323,10 @@ components:
description: "Indicates the status of the Project."
enum: ["active", "deleted"]
example: "active"
archived:
type: boolean
description: "Indicates whether the Project is archived"
example: false
name:
type: string
description: "The title of the Project"
Expand Down

0 comments on commit 193e672

Please sign in to comment.