Partner Channels

A PartnerChannel defines a structured communication path within a Partner root folder, including directional folder names and partner-scoped routing configuration.

List Partner Channels

SDK Function

PartnerChannel.list()

Return Object

ListIterator<PartnerChannel>

Authorization Requirement

Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.

Additional Arguments

Example Request

import com.files.ListIterator;
import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.PartnerChannel;

try {
  HashMap<String, Object> parameters = new HashMap<>();
  ListIterator<PartnerChannel> partnerChannels = PartnerChannel.list(parameters);
  for (PartnerChannel partnerChannel : partnerChannels.listAutoPaging()) {
    // Operate on partnerChannel
  }
} catch (NotAuthenticatedException e) {
  System.out.println("Authentication Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
} catch (SdkException e) {
  System.out.println("Unknown Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
}

Show Partner Channel

SDK Function

PartnerChannel.find()

Return Object

PartnerChannel

Authorization Requirement

Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.

Function Arguments

ArgumentDescription
id
int64
Required
Partner Channel ID.

Example Request

import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.PartnerChannel;

try {
  HashMap<String, Object> parameters = new HashMap<>();
  PartnerChannel partnerChannel = PartnerChannel.find(id, parameters);
  // Operate on partnerChannel
} catch (NotAuthenticatedException e) {
  System.out.println("Authentication Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
} catch (SdkException e) {
  System.out.println("Unknown Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
}

Create Partner Channel

SDK Function

PartnerChannel.create()

Return Object

PartnerChannel

Authorization Requirement

Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.

Function Arguments

ArgumentDefaultDescription
direction
string
"two_way"Channel directions. two_way enables both directions, to_partner enables outgoing downloads, and from_partner enables incoming uploads.
Possible values: two_way, to_partner, from_partner
use_channel_root
boolean
falseUse the Channel folder directly for a one-way exchange. Defaults to false. Cannot be changed after creation. Folder name overrides must be blank when enabled, and the Channel must remain one-way.
from_partner_folder_name
string
Optional Channel-level from-Partner folder name override.
from_partner_managed_folder_paths
array(string)
Managed folder paths inside the from-Partner folder.
from_partner_upload_forms
array(object)
Form Field Sets for From Partner upload destinations. Each entry has a path relative to the From Partner folder and a form_field_set_id. Use an empty path when the Channel has no managed folders. Providing this replaces all assignments, and an empty array removes them.
from_partner_route_path
string
Optional route path for files uploaded by the Partner.
to_partner_folder_name
string
Optional Channel-level to-Partner folder name override.
to_partner_managed_folder_paths
array(string)
Managed folder paths inside the to-Partner folder.
to_partner_route_path
string
Optional route path for files delivered to the Partner.
partner_id
int64
Required
ID of the Partner this Channel belongs to.
path
string
Required
Channel path relative to the Partner root folder.
workspace_id
int64
0ID of the Workspace associated with this Partner Channel.

Example Request

import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.PartnerChannel;

try {
  HashMap<String, Object> parameters = new HashMap<>();
  parameters.put("partner_id", 1);
  parameters.put("path", "claims/medical");
  
  PartnerChannel partnerChannel = PartnerChannel.create(parameters);
  // Operate on partnerChannel
} catch (NotAuthenticatedException e) {
  System.out.println("Authentication Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
} catch (SdkException e) {
  System.out.println("Unknown Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
}

Update Partner Channel

SDK Function

partnerChannel.update();

Return Object

PartnerChannel

Authorization Requirement

Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.

Attribute Setters

SetterDescription
setDirection
string
Channel directions. two_way enables both directions, to_partner enables outgoing downloads, and from_partner enables incoming uploads.
Possible values: two_way, to_partner, from_partner
setUseChannelRoot
boolean
Use the Channel folder directly for a one-way exchange. Defaults to false. Cannot be changed after creation. Folder name overrides must be blank when enabled, and the Channel must remain one-way.
setFromPartnerFolderName
string
Optional Channel-level from-Partner folder name override.
setFromPartnerManagedFolderPaths
array(string)
Managed folder paths inside the from-Partner folder.
setFromPartnerUploadForms
array(object)
Form Field Sets for From Partner upload destinations. Each entry has a path relative to the From Partner folder and a form_field_set_id. Use an empty path when the Channel has no managed folders. Providing this replaces all assignments, and an empty array removes them.
setFromPartnerRoutePath
string
Optional route path for files uploaded by the Partner.
setToPartnerFolderName
string
Optional Channel-level to-Partner folder name override.
setToPartnerManagedFolderPaths
array(string)
Managed folder paths inside the to-Partner folder.
setToPartnerRoutePath
string
Optional route path for files delivered to the Partner.
setPath
string
Channel path relative to the Partner root folder.

Example Request

import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.PartnerChannel;

try {
  // Find the partnerChannel object by its id.
  PartnerChannel partnerChannel = PartnerChannel.find(id, null);
  HashMap<String, Object> parameters = new HashMap<>();
  parameters.put("direction", "two_way");
  partnerChannel.update(parameters);
} catch (NotAuthenticatedException e) {
  System.out.println("Authentication Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
} catch (SdkException e) {
  System.out.println("Unknown Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
}

Delete Partner Channel

SDK Function

partnerChannel.delete();

Return Object

No return value.

Authorization Requirement

Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.

Example Request

import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.PartnerChannel;

try {
  // Find the partnerChannel object by its id.
  PartnerChannel partnerChannel = PartnerChannel.find(id, null);
  partnerChannel.delete(null);
} catch (NotAuthenticatedException e) {
  System.out.println("Authentication Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
} catch (SdkException e) {
  System.out.println("Unknown Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
}

The PartnerChannel Object

Some of the functions above return a PartnerChannel object. The attributes of this object are listed below.

AttributeDescription
id
int64
The unique ID of the Partner Channel.
workspace_id
int64
ID of the Workspace associated with this Partner Channel.
direction
string
Channel directions. two_way enables both directions, to_partner enables outgoing downloads, and from_partner enables incoming uploads.
Possible values: two_way, to_partner, from_partner
use_channel_root
boolean
Use the Channel folder directly for a one-way exchange. Defaults to false. Cannot be changed after creation. Folder name overrides must be blank when enabled, and the Channel must remain one-way.
partner_id
int64
ID of the Partner this Channel belongs to.
partner_channel_template_id
int64
ID of the Partner Channel Template that manages this Channel, if any.
path
string
Channel path relative to the Partner root folder. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
to_partner_folder_name
string
Optional Channel-level to-Partner folder name override.
from_partner_folder_name
string
Optional Channel-level from-Partner folder name override.
from_partner_route_path
string
Optional route path for files uploaded by the Partner.
to_partner_route_path
string
Optional route path for files delivered to the Partner.
to_partner_managed_folder_paths
array(string)
Managed folder paths inside the to-Partner folder.
from_partner_managed_folder_paths
array(string)
Managed folder paths inside the from-Partner folder.
from_partner_upload_forms
array(object)
Form Field Sets attached to From Partner upload destinations.
effective_to_partner_folder_name
string
Resolved to-Partner subfolder name. Null when the direction is disabled or uses the Channel folder directly.
effective_from_partner_folder_name
string
Resolved from-Partner subfolder name. Null when the direction is disabled or uses the Channel folder directly.
channel_path
string
Resolved Channel folder path.
to_partner_folder_path
string
Resolved to-Partner folder path.
from_partner_folder_path
string
Resolved from-Partner folder path.