B.R.M Chronographes Produits Admin API

The produits-admin API from B.R.M Chronographes — 12 operation(s) for produits-admin.

Operations 13

GET /api/produits/admin/etat Etat #
POST /api/produits/admin/maitre Basculer #
GET /api/produits/admin/liste Liste #
GET /api/produits/admin/fiche/{ps_id} Fiche #
PUT /api/produits/admin/fiche/{ps_id} Modifier #
POST /api/produits/admin/fiche Creer #
POST /api/produits/admin/fiche/{ps_id}/dupliquer Dupliquer #
PUT /api/produits/admin/fiche/{ps_id}/langue/{langue} Traduire #
GET /api/produits/admin/fiche/{ps_id}/en-ligne En Ligne #
GET /api/produits/admin/fiche/{ps_id}/apercu Apercu Page #
POST /api/produits/admin/fiche/{ps_id}/image Ajouter Image #
PUT /api/produits/admin/fiche/{ps_id}/images Ordonner Images #
GET /api/produits/admin/journal Journal #

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/brm-chronographes-com:brm-chronographes-com-produits-admin-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

brm-chronographes-com-produits-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: BRM Hub Produits Admin API
  version: 1.0.0
tags:
- name: produits-admin
paths:
  /api/produits/admin/etat:
    get:
      tags:
      - produits-admin
      summary: Etat
      operationId: etat_api_produits_admin_etat_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /api/produits/admin/maitre:
    post:
      tags:
      - produits-admin
      summary: Basculer
      description: Bascule la source de vérité du catalogue.
      operationId: basculer_api_produits_admin_maitre_post
      security:
      - HTTPBearer: []
      parameters:
      - name: vers
        in: query
        required: true
        schema:
          type: string
          pattern: ^(hub|prestashop)$
          title: Vers
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/produits/admin/liste:
    get:
      tags:
      - produits-admin
      summary: Liste
      description: 'Les fiches, filtrées. Les montres du configurateur sont exclues : elles

        ne sont pas des produits du catalogue, elles sont des compositions.'
      operationId: liste_api_produits_admin_liste_get
      security:
      - HTTPBearer: []
      parameters:
      - name: q
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 120
          - type: 'null'
          title: Q
      - name: collection
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 60
          - type: 'null'
          title: Collection
      - name: edites
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Edites
      - name: page
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 1
          default: 1
          title: Page
      - name: taille
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 40
          title: Taille
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/produits/admin/fiche/{ps_id}:
    get:
      tags:
      - produits-admin
      summary: Fiche
      description: 'Une fiche complète : ses champs, ses images, ses huit langues.'
      operationId: fiche_api_produits_admin_fiche__ps_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: ps_id
        in: path
        required: true
        schema:
          type: integer
          title: Ps Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - produits-admin
      summary: Modifier
      description: 'Les champs non traduisibles : référence, collection, prix, stock, actif,

        et les caractéristiques (qui sont ce que les fiches produit affichent).'
      operationId: modifier_api_produits_admin_fiche__ps_id__put
      security:
      - HTTPBearer: []
      parameters:
      - name: ps_id
        in: path
        required: true
        schema:
          type: integer
          title: Ps Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FicheEntrante'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/produits/admin/fiche:
    post:
      tags:
      - produits-admin
      summary: Creer
      description: 'Un produit neuf, né dans le Hub. Sans `ps_id` de boutique : il n''existe

        que chez nous, et aucune synchronisation ne peut l''effacer.'
      operationId: creer_api_produits_admin_fiche_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FicheNeuve'
        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: []
  /api/produits/admin/fiche/{ps_id}/dupliquer:
    post:
      tags:
      - produits-admin
      summary: Dupliquer
      description: 'Reprendre une fiche entière sous un nouveau numéro.


        Ce qui est copié : les champs, les caractéristiques, les catégories, les

        visuels et les traductions. Ce qui ne l''est PAS : l''historique des ventes

        (`total_sold`, `total_revenue`, `order_count`, `monthly_sales`, `views`) —

        une copie qui hériterait des ventes de l''original fausserait les

        « meilleures ventes » du site dès le premier jour.


        La copie naît **fermée** (`active = false`) : on relit, puis on ouvre.'
      operationId: dupliquer_api_produits_admin_fiche__ps_id__dupliquer_post
      security:
      - HTTPBearer: []
      parameters:
      - name: ps_id
        in: path
        required: true
        schema:
          type: integer
          title: Ps Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Duplication'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/produits/admin/fiche/{ps_id}/langue/{langue}:
    put:
      tags:
      - produits-admin
      summary: Traduire
      description: 'Écrit une langue. Le français va dans la fiche elle-même — c''est lui que

        lisent les trente-trois modules du Hub.'
      operationId: traduire_api_produits_admin_fiche__ps_id__langue__langue__put
      security:
      - HTTPBearer: []
      parameters:
      - name: ps_id
        in: path
        required: true
        schema:
          type: integer
          title: Ps Id
      - name: langue
        in: path
        required: true
        schema:
          type: string
          title: Langue
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/app__routers__produits_admin__Traduction'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/produits/admin/fiche/{ps_id}/en-ligne:
    get:
      tags:
      - produits-admin
      summary: En Ligne
      description: La page `montre-.html` existe-t-elle sur le site ? (fr et en)
      operationId: en_ligne_api_produits_admin_fiche__ps_id__en_ligne_get
      security:
      - HTTPBearer: []
      parameters:
      - name: ps_id
        in: path
        required: true
        schema:
          type: integer
          title: Ps Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/produits/admin/fiche/{ps_id}/apercu:
    get:
      tags:
      - produits-admin
      summary: Apercu Page
      description: La page produit du site, remplie avec la fiche du BO (non publiée).
      operationId: apercu_page_api_produits_admin_fiche__ps_id__apercu_get
      security:
      - HTTPBearer: []
      parameters:
      - name: ps_id
        in: path
        required: true
        schema:
          type: integer
          title: Ps Id
      - name: langue
        in: query
        required: false
        schema:
          type: string
          pattern: ^(fr|en)$
          default: fr
          title: Langue
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/produits/admin/fiche/{ps_id}/image:
    post:
      tags:
      - produits-admin
      summary: Ajouter Image
      description: 'Une image de plus, hébergée par le Hub. La première de la liste est la

        principale : c''est elle que reprennent les listes et les emails.


        Rend l''entrée créée avec ses dimensions et, si elle est trop petite pour

        son rôle, un `avertissement` (jamais bloquant). Les dérivés AVIF/WebP se

        calculent ensuite en arrière-plan (`etat` : en_cours → pret).'
      operationId: ajouter_image_api_produits_admin_fiche__ps_id__image_post
      security:
      - HTTPBearer: []
      parameters:
      - name: ps_id
        in: path
        required: true
        schema:
          type: integer
          title: Ps Id
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_ajouter_image_api_produits_admin_fiche__ps_id__image_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/produits/admin/fiche/{ps_id}/images:
    put:
      tags:
      - produits-admin
      summary: Ordonner Images
      description: 'Réordonne, retire, change le rôle ou le texte alternatif des images.


        Le corps est la liste ordonnée. Chaque élément est soit une chaîne (l''id ou

        l''adresse d''une image — l''ancien format, toujours accepté), soit un objet

        `{id, role?, alt?}`. Ce qui n''est pas dans la liste disparaît de la fiche ;

        l''original et les dérivés restent sur le disque.'
      operationId: ordonner_images_api_produits_admin_fiche__ps_id__images_put
      security:
      - HTTPBearer: []
      parameters:
      - name: ps_id
        in: path
        required: true
        schema:
          type: integer
          title: Ps Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items: {}
              title: Images
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/produits/admin/journal:
    get:
      tags:
      - produits-admin
      summary: Journal
      operationId: journal_api_produits_admin_journal_get
      security:
      - HTTPBearer: []
      parameters:
      - name: limite
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 1
          default: 80
          title: Limite
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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
    Duplication:
      properties:
        name:
          anyOf:
          - type: string
            maxLength: 500
          - type: 'null'
          title: Name
        reference:
          anyOf:
          - type: string
            maxLength: 100
          - type: 'null'
          title: Reference
        images:
          type: boolean
          title: Images
          default: true
        traductions:
          type: boolean
          title: Traductions
          default: true
      type: object
      title: Duplication
    app__routers__produits_admin__Traduction:
      properties:
        name:
          anyOf:
          - type: string
            maxLength: 500
          - type: 'null'
          title: Name
        description:
          anyOf:
          - type: string
            maxLength: 20000
          - type: 'null'
          title: Description
        description_short:
          anyOf:
          - type: string
            maxLength: 4000
          - type: 'null'
          title: Description Short
        meta_title:
          anyOf:
          - type: string
            maxLength: 500
          - type: 'null'
          title: Meta Title
        meta_description:
          anyOf:
          - type: string
            maxLength: 1000
          - type: 'null'
          title: Meta Description
      type: object
      title: Traduction
    FicheNeuve:
      properties:
        name:
          type: string
          maxLength: 500
          minLength: 2
          title: Name
        reference:
          anyOf:
          - type: string
            maxLength: 100
          - type: 'null'
          title: Reference
        collection:
          anyOf:
          - type: string
            maxLength: 100
          - type: 'null'
          title: Collection
        price_ttc:
          type: number
          maximum: 1000000.0
          minimum: 0.0
          title: Price Ttc
          default: 0
        description_short:
          anyOf:
          - type: string
            maxLength: 4000
          - type: 'null'
          title: Description Short
        description:
          anyOf:
          - type: string
            maxLength: 20000
          - type: 'null'
          title: Description
        quantity:
          type: integer
          maximum: 100000.0
          minimum: 0.0
          title: Quantity
          default: 0
        active:
          type: boolean
          title: Active
          default: false
        demande_bracelet:
          type: string
          enum:
          - auto
          - oui
          - non
          title: Demande Bracelet
          default: auto
      type: object
      required:
      - name
      title: FicheNeuve
    Body_ajouter_image_api_produits_admin_fiche__ps_id__image_post:
      properties:
        fichier:
          type: string
          format: binary
          title: Fichier
        role:
          type: string
          title: Role
          default: vue
        alt:
          type: string
          title: Alt
          default: ''
      type: object
      required:
      - fichier
      title: Body_ajouter_image_api_produits_admin_fiche__ps_id__image_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FicheEntrante:
      properties:
        reference:
          anyOf:
          - type: string
            maxLength: 100
          - type: 'null'
          title: Reference
        collection:
          anyOf:
          - type: string
            maxLength: 100
          - type: 'null'
          title: Collection
        price_ttc:
          anyOf:
          - type: number
            maximum: 1000000.0
            minimum: 0.0
          - type: 'null'
          title: Price Ttc
        active:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Active
        quantity:
          anyOf:
          - type: integer
            maximum: 100000.0
            minimum: 0.0
          - type: 'null'
          title: Quantity
        features:
          anyOf:
          - additionalProperties:
              type: string
            type: object
          - type: 'null'
          title: Features
        demande_bracelet:
          anyOf:
          - type: string
            enum:
            - auto
            - oui
            - non
          - type: 'null'
          title: Demande Bracelet
      type: object
      title: FicheEntrante
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer