PUT api/ServiceContract/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
ServiceContractUpdateDTOName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
CustomerId | integer |
None. |
|
ContractStatusId | integer |
None. |
|
InvoiceCodeId | integer |
None. |
|
NanId | globally unique identifier |
None. |
|
Reference | string |
None. |
|
FirstService | date |
None. |
|
Frequency | decimal number |
None. |
|
Clocks | Collection of ClocksDTO |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "CustomerId": 1, "ContractStatusId": 1, "InvoiceCodeId": 1, "NanId": "ca0051ea-dd27-4c0e-b13e-6850f1b729d8", "Reference": "sample string 3", "FirstService": "2025-01-09T07:26:27.4122516+00:00", "Frequency": 4.1, "Clocks": [ { "Id": 1, "AddressId": 1, "ServiceContractId": 1, "CustomerId": 1, "NanId": "9319cb6f-544e-4aae-b1b2-4806ef65875e", "Name": "sample string 3", "CustomerName": "sample string 4", "ServiceContractDate": "2025-01-09T07:26:27.4132495+00:00", "Address": { "Id": 1, "Address1": "sample string 2", "Address2": "sample string 3", "Address3": "sample string 4", "Town": "sample string 5", "County": "sample string 6", "Postcode": "sample string 7", "What3Words": "sample string 8", "Latitude": 1.1, "Longitude": 1.1 } }, { "Id": 1, "AddressId": 1, "ServiceContractId": 1, "CustomerId": 1, "NanId": "9319cb6f-544e-4aae-b1b2-4806ef65875e", "Name": "sample string 3", "CustomerName": "sample string 4", "ServiceContractDate": "2025-01-09T07:26:27.4132495+00:00", "Address": { "Id": 1, "Address1": "sample string 2", "Address2": "sample string 3", "Address3": "sample string 4", "Town": "sample string 5", "County": "sample string 6", "Postcode": "sample string 7", "What3Words": "sample string 8", "Latitude": 1.1, "Longitude": 1.1 } } ] }
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="CustomerId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ContractStatusId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="InvoiceCodeId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="NanId" ca0051ea-dd27-4c0e-b13e-6850f1b729d8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Reference" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="FirstService" 2025-01-09T07:26:27.4122516+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Frequency" 4.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].AddressId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].ServiceContractId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].CustomerId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].NanId" 9319cb6f-544e-4aae-b1b2-4806ef65875e --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].Name" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].CustomerName" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].ServiceContractDate" 2025-01-09T07:26:27.4132495+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].Address.Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].Address.Address1" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].Address.Address2" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].Address.Address3" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].Address.Town" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].Address.County" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].Address.Postcode" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].Address.What3Words" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].Address.Latitude" 1.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[0].Address.Longitude" 1.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].AddressId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].ServiceContractId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].CustomerId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].NanId" 9319cb6f-544e-4aae-b1b2-4806ef65875e --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].Name" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].CustomerName" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].ServiceContractDate" 2025-01-09T07:26:27.4132495+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].Address.Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].Address.Address1" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].Address.Address2" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].Address.Address3" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].Address.Town" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].Address.County" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].Address.Postcode" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].Address.What3Words" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].Address.Latitude" 1.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Clocks[1].Address.Longitude" 1.1 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
None.