Module Values.StartContentUploadResponseSource

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. uploadId : UploadId.t option;
    (*

    The identifier of the upload.

    *)
  2. url : Url.t option;
    (*

    The URL of the upload.

    *)
  3. urlExpiry : SyntheticTimestamp_epoch_seconds.t option;
    (*

    The expiration time of the URL as an epoch timestamp.

    *)
  4. headersToInclude : Headers.t option;
    (*

    The headers to include in the upload.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `ResourceNotFoundException of ResourceNotFoundException.t
  3. | `UnauthorizedException of UnauthorizedException.t
  4. | `ValidationException of ValidationException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?uploadId:??? -> ?url:??? -> ?urlExpiry:??? -> ?headersToInclude:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `UnauthorizedException of UnauthorizedException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `UnauthorizedException of UnauthorizedException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Map of ([> `String of NonEmptyString.t ] * [> `String of NonEmptyString.t ]) list | `String of UploadId.t | `Timestamp of SyntheticTimestamp_epoch_seconds.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