Appearance
uploadAssetVersion ​
Given a valid user authToken + valid Company ADMIN API key, allows an asset version file to be uploaded against a given brochure.
Request ​
http
POST rest/brochures/{brochureId}/versionHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
x-nextinteract-company-api-key | Yes | Admin-specific API key UUID provided to company |
Parameters ​
Path Params:
| Parameter | Type | Required | Description |
|---|---|---|---|
brochureId | integer | Yes | Brochure id of the asset version file being uploaded. brochureId must exist in the same company as the ADMIN API key used! |
Form URL Encoded Params:
| Parameter | Type | Required | Description |
|---|---|---|---|
assetVersionName | string | Yes | Name of an asset to be uploaded. |
assetVersionFile | file | Yes | File representing the asset file. Must conform to myINTERACT asset specifications. |
SAMPLE CURL COMMAND
curl --location 'http://localhost:8080/nextinteract-webapp/rest/brochures/279/version'
--header 'x-nextinteract-authtoken: jqyn6hrutzQQ1yG51Vu/pg=='
--header 'x-nextinteract-company-api-key: ADMINCOMPANYAPIKEYUUID'
--header 'Cookie: JSESSIONID=A3B3CB62EAB52B872B58786DB06B6979'
--form 'assetVersionName="firsttext"'
--form 'assetVersionFile=@"/Users/aaronmcmullen/Downloads/1Brochures/1Testing/PDFWinEmailNoToCV6.zip"'
Response ​
200 OK ​
Errors ​
| Exception | Description |
|---|---|
InvalidParameterException | See Error Definitions |
IOException | See Error Definitions |
RecordNotFoundException | See Error Definitions |
CompanyApiKeyNotActiveException | See Error Definitions |
CompanyNotActiveException | See Error Definitions |
InvalidAuthTokenException | See Error Definitions |
CacheServiceException BrochureServiceException | See Error Definitions |
AuthorisationServiceException | See Error Definitions |
S3ServiceException | See Error Definitions |