> ## Documentation Index
> Fetch the complete documentation index at: https://help.polygon-one.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Article

> Update article fields and/or replace supplier associations.



## OpenAPI

````yaml PATCH /api/articles/{id}
openapi: 3.1.0
info:
  title: Polygon One EUDR Compliance API
  description: >-
    API for integrating ERP systems with the Polygon One EUDR Compliance
    Platform. Allows management of Articles, Suppliers, Orders, and Due
    Diligence Statements (DDS).
  version: 1.0.0
servers:
  - url: https://app.polygon-one.com
    description: Production Server
security:
  - bearerAuth: []
paths:
  /api/articles/{id}:
    patch:
      summary: Update Article
      description: Update article fields and/or replace supplier associations.
      operationId: updateArticle
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateArticleInput'
      responses:
        '200':
          description: Updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  article:
                    $ref: '#/components/schemas/Article'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    UpdateArticleInput:
      type: object
      properties:
        fields:
          type: object
          description: Article fields to update
          properties:
            name:
              type: string
            shortDescription:
              type:
                - string
                - 'null'
            internalArticleNr:
              type: string
            externalArticleNr:
              type:
                - string
                - 'null'
            ean:
              type:
                - string
                - 'null'
            hsCode:
              type: string
              description: Changing the HS code will recalculate EUDR relevance
            articleType:
              $ref: '#/components/schemas/ArticleType'
        supplierIds:
          type: array
          description: Replace all supplier associations with this list of supplier IDs
          items:
            type: string
            format: uuid
    Article:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        internalArticleNr:
          type: string
          description: Internal article number (ERP ID)
        externalArticleNr:
          type:
            - string
            - 'null'
        hsCode:
          type: string
          description: Harmonized System code
        ean:
          type:
            - string
            - 'null'
        shortDescription:
          type:
            - string
            - 'null'
        eudrRelevant:
          type: boolean
          description: Automatically determined from HS code
        articleType:
          $ref: '#/components/schemas/ArticleType'
        commodityGroup:
          $ref: '#/components/schemas/CommodityGroup'
        suppliers:
          type: array
          items:
            $ref: '#/components/schemas/Supplier'
        complianceResults:
          type: array
          items:
            $ref: '#/components/schemas/ComplianceResult'
        countryOfProduction:
          type:
            - string
            - 'null'
    ArticleType:
      type: string
      enum:
        - purchase
        - sale
      description: >-
        `purchase` = inbound article from a supplier, `sale` = outbound article
        you sell
    CommodityGroup:
      type: string
      enum:
        - cattle
        - cocoa
        - coffee
        - oil_palm
        - rubber
        - soya
        - wood
        - non_relevant
      description: >-
        EUDR-regulated commodity groups. `non_relevant` = article is not covered
        by EUDR.
    Supplier:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        email:
          type:
            - string
            - 'null'
        contactName:
          type:
            - string
            - 'null'
        country:
          type: string
        externalSupplierId:
          type:
            - string
            - 'null'
          description: External ID from your ERP system
        address:
          $ref: '#/components/schemas/Address'
        status:
          $ref: '#/components/schemas/SupplierStatus'
        isCompanySelf:
          type: boolean
          description: >-
            True if this supplier represents your own company (for sale
            articles)
        articles:
          type: array
          items:
            $ref: '#/components/schemas/Article'
    ComplianceResult:
      type: object
      properties:
        id:
          type: string
          format: uuid
        supplierArticleId:
          type: string
          format: uuid
        overallStatus:
          $ref: '#/components/schemas/ComplianceStatus'
        geoStatus:
          $ref: '#/components/schemas/ComplianceStatus'
        legalStatus:
          $ref: '#/components/schemas/ComplianceStatus'
        generatedReportUrl:
          type:
            - string
            - 'null'
        generatedAt:
          type:
            - string
            - 'null'
          format: date-time
        updatedAt:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        details:
          description: Additional error details (e.g. validation issues)
      required:
        - error
    Address:
      type: object
      required:
        - street
        - postalCode
        - city
      properties:
        street:
          type: string
        postalCode:
          type: string
        city:
          type: string
        additional:
          type: string
        validated:
          type: boolean
        latitude:
          type: number
        longitude:
          type: number
    SupplierStatus:
      type: string
      enum:
        - data_incomplete
        - data_complete
        - dds_submitted
      description: Supplier data completeness status
    ComplianceStatus:
      type: string
      enum:
        - compliant
        - non_compliant
        - invalid
        - unknown
        - not_eudr_relevant
        - pending_review
        - not_required_before_cutoff
      description: >-
        `invalid` = geolocation present but rejected as invalid (data-quality
        failure, blocks a compliant verdict until corrected);
        `not_required_before_cutoff` = article placed before the EUDR
        application date and not yet in scope.
  responses:
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        API key generated in Settings > API Keys. Include as `Authorization:
        Bearer <key>`.

````