---
title: "add exercise log"
method: POST
path: "/exercise-logs"
tags: ["Exercise Logs"]
---

# add exercise log

`POST /exercise-logs`

Creates a new **exercise log**
#### For custom components:
`RaiselyComponents.api.all('exercise-logs').post(data = {}, params = {}, headers = {}) => Promise<{result}>`

 :fa-gears: See [Restie Response Data](https://github.com/raisely/restie#reading-and-handling-responses) for a more detailed overview of responses through the client wrapper

## Query parameters

- `private` boolean

## Headers

- `Authorization` string

## Request body

- object
  - `data` object
    - `activity` 'RUNNING' | 'SWIMMING' | 'CYCLING' | 'WALKING' | 'WHEELCHAIRING' | 'OTHER', required — The type of exercise this activity represents Examples: `RUNNING`, `SWIMMING`, `CYCLING`, `WALKING`, `WHEELCHAIRING`, `OTHER`
    - `data` object — Additional contextual data related to this log Example: `{}`
    - `date` string — The date that this log took place Example: `2020-12-03T06:52:46.330Z`
    - `distance` integer — Distance (in meters) Example: `12345`
    - `measure` integer — Completed measure (in campaign unit) Example: `12345`
    - `rawDistance` integer — (Internal Raisely field - ignored) Example: `12345`
    - `sourceApp` string — Source of the exercise logs (if any)
    - `time` integer — Time elapsed (in seconds) Example: `12345`
    - `userUuid` string, required — The UUID of the user to log exercise for
    - `profileUuid` string, required — The UUID of the profile to log exercise for

## Response `200`

The newly created exercise log

- object
  - `data` CreateResultExerciseLog
    - `activity` 'RUNNING' | 'SWIMMING' | 'CYCLING' | 'WALKING' | 'WHEELCHAIRING' | 'OTHER', required — The type of exercise this activity represents
    - `activityId` integer — Strava activity id of the exercise (if any)
    - `data` object — Additional contextual data related to this log
    - `date` string — The date that this log took place
    - `distance` integer — Distance (in meters)
    - `measure` integer — Completed measure (in campaign unit)
    - `rawDistance` integer — (Internal Raisely field - ignored)
    - `sourceApp` string — Source of the exercise logs (if any)
    - `time` integer — Time elapsed (in seconds)
    - `uuid` string — Unique identifier for the record

## Other responses

- `401` — Authorization credentials were missing or invalid
- `403` — The user is authenticated, but is not allowed to perform the requested operation
- `410` — The requested record no longer exists, or that API has been deprecated
- `429` — You have made too many requests to the given endpoint, please try again later
- `500` — An unexpected error has occurred with Raisely. If the error persists you can contact support@raisely.com

---

[API](https://skmtc.dev/raisely/apis/raisely-api.md) · [All operations](https://skmtc.dev/raisely/apis/raisely-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/raisely/raisely-api/revisions/d7f8dd294cb0/schema)
