Preview a project's deletion
What deleting the project would remove, and whether the key's person may delete it.
Only the owner may delete a project, and never My Werk. It refuses nobody: a person who may not delete reads canDelete false.
Authorization
Authorization: Bearer <key> Authentication
Path parameters
The project's id.
Response
200 The preview.
True when the key's person may delete the project now.
The project.
Show properties of projectHide properties of project
The project's id.
The id Werk's apps use for the key's person's view of the project.
The project's name.
How many people the project has.
How many cards the project holds, which are deleted with it.
How many days a deleted project waits before it is gone for good; until then its owner can restore it.
The project's settings version, which the delete request sends as expectedConfigVersion.
Errors
invalid_query The query is not in the form the route takes; the limit is in the unit of the input details.field names (characters for a text, entries for a list, the value for a number).session_revoked The request carries no session the server holds, or its session has ended.session_expired The session has expired.conversation_not_found The project the request names, or its chat, is not one the signed-in person is in.project_not_found The project the request names is not one the signed-in person can reach.session_changed The session changed while the request was in flight.rate_limited More requests of this kind were sent than Werk takes within the time it counts them over.server_error The server could not complete the request, and it is not known whether a write it holds was made.curl "https://api.getwerk.ai/api/v1/projects/2f6c9e41-7a3b-4d58-9c1e-0b8d4f2a6e73/delete" \
-H "Authorization: Bearer wk_key_..."const res = await fetch("https://api.getwerk.ai/api/v1/projects/2f6c9e41-7a3b-4d58-9c1e-0b8d4f2a6e73/delete", {
headers: {
Authorization: "Bearer wk_key_...",
},
});
const answer = await res.json();{
"canDelete": true,
"project": {
"projectId": "2f6c9e41-7a3b-4d58-9c1e-0b8d4f2a6e73",
"conversationId": "9e3b1c75-4f2a-4d86-b0c9-5a7e2d1f8c36",
"name": "Harbor Street kitchen",
"memberCount": 3
},
"cardCount": 7,
"graceDays": 30,
"configVersion": 6
}Send a requestGET
It is sent with the key you give, as you. A change made here is real.
The request could not be sent, or its response could not be read.