Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

Merge branch 'main' into fix/not-found-status-codes

Andrejcd2e95c28ed1
diff --cc apps/api/src/activity/index.ts
index efb666065,d984fe34b..d36c27083
--- a/apps/api/src/activity/index.ts
+++ b/apps/api/src/activity/index.ts
@@@ -90,18 -93,12 +89,13 @@@ const createActivityRoute = createRoute
},
responses: {
200: jsonResponse("The created activity", activitySchema),
- 400: {
- description:
- "Invalid body, or comment activity submitted through the generic endpoint",
- content: {
- "text/plain": { schema: z.string() },
- "application/json": { schema: z.object({ message: z.string() }) },
- },
- },
+ 400: errorResponse(
- "Invalid body, unknown task, or comment activity submitted through the generic endpoint",
++ "Invalid body, or comment activity submitted through the generic endpoint",
+ ),
403: errorResponse(
- "No workspace access, or missing task:update permission",
+ "No access to the project, or missing task:update permission",
),
+ 404: errorResponse("Task not found"),
},
});
diff --cc apps/api/src/gitea-integration/index.ts
index 6261fbfa4,6824cc330..4b2de6dae
--- a/apps/api/src/gitea-integration/index.ts
+++ b/apps/api/src/gitea-integration/index.ts
@@@ -166,15 -167,9 +164,9 @@@ const updateIntegrationRoute = createRo
200: jsonResponse("The updated integration", giteaIntegrationSchema),
400: errorResponse("The resulting config failed validation"),
403: errorResponse(
- "No workspace access, or missing workspace:manage_settings",
+ "No access to the project, or missing workspace:manage_settings",
),
- 404: {
- description: "Project or integration not found",
- content: {
- "text/plain": { schema: z.string() },
- "application/json": { schema: integrationNotFoundSchema },
- },
- },
- 404: errorResponse("Integration not found"),
++ 404: errorResponse("Project or integration not found"),
409: errorResponse("Integration changed; refresh before updating settings"),
},
});
diff --cc apps/api/src/github-integration/index.ts
index cb7694255,03608e4ed..353a36304
--- a/apps/api/src/github-integration/index.ts
+++ b/apps/api/src/github-integration/index.ts
@@@ -192,15 -192,9 +190,9 @@@ const updateIntegrationRoute = createRo
),
400: errorResponse("The resulting config failed validation"),
403: errorResponse(
- "No workspace access, or missing workspace:manage_settings",
+ "No access to the project, or missing workspace:manage_settings",
),
- 404: {
- description: "Project or integration not found",
- content: {
- "text/plain": { schema: z.string() },
- "application/json": { schema: integrationNotFoundSchema },
- },
- },
- 404: errorResponse("Integration not found"),
++ 404: errorResponse("Project or integration not found"),
},
});
diff --cc apps/api/src/gitlab-integration/index.ts
index c1ceaa89b,bf14dbe94..d55c2898b
--- a/apps/api/src/gitlab-integration/index.ts
+++ b/apps/api/src/gitlab-integration/index.ts
@@@ -174,15 -171,9 +172,9 @@@ const updateIntegrationRoute = createRo
200: jsonResponse("The updated integration", gitlabIntegrationSchema),
400: errorResponse("The resulting config failed validation"),
403: errorResponse(
- "No workspace access, or missing workspace:manage_settings",
+ "No access to the project, or missing workspace:manage_settings",
),
- 404: {
- description: "Project or integration not found",
- content: {
- "text/plain": { schema: z.string() },
- "application/json": { schema: integrationNotFoundSchema },
- },
- },
- 404: errorResponse("Integration not found"),
++ 404: errorResponse("Project or integration not found"),
409: errorResponse("Integration changed; refresh before updating settings"),
},
});
diff --cc apps/api/src/index.ts
index a4cdf4075,554f4df60..f4851ca36
--- a/apps/api/src/index.ts
+++ b/apps/api/src/index.ts
@@@ -443,11 -449,8 +449,10 @@@ export function createApp()
content: { "*/*": { schema: { type: "string", format: "binary" } } },
},
304: { description: "Not modified" },
- 403: {
- description:
- "Staged upload owned by another user, or no access to the asset's project",
- },
- 404: { description: "Asset not found" },
- 403: errorResponse("No access to this asset"),
++ 403: errorResponse(
++ "Staged upload owned by another user, or no access to the asset's project",
++ ),
+ 404: errorResponse("Asset not found"),
},
}),
async (c) => {
diff --cc apps/docs/api-reference/introduction.mdx
index 5849a7f1e,f7986a4cc..d9c5d9e12
--- a/apps/docs/api-reference/introduction.mdx
+++ b/apps/docs/api-reference/introduction.mdx
@@@ -56,9 -56,7 +56,9 @@@ For a single task, request `GET /api/ta
| 429 | Rate limits; wait before retrying |
| 5xx | Instance logs and service health |
+Resources in a workspace you are not a member of return `404`, the same response as a resource that does not exist.
+
- Inspect the response body for the specific error. Do not retry a mutation blindly when you are unsure whether it already succeeded.
+ Error bodies are JSON with a human-readable `message` and a stable `code`. See [Errors](/api-reference/errors) for the codes, validation issues, and missing permissions. Do not retry a mutation blindly when you are unsure whether it already succeeded.
## API reference
diff --cc apps/docs/openapi.json
index 282fa38ec,37e0e8212..2c94fc644
--- a/apps/docs/openapi.json
+++ b/apps/docs/openapi.json
@@@ -5247,10 -5265,24 +5265,24 @@@
"description": "Not modified"
},
"403": {
- "description": "Staged upload owned by another user, or no access to the asset's project"
- "description": "No access to this asset",
++ "description": "Staged upload owned by another user, or no access to the asset's project",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"404": {
- "description": "Asset not found"
+ "description": "Asset not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
}
}
}
@@@ -7832,21 -8123,21 +8123,21 @@@
}
},
"403": {
- "description": "Missing workspace access or permission",
+ "description": "No access to the project, or missing permission in the source or destination workspace",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Project not found in the source workspace",
+ "description": "Project or destination workspace not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -7917,14 -8208,21 +8208,21 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "403": {
- "description": "No access to the workspace",
+ "404": {
+ "description": "Workspace not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -7990,24 -8288,21 +8288,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing project:create permission",
+ "description": "Missing project:create permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Workspace not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -8054,25 -8349,32 +8359,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the project's workspace",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -8142,34 -8444,31 +8454,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown project",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, missing project:update, or missing project:share when visibility changes",
+ "description": "No access to the project, missing project:update, or missing project:share when visibility changes",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -8214,25 -8513,32 +8533,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project, or missing project:delete permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access, or missing project:delete permission",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -8273,25 -8579,42 +8599,32 @@@
"304": {
"description": "Not modified"
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiError"
- }
- }
- }
- },
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No access to the project's workspace",
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Project background not found",
+ "description": "Project or project background not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -8319,25 -8642,32 +8652,32 @@@
"204": {
"description": "Project background removed"
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project, or missing project:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access, or missing project:update permission",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -8423,24 -8753,21 +8763,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, missing project:update permission, or no access to a listed project",
+ "description": "Missing project:update permission, or no access to a listed project",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Workspace not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -8477,25 -8804,32 +8824,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project, or missing project:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access, or missing project:update permission",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -8532,25 -8866,32 +8886,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project, or missing project:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access, or missing project:update permission",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -8620,24 -8961,31 +8981,31 @@@
}
},
"400": {
- "description": "Invalid image upload request, or unknown project",
+ "description": "Invalid image upload request",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing project:update permission",
+ "description": "No access to the project, or missing project:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -8725,24 -9073,31 +9093,31 @@@
}
},
"400": {
- "description": "Invalid image upload request, or unknown project",
+ "description": "Invalid image upload request",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing project:update permission",
+ "description": "No access to the project, or missing project:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -8803,11 -9158,11 +9178,11 @@@
}
},
"400": {
- "description": "Invalid request or unknown project",
+ "description": "Invalid request",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -8823,21 -9178,11 +9198,21 @@@
}
},
"403": {
- "description": "No workspace access or missing project sharing permission",
+ "description": "No access to the project, or missing project sharing permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -8899,11 -9244,11 +9274,11 @@@
}
},
"400": {
- "description": "Invalid request or unknown project",
+ "description": "Invalid request",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -8919,21 -9264,11 +9294,21 @@@
}
},
"403": {
- "description": "No workspace access, missing project:share permission, or missing label:create permission for a new workspace label definition",
+ "description": "No access to the project, missing project:share permission, or missing label:create permission for a new workspace label definition",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -8987,11 -9322,11 +9362,11 @@@
}
},
"400": {
- "description": "Invalid request or unknown project",
+ "description": "Invalid request",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -9007,21 -9342,21 +9382,21 @@@
}
},
"403": {
- "description": "No workspace access or missing project sharing permission",
+ "description": "No access to the project, or missing project sharing permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Calendar feed not found in this project",
+ "description": "Project or calendar feed not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -9088,14 -9423,21 +9463,21 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
- },
- "403": {
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "403": {
- "description": "No workspace access",
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -9192,24 -9534,21 +9574,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access",
+ "description": "No access to the project",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -9282,24 -9621,21 +9671,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing project:read or task:read permission",
+ "description": "Missing project:read or task:read permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Workspace not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -9434,25 -9770,32 +9830,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the project's workspace",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -9542,14 -9885,21 +9945,21 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing the permission the operation needs",
+ "description": "No access to the project, or missing the permission the operation needs",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -9940,11 -10311,11 +10371,11 @@@
}
},
"404": {
- "description": "Tasks do not belong to the project",
+ "description": "Project not found, or tasks do not belong to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -10065,34 -10436,31 +10496,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown project",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:create permission",
+ "description": "No access to the project, or missing task:create permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -10165,11 -10533,11 +10603,11 @@@
}
},
"403": {
- "description": "No workspace access, missing task:create, or missing task:update when copying parent links",
+ "description": "No access to the project, missing task:create, or missing task:update when copying parent links",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -10350,25 -10725,32 +10795,32 @@@
}
}
},
- "400": {
- "description": "Unknown task, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the task's workspace",
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -10460,34 -10842,31 +10912,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown task",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update or task:assign permission",
+ "description": "No access to the project, or missing task:update or task:assign permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -10522,25 -10901,32 +10981,32 @@@
}
}
},
- "400": {
- "description": "Unknown task, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project, or missing task:delete permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access, or missing task:delete permission",
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -10610,24 -10996,31 +11076,31 @@@
}
},
"400": {
- "description": "Invalid body, or unknown task",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update permission",
+ "description": "No access to the project, or missing task:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -10684,25 -11077,32 +11157,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the project's workspace",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -10797,34 -11197,31 +11277,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown project",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:create permission",
+ "description": "No access to the project, or missing task:create permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -10880,34 -11277,31 +11367,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown task",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update permission",
+ "description": "No access to the project, or missing task:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -10970,34 -11364,31 +11464,41 @@@
}
},
"400": {
- "description": "Invalid priority, or unknown task",
+ "description": "Invalid priority",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update permission",
+ "description": "No access to the project, or missing task:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -11057,34 -11448,41 +11558,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown task",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:assign permission",
+ "description": "No access to the project, or missing task:assign permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Assignee is not a member of the workspace",
+ "description": "Task not found, or assignee is not a member of the workspace",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -11137,34 -11535,31 +11645,41 @@@
}
},
"400": {
- "description": "Invalid date, or unknown task",
+ "description": "Invalid date",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update permission",
+ "description": "No access to the project, or missing task:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -11220,34 -11615,31 +11735,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown task",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update permission",
+ "description": "No access to the project, or missing task:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -11330,14 -11722,21 +11852,21 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update permission",
+ "description": "No access to the project, or missing task:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -11445,14 -11844,21 +11974,21 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update permission",
+ "description": "No access to the project, or missing task:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -11518,34 -11924,31 +12054,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown task",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update permission",
+ "description": "No access to the project, or missing task:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -11585,25 -11988,32 +12128,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the project's workspace",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -11666,34 -12076,31 +12216,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown project",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing project:update permission",
+ "description": "No access to the project, or missing project:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -11788,24 -12195,21 +12345,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing project:update permission",
+ "description": "No access to the project, or missing project:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -11873,34 -12277,31 +12437,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown column",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing project:update permission",
+ "description": "No access to the project, or missing project:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Column not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -11935,25 -12336,32 +12506,32 @@@
}
}
},
- "400": {
- "description": "Unknown column, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project, or missing project:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access, or missing project:update permission",
+ "404": {
+ "description": "Column not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -12004,25 -12412,32 +12582,32 @@@
}
}
},
- "400": {
- "description": "Workspace ID could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "Missing project:read or task:read permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access, or missing project:read or task:read permission",
+ "404": {
+ "description": "Workspace not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -12074,25 -12489,32 +12659,32 @@@
}
}
},
- "400": {
- "description": "Unknown task, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the task's workspace",
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -12159,47 -12581,31 +12751,41 @@@
}
},
"400": {
- "description": "Invalid body, unknown task, or comment activity submitted through the generic endpoint",
+ "description": "Invalid body, or comment activity submitted through the generic endpoint",
"content": {
- "text/plain": {
- "schema": {
- "type": "string"
- }
- },
"application/json": {
"schema": {
- "type": "object",
- "properties": {
- "message": {
- "type": "string"
- }
- },
- "required": [
- "message"
- ]
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update permission",
+ "description": "No access to the project, or missing task:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -12250,34 -12656,31 +12836,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown task",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update permission",
+ "description": "No access to the project, or missing task:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -12326,34 -12729,41 +12919,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown activity",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "Not the author, or no access to the workspace",
+ "description": "Not the author, or no access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Comment not found",
+ "description": "Activity or comment not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -12397,34 -12807,41 +12997,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown activity",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "Not the author, or no access to the workspace",
+ "description": "Not the author, or no access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Comment not found",
+ "description": "Activity or comment not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -12464,25 -12881,32 +13071,32 @@@
}
}
},
- "400": {
- "description": "Unknown task, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the task's workspace",
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -12552,34 -12976,31 +13166,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown task",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, missing task:update permission, or external attribution without workspace:manage_settings",
+ "description": "No access to the project, missing task:update permission, or external attribution without workspace:manage_settings",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -12637,11 -13058,11 +13258,11 @@@
}
},
"400": {
- "description": "Invalid body, or unknown comment",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -12699,8 -13127,25 +13327,15 @@@
}
}
},
- "400": {
- "description": "Unknown comment, or its workspace could not be determined",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiError"
- }
- }
- }
- },
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
"description": "Not the author, or missing task:update permission",
@@@ -12757,25 -13202,32 +13392,32 @@@
}
}
},
- "400": {
- "description": "Unknown task, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the task's workspace",
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -12812,25 -13264,32 +13454,32 @@@
}
}
},
- "400": {
- "description": "Unknown entry, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the entry's workspace",
+ "404": {
+ "description": "Time entry not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -12894,34 -13353,31 +13543,41 @@@
}
},
"400": {
- "description": "Invalid timestamps, or unknown entry",
+ "description": "Invalid timestamps",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update permission",
+ "description": "No access to the project, or missing task:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Time entry not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -12982,34 -13438,31 +13638,41 @@@
}
},
"400": {
- "description": "Invalid timestamps, or unknown task",
+ "description": "Invalid body or timestamps",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update permission",
+ "description": "No access to the project, or missing task:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -13049,25 -13502,32 +13712,32 @@@
}
}
},
- "400": {
- "description": "Unknown task, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the task's workspace",
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -13107,15 -13567,32 +13777,22 @@@
}
}
},
- "400": {
- "description": "Workspace ID could not be determined",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiError"
- }
- }
- }
- },
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "403": {
- "description": "No access to the workspace",
+ "404": {
+ "description": "Workspace not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -13182,24 -13659,31 +13859,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing label:create permission",
+ "description": "Missing label:create permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Task not found",
+ "description": "Workspace or task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -13246,25 -13730,32 +13930,32 @@@
}
}
},
- "400": {
- "description": "Unknown label, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the label's workspace",
+ "404": {
+ "description": "Label not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -13322,34 -13813,31 +14013,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown label",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing label:update permission",
+ "description": "No access to the project, or missing label:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Label not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -13404,25 -13892,42 +14102,32 @@@
}
}
},
- "400": {
- "description": "Unknown label, or its workspace could not be determined",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiError"
- }
- }
- }
- },
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing label:delete permission",
+ "description": "No access to the project, or missing label:delete permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "The label's task no longer exists",
+ "description": "Label not found, or the label's task no longer exists",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -13488,34 -13993,41 +14193,41 @@@
}
},
"400": {
- "description": "Unknown label, or label and task belong to different workspaces",
+ "description": "Label and task belong to different workspaces",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing label:update permission",
+ "description": "No access to the project, or missing label:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Task not found",
+ "description": "Label or task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -13561,34 -14073,41 +14273,41 @@@
}
},
"400": {
- "description": "Unknown label, or label is not assigned to a task",
+ "description": "Label is not assigned to a task",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing label:update permission",
+ "description": "No access to the project, or missing label:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Task not found",
+ "description": "Label or task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -14240,14 -14822,21 +15022,21 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "403": {
- "description": "No access to the workspace",
+ "404": {
+ "description": "Workspace not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -14317,24 -14906,31 +15106,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access or required permission",
+ "description": "No access to the project, or missing required permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Integration or linked task not found",
+ "description": "Project, integration, or linked task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -14538,24 -15134,31 +15334,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access or required permission",
+ "description": "No access to the project, or missing required permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Integration or linked task not found",
+ "description": "Project, integration, or linked task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -14755,24 -15358,31 +15558,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access or required permission",
+ "description": "No access to the project, or missing required permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Integration or linked task not found",
+ "description": "Project, integration, or linked task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -14852,24 -15462,31 +15662,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access or required permission",
+ "description": "No access to the project, or missing required permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Integration or linked task not found",
+ "description": "Project, integration, or linked task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -14996,24 -15613,31 +15813,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access or required permission",
+ "description": "No access to the project, or missing required permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Integration or linked task not found",
+ "description": "Project, integration, or linked task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -15115,25 -15746,32 +15946,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -15192,34 -15830,31 +16030,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown project",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -15256,25 -15891,32 +16101,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the project's workspace",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -15336,34 -15978,31 +16188,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown project",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -15437,29 -16076,31 +16296,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Integration not found",
+ "description": "Project or integration not found",
"content": {
- "text/plain": {
- "schema": {
- "type": "string"
- }
- },
"application/json": {
"schema": {
- "$ref": "#/components/schemas/GitHubIntegrationNotFound"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -15504,25 -16145,42 +16365,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access, or missing workspace:manage_settings",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiError"
- }
- }
- }
- },
- "404": {
- "description": "GitHub integration not found",
+ "404": {
+ "description": "Project or GitHub integration not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -15595,14 -16253,21 +16463,21 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:create or task:update permission",
+ "description": "No access to the project, or missing task:create or task:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -15699,34 -16364,31 +16574,41 @@@
}
},
"400": {
- "description": "Invalid body, unknown project, or invalid Gitea credentials",
+ "description": "Invalid body, or invalid Gitea credentials",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -15793,11 -16455,11 +16675,11 @@@
}
},
"400": {
- "description": "Invalid body, unknown project, or invalid Gitea credentials",
+ "description": "Invalid body, or invalid Gitea credentials",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -15813,21 -16475,11 +16695,21 @@@
}
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -15874,25 -16526,32 +16756,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the project's workspace",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -15961,34 -16620,31 +16850,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown project",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -16052,29 -16708,31 +16948,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Integration not found",
+ "description": "Project or integration not found",
"content": {
- "text/plain": {
- "schema": {
- "type": "string"
- }
- },
"application/json": {
"schema": {
- "$ref": "#/components/schemas/GiteaIntegrationNotFound"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -16119,25 -16777,42 +17017,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiError"
- }
- }
- }
- },
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Gitea integration not found",
+ "description": "Project or Gitea integration not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -16193,14 -16868,21 +17098,21 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:create or task:update permission",
+ "description": "No access to the project, or missing task:create or task:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -16275,11 -16957,11 +17187,11 @@@
}
},
"400": {
- "description": "Invalid body, or unknown project",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -16295,21 -16977,11 +17207,21 @@@
}
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -16380,11 -17052,11 +17292,11 @@@
}
},
"400": {
- "description": "Invalid body, or unknown project",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -16400,21 -17072,11 +17312,21 @@@
}
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -16451,25 -17113,32 +17363,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the project's workspace",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -16541,34 -17210,31 +17460,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown project",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -16642,29 -17308,31 +17568,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Integration not found",
+ "description": "Project or integration not found",
"content": {
- "text/plain": {
- "schema": {
- "type": "string"
- }
- },
"application/json": {
"schema": {
- "$ref": "#/components/schemas/GitlabIntegrationNotFound"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -16709,25 -17377,42 +17637,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiError"
- }
- }
- }
- },
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "GitLab integration not found",
+ "description": "Project or GitLab integration not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -16783,14 -17468,21 +17718,21 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:create or task:update permission",
+ "description": "No access to the project, or missing task:create or task:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -16837,25 -17529,32 +17779,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the project's workspace",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -16971,24 -17670,21 +17920,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -17106,24 -17802,31 +18062,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Webhook integration not found",
+ "description": "Project or webhook integration not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -17166,25 -17869,42 +18129,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiError"
- }
- }
- }
- },
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Webhook integration not found",
+ "description": "Project or webhook integration not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -17221,25 -17941,32 +18191,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the project's workspace",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -17330,24 -18057,21 +18307,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -17440,24 -18164,31 +18424,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Discord integration not found",
+ "description": "Project or Discord integration not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -17500,25 -18231,42 +18491,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiError"
- }
- }
- }
- },
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Discord integration not found",
+ "description": "Project or Discord integration not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -17555,25 -18303,32 +18553,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the project's workspace",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -17664,24 -18419,21 +18669,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -17774,24 -18526,31 +18786,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Mattermost integration not found",
+ "description": "Project or Mattermost integration not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -17834,25 -18593,42 +18853,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiError"
- }
- }
- }
- },
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Mattermost integration not found",
+ "description": "Project or Mattermost integration not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -17889,25 -18665,32 +18915,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the project's workspace",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -17998,24 -18781,21 +19031,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -18108,24 -18888,31 +19148,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Slack integration not found",
+ "description": "Project or Slack integration not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -18168,25 -18955,42 +19215,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiError"
- }
- }
- }
- },
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Slack integration not found",
+ "description": "Project or Slack integration not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -18223,25 -19027,32 +19277,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the project's workspace",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -18341,24 -19152,21 +19402,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -18460,24 -19268,31 +19528,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Telegram integration not found",
+ "description": "Project or Telegram integration not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -18520,25 -19335,42 +19595,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiError"
- }
- }
- }
- },
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing workspace:manage_settings",
+ "description": "No access to the project, or missing workspace:manage_settings",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Telegram integration not found",
+ "description": "Project or Telegram integration not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -18578,25 -19410,32 +19660,32 @@@
}
}
},
- "400": {
- "description": "Unknown task, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the task's workspace",
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -18665,14 -19504,21 +19754,21 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update permission",
+ "description": "No access to the project, or missing task:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -18730,14 -19576,21 +19826,21 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update permission",
+ "description": "No access to the project, or missing task:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -18837,16 -19690,6 +19940,16 @@@
}
}
}
+ },
+ "404": {
+ "description": "Task not found",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
}
}
},
@@@ -18881,25 -19724,32 +19984,32 @@@
}
}
},
- "400": {
- "description": "Unknown task, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the task's workspace",
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -18945,11 -19795,11 +20055,11 @@@
}
},
"400": {
- "description": "Unknown task or invalid link data",
+ "description": "Invalid link data",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -18975,11 -19825,11 +20085,11 @@@
}
},
"404": {
- "description": "Manual resource link not found on this task",
+ "description": "Task or manual resource link not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -19019,25 -19869,32 +20129,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No access to the project's workspace",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -19099,34 -19956,31 +20216,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown project",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing project:update permission",
+ "description": "No access to the project, or missing project:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -19163,25 -20017,32 +20287,32 @@@
}
}
},
- "400": {
- "description": "Unknown rule, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project, or missing project:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access, or missing project:update permission",
+ "404": {
+ "description": "Workflow rule not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -19294,25 -20169,42 +20439,32 @@@
}
}
},
- "400": {
- "description": "Workspace ID could not be determined",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiError"
- }
- }
- }
- },
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No access to the workspace or to the project",
+ "description": "No access to the project",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"404": {
- "description": "Project not found in this workspace",
+ "description": "Workspace not found, or project not found in this workspace",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -19349,15 -20241,32 +20501,22 @@@
}
}
},
- "400": {
- "description": "Workspace ID could not be determined",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiError"
- }
- }
- }
- },
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "403": {
- "description": "No access to the workspace",
+ "404": {
+ "description": "Workspace not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -19398,25 -20307,32 +20557,32 @@@
}
}
},
- "400": {
- "description": "Workspace ID could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "Missing member:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access, or missing member:update permission",
+ "404": {
+ "description": "Workspace not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -19516,11 -20439,11 +20689,11 @@@
}
},
"404": {
- "description": "Member not found",
+ "description": "Workspace or member not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -19560,25 -20483,32 +20733,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project, or missing read permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access or missing read permission",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -19618,25 -20548,32 +20798,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project, or missing read permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access or missing read permission",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -19676,25 -20613,32 +20863,32 @@@
}
}
},
- "400": {
- "description": "Unknown task, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project, or missing task:read permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access or missing task:read permission",
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -19734,25 -20678,32 +20928,32 @@@
}
}
},
- "400": {
- "description": "Unknown project, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project, or missing read permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access or missing read permission",
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -19827,34 -20778,31 +21028,41 @@@
}
},
"400": {
- "description": "Invalid body, or unknown project",
+ "description": "Invalid body",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing project:update permission",
+ "description": "No access to the project, or missing project:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -19935,24 -20883,21 +21143,31 @@@
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing project:update permission",
+ "description": "No access to the project, or missing project:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -20006,34 -20951,31 +21221,41 @@@
}
},
"400": {
- "description": "Invalid body, unknown task, or unknown custom field",
+ "description": "Invalid body, or unknown custom field",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
- "description": "Missing or invalid credentials"
+ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
"403": {
- "description": "No workspace access, or missing task:update permission",
+ "description": "No access to the project, or missing task:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Task not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -20070,25 -21012,32 +21292,32 @@@
}
}
},
- "400": {
- "description": "Unknown custom field, or its workspace could not be determined",
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
},
- "401": {
- "description": "Missing or invalid credentials",
+ "403": {
+ "description": "No access to the project, or missing project:update permission",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
},
- "403": {
- "description": "No workspace access, or missing project:update permission",
+ "404": {
+ "description": "Custom field not found",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
diff --cc tests/api-integration/label.test.ts
index d949fa5e4,1508035cb..74584e0ae
--- a/tests/api-integration/label.test.ts
+++ b/tests/api-integration/label.test.ts
@@@ -102,8 -106,11 +106,11 @@@ describe("API integration: labels", ()
}),
});
- expect(response.status).toBe(403);
+ expect(response.status).toBe(404);
- await expect(response.text()).resolves.toContain("Workspace not found");
+ expect(await readErrorBody(response)).toMatchObject({
- message: "You don't have access to this workspace",
- code: "FORBIDDEN",
++ message: "Workspace not found",
++ code: "NOT_FOUND",
+ });
const persisted = await db.query.labelTable.findFirst({
where: eq(schema.labelTable.name, "Blocked"),
diff --cc tests/api-integration/not-found-status-codes.test.ts
index e64bad830,000000000..ca1193691
mode 100644,000000..100644
--- a/tests/api-integration/not-found-status-codes.test.ts
+++ b/tests/api-integration/not-found-status-codes.test.ts
@@@ -1,250 -1,0 +1,279 @@@
+import { randomUUID } from "node:crypto";
+import { beforeEach, describe, expect, it } from "vite-plus/test";
+import { mockAuthenticatedSession } from "./helpers/auth";
++import { readErrorBody } from "./helpers/error-body";
+import { createInstanceAdmin } from "./helpers/admin/create-instance-admin";
+import { resetTestDatabase } from "./helpers/database";
+import {
+ createProjectFixture,
+ createWorkspaceMember,
+} from "./helpers/fixtures";
+import { createTaskFixture } from "./helpers/project-access/create-task-fixture";
+import { projectAccessApi } from "./helpers/project-access/project-access-api";
+
+beforeEach(resetTestDatabase);
+
+async function snapshot(response: Response) {
+ return { status: response.status, body: await response.text() };
+}
+
+async function workspaceWithTask(role = "owner") {
+ const member = await createWorkspaceMember({ role });
+ const project = await createProjectFixture({
+ workspaceId: member.workspace.id,
+ });
+ const task = await createTaskFixture(project, "Seeded", member.user.id);
+ return { ...member, project: project.project, task };
+}
+
+describe("missing and deleted resources return 404", () => {
+ it("returns 404 for a project that never existed", async () => {
+ const own = await workspaceWithTask();
+ mockAuthenticatedSession(own.user);
+
+ const response = await projectAccessApi()(`/project/${randomUUID()}`);
+
+ expect(response.status).toBe(404);
- expect(await response.text()).toContain("Project not found");
++ expect(await readErrorBody(response)).toMatchObject({
++ message: "Project not found",
++ code: "NOT_FOUND",
++ });
+ });
+
+ it("returns 404 for a deleted project", async () => {
+ const own = await workspaceWithTask();
+ mockAuthenticatedSession(own.user);
+ const request = projectAccessApi();
+
+ const created = await request("/project", {
+ method: "POST",
+ body: {
+ workspaceId: own.workspace.id,
+ name: "Short lived",
+ icon: "Folder",
+ slug: "short-lived",
+ },
+ });
+ expect(created.status).toBe(200);
+ const { id } = (await created.json()) as { id: string };
+
+ expect((await request(`/project/${id}`, { method: "DELETE" })).status).toBe(
+ 200,
+ );
+
+ const response = await request(`/project/${id}`);
+ expect(response.status).toBe(404);
- expect(await response.text()).toContain("Project not found");
++ expect(await readErrorBody(response)).toMatchObject({
++ message: "Project not found",
++ code: "NOT_FOUND",
++ });
+ });
+
+ it("returns 404 for a task that never existed", async () => {
+ const own = await workspaceWithTask();
+ mockAuthenticatedSession(own.user);
+
+ const response = await projectAccessApi()(`/task/${randomUUID()}`);
+
+ expect(response.status).toBe(404);
- expect(await response.text()).toContain("Task not found");
++ expect(await readErrorBody(response)).toMatchObject({
++ message: "Task not found",
++ code: "NOT_FOUND",
++ });
+ });
+
+ it("returns 404 for a deleted task", async () => {
+ const own = await workspaceWithTask();
+ mockAuthenticatedSession(own.user);
+ const request = projectAccessApi();
+
+ expect(
+ (await request(`/task/${own.task.id}`, { method: "DELETE" })).status,
+ ).toBe(200);
+
+ const response = await request(`/task/${own.task.id}`);
+ expect(response.status).toBe(404);
- expect(await response.text()).toContain("Task not found");
++ expect(await readErrorBody(response)).toMatchObject({
++ message: "Task not found",
++ code: "NOT_FOUND",
++ });
+ });
+
+ it("does not fall back to a workspace query when the task lookup fails", async () => {
+ const own = await workspaceWithTask();
+ mockAuthenticatedSession(own.user);
+
+ const response = await projectAccessApi()(
+ `/task/${randomUUID()}?workspaceId=${own.workspace.id}`,
+ );
+
+ expect(response.status).toBe(404);
- expect(await response.text()).toContain("Task not found");
++ expect(await readErrorBody(response)).toMatchObject({
++ message: "Task not found",
++ code: "NOT_FOUND",
++ });
+ });
+
+ it("returns 404 for a workspace that does not exist", async () => {
+ const own = await workspaceWithTask();
+ mockAuthenticatedSession(own.user);
+
+ const response = await projectAccessApi()(
+ `/project?workspaceId=workspace-${randomUUID()}`,
+ );
+
+ expect(response.status).toBe(404);
- expect(await response.text()).toContain("Workspace not found");
++ expect(await readErrorBody(response)).toMatchObject({
++ message: "Workspace not found",
++ code: "NOT_FOUND",
++ });
+ });
+
+ it("keeps 400 when no workspace id is given at all", async () => {
+ const own = await workspaceWithTask();
+ mockAuthenticatedSession(own.user);
+
+ const response = await projectAccessApi()("/project");
+
+ expect(response.status).toBe(400);
- expect(await response.text()).toContain(
- "Workspace ID could not be determined",
- );
++ expect(await readErrorBody(response)).toMatchObject({
++ message: "Workspace ID could not be determined",
++ code: "BAD_REQUEST",
++ });
+ });
+});
+
+describe("resources in another workspace look missing", () => {
+ it("answers a foreign project exactly like a missing one", async () => {
+ const own = await workspaceWithTask();
+ const foreign = await workspaceWithTask();
+ mockAuthenticatedSession(own.user);
+ const request = projectAccessApi();
+
+ const hidden = await snapshot(
+ await request(`/project/${foreign.project.id}`),
+ );
+ const missing = await snapshot(await request(`/project/${randomUUID()}`));
+
+ expect(hidden).toEqual(missing);
+ expect(hidden.status).toBe(404);
+ expect(hidden.body).not.toContain(foreign.project.name);
+ });
+
+ it("answers a foreign task exactly like a missing one", async () => {
+ const own = await workspaceWithTask();
+ const foreign = await workspaceWithTask();
+ mockAuthenticatedSession(own.user);
+ const request = projectAccessApi();
+
+ const hidden = await snapshot(await request(`/task/${foreign.task.id}`));
+ const missing = await snapshot(await request(`/task/${randomUUID()}`));
+
+ expect(hidden).toEqual(missing);
+ expect(hidden.status).toBe(404);
+ });
+
+ it("answers a foreign task mutation exactly like a missing one", async () => {
+ const own = await workspaceWithTask();
+ const foreign = await workspaceWithTask();
+ mockAuthenticatedSession(own.user);
+ const request = projectAccessApi();
+ const body = { title: "Renamed" };
+
+ const hidden = await snapshot(
+ await request(`/task/title/${foreign.task.id}`, { method: "PUT", body }),
+ );
+ const missing = await snapshot(
+ await request(`/task/title/${randomUUID()}`, { method: "PUT", body }),
+ );
+
+ expect(hidden).toEqual(missing);
+ expect(hidden.status).toBe(404);
+ });
+
+ it("answers a foreign workspace exactly like a missing one", async () => {
+ const own = await workspaceWithTask();
+ const foreign = await workspaceWithTask();
+ mockAuthenticatedSession(own.user);
+ const request = projectAccessApi();
+
+ const hidden = await snapshot(
+ await request(`/project?workspaceId=${foreign.workspace.id}`),
+ );
+ const missing = await snapshot(
+ await request(`/project?workspaceId=workspace-${randomUUID()}`),
+ );
+
+ expect(hidden).toEqual(missing);
+ expect(hidden.status).toBe(404);
+ });
+});
+
+describe("members without a permission still get 403", () => {
+ it("refuses to delete a project for the built-in member role", async () => {
+ const member = await workspaceWithTask("member");
+ mockAuthenticatedSession(member.user);
+
+ const response = await projectAccessApi()(`/project/${member.project.id}`, {
+ method: "DELETE",
+ });
+
+ expect(response.status).toBe(403);
- expect(await response.text()).toContain("Insufficient permissions");
++ expect(await readErrorBody(response)).toMatchObject({
++ message: "Insufficient permissions",
++ code: "MISSING_PERMISSION",
++ });
+ });
+});
+
+describe("instance admins need an existing workspace", () => {
+ it("returns 404 instead of an empty list for a missing workspace", async () => {
+ const admin = await createInstanceAdmin();
+ mockAuthenticatedSession(admin);
+
+ const response = await projectAccessApi()(
+ `/project?workspaceId=workspace-${randomUUID()}`,
+ );
+
+ expect(response.status).toBe(404);
- expect(await response.text()).toContain("Workspace not found");
++ expect(await readErrorBody(response)).toMatchObject({
++ message: "Workspace not found",
++ code: "NOT_FOUND",
++ });
+ });
+
+ it("returns 404 instead of a server error when creating a project in a missing workspace", async () => {
+ const admin = await createInstanceAdmin();
+ mockAuthenticatedSession(admin);
+
+ const response = await projectAccessApi()("/project", {
+ method: "POST",
+ body: {
+ workspaceId: `workspace-${randomUUID()}`,
+ name: "Orphan",
+ icon: "Folder",
+ slug: "orphan",
+ },
+ });
+
+ expect(response.status).toBe(404);
- expect(await response.text()).toContain("Workspace not found");
++ expect(await readErrorBody(response)).toMatchObject({
++ message: "Workspace not found",
++ code: "NOT_FOUND",
++ });
+ });
+
+ it("still reads a workspace the admin never joined", async () => {
+ const other = await workspaceWithTask();
+ const admin = await createInstanceAdmin();
+ mockAuthenticatedSession(admin);
+
+ const response = await projectAccessApi()(
+ `/project?workspaceId=${other.workspace.id}`,
+ );
+
+ expect(response.status).toBe(200);
+ const projects = (await response.json()) as { id: string }[];
+ expect(projects.map((project) => project.id)).toEqual([other.project.id]);
+ });
+});
diff --cc tests/api-integration/project.test.ts
index 7cec7a56c,838c99f14..3379caa63
--- a/tests/api-integration/project.test.ts
+++ b/tests/api-integration/project.test.ts
@@@ -125,8 -129,11 +129,11 @@@ describe("API integration: project crea
}),
});
- expect(response.status).toBe(403);
+ expect(response.status).toBe(404);
- await expect(response.text()).resolves.toContain("Workspace not found");
+ expect(await readErrorBody(response)).toMatchObject({
- message: "You don't have access to this workspace",
- code: "FORBIDDEN",
++ message: "Workspace not found",
++ code: "NOT_FOUND",
+ });
});
it("rejects a project key already used in the workspace", async () => {
diff --cc tests/api-integration/task-duplicate.test.ts
index afb5f9a59,481955f96..cdb836967
--- a/tests/api-integration/task-duplicate.test.ts
+++ b/tests/api-integration/task-duplicate.test.ts
@@@ -166,8 -174,11 +174,11 @@@ describe("API integration: task duplica
const response = await requestDuplicate(app, task.id);
- expect(response.status).toBe(403);
+ expect(response.status).toBe(404);
- await expect(response.text()).resolves.toContain("Task not found");
+ expect(await readErrorBody(response)).toMatchObject({
- message: "You don't have access to this workspace",
- code: "FORBIDDEN",
++ message: "Task not found",
++ code: "NOT_FOUND",
+ });
const tasks = await db.query.taskTable.findMany({
where: eq(schema.taskTable.projectId, project.id),
diff --cc tests/api-integration/task-image-upload.test.ts
index eccce357b,91d5d5f4e..f152ccc3b
--- a/tests/api-integration/task-image-upload.test.ts
+++ b/tests/api-integration/task-image-upload.test.ts
@@@ -459,7 -462,10 +462,10 @@@ describe("API integration: task image u
},
);
- expect(response.status).toBe(403);
+ expect(response.status).toBe(404);
- await expect(response.text()).resolves.toContain("Task not found");
+ expect(await readErrorBody(response)).toMatchObject({
- message: "You don't have access to this workspace",
- code: "FORBIDDEN",
++ message: "Task not found",
++ code: "NOT_FOUND",
+ });
});
});
diff --cc tests/api-integration/task.test.ts
index f18f88e4e,034ab0c85..a242c3085
--- a/tests/api-integration/task.test.ts
+++ b/tests/api-integration/task.test.ts
@@@ -158,8 -162,11 +162,11 @@@ describe("API integration: task creatio
}),
});
- expect(response.status).toBe(403);
+ expect(response.status).toBe(404);
- await expect(response.text()).resolves.toContain("Project not found");
+ expect(await readErrorBody(response)).toMatchObject({
- message: "You don't have access to this workspace",
- code: "FORBIDDEN",
++ message: "Project not found",
++ code: "NOT_FOUND",
+ });
const persistedTask = await db.query.taskTable.findFirst({
where: and(