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

# Create or update several source properties

> Creates or changes the listed source properties in one call; others stay as they are. Each item follows the rules of the single upsert: null optional fields keep their current values, and a changed `type` or `delimiter` updates the stored values in the background.



## OpenAPI

````yaml /api-reference/openapi/configuration.json patch /v1/sources/{sourceId}/properties
openapi: 3.2.0
info:
  title: Configuration API
  description: >-
    Manages applications, sources, source properties, source folders, managed
    tags and their values, card definitions, their segments and relation
    definitions; manages destinations, their versions and endpoints, and
    publishes versions; and authors, previews and activates card lifecycles.
    Card property changes are saved as pending changes and take effect when the
    card definition is activated. Source property changes and source deletion
    can finish asynchronously. The tenant comes from the access token.
    Successful responses return the resource itself; lists return a page with
    `items`, the `after` cursor for the next page and, when asked for,
    `totalCount` (`limit` default 50, max 200; lifecycle lists default 25, max
    100). Application updates replace the settings and need the latest `etag`;
    secrets are returned only when created. Errors are problem details
    (`application/problem+json`). Values are PascalCase in REST and UPPER_CASE
    in GraphQL.
  version: 1.0.0
servers:
  - url: https://api.occtoo.com
security: []
tags:
  - name: Applications
  - name: Card definitions
  - name: Card exports
  - name: Destination endpoints
  - name: Destination versions
  - name: Destinations
  - name: Languages
  - name: Lifecycles
  - name: Managed tag values
  - name: Managed tags
  - name: Relation definitions
  - name: Segments
  - name: Sources
paths:
  /v1/sources/{sourceId}/properties:
    patch:
      tags:
        - Sources
      summary: Create or update several source properties
      description: >-
        Creates or changes the listed source properties in one call; others stay
        as they are. Each item follows the rules of the single upsert: null
        optional fields keep their current values, and a changed `type` or
        `delimiter` updates the stored values in the background.
      operationId: UpsertSourceProperties
      parameters:
        - name: sourceId
          in: path
          description: Raw id of the source (e.g. `products`).
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpsertSourcePropertiesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourcePropertiesResponse'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/HttpValidationProblemDetails'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Not Found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Too Many Requests
          headers:
            Retry-After:
              description: Number of seconds to wait before retrying.
              schema:
                minimum: 1
                type: integer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Internal Server Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
        - kindeOAuth: []
        - bearerAuth: []
        - apiKey: []
components:
  schemas:
    UpsertSourcePropertiesRequest:
      required:
        - properties
      type: object
      properties:
        properties:
          type: array
          items:
            $ref: '#/components/schemas/SourcePropertyUpsertItem'
          description: Source properties to create or change, one item each; at least one.
      description: Holds the source properties to create or change in one call.
    SourcePropertiesResponse:
      required:
        - items
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/SourcePropertyResponse'
          description: Source properties the call created or changed.
      description: Holds the source properties a batch upsert created or changed.
    HttpValidationProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
    ProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
    SourcePropertyUpsertItem:
      required:
        - id
        - displayName
      type: object
      properties:
        id:
          type: string
          description: >-
            Id of the source property to create or change: lowercase letters,
            digits, `_` and `-`, starting with a letter (e.g. `color`).
        displayName:
          type: string
          description: >-
            Label shown in Studio: 2 to 50 printable ASCII characters, no
            leading or trailing spaces.
        type:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/PropertyDataType'
              description: >-
                Data type of the source property's values. Null keeps the
                current type, or sets `Text` on a new source property. A change
                updates the stored values in the background.
          description: >-
            Data type of the source property's values. Null keeps the current
            type, or sets `Text` on a new source property. A change updates the
            stored values in the background.
        delimiter:
          type:
            - 'null'
            - string
          description: >-
            Delimiter that splits the values of a `List` or `LocalizedList`
            source property. Required with those types and not allowed with
            others; send it together with `type`.
        description:
          type:
            - 'null'
            - string
          description: >-
            Free-text note about the source property, up to 500 characters. Null
            keeps the current note; an empty string clears it.
      description: >-
        Holds one source property of a batch upsert: the fields of the single
        upsert plus its id.
    SourcePropertyResponse:
      required:
        - id
        - displayName
        - description
        - type
        - delimiter
        - state
      type: object
      properties:
        id:
          type: string
          description: Id of the source property, lowercase and unique within its source.
        displayName:
          type: string
          description: Label shown in Studio.
        description:
          type:
            - 'null'
            - string
          description: Free-text note about the source property.
        type:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/PropertyDataType'
              description: >-
                Data type of the source property's values. Null = not set yet.
                This is the source property's own type; a card property has its
                own data type.
          description: >-
            Data type of the source property's values. Null = not set yet. This
            is the source property's own type; a card property has its own data
            type.
        delimiter:
          type:
            - 'null'
            - string
          description: >-
            Delimiter that splits the values of a `List` or `LocalizedList`
            source property. Null for other types.
        state:
          $ref: '#/components/schemas/DataSourcePropertyState'
          description: >-
            Lifecycle state of the source property. See
            `DataSourcePropertyState`.
      description: >-
        Describes one field of a source's entries, such as `color` or `price`,
        and its data type. Card properties bind to source properties.
    PropertyDataType:
      enum:
        - Text
        - LocalizedText
        - List
        - LocalizedList
        - Boolean
        - Timestamp
        - Integer
        - Decimal
        - Wildcard
        - null
      description: >-
        Sets the data type of a source property or card property, which decides
        the shape of its values.
      x-enum-descriptions:
        Text: Plain text, as a string.
        LocalizedText: >-
          Text per language, as an object of language code to string. Example:
          `{ "en": "Hello", "fr": "Bonjour" }`.
        List: List of strings.
        LocalizedList: >-
          List of strings per language, as an object of language code to array
          of strings. Example: `{ "en": ["Red", "Blue"], "fr": ["Rouge", "Bleu"]
          }`.
        Boolean: True or false.
        Timestamp: Date and time, as an ISO 8601 string (e.g. `2026-11-19T12:00:00Z`).
        Integer: Whole number.
        Decimal: Number with decimal places.
        Wildcard: Not in use; will be removed.
    DataSourcePropertyState:
      enum:
        - Active
        - Updating
        - Deleting
      description: Tracks whether a source property is ready or has a change in progress.
      x-enum-descriptions:
        Active: 'Live: the source property can be changed or deleted.'
        Updating: >-
          In progress: a change, such as a new data type or delimiter, is being
          applied to the stored values. Changes and deletes fail with a conflict
          until it's active again.
        Deleting: 'In progress: the source property and its values are being deleted.'
  securitySchemes:
    kindeOAuth:
      type: oauth2
      description: >-
        Sign in with the existing Occtoo Studio identity and selected
        organization.
      flows:
        authorizationCode:
          authorizationUrl: >-
            https://auth.occtoo.com/oauth2/auth?audience=https%3A%2F%2Fapi-weu.occtoo.com
          tokenUrl: https://auth.occtoo.com/oauth2/token
          scopes:
            openid: Authenticate the user with OpenID Connect.
            profile: Read the user's basic profile.
            email: Read the user's email address.
            offline: Refresh the access token without another interactive sign-in.
          x-usePkce: SHA-256
          x-scalar-redirect-uri: https://api.occtoo.com/docs/
    bearerAuth:
      type: http
      description: >-
        Tenant-scoped Occtoo access token, including Kinde machine-to-machine
        application tokens.
      scheme: bearer
      bearerFormat: JWT
    apiKey:
      type: apiKey
      description: Occtoo organization API key.
      name: x-api-key
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.