Information Classification: External Restricted.
See https://www.chili-publish.com/security

POST - resources/{resourceName}/items/fromurlmod

Adds a ResourceItem by downloading the underlying file from an external URL

URI

resources/{resourceName}/items/fromurlmod

HTTP Method

Post

Request parameters

Name

Location

Type

Description

API-KEY

http header

apiKey

The API key previously generated by calling the GenerateApiKey function

resourceName

uri

resourceName

The name of the resource

newName

query

itemName

The name for the new resource item

folderPath

query

folderPath

Location for the new ResourceItem.

url

query

url

URL to download (needs to be accessible from the CHILI server)

login

query

string

Optional user name for authentication into the URL (passed on using Basic Authentication)

pw

query

string

Optional user password for authentication into the URL (passed on using Basic Authentication)

reuseExisting

query

bool

If true, the function will check if an item already exists in the Resource with the provided path/name. If it does, the existing ResourceItem is returned, and the URL is not downloaded.

previewFileURL

query

url

Optional URL to a preview file. If provided, this is downloaded and used as a preview override file.

previewExtension

query

string

The extension of the downloaded preview file (if provided)

isPermanentPreview

query

bool

If true, the provided preview override file remains valid even after the ResourceItem is modified

modificationDate

query

string

Modification date (in en-UK format or including the time zone) of the external resource

HTTP Return Status

Created

Returns

resourceItemXML

Definition XML of the ResourceItem

Security rights needed

  • Add

Apply on resource

Resource from function parameter resourceName

All information on this page must be treated as External Restricted, or more strict. https://www.chili-publish.com/security