Skip to main content
POST
/
notifications
/
{id}
/
star
Star notification
curl --request POST \
  --url https://api.wacht.dev/notifications/{id}/star \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --cookie session_id= \
  --data starred=true
{
  "id": "123456789012345678",
  "user_id": "777777777777777777",
  "type": "organization.invitation",
  "title": "New organization invitation",
  "body": "You have been invited to join Acme Corp",
  "scope": "organization",
  "scope_id": "999999999999999999",
  "action_url": "https://app.wacht.dev/organizations/999",
  "read": false,
  "starred": false,
  "archived": false,
  "metadata": {},
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z"
}

Authorizations

session_id
string
cookie
required

Session-based authentication using cookies

Path Parameters

id
string<uint64>
required

Body

application/x-www-form-urlencoded
starred
boolean

Star status

Response

Notification starred status updated

id
string<uint64>

Notification ID

Example:

"123456789012345678"

user_id
string<uint64>

User ID

Example:

"777777777777777777"

type
string

Notification type

Example:

"organization.invitation"

title
string

Notification title

Example:

"New organization invitation"

body
string

Notification body

Example:

"You have been invited to join Acme Corp"

scope
string

Notification scope

Example:

"organization"

scope_id
string<uint64> | null

Scope ID

Example:

"999999999999999999"

action_url
string<uri> | null

Action URL

Example:

"https://app.wacht.dev/organizations/999"

read
boolean

Read status

Example:

false

starred
boolean

Starred status

Example:

false

archived
boolean

Archived status

Example:

false

metadata
object

Additional metadata

created_at
string<date-time>
Example:

"2024-01-15T10:30:00Z"

updated_at
string<date-time>
Example:

"2024-01-15T10:30:00Z"