{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rockwell-automation/json-schema/rockwell-automation-add-activity-request-dto-schema.json",
  "title": "AddActivityRequestDto",
  "description": "The data structure representing an activity.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rockwell-automation-activity-manager-api-api-openapi.yml#/components/schemas/AddActivityRequestDto",
  "type": "object",
  "properties": {
    "tenantId": {
      "type": "string",
      "format": "uuid",
      "description": "The Tenant ID."
    },
    "activityName": {
      "type": "string",
      "description": "The name of the activity."
    },
    "description": {
      "type": "string",
      "description": "The description of the activity."
    },
    "activityType": {
      "type": "string",
      "description": "The activity type."
    },
    "activityStatus": {
      "type": "string",
      "description": "The status information of the activity."
    },
    "statusNote": {
      "type": "string",
      "description": "A note on the status of the activity."
    },
    "cost": {
      "type": "number",
      "format": "double",
      "description": "The cost of the activity."
    },
    "priority": {
      "type": "integer",
      "format": "int32",
      "description": "The priority information about the activity."
    },
    "dueDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The due date of the activity."
    },
    "customerCode": {
      "type": "string",
      "description": "The customer code of the activity."
    },
    "supplierCode": {
      "type": "string",
      "description": "The supplier code of the activity."
    },
    "location": {
      "type": "string",
      "description": "The location of the activity."
    },
    "private": {
      "type": "boolean",
      "description": "Indicates whether the activity is private or not."
    },
    "assignedBy": {
      "type": "string",
      "format": "uuid",
      "description": "The User ID assigned by the activity."
    },
    "assignedToDepartment": {
      "type": "string",
      "description": "The department code to which the activity is assigned."
    },
    "involvedUsers": {
      "type": "array",
      "description": "The user involved in the activity.",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "percentageCompletion": {
      "type": "integer",
      "format": "int32",
      "description": "The completion percentage of the activity."
    },
    "suggestionNos": {
      "type": "array",
      "description": "The suggestions related to the activity.",
      "items": {
        "type": "integer",
        "format": "int32"
      }
    },
    "comments": {
      "type": "array",
      "description": "The comments related to the activity.",
      "items": {
        "type": "string"
      }
    },
    "assignedTo": {
      "type": "string",
      "format": "uuid",
      "description": "The User ID assigned to the activity."
    },
    "parentActivity": {
      "type": "string",
      "format": "uuid",
      "description": "The parent ID of the activity."
    },
    "plannedStartDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The planned start date of the activity."
    },
    "plannedFinishDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The planned finish date of the activity."
    },
    "referenceUrl": {
      "type": "string",
      "description": "The URL of the activity's reference."
    },
    "referenceDetails": {
      "type": "object",
      "description": "The reference details of the activity. This field should be a JSON object consisting of key-value pairs (e.g., {&quot;Key1&quot;: &quot;Value&quot;, &quot;Key2&quot;: 2}) where the values are of primitive types (string, number, or boolean)."
    },
    "referenceType": {
      "type": "string",
      "description": "The originating application or other source that created the activity."
    },
    "referenceId": {
      "type": "string",
      "description": "The unique identifier for the activity's reference."
    }
  },
  "required": [
    "tenantId",
    "activityName",
    "activityType",
    "activityStatus",
    "priority",
    "dueDateTime"
  ]
}