> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.github.list.CreateGist

- Component: `appmixer.github.list.CreateGist`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.github 4.2.0](https://connectors.appmixer.com/connector/appmixer.github/4.2.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.github/4.2.0/component/appmixer.github.list.CreateGist>

Create a new Gist.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Description (`description`) | textarea | Description of the gist. |
| Public (`isPublic`) | toggle | Set to true to create a public gist. |
| Attachments (`files`) | expression | Attachments for the gist. |

## Output ports

### Port `out`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.github.list.CreateGist",
  "author": "Appmixer <info@appmixer.com>",
  "icon": "(data URI omitted)",
  "description": "Create a new Gist.",
  "private": false,
  "auth": {
    "service": "appmixer:github",
    "scope": [
      "user",
      "public_repo",
      "repo",
      "notifications",
      "gist"
    ]
  },
  "quota": {
    "manager": "appmixer:github",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "files": {},
          "isPublic": {
            "type": "boolean"
          }
        },
        "required": [
          "files"
        ]
      },
      "inspector": {
        "inputs": {
          "description": {
            "type": "textarea",
            "group": "transformation",
            "tooltip": "Description of the gist.",
            "label": "Description",
            "index": 1
          },
          "isPublic": {
            "type": "toggle",
            "group": "transformation",
            "tooltip": "Set to true to create a public gist.",
            "label": "Public",
            "index": 2
          },
          "files": {
            "type": "expression",
            "label": "Attachments",
            "tooltip": "Attachments for the gist.",
            "index": 3,
            "group": "transformation",
            "levels": [
              "ADD"
            ],
            "fields": {
              "fileId": {
                "type": "filepicker",
                "label": "File",
                "tooltip": "The file to attach.",
                "index": 1
              }
            }
          }
        },
        "groups": {
          "transformation": {
            "label": "Transformation",
            "index": 1
          }
        }
      }
    }
  ],
  "outPorts": [
    "out"
  ]
}
```
