POST api/v1/portals/{portalUid}/disciplines
Creates the discipline.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| portalUid |
The portal 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": "9959981b-f662-4f5d-86ef-068c78998f08",
"Company": "0b312dbd-dbe4-400a-921f-3a613503ae1b"
}
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>0b312dbd-dbe4-400a-921f-3a613503ae1b</Company> <Name>sample string 1</Name> <ParentDiscipline>9959981b-f662-4f5d-86ef-068c78998f08</ParentDiscipline> </Discipline>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Returns response message.
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.