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

# Update content item

> Accepts a request body with the updated content item.



## OpenAPI

````yaml openapi/feed-v1.json PUT /v1/Content
openapi: 3.0.4
info:
  title: Feed.Api
  version: v1
servers:
  - url: https://{host}/feed
    description: Your Lobyco environment
    variables:
      host:
        default: your-environment.lobyco.net
        description: >-
          The API host for your Lobyco environment. Replace it with the host you
          were given — this placeholder does not resolve.
security:
  - Bearer: []
paths:
  /v1/Content:
    put:
      tags:
        - S2S
      summary: Update content item
      description: Accepts a request body with the updated content item.
      requestBody:
        description: >-
          The request payload containing the information required to update a
          content item.
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/Feed.Api.DTO.UpdateContentItemRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/Feed.Api.DTO.UpdateContentItemRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/Feed.Api.DTO.UpdateContentItemRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/Feed.Api.DTO.UpdateContentItemRequest'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/Feed.Api.DTO.UpdateContentItemResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/Feed.Api.DTO.UpdateContentItemResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/Feed.Api.DTO.UpdateContentItemResponse'
        '404':
          description: Not Found
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
components:
  schemas:
    Feed.Api.DTO.UpdateContentItemRequest:
      required:
        - contentType
        - expirationDate
        - feedType
        - isReadyToDistribute
        - publishDate
        - title
      type: object
      properties:
        id:
          type: integer
          description: >-
            Unique identifier of the content item to be updated. Required if
            ExternalId is not provided.
          format: int64
          nullable: true
        externalId:
          maxLength: 50
          minLength: 0
          type: string
          description: >-
            Unique external identifier of the content item to be updated.
            Required if Id is not provided.
          nullable: true
        updatedBy:
          maxLength: 255
          minLength: 0
          type: string
          description: >-
            Optional identifier of the actor updating the content item; defaults
            to "integration" in the published event.
          nullable: true
        campaignName:
          maxLength: 100
          minLength: 0
          type: string
          description: Name of the content to be easily identified.
          nullable: true
        title:
          maxLength: 100
          minLength: 0
          type: string
          description: Title of the content item.
        feedType:
          $ref: '#/components/schemas/Feed.Api.DTO.FeedType'
        contentType:
          $ref: '#/components/schemas/Feed.Api.DTO.ContentType'
        analyticsIdentifier:
          maxLength: 50
          minLength: 0
          type: string
          description: Tracking identifier used for analytics.
          nullable: true
        publishDate:
          type: string
          description: |-
            The date and time when the content should be published.
            This field is required if IsReadyToDistribute is true
          format: date-time
        expirationDate:
          type: string
          description: >-
            The date and time when the content expires and should no longer be
            displayed.

            This field is required if IsReadyToDistribute is true
          format: date-time
        imageUrl:
          maxLength: 2047
          minLength: 0
          type: string
          description: URL of the image displayed in the content item.
          nullable: true
        altText:
          maxLength: 255
          minLength: 0
          type: string
          description: Alternative text describing the image, used for accessibility.
          nullable: true
        videoUrl:
          maxLength: 2047
          minLength: 0
          type: string
          description: URL of the video displayed in the content item.
          nullable: true
        topMessage:
          type: string
          description: Short message displayed at the top of the content.
          nullable: true
        bottomMessage:
          type: string
          description: Short message displayed at the bottom of the content.
          nullable: true
        longDescription:
          type: string
          description: Message displayed when the content type is text.
          nullable: true
        buttonText:
          maxLength: 50
          minLength: 0
          type: string
          description: Text displayed on the action button.
          nullable: true
        navigationType:
          $ref: '#/components/schemas/Feed.Api.DTO.NavigationType'
        externalUrl:
          maxLength: 2047
          minLength: 0
          type: string
          description: External URL to be opened when button is clicked.
          nullable: true
        useWebWrapper:
          type: boolean
          description: >-
            Indicates whether the external content should be opened in a web
            wrapper.
          nullable: true
        deepLinkId:
          maxLength: 64
          minLength: 0
          type: string
          description: >-
            Deep link identifier. Used to open a specific page from the
            application when button is clicked.
          nullable: true
        deepLinkParameters:
          type: object
          additionalProperties:
            type: string
          description: >-
            Additional parameters for deep link. (e.g. redirect user to a
            specific entity from the page configured with DeepLinkId)
          nullable: true
        deepLinkUrl:
          type: string
          description: Deep link URL for navigation.
          nullable: true
        segmentationType:
          $ref: '#/components/schemas/Feed.Api.DTO.SegmentationType'
        audienceIds:
          type: array
          items:
            type: string
          description: List of audience identifiers targeted by this content.
          nullable: true
        isReadyToDistribute:
          type: boolean
          description: Indicates whether the content is ready to be distributed.
        storeId:
          maxLength: 256
          minLength: 0
          type: string
          description: Identifier of the store targeted by this content.
          nullable: true
          deprecated: true
        storeIds:
          type: array
          items:
            type: string
          description: List of store identifiers targeted by this content.
          nullable: true
        isBoardContent:
          type: boolean
          description: Client specific property used for custom integration.
        customProperties:
          type: object
          additionalProperties: {}
          description: Dictionary of custom properties.(e.g. logoUrl, terms)
          nullable: true
        chainIds:
          type: array
          items:
            type: string
          description: List of chain identifiers targeted by this content.
          nullable: true
        priority:
          type: integer
          description: Priority with which the content is displayed in the application.
          format: int32
          nullable: true
        requiresApproval:
          type: boolean
          description: >-
            Indicates whether the content requires approval before being
            published.
          nullable: true
        unifiedCampaignId:
          maxLength: 64
          minLength: 0
          type: string
          description: >-
            Unified campaign identifier used for cross-platform campaign
            tracking.
          nullable: true
      additionalProperties: false
    Feed.Api.DTO.UpdateContentItemResponse:
      type: object
      properties:
        id:
          type: integer
          format: int64
      additionalProperties: false
    Microsoft.AspNetCore.Mvc.ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
    Feed.Api.DTO.FeedType:
      enum:
        - Inspiration
        - Purchase
        - GreenNews
        - StoreOffer
        - StoreNews
        - StoreSpecial
        - GoodPrice
        - WeeklyGoodPrice
        - Survey
        - Event
        - SpecialPoll
        - PartnerBenefit
        - PartnerBenefitBanner
      type: string
    Feed.Api.DTO.ContentType:
      enum:
        - Image
        - Video
        - Text
      type: string
    Feed.Api.DTO.NavigationType:
      enum:
        - External
        - DeepLink
      type: string
    Feed.Api.DTO.SegmentationType:
      enum:
        - None
        - Audience
        - Customer
        - File
      type: string
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        Opaque Authorization header using the Bearer scheme. Example:
        "Authorization: Bearer {token}"
      name: Authorization
      in: header

````