Note

You are viewing the documentation for an older release of Interworx (6.x). To see documentation for the current generally available release of Interworx, click here: 7.13.

Controller: /nodeworx/themes

Required Permissions

THEMES

Action: add

Added in Version

4.7.0-339

Description

Add a new theme.

Input Parameters

Name

Type

Required?

Example Values

Default Values

Notes

archive

string

Yes

Action: delete

Added in Version

4.7.0-339

Description

Delete a theme.

Input Parameters

Name

Type

Required?

Example Values

Default Values

Notes

theme

string

Yes

blue_steel, calliope, coolfreshness, heliotrope, interstate

Action: fail

Added in Version

n/a

Description

Magic function - test for failure mechanism.

Action: list

Added in Version

4.7.0-339

Description

List installed themes.

Sample Output

array (
  'status' => 0,
  'payload' =>
  array (
    0 =>
    array (
      0 => 'blue_steel',
      1 => 'Blue Steel',
    ),
    1 =>
    array (
      0 => 'calliope',
      1 => 'Calliope',
    ),
    2 =>
    array (
      0 => 'coolfreshness',
      1 => 'Cool Freshness',
    ),
  ),
  'reply_code' => 205,
)

Action: listDeletable

Added in Version

4.7.0-339

Description

List deletable themes.

Sample Output

array (
  'status' => 0,
  'payload' =>
  array (
    0 =>
    array (
      0 => 'blue_steel',
      1 => 'Blue Steel',
    ),
    1 =>
    array (
      0 => 'calliope',
      1 => 'Calliope',
    ),
    2 =>
    array (
      0 => 'coolfreshness',
      1 => 'Cool Freshness',
    ),
  ),
  'reply_code' => 205,
)

Action: reroute

Added in Version

n/a

Description

Action to re-route from the current controller to a different one.

Input Parameters

Name

Type

Required?

Example Values

Default Values

Notes

controller

string

Yes

Index, Overview, Users, Lang, Themes, Apikey, Plugins, Twofactorauth, Notice, Siteworx, Shell, Packages, Backup, Import, Softaculous, Reseller, ResellerPackages, ResellerBandwidthhistory, Http, Ftp, Sshd, MailMta, MailSmtp, MailSmtp2, MailSend, MailMda, MailMsa, MailDovecot, MailSpam, MailVirus, MailQueue, Mysql, MysqlRemote, MysqlPhpmyadmin, Dns, DnsZone, DnsRecord, DnsSync, Nfs, NfsExport, NfsMount, Health, Cron, Firewall, Ssl, Logs, Settings, Updates, Rrd, Ip, …

Action: switchAllUsersTheme

Added in Version

4.7.0-339

Description

Switch users from one theme to another.

Input Parameters

Name

Type

Required?

Example Values

Default Values

Notes

change_to

string

Yes

calliope, coolfreshness, gandalf, heliotrope, interstate, interworx, vanillaice

Action: syncTheme

Added in Version

4.7.0-339

Description

Sychronizes a theme to the cluster nodes.

Input Parameters

Name

Type

Required?

Example Values

Default Values

Notes

theme

integer

Yes

Action: update

Added in Version

4.7.0-339

Description

Upgrade a theme.

Input Parameters

Name

Type

Required?

Example Values

Default Values

Notes

theme

integer

Yes

Action: win

Added in Version

n/a

Description

Magic function - test for testing success mechanism.