Replaces the calling member's own; API keys get 403. Requires project:read and a plan with notifications. email: true is refused (400) while email notifications aren't available to the organization yet.
apiKeyAuthorizationBearer <token>An organization API key from the dashboard (Settings → API keys), e.g. Authorization: Bearer annoty_.... x-api-key: annoty_... also works. While the organization has no subscription or trial, every request with a key except GET /v1/organization fails with 402 SUBSCRIPTION_REQUIRED.
projectId*stringapplication/jsonemail*booleanEmail notifications of this project's activity, grouped into one email about 10 minutes after the first event. Never about your own actions
events*array<>The activity events this receives
1 <= itemsYour notification preferences
application/jsonprojectId*stringemail*booleanEmail notifications of this project's activity, grouped into one email about 10 minutes after the first event. Never about your own actions
events*array<>The activity events this receives
1 <= itemscurl -X PUT 'https://api.annoty.app/v1/projects/string/notification-preferences' \
-H 'Content-Type: application/json' \
-d '{
"email": true,
"events": [
"comment.created"
]
}'{
"projectId": "string",
"email": true,
"events": [
"comment.created"
]
}