openapi: 3.0.0
info:
  title: igus subscribeViaApi igus
  version: 1.0.0
servers:
  - url: https://cloud.connect.igus.net
paths:
  /TEST_subscriptionMetadata:
    post:
      tags:
        - General
      summary: igus subscriptionMetadata POST
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                locale:
                  type: string
                  example: de_DE
                auth:
                  type: string
                  example: '{{subscriptionMetadataSimpleAuth}}'
                mid:
                  type: string
                  example: all
                marketingActionDefinition:
                  type: string
                  example: all
                picklistDefinition:
                  type: string
                  description: >-
                    all / specific; specific has to be combined with
                    picklistDefinitionObject not empty, OR both
                    picklistDefinitionObject && picklistDefinitionField not
                    empty
                  example: all
                picklistRefresh:
                  type: boolean
                  description: >-
                    optional; combine with picklistDefinition not empty; "true"
                    slows the response, but ensures that data is refreshed. 
                    picklistRefresh false -> ca. 200-400ms vs
                    picklistRefresh=true -> ca. 1500-2500 ms
                  example: 'true'
                picklistDefinitionObject:
                  type: string
                  description: >-
                    use to filter response to one table/object; combine with
                    picklistDefinition= specific to filter (supported Objects:
                    Contact / MarketingAction__c)
                  example: MarketingAction__c
                picklistDefinitionField:
                  type: string
                  description: >-
                    use to filter response to one field in one table. combine
                    with picklistDefinition= specific, if
                    picklistDefinitionObject not empty. Supported: "field"s from
                    response
                  example: Type__c
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /LIVE_subscribeViaAPI:
    post:
      tags:
        - General
      summary: subscribeViaApi igus
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                operation:
                  type: string
                  example: subscribe
                token:
                  type: string
                  example: '{{accessToken}}'
                channel:
                  type: string
                  example: email
                email:
                  type: string
                  example: jonas.lamberty+retestFR@fluentcx.com
                permissionType:
                  type: string
                  description: standard / rbtxLowCostRobotix / igusBike / press
                  example: igusBike
                locale:
                  type: string
                  description: en_US
                  example: de_DE
                sourceCategory:
                  type: string
                  description: 'tbd '
                  example: wordpress
                source:
                  type: string
                  description: list provided separately.
                  example: MA000000yyyy
                formDataJSON:
                  type: string
                  example: >-
                    [{"affinityKey":
                    "message","state":"active","affinityValue":"hallo igusBike
                    team ich habe eine frage an euch innerhalb von
                    1000characters"}]
                ip:
                  type: string
                  example: 192.168.1.2
                firstname:
                  type: string
                  example: Jonasxxx
                lastname:
                  type: string
                  example: Lamberty
                gender:
                  type: string
                  example: male
                utm_source:
                  type: string
                  example: src
                utm_medium:
                  type: string
                  example: medium
                utm_campaign:
                  type: string
                  example: camp
                utm_term:
                  type: string
                  example: test
                utm_content:
                  type: string
                  example: content
                test:
                  type: string
                  example: https://cloud.connect.igus.net/TEST_subscribeViaAPI
                live:
                  type: string
                  example: https://cloud.connect.igus.net/LIVE_subscribeViaAPI
                externalKey:
                  type: string
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/x-www-form-urlencoded
        - name: accept-encoding
          in: header
          schema:
            type: string
          example: gzip
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
