CompTeam Belt Promotions API

The Belt Promotions API from CompTeam — 3 operation(s) for belt promotions.

GitHub OpenAPI

Operations 3

POST /api/v1/belt-promotions/ Create Promotion #
GET /api/v1/belt-promotions/athlete/{athlete_id} Get Athlete Promotions #
PATCH /api/v1/belt-promotions/{promotion_id} Update Promotion Date #

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/compteam-io:compteam-io-belt-promotions-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

compteam-io-belt-promotions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Compteam Io Belt Promotions API
  version: 0.1.0
  description: 'Operations tagged Belt Promotions across 2 of this provider''s published API definitions: compteam-io-openapi.json, compteam-io-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.compteam.io
  description: C-TEAM API host serving this spec and its Swagger UI at /docs
tags:
- name: Belt Promotions
paths:
  /api/v1/belt-promotions/:
    post:
      tags:
      - Belt Promotions
      summary: Create Promotion
      operationId: create_promotion_api_v1_belt_promotions__post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BeltPromotionCreate'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      - HTTPBearer: []
  /api/v1/belt-promotions/athlete/{athlete_id}:
    get:
      tags:
      - Belt Promotions
      summary: Get Athlete Promotions
      operationId: get_athlete_promotions_api_v1_belt_promotions_athlete__athlete_id__get
      security:
      - HTTPBearer: []
      - HTTPBearer: []
      parameters:
      - name: athlete_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Athlete Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/belt-promotions/{promotion_id}:
    patch:
      tags:
      - Belt Promotions
      summary: Update Promotion Date
      operationId: update_promotion_date_api_v1_belt_promotions__promotion_id__patch
      security:
      - HTTPBearer: []
      - HTTPBearer: []
      parameters:
      - name: promotion_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Promotion Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BeltPromotionDateUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BeltPromotionCreate:
      properties:
        athlete_id:
          type: string
          format: uuid
          title: Athlete Id
        belt:
          type: string
          title: Belt
        stripes:
          type: string
          title: Stripes
          default: '0'
        is_stripe_only:
          type: boolean
          title: Is Stripe Only
          default: false
        promoted_at:
          anyOf:
          - type: string
            format: date
          - type: 'null'
          title: Promoted At
        ceremony:
          anyOf:
          - type: string
          - type: 'null'
          title: Ceremony
        notes:
          anyOf:
          - type: string
          - type: 'null'
          title: Notes
      type: object
      required:
      - athlete_id
      - belt
      title: BeltPromotionCreate
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BeltPromotionDateUpdate:
      properties:
        promoted_at:
          type: string
          format: date
          title: Promoted At
      type: object
      required:
      - promoted_at
      title: BeltPromotionDateUpdate
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- compteam-io-openapi.json
- compteam-io-openapi.yml