Skip to content

View a story

POST
/api/stories/{storyId}/view
curl --request POST \
--url http://localhost:3001/api/stories/example/view \
--header 'Authorization: <Authorization>'

Record that the authenticated user viewed a story (notifies story owner)

storyId
required
string

Story ID

OK

Media typeapplication/json
object
message
string
success
boolean
Examplegenerated
{
"message": "example",
"success": true
}

Bad Request

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Unauthorized

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Not Found

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Internal Server Error

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}