POST api/v3/sitenotice/admin/theme

Saves the site notice theme. This action behaves like an upsert. If the id value is missing or 0 the operation will create a new theme record. Otherwise this will try to modify the existing theme.

Request Information

URI Parameters

None.

Body Parameters

Theme
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Link

LinkTheme

None.

Button

ButtonTheme

None.

Banner

BannerTheme

None.

Barrier

BarrierTheme

None.

L2

L2Theme

None.

Styles

string

None.

BackgroundColor

string

None.

FontColor

string

None.

Logo

string

None.

NoticeCount

integer

None.

Notices

Collection of SiteNotice3

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'Ghostery.Privacy.Common.Objects.Site3.SiteNotice'. Path 'notices[0].templates[0].notices'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'Ghostery.Privacy.Common.Objects.Site3.SiteNotice'. Path 'notices[0].templates[0].notices'.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Theme'.

Response Information

Resource Description

Theme
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Link

LinkTheme

None.

Button

ButtonTheme

None.

Banner

BannerTheme

None.

Barrier

BarrierTheme

None.

L2

L2Theme

None.

Styles

string

None.

BackgroundColor

string

None.

FontColor

string

None.

Logo

string

None.

NoticeCount

integer

None.

Notices

Collection of SiteNotice3

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'Ghostery.Privacy.Common.Objects.Site3.SiteNotice'. Path 'notices[0].templates[0].notices'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'Ghostery.Privacy.Common.Objects.Site3.SiteNotice'. Path 'notices[0].templates[0].notices'.