Change a card's due notice
Sets how long before its due date a card's due notice is sent.
Only the project's owner and admins may change it; a member's own alarm is a reminder. A lead equal to the card's own changes nothing.
Authorization
Authorization: Bearer <key> Authentication
Path parameters
The project's id.
The card's id.
Body
An id the caller makes for this request. Sent again with the same request, it returns the first answer and changes nothing twice; sent with a different request, it is refused.
The card's version as last read; when it changed since, the change is refused.
How long before the due date the notice is sent; none sends no notice.
Response
200 The card's lead after the change.
The card's id.
The card's version after the change.
The card's due notice lead now.
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).invalid_card_query The request about cards or their files is not in the form its route takes, or names a day of a filter while the signed-in person's profile has no time zone; 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.actor_not_allowed The signed-in person may not make this change to the card.not_permitted The signed-in person's role, or whose the record is, does not allow this request.not_a_member The signed-in person is not in the project.due_notice_owner_admin_required Only the project's owner or an admin sets a card's due notice.personal_project_restricted The request acts on the signed-in person's own My Werk, which only they see, or on a reminder with no card, which lives there, and My Werk does not take this action.conversation_not_found The project the request names, or its chat, is not one the signed-in person is in.item_not_found The card the request names, or its list, is not one the signed-in person can see.session_changed The session changed while the request was in flight.project_deleted The project is being deleted.project_archived The project is archived, so it does not take this request.request_conflict The request id was already used with another request, or the change it asks could not be made to the record it names.request_erased The request id belongs to a request whose record was erased.card_archived The card is archived, so it does not take this change.payload_too_large The request body has more bytes than the route takes.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 -X PUT "https://api.getwerk.ai/api/v1/projects/2f6c9e41-7a3b-4d58-9c1e-0b8d4f2a6e73/cards/3c9e5b17-8d2f-4a64-b1e3-7f5a0c9d2b48/due-notice" \
-H "Authorization: Bearer wk_key_..." \
-H "Content-Type: application/json" \
-d '{
"clientRequestId": "f1e2d3c4-b5a6-4978-8a9b-0c1d2e3f4f08",
"version": 7,
"lead": "1_day"
}'const res = await fetch("https://api.getwerk.ai/api/v1/projects/2f6c9e41-7a3b-4d58-9c1e-0b8d4f2a6e73/cards/3c9e5b17-8d2f-4a64-b1e3-7f5a0c9d2b48/due-notice", {
method: "PUT",
headers: {
Authorization: "Bearer wk_key_...",
"Content-Type": "application/json",
},
body: JSON.stringify({
"clientRequestId": "f1e2d3c4-b5a6-4978-8a9b-0c1d2e3f4f08",
"version": 7,
"lead": "1_day"
}),
});
const answer = await res.json();{
"itemId": "3c9e5b17-8d2f-4a64-b1e3-7f5a0c9d2b48",
"version": 8,
"lead": "1_day"
}Send a requestPUT
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.