> ## 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.

# createInstallation

> Register an app on a device to receive the signed-in member's push
notifications from this Network. Call it again whenever the push service
issues the app a new device token: a registration under the same
`deviceIdentifier` has its token replaced. Registering a token already
registered returns the same installation. Mighty signs each push with the
app's own push credentials, so `appId` must name this Network's branded app or
the Mighty Networks app.

**Required scope:** `write:installations`



**mutation** `createInstallation(input: CreateInstallationInput!): CreateInstallationPayload`

## Arguments

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

Parameters for CreateInstallation

## Returns

`CreateInstallationPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

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

---

**`installation`**: `Installation`

## Examples

```graphql Mutation
mutation CreateInstallation($input: CreateInstallationInput!) {
  createInstallation(input: $input) {
    clientMutationId
    errors
    installation {
      appId
      deviceIdentifier
      hasDeviceToken
      platform
    }
  }
}
```

```json Variables
{
  "input": {
    "appId": "string",
    "deviceIdentifier": "string",
    "deviceToken": "string",
    "platform": "APNS"
  }
}
```

```json Response
{
  "data": {
    "createInstallation": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "installation": {
        "appId": "string",
        "deviceIdentifier": "string",
        "hasDeviceToken": true,
        "platform": "APNS"
      }
    }
  }
}
```


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