Kernel::GenericInterface::Operation::ConfigItem::ConfigItemDelete

NAME

Kernel::GenericInterface::Operation::ConfigItem::ConfigItemDelete – GenericInterface Configuration Item Delete Operation backend

PUBLIC INTERFACE

OperationName()

Returns the name of the operation.

Run()

perform ConfigItemDelete Operation. This function is able to return one or more ConfigItem entries in one call.

    my $Result = $OperationObject->Run(
        Data => {
            UserLogin         => 'some agent login',            # UserLogin or CustomerUserLogin or AccessToken is
                                                                # required
            CustomerUserLogin => 'some customer login',
            AccessToken       => 'eyJhbGciOiJIUzI1NiJ9[...]',

            Password          => 'some password',               # if UserLogin or customerUserLogin is sent then
                                                                #   Password is required
            ConfigItemID      => '32,33',                       # required, could be coma separated IDs or an Array
        },
    );

    $Result = {
        Success         => 1,                       # 0 or 1
        ErrorMessage    => '',                      # in case of error
        Data            => {                        # result data payload after Operation
            ConfigItemID => [123, 456],         # Configuration Item IDs number in OTRS::ITSM (Service desk system)
            Error => {                              # should not return errors
                    ErrorCode    => 'ConfigItemDelete.ErrorCode'
                    ErrorMessage => 'Error Description'
            },
        },
    };
Scroll to Top