Configuration import and export

Use the export and the import to move the configuration of a campaign to another installation. Typical cases are the next deployment, a staging system, or the same compliance test in another domain.

The document is not a backup and not a report. Three rules describe the two endpoints:

  • The export writes one campaign per file.

  • The import reads one campaign and answers a form. It creates nothing.

  • Both directions stream the document, so one campaign may carry up to 20000 devices.

See the two endpoints for the request shape and the status codes.

The document

<?xml version="1.0" encoding="UTF-8"?>
<fccTests formatVersion="3" exportedAt="2026-09-24T10:15:00Z" generator="ft-fcc-service/0.0.1-SNAPSHOT">
  <test>
    <name>Downtown fiber compliance - Q3</name>
    <domainId>17</domainId>
    <reactivation>
      <type>Daily</type>
      <repeatEvery>7</repeatEvery>
      <startsOn>2026-11-01T00:00:00Z</startsOn>
      <ends>After</ends>
      <reactivationCount>5</reactivationCount>
    </reactivation>
    <activation>
      <onlyOnlineDevices>true</onlyOnlineDevices>
      <totalTestDuration>24</totalTestDuration>
      <singleTestDuration>30</singleTestDuration>
      <batchInterval>0</batchInterval>
      <failedTestRetries>1</failedTestRetries>
      <wanUsageRetries>3</wanUsageRetries>
    </activation>
    <configuration>
      <type>SPEED</type>
      <sourceType>INDIVIDUAL</sourceType>
      <manufacturer>Friendly</manufacturer>
      <model>FT-1200</model>
      <speedSetting>
        <wanDownloadThreshold>5000</wanDownloadThreshold>
        <wanUploadThreshold>1000</wanUploadThreshold>
        <speedTierDownload>100000</speedTierDownload>
        <speedTierUpload>20000</speedTierUpload>
        <downloadUrl>http://speedtest.example.net/download</downloadUrl>
        <uploadUrl>http://speedtest.example.net/upload</uploadUrl>
        <downloadConnections>4</downloadConnections>
        <uploadConnections>2</uploadConnections>
        <fileSizeUpload>50000000</fileSizeUpload>
        <testMode>FILE_BASED</testMode>
      </speedSetting>
      <devices>
        <serial>ABC123456789</serial>
        <serial>ABC123456790</serial>
      </devices>
    </configuration>
    <configuration>
      <type>LATENCY</type>
      <sourceType>INDIVIDUAL</sourceType>
      <latencySetting>
        <testHost>ping.example.net</testHost>
        <repetitions>10</repetitions>
      </latencySetting>
      <devices>
        <serial>ABC123456789</serial>
      </devices>
    </configuration>
  </test>
</fccTests>

The elements of a <test> may appear in any order. The writer always uses the order above.

Every element may appear at most once. A repeated element is refused with this message: <name> is declared more than once; a configuration document states every value exactly once. <configuration> is the one exception, because a campaign holds several configurations.

The test element

Element Type Required Notes

name

Text

Yes

Up to 255 characters.

domainId

Number

No

The import reads this element and ignores it. See Which domain the campaign lands in.

reactivationDays

Number, 0 to 9

No

The run count of format version 2. Use <reactivation> instead.

reactivation

Block, 5 elements

No

The full recurrence rule. See The reactivation block.

activation

Block, 11 elements

No

The timing settings of the campaign. See The activation block. A campaign without this block is a valid draft.

configuration

Block, repeatable

Yes

One block per configuration. See One configuration element per configuration.

The reactivation block

Element Type Notes

type

Daily or None

None means one single run.

repeatEvery

Number

The number of days between two runs.

startsOn

Timestamp

The anchor of the rhythm. Every run lands on this instant plus a multiple of repeatEvery.

ends

After

The rule for the end of the recurrence.

reactivationCount

Number, 0 to 9

The number of runs.

A document with both <reactivationDays> and <reactivation> is refused. Both carry the run count, and the two values can disagree.

The activation block

Element Type Notes

onlyOnlineDevices

true or false

The element name is plural.

requestDeviceConnect

true or false

totalTestDuration

Number

Hours.

singleTestDuration

Number

Minutes.

batchInterval

Number

failedTestRetries

Number

A retry count, not a switch. The name reads like a flag, so this is the most frequent mistake.

wanUsageRetries

Number

Also a count.

wanSampleGapSec

Number

wanRetryIntervalSec

Number

wanStepTimeoutSec

Number

This is the eleventh element, not another spelling of diagTimeoutSec.

diagTimeoutSec

Number

The four elements with the Sec ending fall through the settings chain when they are absent. See Inherit the defaults of the target installation.

The settings blocks

Each configuration carries exactly one settings block, and the block must match the <type>.

Block Elements

speedSetting, 13 elements, required with type=SPEED

wanDownloadThreshold, wanUploadThreshold, speedTierDownload, speedTierUpload, downloadUrl, uploadUrl, downloadConnections, uploadConnections, fileSizeUpload, testMode, speedTierMode, speedSuccessPercent, hubbId

latencySetting, 9 elements, required with type=LATENCY

wanDownloadThreshold, speedTierDownload, speedTierMode, testHost, repetitions, timeoutMs, dataBlockSize, latencySuccessMs, hubbId

Four details are easy to get wrong:

  • fileSizeUpload is a 64-bit number.

  • testMode accepts FILE_BASED. The value TIME_BASED exists in the enumeration and the validator refuses it.

  • speedTierMode accepts DEFAULT or MANUAL. It records where the tier came from. See Where a speed tier comes from.

  • latencySuccessMs is the pass bound of this service. The other four latency elements are Technical Report 181 (TR-181) parameters of the Auto Configuration Server (ACS).

A wrong or missing settings block is refused. The document must be consistent about the campaign it describes. See The settings block must match the type.

One configuration element per configuration

A campaign holds several configurations, so the document carries one <configuration> per configuration. Each one has its own <type>, its own settings block and its own <devices>.

Four more elements record the choice of the operator.

  • sourceType: CONDITION, INDIVIDUAL or FILE.

  • manufacturer and model: the make of the chosen devices.

  • conditionId: the saved condition behind a CONDITION source.

The <activation> block stays on the <test> level and is never repeated. The timing settings are stated once per campaign, and the save writes them to every configuration row. The export takes them from the first configuration.

Each configuration resolves its own fleet. A document with three configurations therefore produces three fleets. The device limit also applies per configuration, and the message names the configuration:

<configuration> 1 accepts at most 20000 devices, got 20001

A <test> without a <configuration> is refused. Such a document describes no campaign.

Rules for values

A boolean element accepts only true and false:

onlyOnline=yes is not a boolean; allowed: true, false

The service never guesses here. A relaxed parser answers false for every other text, so <onlyOnlineDevices>yes</onlyOnlineDevices> would store false. The campaign would then measure offline devices too, and nothing would report the lost value.

The service matches an enumeration value without regard to case. Case tolerance is not value tolerance. An unknown value is refused, and the message names the valid values.

An absent element and an empty element both mean null. This rule carries weight, because the settings chain fills only an absent field. A zero or an empty string would beat the chain and freeze the blanks of the source installation into the new campaign.

The formatVersion attribute

The root element must carry the formatVersion attribute.

Value Result

Missing or blank

HTTP 400 with FT code 9400. The message names the supported versions.

Not a number

HTTP 400 with FT code 9400. The message names the value.

3

Read in full. An export writes this version.

2

Read. Version 2 says less: it has no <reactivation> block and no configuration choice. Everything absent arrives as null, so an old file imports as before.

Any other number

HTTP 400 with FT code 9400: formatVersion=4 is not supported by this release; supported version(s): 2, 3.

A version 1 document is refused as a whole. Its type, settings and devices sit directly inside <test>. That is one configuration worth of content. A reader with two shapes of <test> would risk a half-applied import.

The service refuses an unknown version instead of a fallback to the current one. An older service would otherwise read a newer document as its own format and drop every change in silence.

The service checks the root and the attribute before it reads the first <test>.

What the format does not carry

Not carried Reason

scheduledAt

A schedule is an instant, not a configuration. A document written in March and imported in June would fire at once or disappear. An imported campaign is always created as Not active, and the operator books it on the new installation.

state

The lifecycle belongs to the installation. An imported campaign always starts as Not active.

cpeId

A local key. It identifies nothing in another installation. A fleet travels as serial numbers only.

source, id, legacyUgId

All three are local. An import always creates a campaign, so the new installation assigns its own identity.

activationCount, the run history, the device states and the measurements

These are evidence of runs. A copy would invent runs that never happened on the new installation.

The recurrence is the opposite case, and the export carries it. A cadence and a count are durations, and a duration means the same thing everywhere. The rule is not no timing: an instant that fires stays behind, and a rhythm travels.

The fleet travels as serial numbers

The <devices> block carries <serial> elements only. The reader resolves them against the device table in batches of 1000. It keeps the resolved device id only. The serial number, the model and the protocol come from the device table, never from the document.

A serial number without a visible device fails the import with HTTP 400 and FT code 9400. The message names the count and the serial numbers, in your own spelling.

The import refuses a partial fleet on purpose. A campaign with 19000 of the 20500 named serial numbers is a compliance report with 1500 missing subscribers, and nothing would reveal it later. The device wizard behaves differently: it reports an unmatched serial number and returns the rest, because there the operator is still choosing.

An absent <devices> block means an empty fleet. This is the normal case for a move between installations, and it is a valid draft.

The service counts the serial numbers as the batches arrive, before it resolves any of them. A document with 300000 serial numbers therefore stops at the batch over the limit. Without that order the service would run about 300 queries against the read-only pool on its way to a refusal. The message is the one of the save path, word for word, so no caller can tell which layer refused.

The import answers a form and creates nothing

PUT /FCC/item/import answers the details object of a campaign. That object is the body you send to the save endpoint. The import writes nothing.

The behaviour follows the group import of Group Update. That endpoint parses the file and answers the form, and the operator presses Save on the screen. The save is a different endpoint.

Three fields of the answer are set by the import:

  • id is null, and the save reads a null id as create.

  • state is Not active, because that is the state the save will create.

  • activation.type is Immediately, because the document carries no booking.

One test element per document

The format holds several <test> elements, and one details object describes one campaign. A second <test> is therefore refused with HTTP 400. An answer with the first of three campaigns looks like a full success, and the operator could not tell.

An export writes one campaign per file, so a document of this installation always imports. Split a file you assembled by hand.

What the import checks

The import checks the document:

  • the vocabulary, see Unknown elements are refused

  • the formatVersion attribute

  • the internal consistency, such as a missing <type> or a settings block for the wrong type

  • the device limit and every serial number

The save checks the campaign. That covers the URL rules, the ranges, the connection limits of the fleet, the settings chain and the domain. One place checks the campaign. With two places the first refusal would decide whether the operator ever sees the form.

Unknown elements are refused

Position of the unknown element Result

Inside <test> or inside one of the blocks

The <test> is refused with HTTP 400 and FT code 9400.

Directly under <fccTests>, or the root element is not <fccTests>

The whole document is refused with HTTP 400 and FT code 9400. The vocabulary is wrong at that point, so the reader cannot guess which elements are campaigns.

An element the format leaves out on purpose gets its own message. The message names the reason. The text unknown element would suggest an incomplete format:

<scheduledAt> is not part of the configuration document format: a schedule is an
instant, not a configuration: a document produced in March and imported in June
would either fire at once or be dropped. An imported campaign is always created
NOT_ACTIVE and is scheduled on this installation. Remove it and import again

The service refuses instead of a skip for one reason. An unknown element is either a typo or a field of a later format version. A typo means the operator loses a setting in silence. A later field means the campaign measures something other than the file states. A compliance product must not have that outcome.

Legacy campaigns are refused in both directions

A legacy campaign is an anchor of the legacy import. It has no configuration row and no settings row. Its legacy group id points into the local ACS schema and means nothing elsewhere. See Legacy FCC import.

Direction Behaviour

Export of a legacy campaign

HTTP 400 with FT code 9400, before the first byte, naming every offending id. An export would produce a campaign of defaults and a name, and such a document claims an author it never had.

Import of an element naming source, state, id or legacyUgId

HTTP 400 with FT code 9400. The format has no vocabulary for a legacy campaign.

The export refuses instead of a skip. You named the id of the campaign. A document with four of five campaigns hides the missing one. You find the gap later, when a compliance run is missing on the target.

Inherit the defaults of the target installation

An exported document carries the resolved values of the campaign. Those are the values the settings chain produced on the source installation. See The settings chain.

On import those values arrive as explicit request values, and an explicit value always wins. This is intended: an import reproduces a campaign.

To inherit a default of the target installation, delete the element from the file. The chain fills only an absent field. Operators do this most often for <downloadUrl>, <uploadUrl> and the latency <testHost>.

There is no flag for this. A flag would choose per field. Editing the file already does that per field, and you can see the result.

Which domain the campaign lands in

The save decides the domain. The <domainId> element of the document is read and ignored, because it names a domain of another installation.

A campaign gets its domain on the save endpoint. Under the scope LIST it comes from the identity header. A super-domain caller may set it in the body. See The domain of a new campaign.

The fleet still resolves against the whole visible domain set of the caller. A file naming devices of an invisible domain therefore resolves to nothing and is refused, never narrowed in silence.

Transport

Export

PUT /FCC/item/export answers application/xml as a stream. The header Content-Disposition carries the file name fcc-<campaign name>-<yyyyMMdd-HHmmss>.xml. There is no Content-Length header, because the size is unknown until the last device is read.

Every refusal happens before the first byte, inside one read-only transaction. Examples are an unknown id, an invisible id and a legacy campaign. After the status line a failure can only close the connection, and the client gets a truncated file with no error in it.

Import

PUT /FCC/item/import accepts multipart/form-data only, in the part file. There is no raw XML variant of this path, for two reasons:

  • A second content type on one path costs a workaround in the OpenAPI generation. Two endpoints already pay that cost, and one content type does the job here.

  • The multipart path is the only bounded one. The multipart limits cap the upload, with a default of 10 MB. A raw body has no framework-level limit, on a port that trusts every caller.

The shared multipart answers apply. An oversized upload is HTTP 413 with FT code 9413 and names the maximum. A missing file part is HTTP 400 with FT code 9400. An unsupported content type is HTTP 415 with FT code 9415. See the multipart status codes.

The reader parses one <test> at a time. Document type definitions and external entities are disabled on the parser factory itself. Everything able to reach this port can send a document, so that guarantee must not depend on a later cleanup step.

What survives a round trip

Category Fields

Identical after an export and an import

Everything not named below. The list includes name, every activation field, the whole recurrence rule, and for each configuration the type, manufacturer, model, sourceType, conditionId, every settings field and the fleet by serial number.

Different by design

The id of the campaign, of each configuration and of each settings row, because the import creates nothing. The state, always Not active. The activation.date, always null, because the document carries no booking. The conditionName, resolved on the target installation. The device id, re-derived from the serial numbers.

A field you delete before the import is the one legitimate difference in stored values. The settings chain then fills it from the default of the target installation.

The import applies every validation rule of the save

The import assembles the campaign form and validates it before it answers. Every rule of the save endpoint therefore applies, including the length limit of <name>.

A violation answers HTTP 400 with FT code 9400. The message carries one entry per field, in the form field message, sorted by field. That is the shape of the save endpoint, and the element names are the field names.

What a version 2 document does not carry

A version 2 document is accepted, and it says less than a version 3 document.

Absent in version 2 What you see after the import

reactivation.repeatEvery and reactivation.startsOn

Version 2 carries the run count alone. The rule every 7 days from 1 November, 5 times arrives as 5 times, with no cadence and no anchor. The every …​ days field comes back empty, and a save stores the column default of 1. An exported and imported campaign therefore becomes daily.

configs[].manufacturer, configs[].model, configs[].sourceType and configs[].conditionId

The document carries the fleet and not the choice behind it. Every imported configuration comes back as an explicit device list of unknown make and model.

A version 3 document carries both groups. The recurrence travels as a block, and the choice travels as four elements beside the <type>.

The anchor travels although a booking does not, and the two are different things:

  • A booking fires: a document written in March and imported in June would fire at once or disappear.

  • An anchor is the phase of a rhythm: every run lands on the anchor plus a multiple of the period, and the service steps a stale anchor forward until the next slot is in the future.

The anchor is the only timestamp of the format.

A carried source type has one visible consequence. A save of the imported form now does what that source type means. The values All and Condition resolve the fleet again on the target installation. The serial numbers are answered either way, so the form is complete.

The import sequence

The service parses the <test>, resolves the fleet of each configuration in batches, assembles the campaign form and answers it. Nothing is written.

fcc-config-import-sequence