Skip to content

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}/version

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser
x-nextinteract-company-api-keyYesAdmin-specific API key UUID provided to company

Parameters ​

Path Params:

ParameterTypeRequiredDescription
brochureIdintegerYesBrochure 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:

ParameterTypeRequiredDescription
assetVersionNamestringYesName of an asset to be uploaded.
assetVersionFilefileYesFile 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 ​

ExceptionDescription
InvalidParameterExceptionSee Error Definitions
IOExceptionSee Error Definitions
RecordNotFoundExceptionSee Error Definitions
CompanyApiKeyNotActiveExceptionSee Error Definitions
CompanyNotActiveExceptionSee Error Definitions
InvalidAuthTokenExceptionSee Error Definitions
CacheServiceException BrochureServiceExceptionSee Error Definitions
AuthorisationServiceExceptionSee Error Definitions
S3ServiceExceptionSee Error Definitions