Skip to content

ActivityCreateDto

Endpoints · All schemas

Activity create

FieldRequiredDescription
albumIdYesAlbum ID
assetIdNoAsset ID (if activity is for an asset)
commentNoComment text (required if type is comment)
typeYesSee definition below

Complete definition

required lists fields that must be present. nullable allows a null value; it does not make the field optional. Response enums retain exact wire values for compatibility.

Field definitions: ReactionType

{
  "description": "Activity create",
  "properties": {
    "albumId": {
      "description": "Album ID",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
      "type": "string"
    },
    "assetId": {
      "description": "Asset ID (if activity is for an asset)",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
      "type": "string"
    },
    "comment": {
      "description": "Comment text (required if type is comment)",
      "type": "string"
    },
    "type": {
      "$ref": "#/components/schemas/ReactionType"
    }
  },
  "required": [
    "albumId",
    "type"
  ],
  "type": "object"
}