PUT api/testscope?id={id}
Replace test scope
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Test scope guid |
globally unique identifier |
Required |
Body Parameters
Test scope data transfer object
TestScopeDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Test scope id (Row key) |
globally unique identifier |
None. |
| WellId |
Test scope well parent (Partition key) |
integer |
Required |
| StartUnixTime |
Test start time |
integer |
Required |
| IsApproved |
Is test approved |
boolean |
None. |
| ConductedBy |
Conducted by |
string |
Required |
| CertifiedBy |
Certified by |
string |
Required |
| TestDataDtoList |
List of test data in this scope: required for POST requests |
Collection of TestData |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "18fa8360-b458-4f34-8a50-62ddfb014a04",
"WellId": 2,
"StartUnixTime": 3,
"IsApproved": true,
"ConductedBy": "sample string 4",
"CertifiedBy": "sample string 5",
"TestDataDtoList": [
{
"Comment": "sample string 1",
"HourNumber": 64,
"TestScopeId": "b16d5007-06c9-463a-98bf-45dd6d74f165",
"Dict": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
}
},
{
"Comment": "sample string 1",
"HourNumber": 64,
"TestScopeId": "b16d5007-06c9-463a-98bf-45dd6d74f165",
"Dict": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
}
}
]
}
application/xml, text/xml
Sample:
<TestScopeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models">
<CertifiedBy>sample string 5</CertifiedBy>
<ConductedBy>sample string 4</ConductedBy>
<Id>18fa8360-b458-4f34-8a50-62ddfb014a04</Id>
<IsApproved>true</IsApproved>
<StartUnixTime>3</StartUnixTime>
<TestDataDtoList>
<TestData>
<Comment>sample string 1</Comment>
<Dict xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>sample string 1</d4p1:Key>
<d4p1:Value>sample string 2</d4p1:Value>
</d4p1:KeyValueOfstringstring>
<d4p1:KeyValueOfstringstring>
<d4p1:Key>sample string 3</d4p1:Key>
<d4p1:Value>sample string 4</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</Dict>
<HourNumber>64</HourNumber>
<TestScopeId>b16d5007-06c9-463a-98bf-45dd6d74f165</TestScopeId>
</TestData>
<TestData>
<Comment>sample string 1</Comment>
<Dict xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>sample string 1</d4p1:Key>
<d4p1:Value>sample string 2</d4p1:Value>
</d4p1:KeyValueOfstringstring>
<d4p1:KeyValueOfstringstring>
<d4p1:Key>sample string 3</d4p1:Key>
<d4p1:Value>sample string 4</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</Dict>
<HourNumber>64</HourNumber>
<TestScopeId>b16d5007-06c9-463a-98bf-45dd6d74f165</TestScopeId>
</TestData>
</TestDataDtoList>
<WellId>2</WellId>
</TestScopeDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Changed test scope data transfer object
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |