Propel Software (Propel PLM) ManufacturerPart API

The ManufacturerPart API from Propel Software (Propel PLM) — 2 operation(s) for manufacturerpart.

OpenAPI Specification

propelplm-manufacturerpart-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  version: '3.0'
  title: Get Bom Assembly ManufacturerPart API
  license:
    name: MIT
servers:
- url: https://{endpoint}/services/apexrest/{namespace}/v2
  variables:
    endpoint:
      description: This is the Salesforce instance url. It is the URL when using Salesforce Classic, i.e. propel.my.salesforce.com
    namespace:
      default: PDLM
      description: This value should default to PDLM for production environments. For dev environments, provide the namespace to your dev org.
tags:
- name: ManufacturerPart
paths:
  /ManufacturerPart/:
    post:
      summary: Create new Manufacturer Part(s)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MfrList'
      responses:
        '200':
          description: Successfully created new Manufacturer Part(s)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NewOrExistingManufacturerPart'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - ManufacturerPart
  /ManufacturerPart/{MfrPartId}:
    parameters:
    - name: MfrPartId
      description: The Salesforce record id of the Manufacturer Part
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/MfrPartId'
    get:
      summary: Fetch a Manufacturer Part
      responses:
        '200':
          description: The Manufacturer Part corresponding to the provided `MfrPartId`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NewOrExistingManufacturerPart'
        '404':
          description: No Manufacturer Part found for the provided `MfrPartId`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - ManufacturerPart
components:
  schemas:
    MfrList:
      description: Model containing AML list object
      type: object
      required:
      - addAML
      properties:
        addAML:
          type: array
          items:
            $ref: '#/components/schemas/ManufacturerPart'
    Error:
      description: A human readable error message or null/blank
      type: string
      example: Missing mpn or invalid manufacturer/distributor. No parts created.
    ManufacturerPart:
      description: Model containing Manufacturer Part mappings
      type: object
      required:
      - manufacturer
      - mpn
      properties:
        manufacturer:
          type: string
          example: United Gas & Oil
        mpn:
          type: string
        distributor:
          type: string
          example: GenePoint
    MfrPartId:
      description: The Salesforce record id of the Manufacturer Part
      type: string
    NewOrExistingManufacturerPart:
      description: Model containing newly created Manufacturer Part details
      type: object
      required:
      - attributes
      - Name
      - Id
      properties:
        attributes:
          type: object
          properties:
            type:
              type: string
              example: PDLM__Manufacturer_Part__c
            url:
              type: string
        Name:
          type: string
          example: MPN-12345
        PDLM__Manufacturer__c:
          description: The Salesforce record id of the Manufacturer account
          type: string
        PDLM__Distributor__c:
          description: The Salesforce record id of the Distributor account
          type: string
        Id:
          description: The Salesforce record id of the newly created Manufacturer Part
          type: string