JustGains Exercise Draft API

The ExerciseDraft API from JustGains — 1 operation(s) for exercisedraft.

GitHub OpenAPI

Operations 1

PUT /api/exercise-draft Replace api exercise draft #

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/justgains-com:justgains-com-exercisedraft-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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

justgains-com-exercisedraft-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: JustGains Exercise Draft API
  version: '1.0'
security:
- Bearer: []
tags:
- name: ExerciseDraft
paths:
  /api/exercise-draft:
    put:
      tags:
      - ExerciseDraft
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/ExerciseDto'
          application/json:
            schema:
              $ref: '#/components/schemas/ExerciseDto'
          text/json:
            schema:
              $ref: '#/components/schemas/ExerciseDto'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ExerciseDto'
      responses:
        '200':
          description: OK
      summary: Replace api exercise draft
      x-summary-source: derived
      operationId: putApiExerciseDraft
      x-operation-id-source: derived
components:
  schemas:
    ModelDto:
      required:
      - VideoId
      - VideoUrl
      type: object
      properties:
        ModelName:
          type:
          - string
          - 'null'
        VideoId:
          type:
          - string
          - 'null'
        VideoUrl:
          type:
          - string
          - 'null'
        ModelId:
          type:
          - integer
          - 'null'
          format: int32
      additionalProperties: false
    ExerciseDto:
      required:
      - ExerciseCode
      type: object
      properties:
        Id:
          type:
          - integer
          - 'null'
          format: int32
        FileName:
          type:
          - string
          - 'null'
        ExerciseCode:
          type:
          - string
          - 'null'
        ExerciseName:
          type:
          - string
          - 'null'
        AlternateNames:
          type:
          - array
          - 'null'
          items:
            type: string
        PublishStatus:
          type:
          - string
          - 'null'
        Models:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ModelDto'
        ExerciseType:
          type:
          - array
          - 'null'
          items:
            type: string
        ExerciseMetrics:
          type:
          - array
          - 'null'
          items:
            type: string
        ExerciseDifficulty:
          type:
          - integer
          - 'null'
          format: int32
        ExerciseComplexity:
          type:
          - integer
          - 'null'
          format: int32
        MetabolicEquivalent:
          type: number
          format: double
        EquipmentRequired:
          $ref: '#/components/schemas/EquipmentRequiredDto'
        PrimaryMuscleGroups:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/MuscleGroupTargetDto'
        SecondaryMuscleGroups:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/MuscleGroupTargetDto'
        IsPlateLoaded:
          type: boolean
        ExerciseTechnicalComplexity:
          type:
          - integer
          - 'null'
          format: int32
        IsCardio:
          type: boolean
        OlympicRating:
          type: integer
          format: int32
        PowerlifterRating:
          type: integer
          format: int32
        CalisthenicRating:
          type: integer
          format: int32
        PopularityRating:
          type: integer
          format: int32
        IsPlyometric:
          type: boolean
        IsIsometric:
          type: boolean
        IsCalisthenic:
          type: boolean
        IsWeighted:
          type: boolean
        IsUnilateral:
          type: boolean
        IsBodyweight:
          type: boolean
        AiNotes:
          type:
          - string
          - 'null'
        MuscleStimulus:
          type:
          - number
          - 'null'
          format: double
        ExerciseInstructions:
          $ref: '#/components/schemas/ExerciseInstructionDto'
      additionalProperties: false
    MuscleGroupTargetDto:
      type: object
      properties:
        MuscleName:
          type:
          - string
          - 'null'
        TargetPercentage:
          type: number
          format: double
        MuscleGroupId:
          type: integer
          format: int32
      additionalProperties: false
    EquipmentRequiredDto:
      type: object
      properties:
        Required:
          type:
          - array
          - 'null'
          items:
            type: array
            items:
              type: string
        Optional:
          type:
          - array
          - 'null'
          items:
            type: array
            items:
              type: string
      additionalProperties: false
    DataDto:
      type: object
      properties:
        Text:
          type:
          - string
          - 'null'
      additionalProperties: false
    BlockDto:
      type: object
      properties:
        Id:
          type:
          - string
          - 'null'
        Type:
          type:
          - string
          - 'null'
        Data:
          $ref: '#/components/schemas/DataDto'
      additionalProperties: false
    ExerciseInstructionDto:
      type: object
      properties:
        Time:
          type:
          - integer
          - 'null'
          format: int64
        Blocks:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/BlockDto'
        Version:
          type:
          - string
          - 'null'
      additionalProperties: false
  securitySchemes:
    Bearer:
      type: http
      description: Put **_ONLY_** your JWT Bearer token on the textbox below!
      scheme: Bearer
      bearerFormat: JWT