PUT api/News/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
NewsName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
Title | string |
None. |
|
Body | string |
None. |
|
Category | string |
None. |
|
Published | date |
None. |
|
Created | date |
None. |
|
UserId | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": 1, "Title": "sample string 2", "Body": "sample string 3", "Category": "sample string 4", "Published": "2025-04-28T16:06:53.9542482+02:00", "Created": "2025-04-28T16:06:53.9542482+02:00", "UserId": "sample string 7" }
application/xml, text/xml
Sample:
<News xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GRUBER.Tennis.App.Server.Models"> <Body>sample string 3</Body> <Category>sample string 4</Category> <Created>2025-04-28T16:06:53.9542482+02:00</Created> <ID>1</ID> <Published>2025-04-28T16:06:53.9542482+02:00</Published> <Title>sample string 2</Title> <UserId>sample string 7</UserId> </News>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.