---
title: "ActivityFeedCreateRequest"
url: "https://developers.zinnia.com/apis/case-management-1-0-0/versions/0091226b-6452-4e75-93ce-4bbfe022aad5/schemas/ActivityFeedCreateRequest"
---

> Full API specification: https://developers.zinnia.com/apis/case-management-1-0-0/versions/0091226b-6452-4e75-93ce-4bbfe022aad5.md

# ActivityFeedCreateRequest

Request body to create a generic activity feed entry for the case identified in the path. Do not send `rootEntityId`, `rootEntityType`, or `description`; the service derives root metadata and description handling.

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Case Management API
  version: 1.0.0
servers:
  - url: https://dev.api.zinnia.io/
    description: Dev Environment
  - url: https://qa.api.zinnia.io/
    description: QA Environment
  - url: https://uat.api.zinnia.io/
    description: UAT Environment
  - url: https://api.zinnia.io/
    description: PROD Environment
components:
  schemas:
    ActivityFeedEntityType:
      type: string
      enum:
        - TASK
        - STAGE
        - STEP
        - CASE
        - EXCEPTION
        - DOCUMENT
      description: Type of entity in the activity feed
    ActivityFeedAction:
      type: string
      enum:
        - CREATED
        - STATUS_CHANGE
        - ASSIGNMENT
        - UNASSIGNMENT
        - PRIORITIZED
        - DEPRIORITIZED
        - UPDATED
        - RESET
        - REMOVED
        - REQUESTED
      description: Type of action performed on the entity (includes values used by
        search filters and generic create flows)
    ActivityFeedCreateParentEntityDetail:
      type: object
      properties:
        entityType:
          type: string
          example: CASE
        entityId:
          type: string
          example: CA0000833984
        instanceInfo:
          nullable: true
          description: Optional instance scope; null when not applicable
          type: object
          additionalProperties: true
    ActivityFeedCreateAdditionalAttributesEntry:
      type: object
      required:
        - dataSource
        - values
      properties:
        dataSource:
          type: string
          enum:
            - FEED_ADDITIONAL_DATA
          description: Must be `FEED_ADDITIONAL_DATA` for this API
        values:
          type: array
          minItems: 1
          items:
            $ref: "#/components/schemas/ActivityFeedFeedAdditionalDataItem"
    ActivityFeedFeedAdditionalDataItem:
      type: object
      required:
        - key
        - value
      properties:
        key:
          type: string
          example: someKey
        value:
          type: string
          example: someValue
    ActivityFeedCreateRequest:
      type: object
      description: >
        Request body to create a generic activity feed entry for the case
        identified in the path.

        Do not send `rootEntityId`, `rootEntityType`, or `description`; the
        service derives root metadata and description handling.
      required:
        - carrier
        - entityType
        - entityId
        - entityLabel
        - entityAction
        - activityFeedRequestId
        - changedField
        - valueAfterUpdate
        - activityFeedSourceType
        - activityFeedPerformedBy
        - eventTime
        - entityProcessingTime
      properties:
        carrier:
          type: string
          description: Carrier code; must be in the deployment allowlist for activity feed
            publishing
          example: GILI
        entityType:
          $ref: "#/components/schemas/ActivityFeedEntityType"
        entityId:
          type: string
          description: Identifier of the entity the action applies to (e.g. stage id)
          example: processData
        entityLabel:
          type: string
          description: Human-readable label for the entity
          example: Process document generation request
        entityAction:
          $ref: "#/components/schemas/ActivityFeedAction"
        activityFeedRequestId:
          type: string
          format: uuid
          description: Caller-supplied idempotency / correlation key; stored as
            `source.id` on the activity feed document
          example: cfba1b0e-b44e-4657-b7fa-2ec2efee8bb7
        changedField:
          type: string
          description: Semantic name of the field or attribute that changed
          example: stageStatus
        valueBeforeUpdate:
          type: string
          nullable: true
          description: Previous value when applicable; omit or null when not meaningful
          example: COMPLETED
        valueAfterUpdate:
          type: string
          description: Value after the business action
          example: IN_PROGRESS
        activityFeedSourceType:
          type: string
          description: Source channel for the feed entry (e.g. `API` for this endpoint;
            `EVENT` for Kafka-originated generic actions)
          example: API
        activityFeedPerformedBy:
          type: string
          description: System or user principal that performed the action (stored on
            `source.performedBy`)
          example: Zinnia.UI
        eventTime:
          type: integer
          format: int64
          description: Epoch milliseconds when the business action occurred
          example: 1778675772613
        entityProcessingTime:
          type: integer
          format: int64
          description: Epoch milliseconds when the system processed the action
          example: 1778675800625
        parentEntityDetails:
          type: array
          description: >
            Optional parent entity chain. When omitted, the server defaults to
            `[{ entityType: CASE, entityId: <caseId> }]`.
          items:
            $ref: "#/components/schemas/ActivityFeedCreateParentEntityDetail"
        additionalAttributes:
          type: array
          description: >
            Optional structured add-ons. When present, each element must use
            `FEED_ADDITIONAL_DATA` with a non-empty `values` list.
          items:
            $ref: "#/components/schemas/ActivityFeedCreateAdditionalAttributesEntry"
```
