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": "f2318bf6-5f45-4e70-b1ee-26b7c727665e",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "TenantId": "40ba015f-339d-4015-9afa-e6a8cd389148",
  "CreatorId": "18207a5a-4a3d-48c3-8ac0-6b3a5d2bb15d",
  "CreationDate": "2026-01-08T10:11:33.5056404+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": "c7f0d4c7-35f4-46db-a787-96999dc61946",
      "CreationDateUtc": "2026-01-08T10:11:33.5056404+00:00",
      "SchemaId": "c0a0d937-a0c2-4663-a036-66357d619108",
      "Name": "sample string 4"
    },
    {
      "Id": "c7f0d4c7-35f4-46db-a787-96999dc61946",
      "CreationDateUtc": "2026-01-08T10:11:33.5056404+00:00",
      "SchemaId": "c0a0d937-a0c2-4663-a036-66357d619108",
      "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-08T10:11:33.5056404+00:00</CreationDate>
  <CreatorId>18207a5a-4a3d-48c3-8ac0-6b3a5d2bb15d</CreatorId>
  <DataRetentionPeriod>11</DataRetentionPeriod>
  <DataValidationSchema>sample string 10</DataValidationSchema>
  <Description>sample string 3</Description>
  <DownloadableColumns>
    <DownloadableColumnDto>
      <CreationDateUtc>2026-01-08T10:11:33.5056404+00:00</CreationDateUtc>
      <Id>c7f0d4c7-35f4-46db-a787-96999dc61946</Id>
      <Name>sample string 4</Name>
      <SchemaId>c0a0d937-a0c2-4663-a036-66357d619108</SchemaId>
    </DownloadableColumnDto>
    <DownloadableColumnDto>
      <CreationDateUtc>2026-01-08T10:11:33.5056404+00:00</CreationDateUtc>
      <Id>c7f0d4c7-35f4-46db-a787-96999dc61946</Id>
      <Name>sample string 4</Name>
      <SchemaId>c0a0d937-a0c2-4663-a036-66357d619108</SchemaId>
    </DownloadableColumnDto>
  </DownloadableColumns>
  <FileExtension>sample string 7</FileExtension>
  <Id>f2318bf6-5f45-4e70-b1ee-26b7c727665e</Id>
  <IsDownloadable>true</IsDownloadable>
  <MaxUseCount>13</MaxUseCount>
  <Name>sample string 2</Name>
  <SampleFileData>QEA=</SampleFileData>
  <SampleFilePath>sample string 9</SampleFilePath>
  <TenantId>40ba015f-339d-4015-9afa-e6a8cd389148</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.