Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/Particle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1717,6 +1717,26 @@ class Particle {
});
}

/**
* Download a tachyon manufacturing backup files
* @param {Object} options Options for this API call
* @param {Number} options.deviceId Device ID
* @param {String} [options.auth] The access token. Can be ignored if provided in constructor
* @param {Object} [options.headers] Key/Value pairs like `{ 'X-FOO': 'foo', X-BAR: 'bar' }` to send as headers.
* @param {Object} [options.context] Request context
* @returns {Promise<RequestResponse, RequestError>} A promise with a zip file that contains all manufacturing backup files for the specific device.
*/
downloadManufacturingBackup({ deviceId, auth, headers, context }) {
return this.request({
uri:`/v1/devices/${deviceId}/backup_files`,
method: 'put',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw this and was surprised initially then remembered GET /v1/devices/${deviceId}/:something is taken up entirely by "get variable" :(

auth,
headers,
context,
isBuffer: true
});
}

/**
* Release a product firmware version as the default version
* @param {Object} options Options for this API call
Expand Down