| Method | PUT | ||
| Path | /res/{resName}?{name}={value} | ||
| Query Params | Zero or more name-value pairs. Use column labels, not names, as defined in the SQL Resource query. Value encoding:
|
||
| Request body | Attribute values for update on rows matching query params. See Null/Not Null Operators for more info on null values. | Content-Type: application/x-www-form-urlencoded | |
| Response body | Number of rows updated | Response.xsd | Content-Type: application/xml or application/json |
PUT /restsql/res/Film?title=DARK%25 HTTP/1.1 Content-Type: application/x-www-form-urlencoded Accept: application/xml rating=R&rental_duration=2
HTTP/1.1 200 OK Content-Type: application/xml <writeResponse rowsAffected="3" />
PUT /restsql/res/Film?title=DARK%25 HTTP/1.1 Content-Type: application/x-www-form-urlencoded Accept: application/json rating=R&rental_duration=2
HTTP/1.1 200 OK
Content-Type: application/json
{ "rowsAffected": 3 }