Skip to main content
Server path: /segment-functions | Type: Application | PCID required: Yes

Tools

ToolDescription
segment_functions_create_cloud_source_regulationCreate Cloud Source Regulation
segment_functions_create_functionCreate Function
segment_functions_create_function_deploymentCreate Function Deployment
segment_functions_create_insert_function_instanceCreate Insert Function Instance
segment_functions_create_live_pluginCreate Live Plugin
segment_functions_create_source_regulationCreate Source Regulation
segment_functions_create_workspace_regulationCreate Workspace Regulation
segment_functions_delete_functionDelete Function
segment_functions_delete_insert_function_instanceDelete Insert Function Instance
segment_functions_delete_live_plugin_codeDelete Live Plugin Code
segment_functions_get_daily_per_source_apicalls_usageGet Daily Per Source API Calls Usage
segment_functions_get_daily_per_source_mtuusageGet Daily Per Source MTU Usage
segment_functions_get_daily_workspace_apicalls_usageGet Daily Workspace API Calls Usage
segment_functions_get_daily_workspace_mtuusageGet Daily Workspace MTU Usage
segment_functions_get_functionGet Function
segment_functions_get_function_versionGet Function Version
segment_functions_get_insert_function_instanceGet Insert Function Instance
segment_functions_get_latest_from_live_pluginsGet Latest from Live Plugins
segment_functions_get_regulationGet Regulation
segment_functions_list_audit_eventsList Audit Events
segment_functions_list_function_versionsList Function Versions
segment_functions_list_functionsList Functions
segment_functions_list_insert_function_instancesList Insert Function Instances
segment_functions_list_regulations_from_sourceList Regulations from Source
segment_functions_list_suppressionsList Suppressions
segment_functions_list_workspace_regulationsList Workspace Regulations
segment_functions_restore_function_versionRestore Function Version
segment_functions_update_functionUpdate Function
segment_functions_update_insert_function_instanceUpdate Insert Function Instance

segment_functions_create_cloud_source_regulation

Create Cloud Source Regulation Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id
collectionstringYesThe Cloud Source collection to regulate.
regulationTypestringYesThe regulation type to create.
subjectIdsstring[]YesThe list of userId or objectId values of the subjects to regulate. Config API note: equal to parent but allows an array.
subjectTypestringYesThe subject type. Must be objectId for Cloud Sources.

segment_functions_create_function

Create Function Parameters:
ParameterTypeRequiredDefaultDescription
codestringYesThe Function code.
descriptionstringNoA description for this Function.
displayNamestringYesA display name for this Function. Note that Destination Functions append the Workspace to the display name.
logoUrlstringNoThe URL of the logo for this Function.
resourceTypestringYesThe Function type. Config API note: equal to type.
settingsobject[]NoThe list of settings for this Function.

segment_functions_create_function_deployment

Create Function Deployment Parameters:
ParameterTypeRequiredDefaultDescription
functionIdstringYesFunction Id

segment_functions_create_insert_function_instance

Create Insert Function Instance Parameters:
ParameterTypeRequiredDefaultDescription
enabledbooleanNoWhether this insert Function instance should be enabled for the Destination.
functionIdstringYesInsert Function id to which this instance is associated. Note: Remove the ifnd_/ifns_ prefix from the id.
integrationIdstringYesThe Source or Destination id to be connected.
namestringYesDefines the display name of the insert Function instance.
settingsobjectYesAn object that contains settings for this insert Function instance based on the settings present in the insert Function class.

segment_functions_create_live_plugin

Create Live Plugin Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id
codestringYesThe Live Plugin code to be uploaded.

segment_functions_create_source_regulation

Create Source Regulation Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id
regulationTypestringYesThe regulation type to create. Please note that DELETE_ARCHIVE_ONLY is only supported for limited Workspaces for Source-scoped regulations.
subjectIdsstring[]YesThe list of userId or objectId or anonymousId values of the subjects to regulate. Config API note: equal to parent but allows an array.
subjectTypestringYesThe subject type. Note: ANONYMOUS_ID is only supported for limited Workspaces for Source-scoped regulations. ANONYMOUS_ID is only supported when regulationType is DELETE_ARCHIVE_ONLY.

segment_functions_create_workspace_regulation

Create Workspace Regulation Parameters:
ParameterTypeRequiredDefaultDescription
regulationTypestringYesThe regulation type to create.
subjectIdsstring[]YesThe list of userId or objectId values of the subjects to regulate. Config API note: equal to parent but allows an array.
subjectTypestringYesThe subject type. Use objectId for Cloud Source regulations.

segment_functions_delete_function

Delete Function Parameters:
ParameterTypeRequiredDefaultDescription
functionIdstringYesFunction Id

segment_functions_delete_insert_function_instance

Delete Insert Function Instance Parameters:
ParameterTypeRequiredDefaultDescription
instanceIdstringYesInstance Id

segment_functions_delete_live_plugin_code

Delete Live Plugin Code Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id

segment_functions_get_daily_per_source_apicalls_usage

Get Daily Per Source API Calls Usage Parameters:
ParameterTypeRequiredDefaultDescription
periodstringYesThe start of the usage month in the ISO-8601 format. This parameter exists in v1.
paginationobjectNoPagination input for per Source API calls counts. This parameter exists in v1.

segment_functions_get_daily_per_source_mtuusage

Get Daily Per Source MTU Usage Parameters:
ParameterTypeRequiredDefaultDescription
periodstringYesThe start of the usage month, in the ISO-8601 format. This parameter exists in v1.
paginationobjectNoPagination input for per Source MTU counts. This parameter exists in v1.

segment_functions_get_daily_workspace_apicalls_usage

Get Daily Workspace API Calls Usage Parameters:
ParameterTypeRequiredDefaultDescription
periodstringYesThe start of the usage month in the ISO-8601 format. This parameter exists in v1.
paginationobjectNoPagination input for Workspace API call counts. This parameter exists in v1.

segment_functions_get_daily_workspace_mtuusage

Get Daily Workspace MTU Usage Parameters:
ParameterTypeRequiredDefaultDescription
periodstringYesThe start of the usage month, in the ISO-8601 format. This parameter exists in v1.
paginationobjectNoPagination input for Workspace MTU counts. This parameter exists in v1.

segment_functions_get_function

Get Function Parameters:
ParameterTypeRequiredDefaultDescription
functionIdstringYesFunction Id

segment_functions_get_function_version

Get Function Version Parameters:
ParameterTypeRequiredDefaultDescription
functionIdstringYesFunction Id
versionIdstringYesVersion Id

segment_functions_get_insert_function_instance

Get Insert Function Instance Parameters:
ParameterTypeRequiredDefaultDescription
instanceIdstringYesInstance Id

segment_functions_get_latest_from_live_plugins

Get Latest from Live Plugins Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id

segment_functions_get_regulation

Get Regulation Parameters:
ParameterTypeRequiredDefaultDescription
regulateIdstringYesRegulate Id

segment_functions_list_audit_events

List Audit Events Parameters:
ParameterTypeRequiredDefaultDescription
startTimestringNoFilter response to events that happened after this time. This parameter exists in v1.
endTimestringNoFilter response to events that happened before this time. Defaults to the current time, or the end time from the pagination cursor. This parameter exists in v1.
resourceIdstringNoFilter response to events that affect a specific resource, for example, a single Source. This parameter exists in v1.
resourceTypestringNoFilter response to events that affect a specific type, for example, Sources, Warehouses, and Tracking Plans. This parameter exists in v1.
paginationobjectNoDefines the pagination parameters. This parameter exists in v1.

segment_functions_list_function_versions

List Function Versions Parameters:
ParameterTypeRequiredDefaultDescription
functionIdstringYesFunction Id
paginationobjectNoPagination parameters. This parameter exists in alpha.

segment_functions_list_functions

List Functions Parameters:
ParameterTypeRequiredDefaultDescription
paginationobjectNoPagination parameters. This parameter exists in v1.
resourceTypestringYesThe Function type. Config API note: equal to type. This parameter exists in v1.

segment_functions_list_insert_function_instances

List Insert Function Instances Parameters:
ParameterTypeRequiredDefaultDescription
paginationobjectNoPagination parameters. This parameter exists in alpha.
functionIdstringYesThe insert Function class id to lookup. This parameter exists in alpha.

segment_functions_list_regulations_from_source

List Regulations from Source Parameters:
ParameterTypeRequiredDefaultDescription
sourceIdstringYesSource Id
statusstringNoThe status on which to filter returned regulations. This parameter exists in v1.
regulationTypesstring[]NoThe regulation types on which to filter returned regulations. This parameter exists in v1.
paginationobjectNoPagination parameters. This parameter exists in v1.

segment_functions_list_suppressions

List Suppressions Parameters:
ParameterTypeRequiredDefaultDescription
paginationobjectNoPagination parameters. This parameter exists in v1.

segment_functions_list_workspace_regulations

List Workspace Regulations Parameters:
ParameterTypeRequiredDefaultDescription
statusstringNoThe status on which to filter the returned regulations. This parameter exists in v1.
regulationTypesstring[]NoThe regulation types on which to filter returned regulations. This parameter exists in v1.
paginationobjectNoPagination parameters. This parameter exists in v1.

segment_functions_restore_function_version

Restore Function Version Parameters:
ParameterTypeRequiredDefaultDescription
functionIdstringYesFunction Id
versionIdstringYesAn identifier for this version.

segment_functions_update_function

Update Function Parameters:
ParameterTypeRequiredDefaultDescription
functionIdstringYesFunction Id
codestringNoThe Function code.
descriptionstringNoA description for this Function.
displayNamestringNoA display name for this Function.
logoUrlstringNoA logo for this Function.
settingsobject[]NoThe list of settings for this Function.

segment_functions_update_insert_function_instance

Update Insert Function Instance Parameters:
ParameterTypeRequiredDefaultDescription
instanceIdstringYesInstance Id
enabledbooleanNoWhether this insert Function instance should be enabled for the Destination.
namestringNoDefines the display name of the insert Function instance.
settingsobjectNoAn object that contains settings for this insert Function instance based on the settings present in the insert Function class.