kustomer-client
    Preparing search index...

    Function upsertSpamSender

    • Upsert spam sender Assigns a spam list status for a new sender, or updates the spam list status for an existing sender.

      You can assign senders to a list status: whitelist (never considered spam) or blacklist (always considered spam).

      Any one of the following roles is required for this endpoint:

      Legacy Role Equivalent Permission Set Role
      org.admin.spam.write org.permission.spam.update

      Type Parameters

      • ThrowOnError extends boolean = true

      Returns RequestResult<
          {
              data: {
                  attributes: {
                      channel: string;
                      createdAt: string;
                      list: string;
                      modifiedAt: string;
                      sender: string;
                      updatedAt: string;
                  };
                  id: string;
                  relationships: {
                      createdBy: {
                          data: { id: string; type: string };
                          links: { self: string };
                      };
                      modifiedBy: {
                          data: { id: string; type: string };
                          links: { self: string };
                      };
                      org: { data: { id: string; type: string }; links: { self: string } };
                  };
                  type: string;
              };
          },
          unknown,
          ThrowOnError,
      >