kustomer-client
    Preparing search index...

    Function createForwardAttachment

    • Create forward attachment Creates an attachment on a forward.

      When you create an attachment, the response will include a related URL in the links section. You ca use this URL to upload the contents of the attachment. This URL is a Pre-Signed URL from S3 and provides access to upload a file for a limited duration.

      $ curl --upload-file [full path to file] "[Pre-Signed URL]"
      

      Type Parameters

      • ThrowOnError extends boolean = true

      Returns RequestResult<
          {
              data: {
                  attributes: {
                      contentLength: number;
                      contentType: string;
                      name: string;
                  };
                  id: string;
                  links: { related: string; self: string };
                  relationships: {
                      forward: {
                          data: { id: string; type: string };
                          links: { self: string };
                      };
                      org: { data: { id: string; type: string }; links: { self: string } };
                  };
                  type: string;
              };
          },
          unknown,
          ThrowOnError,
      >