> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mightynetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# createGiftDefinition

> Create a gift (recognition) members can give one another, using a built-in badge template or an uploaded image

**Required scope:** `host:write:network_plans`



**mutation** `createGiftDefinition(input: CreateGiftDefinitionInput!): CreateGiftDefinitionPayload`

## Arguments

**`input`**: `CreateGiftDefinitionInput!` (required)

Parameters for CreateGiftDefinition

## Returns

`CreateGiftDefinitionPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`errors`**: `[String!]!`

---

**`giftDefinition`**: `GiftDefinition`

The gift that was created

## Examples

```graphql Mutation
mutation CreateGiftDefinition($input: CreateGiftDefinitionInput!) {
  createGiftDefinition(input: $input) {
    clientMutationId
    errors
    giftDefinition {
      archived
      avatarUrl
      costInPoints
      createdAt
      id
      name
    }
  }
}
```

```json Variables
{
  "input": {
    "name": "string"
  }
}
```

```json Response
{
  "data": {
    "createGiftDefinition": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "giftDefinition": {
        "archived": true,
        "avatarUrl": "string",
        "costInPoints": 1,
        "createdAt": "value",
        "id": "id",
        "name": "string"
      }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.