Skip to content

/AWS1/CL_WIS=>STARTCONTENTUPLOAD()

About StartContentUpload

Get a URL to upload content to a knowledge base. To upload content, first make a PUT request to the returned URL with your file, making sure to include the required headers. Then use CreateContent to finalize the content creation process or UpdateContent to modify an existing resource. You can only upload content to a knowledge base of type CUSTOM.

Method Signature

IMPORTING

Required arguments:

IV_KNOWLEDGEBASEID TYPE /AWS1/WISUUIDORARN /AWS1/WISUUIDORARN

The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.

IV_CONTENTTYPE TYPE /AWS1/WISCONTENTTYPE /AWS1/WISCONTENTTYPE

The type of content to upload.

Optional arguments:

IV_PRESIGNEDURLTIMETOLIVE TYPE /AWS1/WISTIMETOLIVE /AWS1/WISTIMETOLIVE

The expected expiration time of the generated presigned URL, specified in minutes.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_WISSTARTCONTUPLOADRSP /AWS1/CL_WISSTARTCONTUPLOADRSP