<back to all web services

AddonMessage

The following routes are available for this service:
GET POST/RestApi/Sitefinity/packaging/add-on

export class AddonMessage
{
    public Id: string;
    public IncludeContent: boolean;
    public Deactivate: boolean;

    public constructor(init?: Partial<AddonMessage>) { (Object as any).assign(this, init); }
}

export enum AddOnEntryType
{
    Content = 'Content',
    Template = 'Template',
    Custom = 'Custom',
    Module = 'Module',
    Form = 'Form',
    Classification = 'Classification',
    WebService = 'WebService',
}

export class AddOnEntry
{
    public DisplayName: string;
    public Count: number;
    public AddonEntryType: AddOnEntryType;

    public constructor(init?: Partial<AddOnEntry>) { (Object as any).assign(this, init); }
}

export class AddonInfo
{
    public Id: string;
    public Name: string;
    public IsActive: boolean;
    public Description: string;
    public IsDataImported: boolean;
    public Version: string;
    public Author: string;
    public DataImportedToSiteName: string;
    public Entries: AddOnEntry[];
    public HasErrorsOnContentImport: boolean;
    public HasErrorsOnStructureImport: boolean;
    public HasErrorsOnActivate: boolean;

    public constructor(init?: Partial<AddonInfo>) { (Object as any).assign(this, init); }
}

TypeScript AddonMessage DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /RestApi/Sitefinity/packaging/add-on HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	IncludeContent: False,
	Deactivate: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Name: String,
	IsActive: False,
	Description: String,
	IsDataImported: False,
	Version: String,
	Author: String,
	DataImportedToSiteName: String,
	HasErrorsOnContentImport: False,
	HasErrorsOnStructureImport: False,
	HasErrorsOnActivate: False
}