PUT api/{stagePlural}/widget-blocks/{idOfWidgock}/widgets/{id}
Save changed widget
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| stagePlural | string |
Required |
|
| idOfWidgock | globally unique identifier |
Required |
|
| id |
Widget id |
globally unique identifier |
Required |
Body Parameters
Widget data transfer object
WidgetDto| Name | 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": "d6f95a61-60c9-46d8-9d21-eaf4fd79fe46",
"Name": "sample string 2",
"IdOfSectionPattern": "sample string 3",
"WidgockId": "43fb6450-351e-47e1-83f8-bd45489485a7",
"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>d6f95a61-60c9-46d8-9d21-eaf4fd79fe46</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>43fb6450-351e-47e1-83f8-bd45489485a7</WidgockId> </WidgetDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Http result
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.