{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-sync-action-operation-schema.json",
  "title": "SyncActionOperation",
  "description": "The request body defines the details of the sync action definition. The following table displays properties for creating sync action definitions.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-bulk-2-0-accounts-api-openapi.yml#/components/schemas/SyncActionOperation",
  "properties": {
    "autoDeleteDuration": {
      "title": "autoDeleteDuration",
      "description": "Time until the definition will be deleted, expressed using the ISO-8601 standard.",
      "type": "string"
    },
    "createdAt": {
      "format": "date-time",
      "title": "createdAt",
      "description": "The date and time the entity was created, expressed using the ISO-8601 standard. This is a read-only property.",
      "type": "string"
    },
    "createdBy": {
      "title": "createdBy",
      "description": "The login id of the user who created the sync action. This is a read-only property.",
      "type": "string"
    },
    "fields": {
      "title": "fields",
      "description": "The field name and statement that will be used to identify the account, contact, or custom object. Must contain only one field.\n\nAllowed field statement values to identify a contact are: {{Contact.Field(C_EmailAddress)}}, {{Contact.Field(ContactIDExt)}}, or {{Contact.Id}}.\n\nAllowed field statement values to identify an account are: {{Account.Field(CompanyIDExt)}}, {{Account.Field(M_CompanyName)}}, or {{Account.Id}}.\n\nAllowed field statement values to identify a custom object are: {{CustomObject[{id}].ExternalId}}.",
      "type": "object"
    },
    "identifierFieldName": {
      "title": "identifierFieldName",
      "description": "The field which will be used to identify the entity. Must be a string value, at least 1 character and at most 100 characters long.",
      "type": "string"
    },
    "isSyncTriggeredOnImport": {
      "title": "isSyncTriggeredOnImport",
      "description": "Whether or not the sync is triggered upon uploading data.",
      "type": "boolean"
    },
    "kbUsed": {
      "format": "int64",
      "title": "kbUsed",
      "description": "The amount of space used in kb. This is a read-only property.",
      "type": "integer"
    },
    "name": {
      "title": "name",
      "description": "The name of the sync action definition.",
      "type": "string"
    },
    "syncActions": {
      "title": "syncActions",
      "description": "Specifies operations to perform during the sync with a maximum of 10 actions. See <a href='http://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=SyncActions'>Sync actions parameters</a> for a list of sync actions. For more information about this parameter, see the <a href='https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=ImportExportParams'>Oracle Eloqua Developer Help Center</a>. \nThere currently are not any sync actions available for Events.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/SyncAction"
      }
    },
    "updatedAt": {
      "format": "date-time",
      "title": "updatedAt",
      "description": "The date and time the entity was last updated, expressed using the ISO-8601 standard. This is a read-only property.",
      "type": "string"
    },
    "updatedBy": {
      "title": "updatedBy",
      "description": "The login id of the user that last updated the entity. This is a read-only property.",
      "type": "string"
    },
    "uri": {
      "title": "uri",
      "description": "System-generated unique resource identifier that defines the definition for future referencing. This is a read-only property.",
      "type": "string"
    }
  },
  "$defs": {
    "MemberStatus": {
      "title": "MemberStatus",
      "description": "The status of members.",
      "default": "bounced",
      "enum": [
        "bounced",
        "subscribed",
        "unsubscribed",
        "active",
        "complete",
        "pending",
        "errored",
        "yes",
        "no",
        "invalid",
        "permission"
      ],
      "type": "string"
    },
    "SyncAction": {
      "title": "SyncAction",
      "description": "The definition of the action to take at time of syncronization.",
      "properties": {
        "action": {
          "$ref": "#/$defs/SyncActionType"
        },
        "destination": {
          "title": "destination",
          "description": "The ML statement used to reference an object used by the action.",
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/MemberStatus"
        },
        "updateAll": {
          "title": "updateAll",
          "description": "Update status of all records in an execution.",
          "type": "boolean"
        }
      }
    },
    "SyncActionType": {
      "title": "SyncActionType",
      "description": "The action to take at time of synchronization.",
      "default": "add",
      "enum": [
        "add",
        "remove",
        "setStatus"
      ],
      "type": "string"
    }
  }
}