PUT api/campuses/{id}
Update an existing Campus.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The primary key of the Campus record in the Hobsons database. |
integer |
Required |
Body Parameters
The Campus object which is passed in via the request body.
CampusDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
The primary key of the record in the Hobsons database. |
integer |
None. |
| Name | string |
Required String length: inclusive between 0 and 100 |
|
| Code |
The client's system code for this record. |
string |
Required String length: inclusive between 0 and 30 |
| Position |
The position number among the collection of records. |
integer |
Range: inclusive between 1 and 99999999 |
| Inactive | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Code": "sample string 3",
"Position": 1,
"Inactive": true
}
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1