Content-Type

don’t set content type for this api

Supported Formats

Errors

Code Description
401 Token is invalid
401 You must authenticate to perform this request.
404 The requested resource was not found.

Examples

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\" }"
  

Params

Param name Description
_token
required

Validations:

  • Must be a String

remote_file_id
optional

Use an existing file (already push previously)

Validations:

  • Must be a String

filename
required

Name of the file

Validations:

  • Must be a String

version
required

Version

Validations:

  • Must be a String

content_file
optional

Content of the file

Validations:

  • Must be a String

configuration
optional

Specific configuration that you want apply in the same time

Validations:

  • Must be a String

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:

  • Must be an array of any type