PUT api/v1/disciplines/{disciplineUid}
Updates the discipline by the specified discipline UID.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| disciplineUid |
The discipline UID. |
globally unique identifier |
Required |
Body Parameters
The discipline.
Discipline| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
The discipline name. |
string |
Required String length: inclusive between 0 and 50 |
| ParentDiscipline |
The parent discipline. |
globally unique identifier |
None. |
| Company |
The specific company we are creating the discipline within |
globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"ParentDiscipline": "556187e5-4f99-4d40-9440-f6487bc4839f",
"Company": "889c8e00-eb92-441d-843a-847925ecac99"
}
application/xml, text/xml
Sample:
<Discipline xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eclipse.WebApi.Common.Models"> <Company>889c8e00-eb92-441d-843a-847925ecac99</Company> <Name>sample string 1</Name> <ParentDiscipline>556187e5-4f99-4d40-9440-f6487bc4839f</ParentDiscipline> </Discipline>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Returns the updated discipline.
DisciplineViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
The discipline name. |
string |
None. |
| ParentDiscipline |
The parent discipline. |
DisciplineViewModel |
None. |
| Portal |
The portal. |
PortalViewModel |
None. |
| Company |
The company |
CompanyViewModel |
None. |
| DisciplineGuid |
The unique discipline identifier |
globally unique identifier |
None. |
| Uid |
The GUID. |
globally unique identifier |
None. |
| Links |
The links. |
Collection of Link |
None. |
| DateUpdated |
Last time the record was updated |
date |
None. |
| UpdatedBy |
Who updated the record last |
string |
None. |
Response Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.