music nerd

Interview memory and sessionsFinish interview sitting

Interview memory and sessions

Finish interview sitting

Explicitly closes a sitting, skips an unanswered offer and queues an existing durable Lore refresh for its answers in the same transaction. Repeated finish is idempotent. It never runs a detached model call. Current claimant or administrator only. Private/no-store. When the approved claimant explicitly finishes a sitting containing a saved answer, the same transaction creates at most one private next sitting and queues its existing durable preparation job. The finished session ID is the deduplication key. Repeated Finish, skipped-only sittings, and untouched automatically prepared sittings never recursively queue another. An administrator finishing another artist’s sitting does not opt that artist in. The response still describes the finished sitting; GET then restores the next private sitting. No question is offered until explicit Start. Permanent instructions and newest answers apply to the next sitting; the finished sitting’s temporary instructions expire.

POST/api/artist/{id}/interview/session/{sessionId}/finish
POST/api/artist/{id}/interview/session/{sessionId}/finish

Explicitly closes a sitting, skips an unanswered offer and queues an existing durable Lore refresh for its answers in the same transaction. Repeated finish is idempotent. It never runs a detached model call. Current claimant or administrator only. Private/no-store. When the approved claimant explicitly finishes a sitting containing a saved answer, the same transaction creates at most one private next sitting and queues its existing durable preparation job. The finished session ID is the deduplication key. Repeated Finish, skipped-only sittings, and untouched automatically prepared sittings never recursively queue another. An administrator finishing another artist’s sitting does not opt that artist in. The response still describes the finished sitting; GET then restores the next private sitting. No question is offered until explicit Start. Permanent instructions and newest answers apply to the next sitting; the finished sitting’s temporary instructions expire.

Authorization

Authorizationstringrequired

Kept in this tab only.

Path

idstringrequired

sessionIdstringrequired

Body
cURL
curl --request POST \
  --url 'https://musicnerd-api.vercel.app/api/artist/{id}/interview/session/{sessionId}/finish' \
  --header 'Content-Type: application/json' \
  --data '{}'

Send the request to see the live response here.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>.

Path Parameters

idstringrequired
sessionIdstringrequired

Body

application/jsonrequired

object

Response

application/json

Exact saved state.

statusany
sessionobject | null
Properties for session
idstring

format: uuid

sittinginteger
statestring · enum

Values: "active", "finished"

createdAtstring

format: date-time

closedAtstring | null

format: date-time

questionsarray<object>

maxItems: 3

Item properties for questions
idstring

format: uuid

questionKeystring
questionstring
answerstring | null
statestring · enum

Values: "offered", "answered", "skipped"

revisionstring

pattern: ^[a-f0-9]{64}$

sittinginteger
offeredAtstring

format: date-time

answerUpdatedAtstring

format: date-time

ordinalinteger | null
referencesarray<object>
Item properties for references
kindstring · enumrequired

Values: "original", "answer"

sourceIdstring

Required for original evidence: full vault/social source identity.

entryIdstring

Required for answer evidence: full answer identity.

revisionstringrequired

pattern: ^[a-f0-9]{64}$

startintegerrequired

UTF-16 offset.

minimum: 0

endintegerrequired

minimum: 1

quotestringrequired

minLength: 8 · maxLength: 1600

interviewInvalidatedboolean

True after changed instructions invalidate the fixed offered bank. Saved answers remain intact; finish explicitly before starting a new sitting.

needsPreparedBankResumeboolean

Read-only hint that an active legacy sitting has an offered question and remaining checked bank items. On explicit Resume, call consume to revalidate current ownership, mandatory memory, and evidence and atomically offer eligible remaining questions. GET never offers questions. False for fully offered banks.

legacyOffersarray<object>

maxItems: 3

Item properties for legacyOffers
idstring

format: uuid

questionKeystring
questionstring
answerstring | null
statestring · enum

Values: "offered", "answered", "skipped"

revisionstring

pattern: ^[a-f0-9]{64}$

sittinginteger
offeredAtstring

format: date-time

answerUpdatedAtstring

format: date-time

ordinalinteger | null
referencesarray<object>
Item properties for references
kindstring · enumrequired

Values: "original", "answer"

sourceIdstring

Required for original evidence: full vault/social source identity.

entryIdstring

Required for answer evidence: full answer identity.

revisionstringrequired

pattern: ^[a-f0-9]{64}$

startintegerrequired

UTF-16 offset.

minimum: 0

endintegerrequired

minimum: 1

quotestringrequired

minLength: 8 · maxLength: 1600