Bulk Load Content

Submits a bulk load that defines the content that will be loaded. Loading content caches an asset on our edge servers. This allows that content to be served directly from the edge of our network to your users.

Key information:

More information on loading content.

Request

A request for a bulk load is described below.

HTTP Method Request URI

PUT

https://api.transactcdn.com/v2/mcc/customers/AccountNumber/edge/bulkload

Define the following variable when submitting the above request.

VariableA variable represents a value that must be replaced. A variable consists of either a URL segment (e.g., "0001" in /0001/) or a query string value (e.g., "3" in mediaTypes=3). Description

AccountNumber

Required

Replace this variable with a customer account number. This account number may be found in the upper left-hand corner of the TCC.

Request Headers

This endpointIdentifies a request's connection point to our REST API service. only takes advantage of common request headers.

Request Body

Pass the following request body parameters:

Name Data Type Description

EdgeNodeRegionIds

Array

Defines the set of regions to which the bulk load request will be applied. Set this parameter to the desired region ID(s). Use a comma to delimit multiple regions.

Regional loading is designed to meet specialized cache management needs. When in doubt, load content to all regions.

Omitting this parameter will apply the load request to the entire network (i.e., all regions).

Retrieve a list of regions and their corresponding system-defined IDs through the Get Load/Purge Regions endpoint.

Although the response for the Get Load/Purge Regions endpoint includes the POPs (i.e., edge nodes) associated with each region and their system-defined IDs, the EdgeNodeRegionIds request parameter only accepts the system-defined IDs for load/purge regions.

MediaPath

Required

Array (String Values)

Identifies each CDN or edge CNAME URL that will be loaded to our edge servers. Make sure to include the appropriate protocol (e.g., http://).

MediaType

Required

Integer

Identifies the delivery platform to which assets will be loaded by its system-defined ID.

The only valid value is:

  • 14: Commerce Acceleration Network (CAN)

Response

The response to the above request includes an HTTP status code, response headers, and a response body.

Status Code

A status code indicates whether the request was successfully performed.

Response Headers

The response for this endpoint only includes standard HTTP response headers.

View common response headers.

Response Body

The response body for a successful request contains the following response parameter:

Name Data Type Description

Id

String

Reports the unique ID assigned to the bulk load request.

Pass this ID to the Get Bulk Load Request endpoint to track the status of this bulk load request.

Errors

The response body for an unsuccessful request may contain an error parameter that provides additional information.

View common error messages.

Sample Request and Response

A sample JSON request is provided below.

PUT https://api.transactcdn.com/v2/mcc/customers/0001/edge/bulkload HTTP/1.1

Authorization: TOK:12345678-1234-1234-1234-1234567890ab

Accept: application/json

Content-Type: application/json

Host:api.transactcdn.com

Content-Length: 157

{
	"MediaPath" : ["http:\/\/can.0001.transactcdn.com\/000001\/WebPage.htm", "http:\/\/can.0001.transactcdn.com\/000001\/marketing\/style.css"],
	"MediaType" : 14
}		

A sample JSON response is provided below.

HTTP/1.1 200 OK

Cache-Control: private

Content-Type: application/json; charset=utf-8

Date: Thu, 15 Apr 2021 12:00:00 GMT

Content-Length: 33

{
	"Id" : "170fe3a9d4c54d012f680f2a"
}