Skip to content

Delete a story

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

Delete a story (only the owner can delete their own stories)

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
}

Forbidden

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