Module Values.StartContentUploadRequestSource

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.

Sourcetype nonrec t = {
  1. contentType : ContentType.t;
    (*

    The type of content to upload.

    *)
  2. knowledgeBaseId : UuidOrArn.t;
    (*

    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.

    *)
  3. presignedUrlTimeToLive : TimeToLive.t option;
    (*

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

    *)
}
Sourceval context_ : string
Sourceval make : ?presignedUrlTimeToLive:??? -> contentType:ContentType.t -> knowledgeBaseId:UuidOrArn.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of TimeToLive.t | `String of ContentType.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t