Description | Example | Return Message | Group(s)

StoreFile

HTTP Request Format

POST api/StoreFile

Description

The StoreFile REST API command takes a string of base64 encoded data and stores it locally.

Parameters

JSON ParametersBody FormatDescription
FileName"FileName": ["test.aem"]Parameter is a string of text that will be the name of the stored file.
Contents

"Contents" : ["c3RrLnYuOC4wLjANCkJFR0lOIEF6RWxNYXNrDQpOdW1iZXJPZlBvaW50cyAyDQpCRUdJTiBBekVsTWFza0RhdGENCjAgMQ0KMzYwIDENCkVORCBBekVsTWFzaw=="]

Parameter is a base64 encoded string of data that will be saved to the file.

Example

To save a base 64 encoded AEM file as a text file with a file-name "test.aem":

POST api/StoreFile

Body:

{

"FileName" : ["test.aem"],

"Contents" : ["c3RrLnYuOC4wLjANCkJFR0lOIEF6RWxNYXNrDQpOdW1iZXJPZlBvaW50cyAyDQpCRUdJTiBBekVsTWFza0RhdGENCjAgMQ0KMzYwIDENCkVORCBBekVsTWFzaw=="]

}

Return Message

If activated, a standard response for a successful HTTP response shall appear.

Group Membership

This command belongs to the following group(s):

Scheduler

Version

12.3