> 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.strava.core.CreateManualActivity

- Component: `appmixer.strava.core.CreateManualActivity`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.strava 1.1.4](https://connectors.appmixer.com/connector/appmixer.strava/1.1.4.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.strava/1.1.4/component/appmixer.strava.core.CreateManualActivity>

Create a manual activity by providing details like name, type, start date, and elapsed time.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Name (`name`) | text | Name of the activity. |
| Sport Type (`sportType`) | text | Sport type of activity (e.g., Run, MountainBikeRide, Ride). |
| Start Date Local (`startDateLocal`) | text | Start date of the activity in ISO 8601 format (e.g., 2018-02-20T10:02:13Z). |
| Elapsed Time (seconds) (`elapsedTime`) | number | Elapsed time of the activity in seconds. |
| Description (`description`) | text | Description of the activity (optional). |
| Distance (meters) (`distance`) | number | Distance of the activity in meters (optional). |
| Trainer Activity (`trainer`) | number | Set to 1 to mark as a trainer activity (optional). |
| Commute (`commute`) | number | Set to 1 to mark as a commute (optional). |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Activity ID (`id`) | number | - |
| Name (`name`) | string | - |
| Distance (`distance`) | number | - |
| Moving Time (`moving_time`) | number | - |
| Elapsed Time (`elapsed_time`) | number | - |
| Type (`type`) | string | - |
| Sport Type (`sport_type`) | string | - |
| Start Date (`start_date`) | string | - |
| Start Date Local (`start_date_local`) | string | - |
| Timezone (`timezone`) | string | - |
| Total Elevation Gain (`total_elevation_gain`) | number | - |
| Trainer (`trainer`) | boolean | - |
| Commute (`commute`) | boolean | - |
| Manual (`manual`) | boolean | - |
| Private (`private`) | boolean | - |
| Description (`description`) | string | - |
| Resource State (`resource_state`) | number | - |
| Athlete (`athlete`) | object | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.strava.core.CreateManualActivity",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Create a manual activity by providing details like name, type, start date, and elapsed time.",
  "version": "1.0.0",
  "private": false,
  "auth": {
    "service": "appmixer:strava"
  },
  "quota": {
    "manager": "appmixer:strava",
    "resources": "requests"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "sportType": {
            "type": "string"
          },
          "startDateLocal": {
            "type": "string"
          },
          "elapsedTime": {
            "type": "integer"
          },
          "description": {
            "type": "string"
          },
          "distance": {
            "type": "number"
          },
          "trainer": {
            "type": "integer"
          },
          "commute": {
            "type": "integer"
          }
        },
        "required": [
          "name",
          "sportType",
          "startDateLocal",
          "elapsedTime"
        ]
      },
      "inspector": {
        "inputs": {
          "name": {
            "type": "text",
            "tooltip": "Name of the activity.",
            "label": "Name",
            "index": 1
          },
          "sportType": {
            "type": "text",
            "tooltip": "Sport type of activity (e.g., Run, MountainBikeRide, Ride).",
            "label": "Sport Type",
            "index": 2
          },
          "startDateLocal": {
            "type": "text",
            "tooltip": "Start date of the activity in ISO 8601 format (e.g., 2018-02-20T10:02:13Z).",
            "label": "Start Date Local",
            "index": 3
          },
          "elapsedTime": {
            "type": "number",
            "tooltip": "Elapsed time of the activity in seconds.",
            "label": "Elapsed Time (seconds)",
            "index": 4
          },
          "description": {
            "type": "text",
            "tooltip": "Description of the activity (optional).",
            "label": "Description",
            "index": 5
          },
          "distance": {
            "type": "number",
            "tooltip": "Distance of the activity in meters (optional).",
            "label": "Distance (meters)",
            "index": 6
          },
          "trainer": {
            "type": "number",
            "tooltip": "Set to 1 to mark as a trainer activity (optional).",
            "label": "Trainer Activity",
            "index": 7
          },
          "commute": {
            "type": "number",
            "tooltip": "Set to 1 to mark as a commute (optional).",
            "label": "Commute",
            "index": 8
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Activity ID",
          "value": "id",
          "schema": {
            "type": "number",
            "example": 12345678987654320
          }
        },
        {
          "label": "Name",
          "value": "name",
          "schema": {
            "type": "string",
            "example": "Morning Run"
          }
        },
        {
          "label": "Distance",
          "value": "distance",
          "schema": {
            "type": "number",
            "example": 5012.3
          }
        },
        {
          "label": "Moving Time",
          "value": "moving_time",
          "schema": {
            "type": "number",
            "example": 1800
          }
        },
        {
          "label": "Elapsed Time",
          "value": "elapsed_time",
          "schema": {
            "type": "number",
            "example": 1920
          }
        },
        {
          "label": "Type",
          "value": "type",
          "schema": {
            "type": "string",
            "example": "Run"
          }
        },
        {
          "label": "Sport Type",
          "value": "sport_type",
          "schema": {
            "type": "string",
            "example": "Run"
          }
        },
        {
          "label": "Start Date",
          "value": "start_date",
          "schema": {
            "type": "string",
            "example": "2024-07-15T07:30:00Z"
          }
        },
        {
          "label": "Start Date Local",
          "value": "start_date_local",
          "schema": {
            "type": "string",
            "example": "2024-07-15T09:30:00Z"
          }
        },
        {
          "label": "Timezone",
          "value": "timezone",
          "schema": {
            "type": "string",
            "example": "(GMT+01:00) Europe/Prague"
          }
        },
        {
          "label": "Total Elevation Gain",
          "value": "total_elevation_gain",
          "schema": {
            "type": "number",
            "example": 45
          }
        },
        {
          "label": "Trainer",
          "value": "trainer",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Commute",
          "value": "commute",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Manual",
          "value": "manual",
          "schema": {
            "type": "boolean",
            "example": true
          }
        },
        {
          "label": "Private",
          "value": "private",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Description",
          "value": "description",
          "schema": {
            "type": "string",
            "example": "Easy recovery run around the park"
          }
        },
        {
          "label": "Resource State",
          "value": "resource_state",
          "schema": {
            "type": "number",
            "example": 2
          }
        },
        {
          "label": "Athlete",
          "value": "athlete",
          "schema": {
            "type": "object",
            "example": {
              "id": 12345678,
              "resource_state": 1
            },
            "properties": {
              "id": {
                "type": "number"
              },
              "resource_state": {
                "type": "number"
              }
            }
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
