Wger Exercise Submission API

The exercise-submission API from Wger — 1 operation(s) for exercise-submission.

Operations 1

POST /api/v2/exercise-submission/ Exercise submission create #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/wger-exercise-submission-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

wger-exercise-submission-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: wger Exercise Submission API
  version: 2.7.0a2
  description: Self hosted FLOSS workout and fitness tracker.
  license:
    name: AGPL-3.0-or-later
    url: https://www.gnu.org/licenses/agpl-3.0.html
servers:
- url: /
  description: This server
- url: https://wger.de
  description: The "official" upstream wger instance
tags:
- name: exercise-submission
paths:
  /api/v2/exercise-submission/:
    post:
      operationId: exercise_submission_create
      description: API endpoint for submitting new exercises
      tags:
      - exercise-submission
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExerciseSubmissionRequest'
        required: true
      security:
      - cookieAuth: []
      - tokenAuth: []
      - headlessJwtAuth: []
      - oidcAuth: []
      - jwtAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExerciseSubmission'
          description: ''
      summary: Exercise submission create
      x-summary-source: derived
components:
  schemas:
    ExerciseSubmissionAlias:
      type: object
      description: 'Alias serializer without ``translation``, for use inside a submission.


        A subclass rather than a modified instance of the parent: both would be named

        ExerciseAlias in the schema, and the narrower one would win for the alias

        endpoint too.'
      properties:
        id:
          type: integer
          readOnly: true
        uuid:
          type: string
          format: uuid
          readOnly: true
        alias:
          type: string
          title: Alias for an exercise
          maxLength: 200
      required:
      - alias
      - id
      - uuid
    ExerciseSubmissionCommentRequest:
      type: object
      description: 'Comment serializer without ``translation``, for use inside a submission.


        See ExerciseSubmissionAliasSerializer for why this is a subclass.'
      properties:
        comment:
          type: string
          minLength: 1
          description: A comment about how to correctly do this exercise.
          maxLength: 200
      required:
      - comment
    ExerciseSubmission:
      type: object
      description: Exercise submission serializer
      properties:
        id:
          type: integer
          readOnly: true
        category:
          type: integer
        muscles:
          type: array
          items:
            type: integer
        muscles_secondary:
          type: array
          items:
            type: integer
        equipment:
          type: array
          items:
            type: integer
        variation_group:
          type:
          - string
          - 'null'
          format: uuid
        license:
          type: integer
        license_author:
          type: string
          title: Author(s)
          description: If you are not the author, enter the name or source here.
          maxLength: 3500
        translations:
          type: array
          items:
            $ref: '#/components/schemas/ExerciseTranslationSubmission'
      required:
      - category
      - id
      - translations
    ExerciseSubmissionAliasRequest:
      type: object
      description: 'Alias serializer without ``translation``, for use inside a submission.


        A subclass rather than a modified instance of the parent: both would be named

        ExerciseAlias in the schema, and the narrower one would win for the alias

        endpoint too.'
      properties:
        alias:
          type: string
          minLength: 1
          title: Alias for an exercise
          maxLength: 200
      required:
      - alias
    ExerciseSubmissionComment:
      type: object
      description: 'Comment serializer without ``translation``, for use inside a submission.


        See ExerciseSubmissionAliasSerializer for why this is a subclass.'
      properties:
        id:
          type: integer
          readOnly: true
        uuid:
          type: string
          format: uuid
          readOnly: true
        comment:
          type: string
          description: A comment about how to correctly do this exercise.
          maxLength: 200
      required:
      - comment
      - id
      - uuid
    ExerciseTranslationSubmission:
      type: object
      description: "Translation serializer used as a nested child of ``ExerciseSubmissionSerializer``.\n\nDiffers from the regular serializer only because:\n- the ``exercise`` FK isn't known until the parent creates it (passed via ``create()`` kwargs);\n- the payload also accepts nested ``aliases`` and ``comments`` lists,\n  which the regular CRUD endpoint doesn't;\n- those take their ``translation`` from the parent, so they don't accept one."
      properties:
        name:
          type: string
          maxLength: 200
        description_source:
          type: string
          title: Description (Source)
          minLength: 40
        language:
          type: integer
        aliases:
          type: array
          items:
            $ref: '#/components/schemas/ExerciseSubmissionAlias'
        comments:
          type: array
          items:
            $ref: '#/components/schemas/ExerciseSubmissionComment'
        license_author:
          type: string
          title: Author(s)
          description: If you are not the author, enter the name or source here.
          maxLength: 3500
      required:
      - description_source
      - language
      - name
    ExerciseSubmissionRequest:
      type: object
      description: Exercise submission serializer
      properties:
        category:
          type: integer
        muscles:
          type: array
          items:
            type: integer
        muscles_secondary:
          type: array
          items:
            type: integer
        equipment:
          type: array
          items:
            type: integer
        variation_group:
          type:
          - string
          - 'null'
          format: uuid
        variations_connect_to:
          type:
          - integer
          - 'null'
          writeOnly: true
          description: If provided, the created exercise will be added to the selected variation set.
        license:
          type: integer
        license_author:
          type: string
          title: Author(s)
          description: If you are not the author, enter the name or source here.
          maxLength: 3500
        translations:
          type: array
          items:
            $ref: '#/components/schemas/ExerciseTranslationSubmissionRequest'
      required:
      - category
      - translations
    ExerciseTranslationSubmissionRequest:
      type: object
      description: "Translation serializer used as a nested child of ``ExerciseSubmissionSerializer``.\n\nDiffers from the regular serializer only because:\n- the ``exercise`` FK isn't known until the parent creates it (passed via ``create()`` kwargs);\n- the payload also accepts nested ``aliases`` and ``comments`` lists,\n  which the regular CRUD endpoint doesn't;\n- those take their ``translation`` from the parent, so they don't accept one."
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 200
        description_source:
          type: string
          minLength: 40
          title: Description (Source)
        language:
          type: integer
        aliases:
          type: array
          items:
            $ref: '#/components/schemas/ExerciseSubmissionAliasRequest'
        comments:
          type: array
          items:
            $ref: '#/components/schemas/ExerciseSubmissionCommentRequest'
        license_author:
          type: string
          title: Author(s)
          description: If you are not the author, enter the name or source here.
          maxLength: 3500
      required:
      - description_source
      - language
      - name
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: sessionid
    headlessJwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Access token issued by the allauth headless endpoints
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    oidcAuth:
      type: oauth2
      description: Access token issued by the OAuth2/OIDC provider
      flows:
        authorizationCode:
          authorizationUrl: https://wger.de/identity/o/authorize
          tokenUrl: https://wger.de/identity/o/api/token
          scopes:
            api:read: View your training, nutrition and body data
            api:write: Add and change your training, nutrition and body data
    tokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Token-based authentication with required prefix "Token"
externalDocs:
  url: https://wger.readthedocs.io
  description: wger documentation