POST api/Petition/Submit
Request Information
URI Parameters
None.
Body Parameters
PetitionEditRequestName | Description | Type | Additional information |
---|---|---|---|
Petition | Petition |
None. |
|
Contact | Contact |
None. |
|
ReToken | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "petition": { "subject": "sample string 1", "mainCategory": 1.0, "subCategory": 1.0, "townName": "sample string 2", "otherTown": "sample string 3", "villageName": "sample string 4", "latitude": "sample string 5", "longitude": "sample string 6", "content": "sample string 7" }, "contact": { "name": "sample string 1", "sex": "sample string 2", "email": "sample string 3", "tel": "sample string 4", "mobilePhone": "sample string 5", "city": "sample string 6", "area": "sample string 7", "address": "sample string 8", "birthDay": "2024-11-21T14:26:59.083584+08:00" }, "reToken": "sample string 1" }
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"