POST api/Subject/CreateSubjects

Request Information

URI Parameters

None.

Body Parameters

AddSubjectModel
NameDescriptionTypeAdditional information
Name

string

None.

CategoryId

globally unique identifier

None.

UserInfoId

globally unique identifier

None.

AvalibleLanguages

Collection of LanguageViewModel

None.

SubjectCategories

Collection of SubjectCategoryViewModel

None.

AvailableVoices

Collection of integer

None.

LanguageId

globally unique identifier

None.

Description

string

None.

IsImport

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "CategoryId": "7473ca9b-e436-4aeb-90dc-ab58453db309",
  "UserInfoId": "da974baf-1d81-4707-969c-3c1902283dc2",
  "AvalibleLanguages": [
    {
      "LanguageName": "sample string 1",
      "LanguageId": "4ac11cb3-be98-47db-9ea5-3a006e5f65ae",
      "LanguageCode": "sample string 3"
    },
    {
      "LanguageName": "sample string 1",
      "LanguageId": "4ac11cb3-be98-47db-9ea5-3a006e5f65ae",
      "LanguageCode": "sample string 3"
    }
  ],
  "AvailableVoices": [
    1,
    2
  ],
  "LanguageId": "e8441851-d46e-429f-9b67-a6b9317e819d",
  "Description": "sample string 5",
  "IsImport": true
}

application/octet-stream, text/plain

Sample:
{"Name":"sample string 1","CategoryId":"7473ca9b-e436-4aeb-90dc-ab58453db309","UserInfoId":"da974baf-1d81-4707-969c-3c1902283dc2","AvalibleLanguages":[{"LanguageName":"sample string 1","LanguageId":"4ac11cb3-be98-47db-9ea5-3a006e5f65ae","LanguageCode":"sample string 3"},{"LanguageName":"sample string 1","LanguageId":"4ac11cb3-be98-47db-9ea5-3a006e5f65ae","LanguageCode":"sample string 3"}],"AvailableVoices":[1,2],"LanguageId":"e8441851-d46e-429f-9b67-a6b9317e819d","Description":"sample string 5","IsImport":true}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/octet-stream, text/plain

Sample:

Sample not available.