GET api/v3/sntemplate/{id}/delete

Deletes the templates with the specified id value. A template is only deleted when there is/are not notices attached to it.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The integer identifer for the templete to delete.

integer

Required

Body Parameters

None.

Response Information

Resource Description

Ghostery.Privacy.Common.Objects.Site3.SiteNoticeTemplate
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

Required

CompanyId

integer

None.

DivisionId

integer

None.

CreatedBy

string

None.

Created

date

None.

UpdatedBy

string

None.

Updated

date

None.

Locked

boolean

None.

Countries

Collection of Ghostery.Privacy.Common.Objects.Site3.SiteNoticeTemplateCountry

None.

Notices

Collection of Ghostery.Privacy.Common.Objects.Site3.SiteNotice

None.

DivisionName

string

None.

CountryNames

Collection of string

None.

RegulationIds

Collection of integer

None.

NoticeCount

integer

None.

Response Formats

application/json

Sample:

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

text/json

Sample:

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