- Home
- Resources
- WishListFileResource
The Wish List File Resource provides import/export functionality to the wish
lists in InService.
The following resources are applicable:
GET /wishlistfiles/formats
Retrieves all supported file formats that can be used in exporting or
importing wish list items.
Each SCValue contains:
- title : localized title of extension that client can display to user
such as "Microsoft Excel Spreadsheet"
- key : actual extension such as (csv , xml , etc)
- value : extension mime type such as (text/csv , application/xml, etc)
Response Body
media type |
data type |
application/vnd.ptc.sc+json |
array of object
(JSON) |
POST /wishlistfiles
Creates a wish list from each attached file.
Request Body
media type |
data type |
description |
multipart/form-data |
(custom)
|
container of files sent from client |
Response Codes
code |
condition |
400 |
Returned if extension or formInput is empty |
415 |
Returned if the mime-type of any attached files are not
supported |
Response Body
media type |
data type |
application/vnd.ptc.sc+json |
object
(JSON) |
POST /wishlistfiles/legacy
Creates a cart or wishlist for a single file uploaded. Legacy support for iFrame transport.
Request Body
media type |
data type |
description |
multipart/form-data |
(custom)
|
container of files sent from client |
Response Body
media type |
data type |
text/html |
(custom)
|
POST /wishlistfiles/iframe
Creates a cart or wishlist for a single file uploaded.
Request Body
media type |
data type |
description |
multipart/form-data |
(custom)
|
container of files sent from client |
Response Body
media type |
data type |
text/html |
(custom)
|
GET /wishlistfiles/{wishlistId}/{filename}
Export a wish list to a specified file type.
Request Parameters
name |
type |
description |
default |
User-Agent |
header |
The header parameter automatically sent by browser to
identify type and version of browser |
n/a |
filename |
path |
Desired name for resulting file |
n/a |
wishlistId |
path |
The ID of the wish list to be exported |
n/a |
Response Codes
code |
condition |
400 |
if the wish list id is not formatted correctly |
404 |
if no wish list with the given id exists |
415 |
Returned if the Content-Type (or content-type as represented by
the extension) is not supported |
Response Body
media type |
data type |
application/json |
object
(JSON) |
application/xml |
anyType
(XML) |