Wger Upload Powersync Data API

The upload-powersync-data API from Wger — 1 operation(s) for upload-powersync-data.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

PUT /api/v2/upload-powersync-data Replace the Powersync data upload · Upload powersync data update #
Ask an LLM
“How do I overwrite the Powersync data my app uploaded?”
“Can I send a full Powersync table update?”
Tell an agent
Replace the Powersync data upload with {table} {data}.
Overwrite the Powersync upload for {table}.
PATCH /api/v2/upload-powersync-data Patch the Powersync data upload · Upload powersync data partial update #
Ask an LLM
“Can I send only some Powersync rows without replacing the upload?”
“How do I patch the Powersync data upload?”
Tell an agent
Patch the Powersync data upload with {data}.
Update the Powersync upload for {table} with {data}.
DELETE /api/v2/upload-powersync-data Delete the Powersync data upload · Upload powersync data destroy #
Ask an LLM
“How do I clear the Powersync data my app uploaded?”
“Can I remove the Powersync upload entirely?”
Tell an agent destructive · confirm first
Delete the Powersync data upload.
Clear the Powersync upload.

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:wger-upload-powersync-data-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

wger-upload-powersync-data-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: wger Upload Powersync Data 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: upload-powersync-data
paths:
  /api/v2/upload-powersync-data:
    put:
      operationId: upload_powersync_data_update
      tags:
      - upload-powersync-data
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PowersyncUploadRequest'
        required: true
      security:
      - cookieAuth: []
      - tokenAuth: []
      - headlessJwtAuth: []
      - oidcAuth: []
      - jwtAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PowersyncUploadResponse'
          description: ''
        '403':
          description: The request is not authenticated
        '500':
          description: Unclassified server error, the client should retry
        '503':
          description: Transient database error, the client should retry
      summary: Upload powersync data update
      x-summary-source: derived
    patch:
      operationId: upload_powersync_data_partial_update
      tags:
      - upload-powersync-data
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedPowersyncUploadRequest'
      security:
      - cookieAuth: []
      - tokenAuth: []
      - headlessJwtAuth: []
      - oidcAuth: []
      - jwtAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PowersyncUploadResponse'
          description: ''
        '403':
          description: The request is not authenticated
        '500':
          description: Unclassified server error, the client should retry
        '503':
          description: Transient database error, the client should retry
      summary: Upload powersync data partial update
      x-summary-source: derived
    delete:
      operationId: upload_powersync_data_destroy
      tags:
      - upload-powersync-data
      security:
      - cookieAuth: []
      - tokenAuth: []
      - headlessJwtAuth: []
      - oidcAuth: []
      - jwtAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PowersyncUploadResponse'
          description: ''
        '403':
          description: The request is not authenticated
        '500':
          description: Unclassified server error, the client should retry
        '503':
          description: Transient database error, the client should retry
      summary: Upload powersync data destroy
      x-summary-source: derived
components:
  schemas:
    PowersyncUploadRequest:
      type: object
      properties:
        table:
          type: string
          minLength: 1
        data: {}
      required:
      - data
      - table
    PowersyncUploadResponse:
      type: object
      properties:
        status:
          type: string
        error:
          type: string
        details:
          type: string
    PatchedPowersyncUploadRequest:
      type: object
      properties:
        table:
          type: string
          minLength: 1
        data: {}
  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
x-provenance:
  method: harvested
  publisher: Wger
  source: https://wger.de/api/v2/schema
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)