Bundle CMF

Create activity

Changed on

Creates a new activity entry in the activity store.

post/pimcore-studio/api/bundle/cmf/activities

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /pimcore-studio/api/bundle/cmf/activities
  • Auth: none declared

Request body

customerIdinteger required

ID of the customer this activity belongs to

implementationClassstring

Fully qualified implementation class name

dataobject nullable

Additional activity field values as key-value pairs

Example request

{
  "customerId": 42,
  "implementationClass": "CustomerManagementFrameworkBundle\\Model\\Activity\\GenericActivity"
}

Response

Newly created activity data

additionalAttributesobject

AdditionalAttributes

idinteger required

Activity store entry ID

customerIdinteger required

ID of the customer this activity belongs to

typestring required

Activity type

implementationClassstring required

Fully qualified implementation class name

activityDatestring nullable

Activity date as Unix timestamp string

dataobject

Additional activity fields

Example response

{
  "id": 1,
  "customerId": 42,
  "type": "GenericActivity",
  "implementationClass": "CustomerManagementFrameworkBundle\\Model\\Activity\\GenericActivity",
  "activityDate": "1700000000"
}

Changes