---
title: "Edit evidence — new words are proposed again"
method: PATCH
path: "/workspaces/{id}/questions/{questionId}/evidence/{evidenceId}"
tags: ["evidence"]
---

# Edit evidence — new words are proposed again

`PATCH /workspaces/{id}/questions/{questionId}/evidence/{evidenceId}`

## Request

- Base URL: `https://api.swingfactor.ai/v1`
- URL: `https://api.swingfactor.ai/v1/workspaces/{id}/questions/{questionId}/evidence/{evidenceId}`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required
- `questionId` string, uuid, required
- `evidenceId` string, uuid, required

## Request body

- EvidencePatchBody
  - `stance` 'supports' | 'contradicts' | 'qualifies'
  - `summary` string
  - `source` string
  - `sourceUrl` union
    - string
    - ''
  - `sourceKind` 'official-statistics' | 'law' | 'institution' | 'research' | 'modelling' | 'polling' | 'advocacy' | 'proposal' | 'expert-judgement' | 'management-estimate' | 'internal' | 'news' | 'first-person' | 'other': Defaults to other. first-person: a person’s own expectation or experience — it names them as assertedBy, affected.
  - `sourceItemId` union
    - string, uuid
    - ''
  - `assertedBy` string
  - `assertedRole` union
    - 'decides' | 'knows' | 'affects' | 'affected' | 'challenges'
    - ''
  - `declaredInterest` string: A stake the asserter has in the outcome.
  - `publishedOn` union
    - string, date
    - ''
  - `accessedOn` union
    - string, date
    - ''
  - `pinpoint` string
  - `quote` string: The passage, word for word, from the source document `sourceItemId` names: refused unless it is in the document as read, but for its spacing. Kept in the document’s own words. An empty string on an edit clears it.
  - `derivesFromId` union
    - string, uuid
    - ''
  - `lean` union
    - 'larger' | 'smaller' | 'either'
    - ''
  - `whyThisSource` string: Why this source fits the claim, in a sentence. An empty string on an edit clears it.
  - `reason` string: Why — kept in the history.

## Response `200`

The evidence.

- Evidence
  - `id` string, uuid, required
  - `workspaceId` string, uuid, required
  - `questionId` string, uuid, required
  - `propositionId` string, uuid, required
  - `stance` 'supports' | 'contradicts' | 'qualifies', required
  - `summary` string, required
  - `source` string, required
  - `sourceUrl` string
  - `sourceKind` 'official-statistics' | 'law' | 'institution' | 'research' | 'modelling' | 'polling' | 'advocacy' | 'proposal' | 'expert-judgement' | 'management-estimate' | 'internal' | 'news' | 'first-person' | 'other', required
  - `sourceItemId` string, uuid: The question’s source document it was taken from.
  - `assertedBy` string
  - `assertedRole` 'decides' | 'knows' | 'affects' | 'affected' | 'challenges'
  - `declaredInterest` string: A stake whoever asserts it has in the outcome.
  - `publishedOn` string: When the source was published, YYYY-MM-DD.
  - `accessedOn` string: When it was read, YYYY-MM-DD.
  - `pinpoint` string: Where in the source: a page, table or section.
  - `quote` string: The passage it rests on, word for word, in the words of the version of its source that was read — found there before it was kept. A quote from an uploaded document is shown to its workspace only.
  - `quoteFound` boolean: Whether the quote was found in its source as read: false where it was looked for and is not there. Absent where nothing has looked yet.
  - `derivesFromId` string, uuid: The evidence it derives from. Evidence sharing a root is one family, not independent confirmation.
  - `lean` 'larger' | 'smaller' | 'either': For a qualification: which way it leans.
  - `whyThisSource` string: Why this source was chosen for this claim, in words: the authority on the fact, independent evidence, an interested party’s own claim, a person’s own experience, or a secondary source and why.
  - `status` 'proposed' | 'accepted' | 'rejected', required: Changes only by a person’s decision.
  - `decidedBy` string, uuid
  - `decidedByName` string
  - `decidedAt` string
  - `createdBy` string, uuid
  - `createdAt` string, required
  - `draftId` string, uuid: Set where SwingFactor drafted it.
  - `updatedAt` string, required
  - `links` EvidenceLinks, required: Relative /v1 URLs to follow.
    - `self` string, required
    - `decision` string, required
    - `proposition` string, required
    - `question` string, required

## Other responses

- `401`: No token, or not a valid one: `unauthorized`.
- `404`: No such evidence.

---

[API](https://skmtc.dev/swingfactor/apis/swingfactor-api.md) · [All operations](https://skmtc.dev/swingfactor/apis/swingfactor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/swingfactor/apis/swingfactor-api/revisions/c2fe881a39c3?raw)
