PUT api/v1/portals/{portalUid}/customer/disciplines/{disciplineGuid}
Updates the discipline by the specified discipline GUID.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| portalUid |
the customer portal |
globally unique identifier |
Required |
| disciplineGuid |
The discipline to update |
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": "85a50614-d57d-4d1d-aa52-461359121204",
"Company": "818658bc-3ce5-409c-9fcc-bb886bfed367"
}
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>818658bc-3ce5-409c-9fcc-bb886bfed367</Company> <Name>sample string 1</Name> <ParentDiscipline>85a50614-d57d-4d1d-aa52-461359121204</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.