Skip to main content
PATCH
Redirect edits of existing Library stories

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Path Parameters

file
string
required

File.

story
integer
required

Story.

Body

application/json

Request fields accepted by this operation. Omitted optional properties retain the behavior described above.

title
string
required

Validation: required|string|max:255.

Maximum string length: 255
expected_edit_token
string
required

Validation: required|string|max:255.

Maximum string length: 255
summary
string | null

Validation: nullable|string|max:5000.

Maximum string length: 5000
body
string | null

Validation: nullable|string|max:50000.

Maximum string length: 50000
request_key
string<uuid> | null

Validation: nullable|uuid.

Response

Missing or invalid bearer token or API key.

Returned with HTTP 401 when the request lacks a valid Passport bearer token, a valid X-HYS-API-Key, or a valid session. The body is the simple {message, status} envelope emitted by AuthenticateApiOrKey.

message
string
required

Always the literal string Unauthorized from the auth.api_or_key middleware. Login endpoints return Invalid Credentials instead.

Example:

"Unauthorized"

status
string
required
Example:

"error"