University of Gothenburg Cleanup API

Calls for removing builds.

Operations 4

GET /cleanup Cleanup #
GET /cleanup/errors Cleanup errors #
GET /cleanup/forceone Cleanup one build #
GET /cleanup/forceall Cleanup all builds #

Documentation

Specifications

Schemas & Data

Other Resources

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/university-of-gothenburg-cleanup-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

university-of-gothenburg-cleanup-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sparv Cleanup API
  description: 'Sparv is Språkbanken’s annotation tool and contains a corpus import pipeline

    and a web service including a web interface.

    It can be used to annotate shorter texts using the same tools as are applied

    in the annotation of the corpora in Korp and the texts in

    Strix.


    You can read more about Sparv on Språkbanken''s web page.'
  x-logo:
    url: https://ws.spraakbanken.gu.se/ws/sparv/v3/static/sparv_frame.png
  contact:
    name: Språkbanken
    url: https://spraakbanken.gu.se/
    email: sb-info@svenska.gu.se
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  version: '3.0'
servers:
- url: https://ws.spraakbanken.gu.se/ws/sparv/v3
  description: Production server
- url: https://ws.spraakbanken.gu.se/ws/sparvlabb/v3
  description: Lab version
tags:
- name: Cleanup
  description: Calls for removing builds.
paths:
  /cleanup:
    get:
      tags:
      - Cleanup
      summary: Cleanup
      description: 'Removes builds that are finished and haven’t been accessed within the timeout (default: 7 days).'
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: OK (old builds removed)
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/Cleanup'
                - $ref: '#/components/schemas/NoCleanup'
        '401':
          description: 'Cleanup failed: secret key could not be confirmed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthenticationError'
        '500':
          description: Failed to remove builds
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeneralError'
      operationId: getCleanup
      x-operation-id-source: derived
  /cleanup/errors:
    get:
      tags:
      - Cleanup
      summary: Cleanup errors
      description: 'Removes builds that are finished and haven’t been accessed within the timeout (default: 7 days) and the builds with status Error.'
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: OK (cleanup succeeded)
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/Cleanup'
                - $ref: '#/components/schemas/NoCleanup'
        '401':
          description: 'Cleanup failed: secret key could not be confirmed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthenticationError'
        '500':
          description: Failed to remove builds
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeneralError'
      operationId: getCleanupErrors
      x-operation-id-source: derived
  /cleanup/forceone:
    get:
      tags:
      - Cleanup
      summary: Cleanup one build
      description: Removes a single build.
      parameters:
      - $ref: '#/components/parameters/HashParam'
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: OK (build removed)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CleanupOne'
        '400':
          description: No hash supplied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeneralError'
        '401':
          description: 'Cleanup failed: secret key could not be confirmed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthenticationError'
        '500':
          description: Failed to remove build
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeneralError'
      operationId: getCleanupForceone
      x-operation-id-source: derived
  /cleanup/forceall:
    get:
      tags:
      - Cleanup
      summary: Cleanup all builds
      description: Removes all the existing builds.
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: OK (builds removed)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Cleanup'
        '401':
          description: 'Cleanup failed: secret key could not be confirmed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthenticationError'
        '500':
          description: Failed to remove builds
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeneralError'
      operationId: getCleanupForceall
      x-operation-id-source: derived
components:
  schemas:
    GeneralError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Some error message
    AuthenticationError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Authentication failed.
    Cleanup:
      type: object
      properties:
        removed-builds:
          example:
          - d91d063efb5a8439643147c7367e3a4ddad5ec63
          - a1b1de8f3508c5928352dbfc538025231a336801-f
          items:
            type: array
            format: string
    CleanupOne:
      type: object
      properties:
        removed-builds:
          example:
          - d91d063efb5a8439643147c7367e3a4ddad5ec63
          items:
            type: array
            format: string
    NoCleanup:
      type: object
      properties:
        message:
          type: string
          example: No hashes to be removed.
  parameters:
    HashParam:
      name: hash
      in: query
      required: true
      description: Hash of the analysis
      schema:
        type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: query
      name: secret_key