# createDisputeTextEvidence

Mutation · GraphQL API

Creates text evidence to a dispute and returns a payload that includes the evidence that was created. Only disputes with a status of OPEN can have text evidence created for them.

## Authentication

- SERVER

## Input

- `input` (`CreateDisputeTextEvidenceInput!`) — required

## Returns [CreateDisputeTextEvidencePayload](/braintree/graphql/reference/types/create-dispute-text-evidence-payload)

Top-level field returned when creating text evidence for a dispute.

### Returned fields

- `clientMutationId` (`String`): An identifier used to reconcile requests and responses. 255 characters maximum.
- `evidence` (`DisputeTextEvidence`): The evidence object created.

## Examples

### Create dispute text evidence

Top-level input fields for creating text evidence for a dispute.

```graphql
mutation createDisputeTextEvidence($input: CreateDisputeTextEvidenceInput!) {
  createDisputeTextEvidence(input: $input) {
    clientMutationId
    evidence {
      __typename
      id
      legacyId
      createdAt
      sentToProcessorAt
      content
      category
    }
  }
}
```

---

[View the complete GraphQL schema on GitHub](https://raw.githubusercontent.com/braintree/graphql-api/refs/heads/master/schema.graphql)