PUT api/RestStop/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

RestStop
NameDescriptionTypeAdditional information
Id

integer

None.

AddressId

integer

None.

NanId

globally unique identifier

None.

MapId

integer

None.

Name

string

None.

EmailAddress

string

None.

Telephone

string

None.

Mobile

string

None.

Description

string

None.

Added

date

None.

Updated

date

None.

Address

Address

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "AddressId": 1,
  "NanId": "90daa4dc-0a17-4e20-9d4e-d823a1026fb1",
  "MapId": 3,
  "Name": "sample string 4",
  "EmailAddress": "sample string 5",
  "Telephone": "sample string 6",
  "Mobile": "sample string 7",
  "Description": "sample string 8",
  "Added": "2025-01-09T07:52:26.0715579+00:00",
  "Updated": "2025-01-09T07:52:26.0715579+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="AddressId"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="NanId"

90daa4dc-0a17-4e20-9d4e-d823a1026fb1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="MapId"

3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Name"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="EmailAddress"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Telephone"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Mobile"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Description"

sample string 8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Added"

2025-01-09T07:52:26.0715579+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Updated"

2025-01-09T07:52:26.0715579+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Address.Id"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Address.Address1"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Address.Address2"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Address.Address3"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Address.Town"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Address.County"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Address.Postcode"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Address.What3Words"

sample string 8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Address.Latitude"

1.1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Address.Longitude"

1.1
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

None.