POST api/v1/portals/{portalUid}/customer/disciplines

Creates the discipline.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
portalUid

The portal UID.

globally unique identifier

Required

Body Parameters

The discipline.

Discipline
NameDescriptionTypeAdditional 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": "51a6326b-806e-45c0-9a3f-3c44e70a3585",
  "Company": "cdc9186c-bfcd-4469-b555-b865608da5cd"
}

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>cdc9186c-bfcd-4469-b555-b865608da5cd</Company>
  <Name>sample string 1</Name>
  <ParentDiscipline>51a6326b-806e-45c0-9a3f-3c44e70a3585</ParentDiscipline>
</Discipline>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns response message.

DisciplineViewModel
NameDescriptionTypeAdditional 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.