POST api/schemas

Creates a schema entity.

Request Information

URI Parameters

None.

Body Parameters

The schema model to create with.

SchemaDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

Required

String length: inclusive between 0 and 50

Description

string

None.

TenantId

globally unique identifier

Required

CreatorId

globally unique identifier

Required

CreationDate

date

Required

FileExtension

string

Required

String length: inclusive between 0 and 10

ByteCount

integer

None.

SampleFilePath

string

String length: inclusive between 0 and 512

SampleFileData

Collection of byte

None.

DataValidationSchema

string

None.

DataRetentionPeriod

integer

Range: inclusive between 0 and 365

IsDownloadable

boolean

None.

MaxUseCount

integer

None.

AllowSuppressions

boolean

None.

DownloadableColumns

Collection of DownloadableColumnDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "98b5c1b2-33b7-4673-8917-12a5ae570cac",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "TenantId": "81be7804-9dcf-4752-ba88-1c9c3e874f14",
  "CreatorId": "b93d1abb-4ab1-49ff-93f3-d1302df2729c",
  "CreationDate": "2026-01-09T14:31:24.9961408+00:00",
  "FileExtension": "sample string 7",
  "ByteCount": 8,
  "SampleFilePath": "sample string 9",
  "SampleFileData": "QEA=",
  "DataValidationSchema": "sample string 10",
  "DataRetentionPeriod": 11,
  "IsDownloadable": true,
  "MaxUseCount": 13,
  "AllowSuppressions": true,
  "DownloadableColumns": [
    {
      "Id": "70b20cf3-5728-4052-abff-2392758bcbad",
      "CreationDateUtc": "2026-01-09T14:31:24.9961408+00:00",
      "SchemaId": "7accd7bb-b1a4-4972-be4c-339b80cb20f4",
      "Name": "sample string 4"
    },
    {
      "Id": "70b20cf3-5728-4052-abff-2392758bcbad",
      "CreationDateUtc": "2026-01-09T14:31:24.9961408+00:00",
      "SchemaId": "7accd7bb-b1a4-4972-be4c-339b80cb20f4",
      "Name": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<SchemaDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.DataManagement.Models">
  <AllowSuppressions>true</AllowSuppressions>
  <ByteCount>8</ByteCount>
  <CreationDate>2026-01-09T14:31:24.9961408+00:00</CreationDate>
  <CreatorId>b93d1abb-4ab1-49ff-93f3-d1302df2729c</CreatorId>
  <DataRetentionPeriod>11</DataRetentionPeriod>
  <DataValidationSchema>sample string 10</DataValidationSchema>
  <Description>sample string 3</Description>
  <DownloadableColumns>
    <DownloadableColumnDto>
      <CreationDateUtc>2026-01-09T14:31:24.9961408+00:00</CreationDateUtc>
      <Id>70b20cf3-5728-4052-abff-2392758bcbad</Id>
      <Name>sample string 4</Name>
      <SchemaId>7accd7bb-b1a4-4972-be4c-339b80cb20f4</SchemaId>
    </DownloadableColumnDto>
    <DownloadableColumnDto>
      <CreationDateUtc>2026-01-09T14:31:24.9961408+00:00</CreationDateUtc>
      <Id>70b20cf3-5728-4052-abff-2392758bcbad</Id>
      <Name>sample string 4</Name>
      <SchemaId>7accd7bb-b1a4-4972-be4c-339b80cb20f4</SchemaId>
    </DownloadableColumnDto>
  </DownloadableColumns>
  <FileExtension>sample string 7</FileExtension>
  <Id>98b5c1b2-33b7-4673-8917-12a5ae570cac</Id>
  <IsDownloadable>true</IsDownloadable>
  <MaxUseCount>13</MaxUseCount>
  <Name>sample string 2</Name>
  <SampleFileData>QEA=</SampleFileData>
  <SampleFilePath>sample string 9</SampleFilePath>
  <TenantId>81be7804-9dcf-4752-ba88-1c9c3e874f14</TenantId>
</SchemaDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.