don’t set content type for this api
| Code | Description |
|---|---|
| 401 | Token is invalid |
| 401 | You must authenticate to perform this request. |
| 404 | The requested resource was not found. |
curl -X "POST" '/api/v2/modules/versions/98/remote_file'
-H "filename" : "myfile.json" \
-H "version" : 1.0 \
-H "remote_file_id" : 42 \
-H "targeted_assets": [ "351732XXXXX95", "351732057XXXX8" ] \
-H "targeted_assets_group_ids" : [ 1, 2 ] \
-H "content_file": "XXXXXX" \
-H "configuration": "{ \"param1\" : \"value1\", \"param2\" : \"value2\" }"
| Param name | Description |
|---|---|
|
_token
required |
Validations:
|
|
remote_file_id
optional |
Use an existing file (already push previously) Validations:
|
|
filename
required |
Name of the file Validations:
|
|
version
required |
Version Validations:
|
|
content_file
optional |
Content of the file Validations:
|
|
configuration
optional |
Specific configuration that you want apply in the same time Validations:
|
|
targeted_assets
optional |
List of assets that you allow to download the file. It’s possible the push first the file and after that allow asset on specific remote file id Validations:
|