POST api/datafiles
Creates a DataFile entity and returns the new id.
Request Information
URI Parameters
None.
Body Parameters
The data file model to create with.
DataFileDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
Required String length: inclusive between 0 and 80 |
|
| Path | string |
String length: inclusive between 0 and 512 |
|
| UserId | globally unique identifier |
None. |
|
| IsInLibrary | boolean |
None. |
|
| CreationDate | date |
None. |
|
| SchemaId | globally unique identifier |
Required |
|
| FileData | Collection of byte |
None. |
|
| OriginalRecordCount | integer |
None. |
|
| PostSuppressionRecordCount | integer |
None. |
|
| ByteCount | integer |
None. |
|
| TenantId | globally unique identifier |
None. |
|
| FolderId | globally unique identifier |
None. |
|
| ViewPermissionGroupId | globally unique identifier |
None. |
|
| EditPermissionGroupId | globally unique identifier |
None. |
|
| DeletePermissionGroupId | globally unique identifier |
None. |
|
| CanEdit | boolean |
None. |
|
| CanDelete | boolean |
None. |
|
| ExpiryDate | date |
None. |
|
| PublishDate | date |
None. |
|
| IsPurchaseData | boolean |
None. |
|
| DataSource | string |
String length: inclusive between 0 and 512 |
|
| MaxUseCount | integer |
None. |
|
| IsSelectable | boolean |
None. |
|
| DataListId | globally unique identifier |
None. |
|
| DataFileExtension | string |
None. |
|
| ReasonForSuppression | string |
String length: inclusive between 0 and 512 |
|
| DataFileProperties | Collection of DataFilePropertyDto |
None. |
|
| Recipients | Collection of RecipientDto |
None. |
|
| AuditLogs | Collection of DataFileAuditLogDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"AuditLogs": [
{
"Id": "1709a5f2-0ffb-41d5-bc44-b0ef4186d8ae",
"DataFileId": "ec718424-792d-4277-b495-4d941bb6f9c9",
"CreationDateUtc": "2026-01-09T14:32:40.6885212+00:00",
"ActionType": 0,
"ChangedByUserId": "aa1f0ae1-001e-4c68-976e-7eafb63f3b75",
"Description": "sample string 5"
},
{
"Id": "1709a5f2-0ffb-41d5-bc44-b0ef4186d8ae",
"DataFileId": "ec718424-792d-4277-b495-4d941bb6f9c9",
"CreationDateUtc": "2026-01-09T14:32:40.6885212+00:00",
"ActionType": 0,
"ChangedByUserId": "aa1f0ae1-001e-4c68-976e-7eafb63f3b75",
"Description": "sample string 5"
}
],
"Id": "9f47e0c7-87fd-4ef3-8ed7-03521c77994b",
"Name": "sample string 2",
"Path": "sample string 3",
"UserId": "af8231a8-4b2a-4eda-a40d-89c9d331c53e",
"IsInLibrary": true,
"CreationDate": "2026-01-09T14:32:40.6885212+00:00",
"SchemaId": "de416369-81c6-4d17-aa55-2d4def6ec0fa",
"FileData": "QEA=",
"OriginalRecordCount": 8,
"PostSuppressionRecordCount": 9,
"ByteCount": 10,
"TenantId": "4238dbf8-f836-41c1-8150-293c1aeb9b73",
"FolderId": "40a32919-1d39-4968-8540-513596c46385",
"ViewPermissionGroupId": "589368df-f8be-4dec-aeeb-328dba8e9b96",
"EditPermissionGroupId": "b6688ddd-5895-43e8-abda-9a20f9de5e30",
"DeletePermissionGroupId": "72db01c6-ef31-4de9-b0af-e80981348e8c",
"CanEdit": true,
"CanDelete": true,
"ExpiryDate": "2026-01-09T14:32:40.6885212+00:00",
"PublishDate": "2026-01-09T14:32:40.6885212+00:00",
"IsPurchaseData": true,
"DataSource": "sample string 14",
"MaxUseCount": 15,
"IsSelectable": true,
"DataListId": "b273d12d-501a-4541-a69e-8777ce80fd9c",
"DataFileExtension": "sample string 17",
"ReasonForSuppression": "sample string 18",
"DataFileProperties": [
{
"Id": "16b512c6-bda3-4eb5-bea6-ff7216b021bd",
"Name": "sample string 2",
"Value": "sample string 3",
"CreationDate": "2026-01-09T14:32:40.6885212+00:00",
"DataFileId": "64bfc76b-e900-42a6-8fb2-d2b331b60bff"
},
{
"Id": "16b512c6-bda3-4eb5-bea6-ff7216b021bd",
"Name": "sample string 2",
"Value": "sample string 3",
"CreationDate": "2026-01-09T14:32:40.6885212+00:00",
"DataFileId": "64bfc76b-e900-42a6-8fb2-d2b331b60bff"
}
],
"Recipients": [
{
"Id": "f1b89d51-9ccf-4a8f-8b9f-6e7d7fb5e75b",
"TenantId": "65441ea7-91f8-4609-bfbd-e483bd9c82d4",
"ExternalId": "sample string 3",
"CreationDate": "2026-01-09T14:32:40.6885212+00:00"
},
{
"Id": "f1b89d51-9ccf-4a8f-8b9f-6e7d7fb5e75b",
"TenantId": "65441ea7-91f8-4609-bfbd-e483bd9c82d4",
"ExternalId": "sample string 3",
"CreationDate": "2026-01-09T14:32:40.6885212+00:00"
}
]
}
application/xml, text/xml
Sample:
<DataFileDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.DataManagement.Models">
<AuditLogs>
<DataFileAuditLogDto>
<ActionType>Create</ActionType>
<ChangedByUserId>aa1f0ae1-001e-4c68-976e-7eafb63f3b75</ChangedByUserId>
<CreationDateUtc>2026-01-09T14:32:40.6885212+00:00</CreationDateUtc>
<DataFileId>ec718424-792d-4277-b495-4d941bb6f9c9</DataFileId>
<Description>sample string 5</Description>
<Id>1709a5f2-0ffb-41d5-bc44-b0ef4186d8ae</Id>
</DataFileAuditLogDto>
<DataFileAuditLogDto>
<ActionType>Create</ActionType>
<ChangedByUserId>aa1f0ae1-001e-4c68-976e-7eafb63f3b75</ChangedByUserId>
<CreationDateUtc>2026-01-09T14:32:40.6885212+00:00</CreationDateUtc>
<DataFileId>ec718424-792d-4277-b495-4d941bb6f9c9</DataFileId>
<Description>sample string 5</Description>
<Id>1709a5f2-0ffb-41d5-bc44-b0ef4186d8ae</Id>
</DataFileAuditLogDto>
</AuditLogs>
<ByteCount>10</ByteCount>
<CanDelete>true</CanDelete>
<CanEdit>true</CanEdit>
<CreationDate>2026-01-09T14:32:40.6885212+00:00</CreationDate>
<DataFileExtension>sample string 17</DataFileExtension>
<DataFileProperties>
<DataFilePropertyDto>
<CreationDate>2026-01-09T14:32:40.6885212+00:00</CreationDate>
<DataFileId>64bfc76b-e900-42a6-8fb2-d2b331b60bff</DataFileId>
<Id>16b512c6-bda3-4eb5-bea6-ff7216b021bd</Id>
<Name>sample string 2</Name>
<Value>sample string 3</Value>
</DataFilePropertyDto>
<DataFilePropertyDto>
<CreationDate>2026-01-09T14:32:40.6885212+00:00</CreationDate>
<DataFileId>64bfc76b-e900-42a6-8fb2-d2b331b60bff</DataFileId>
<Id>16b512c6-bda3-4eb5-bea6-ff7216b021bd</Id>
<Name>sample string 2</Name>
<Value>sample string 3</Value>
</DataFilePropertyDto>
</DataFileProperties>
<DataListId>b273d12d-501a-4541-a69e-8777ce80fd9c</DataListId>
<DataSource>sample string 14</DataSource>
<DeletePermissionGroupId>72db01c6-ef31-4de9-b0af-e80981348e8c</DeletePermissionGroupId>
<EditPermissionGroupId>b6688ddd-5895-43e8-abda-9a20f9de5e30</EditPermissionGroupId>
<ExpiryDate>2026-01-09T14:32:40.6885212+00:00</ExpiryDate>
<FileData>QEA=</FileData>
<FolderId>40a32919-1d39-4968-8540-513596c46385</FolderId>
<Id>9f47e0c7-87fd-4ef3-8ed7-03521c77994b</Id>
<IsInLibrary>true</IsInLibrary>
<IsPurchaseData>true</IsPurchaseData>
<IsSelectable>true</IsSelectable>
<MaxUseCount>15</MaxUseCount>
<Name>sample string 2</Name>
<OriginalRecordCount>8</OriginalRecordCount>
<Path>sample string 3</Path>
<PostSuppressionRecordCount>9</PostSuppressionRecordCount>
<PublishDate>2026-01-09T14:32:40.6885212+00:00</PublishDate>
<ReasonForSuppression>sample string 18</ReasonForSuppression>
<Recipients>
<RecipientDto>
<CreationDate>2026-01-09T14:32:40.6885212+00:00</CreationDate>
<ExternalId>sample string 3</ExternalId>
<Id>f1b89d51-9ccf-4a8f-8b9f-6e7d7fb5e75b</Id>
<TenantId>65441ea7-91f8-4609-bfbd-e483bd9c82d4</TenantId>
</RecipientDto>
<RecipientDto>
<CreationDate>2026-01-09T14:32:40.6885212+00:00</CreationDate>
<ExternalId>sample string 3</ExternalId>
<Id>f1b89d51-9ccf-4a8f-8b9f-6e7d7fb5e75b</Id>
<TenantId>65441ea7-91f8-4609-bfbd-e483bd9c82d4</TenantId>
</RecipientDto>
</Recipients>
<SchemaId>de416369-81c6-4d17-aa55-2d4def6ec0fa</SchemaId>
<TenantId>4238dbf8-f836-41c1-8150-293c1aeb9b73</TenantId>
<UserId>af8231a8-4b2a-4eda-a40d-89c9d331c53e</UserId>
<ViewPermissionGroupId>589368df-f8be-4dec-aeeb-328dba8e9b96</ViewPermissionGroupId>
</DataFileDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.