POST api/{stagePlural}/widget-blocks/{idOfWidgock}/widgets
Create new widget
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
stagePlural |
Stage in plural mode |
string |
Required |
idOfWidgock |
Block id |
globally unique identifier |
Required |
Body Parameters
Widget object
WidgetDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
Widget id - primary key |
globally unique identifier |
None. |
Name |
Widget name |
string |
Required |
IdOfSectionPattern |
Widget type (section) |
string |
Required |
WidgockId |
Widget block id - parent of widget |
globally unique identifier |
Required |
Opts |
Widget options - JSON string |
string |
Required |
OrderNumber |
Widget order in widget block |
byte |
Required |
IdOfCntxStage |
Id of a stage, for what this widget |
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "Id": "0efcd819-e8fa-4dc7-a216-46b61ea86d87", "Name": "sample string 2", "IdOfSectionPattern": "sample string 3", "WidgockId": "1323671d-42d2-4473-8dd4-910e6e73d8c9", "Opts": "sample string 5", "OrderNumber": 64, "IdOfCntxStage": "sample string 7" }
application/xml, text/xml
Sample:
<WidgetDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models"> <Id>0efcd819-e8fa-4dc7-a216-46b61ea86d87</Id> <IdOfCntxStage>sample string 7</IdOfCntxStage> <IdOfSectionPattern>sample string 3</IdOfSectionPattern> <Name>sample string 2</Name> <Opts>sample string 5</Opts> <OrderNumber>64</OrderNumber> <WidgockId>1323671d-42d2-4473-8dd4-910e6e73d8c9</WidgockId> </WidgetDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.