POST api/catalog/catalogs

Request Information

URI Parameters

None.

Body Parameters

CreateCatalogRequest
NameDescriptionTypeAdditional information
Name

string

Required

String length: inclusive between 0 and 200

Version

string

Required

String length: inclusive between 0 and 50

ParentCatalogId

integer

None.

Status

string

String length: inclusive between 0 and 50

CatalogPathSegment

string

String length: inclusive between 0 and 200

OperationContext

string

Matching regular expression pattern: ^(manual|import)$

String length: inclusive between 0 and 50

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Version": "sample string 2",
  "ParentCatalogId": 1,
  "Status": "sample string 3",
  "CatalogPathSegment": "sample string 4",
  "OperationContext": "sample string 5"
}

application/xml, text/xml

Sample:
<CreateCatalogRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TomJames.API.Areas.CatalogManagement.Models.Request">
  <CatalogPathSegment>sample string 4</CatalogPathSegment>
  <Name>sample string 1</Name>
  <OperationContext>sample string 5</OperationContext>
  <ParentCatalogId>1</ParentCatalogId>
  <Status>sample string 3</Status>
  <Version>sample string 2</Version>
</CreateCatalogRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CreateCatalogRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.