sources

Put a library item to a question

A document or a web page already in the workspace’s library. Add one at /workspaces/{id}/content first: an upload, or a page by its address.

post/workspaces/{id}/questions/{questionId}/sources

Request

  • Base URL: https://api.swingfactor.ai/v1
  • URL: https://api.swingfactor.ai/v1/workspaces/{id}/questions/{questionId}/sources
  • Auth: HTTP bearer

Path parameters

idstring uuid required

The workspace's id (a UUID).

questionIdstring uuid required

The question's id (a UUID).

Headers

Idempotency-Keystring

Any unique string. The same key, method, path and body within 24 hours answers with the first response instead of creating again; the same key on a different request is 409 idempotency_key_reused.

Request body

itemIdstring uuid required

A ready item of kind sources in this workspace’s library: add a document or a page at /workspaces/{id}/content first.

reasonstring

Why — kept in the history.

Response

The source.

idstring uuid required

Its place on the question: what is taken off.

workspaceIdstring uuid required
questionIdstring uuid required
createdAtstring required

When it was put to the question.

evidenceCountinteger required

Pieces of this question’s evidence citing it.

Changes

No recorded changes to this operation across all 1 revision of this API.