POST example/api/Content

https://app.bwz.se/bedrock/example/api/Content

Creates a Content.

Request Information

URI Parameters

None.

Body Parameters

Sets the GUID of the Content.

CreateContentArgs
NameDescriptionTypeAdditional information
BackgroundColor

Sets the background color.

string

None.

ContentData

Sets the content data.

string

None.

ContentType

Sets the content type.

ContentType

None.

LayoutId

Sets the Layout associated with the Content.

integer

None.

ThemeId

Sets the Theme associated with the Content.

integer

None.

ContentGuid

Sets the GUID of the Content.

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "BackgroundColor": "sample string 1",
  "ContentData": "sample string 2",
  "ContentType": 0,
  "LayoutId": 1,
  "ThemeId": 1,
  "ContentGuid": "875ff9a6-02a5-433e-ab7a-4b8e5c5c6477"
}

application/xml, text/xml

Sample:
<CreateContentArgs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models">
  <BackgroundColor>sample string 1</BackgroundColor>
  <ContentData>sample string 2</ContentData>
  <ContentGuid>875ff9a6-02a5-433e-ab7a-4b8e5c5c6477</ContentGuid>
  <ContentType>HtmlMail</ContentType>
  <LayoutId>1</LayoutId>
  <ThemeId>1</ThemeId>
</CreateContentArgs>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The ContentModel that has been created.

ContentModel
NameDescriptionTypeAdditional information
Id

Id of the Content.

integer

None.

CreatedByUserId

Id of the User creating the Content.

integer

None.

CreationDate

Date and time the Content was created.

date

None.

BackgroundColor

Background color of the Content.

string

None.

ContentData

Content data of the Content.

string

None.

ContentType

Content type of the ContentModel.

ContentType

None.

LayoutId

Id of the Layout associated with the Content.

integer

None.

ThemeId

Id of the Theme associated with the Content.

integer

None.

ContentGuid

The Guid associated with the Content.

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CreatedByUserId": 2,
  "CreationDate": "2024-11-21T17:35:41.5078487+01:00",
  "BackgroundColor": "sample string 4",
  "ContentData": "sample string 5",
  "ContentType": 0,
  "LayoutId": 1,
  "ThemeId": 1,
  "ContentGuid": "3ef336b0-1cd7-492d-97b0-affa82548475"
}

application/xml, text/xml

Sample:
<ContentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models">
  <BackgroundColor>sample string 4</BackgroundColor>
  <ContentData>sample string 5</ContentData>
  <ContentGuid>3ef336b0-1cd7-492d-97b0-affa82548475</ContentGuid>
  <ContentType>HtmlMail</ContentType>
  <CreatedByUserId>2</CreatedByUserId>
  <CreationDate>2024-11-21T17:35:41.5078487+01:00</CreationDate>
  <Id>1</Id>
  <LayoutId>1</LayoutId>
  <ThemeId>1</ThemeId>
</ContentModel>