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": "52b5e5ac-70aa-476b-af9e-37cf858ccf42",
"DataFileId": "95fb5e4f-cf13-419d-a8ce-106b5d6bfd31",
"CreationDateUtc": "2026-01-10T12:28:16.2163375+00:00",
"ActionType": 0,
"ChangedByUserId": "f09cbba8-a295-4517-9c93-85980cc2a816",
"Description": "sample string 5"
},
{
"Id": "52b5e5ac-70aa-476b-af9e-37cf858ccf42",
"DataFileId": "95fb5e4f-cf13-419d-a8ce-106b5d6bfd31",
"CreationDateUtc": "2026-01-10T12:28:16.2163375+00:00",
"ActionType": 0,
"ChangedByUserId": "f09cbba8-a295-4517-9c93-85980cc2a816",
"Description": "sample string 5"
}
],
"Id": "f9d63363-b00a-4d5c-818f-6c479dd06aa1",
"Name": "sample string 2",
"Path": "sample string 3",
"UserId": "52e38dd7-0854-4cdf-9118-424f6f77e5b7",
"IsInLibrary": true,
"CreationDate": "2026-01-10T12:28:16.2163375+00:00",
"SchemaId": "e6c6986f-5355-4b1f-bc32-36d94bad4651",
"FileData": "QEA=",
"OriginalRecordCount": 8,
"PostSuppressionRecordCount": 9,
"ByteCount": 10,
"TenantId": "4eddf05f-b140-4a3d-9219-a586804fd4de",
"FolderId": "20206a91-720c-4fe5-b68f-4fe3d15c0cab",
"ViewPermissionGroupId": "169ebc65-9deb-49cc-a6c9-ebe3487a62ca",
"EditPermissionGroupId": "87c33c17-0eb9-4ab6-94a9-14aa33f2a618",
"DeletePermissionGroupId": "75ee8160-0bc1-499c-af81-a8fdb9351543",
"CanEdit": true,
"CanDelete": true,
"ExpiryDate": "2026-01-10T12:28:16.2163375+00:00",
"PublishDate": "2026-01-10T12:28:16.2163375+00:00",
"IsPurchaseData": true,
"DataSource": "sample string 14",
"MaxUseCount": 15,
"IsSelectable": true,
"DataListId": "f61a71d2-0802-4f24-994e-2f29ef5254ac",
"DataFileExtension": "sample string 17",
"ReasonForSuppression": "sample string 18",
"DataFileProperties": [
{
"Id": "f0917c89-c6a1-4d4e-b1da-570241427667",
"Name": "sample string 2",
"Value": "sample string 3",
"CreationDate": "2026-01-10T12:28:16.2163375+00:00",
"DataFileId": "361c1d00-076d-4f80-92be-fa8842c9a37c"
},
{
"Id": "f0917c89-c6a1-4d4e-b1da-570241427667",
"Name": "sample string 2",
"Value": "sample string 3",
"CreationDate": "2026-01-10T12:28:16.2163375+00:00",
"DataFileId": "361c1d00-076d-4f80-92be-fa8842c9a37c"
}
],
"Recipients": [
{
"Id": "0e9be7bd-9285-4500-b97c-fd67e18e68e3",
"TenantId": "63598748-5fde-4032-9800-cb3d289a1563",
"ExternalId": "sample string 3",
"CreationDate": "2026-01-10T12:28:16.2163375+00:00"
},
{
"Id": "0e9be7bd-9285-4500-b97c-fd67e18e68e3",
"TenantId": "63598748-5fde-4032-9800-cb3d289a1563",
"ExternalId": "sample string 3",
"CreationDate": "2026-01-10T12:28:16.2163375+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>f09cbba8-a295-4517-9c93-85980cc2a816</ChangedByUserId>
<CreationDateUtc>2026-01-10T12:28:16.2163375+00:00</CreationDateUtc>
<DataFileId>95fb5e4f-cf13-419d-a8ce-106b5d6bfd31</DataFileId>
<Description>sample string 5</Description>
<Id>52b5e5ac-70aa-476b-af9e-37cf858ccf42</Id>
</DataFileAuditLogDto>
<DataFileAuditLogDto>
<ActionType>Create</ActionType>
<ChangedByUserId>f09cbba8-a295-4517-9c93-85980cc2a816</ChangedByUserId>
<CreationDateUtc>2026-01-10T12:28:16.2163375+00:00</CreationDateUtc>
<DataFileId>95fb5e4f-cf13-419d-a8ce-106b5d6bfd31</DataFileId>
<Description>sample string 5</Description>
<Id>52b5e5ac-70aa-476b-af9e-37cf858ccf42</Id>
</DataFileAuditLogDto>
</AuditLogs>
<ByteCount>10</ByteCount>
<CanDelete>true</CanDelete>
<CanEdit>true</CanEdit>
<CreationDate>2026-01-10T12:28:16.2163375+00:00</CreationDate>
<DataFileExtension>sample string 17</DataFileExtension>
<DataFileProperties>
<DataFilePropertyDto>
<CreationDate>2026-01-10T12:28:16.2163375+00:00</CreationDate>
<DataFileId>361c1d00-076d-4f80-92be-fa8842c9a37c</DataFileId>
<Id>f0917c89-c6a1-4d4e-b1da-570241427667</Id>
<Name>sample string 2</Name>
<Value>sample string 3</Value>
</DataFilePropertyDto>
<DataFilePropertyDto>
<CreationDate>2026-01-10T12:28:16.2163375+00:00</CreationDate>
<DataFileId>361c1d00-076d-4f80-92be-fa8842c9a37c</DataFileId>
<Id>f0917c89-c6a1-4d4e-b1da-570241427667</Id>
<Name>sample string 2</Name>
<Value>sample string 3</Value>
</DataFilePropertyDto>
</DataFileProperties>
<DataListId>f61a71d2-0802-4f24-994e-2f29ef5254ac</DataListId>
<DataSource>sample string 14</DataSource>
<DeletePermissionGroupId>75ee8160-0bc1-499c-af81-a8fdb9351543</DeletePermissionGroupId>
<EditPermissionGroupId>87c33c17-0eb9-4ab6-94a9-14aa33f2a618</EditPermissionGroupId>
<ExpiryDate>2026-01-10T12:28:16.2163375+00:00</ExpiryDate>
<FileData>QEA=</FileData>
<FolderId>20206a91-720c-4fe5-b68f-4fe3d15c0cab</FolderId>
<Id>f9d63363-b00a-4d5c-818f-6c479dd06aa1</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-10T12:28:16.2163375+00:00</PublishDate>
<ReasonForSuppression>sample string 18</ReasonForSuppression>
<Recipients>
<RecipientDto>
<CreationDate>2026-01-10T12:28:16.2163375+00:00</CreationDate>
<ExternalId>sample string 3</ExternalId>
<Id>0e9be7bd-9285-4500-b97c-fd67e18e68e3</Id>
<TenantId>63598748-5fde-4032-9800-cb3d289a1563</TenantId>
</RecipientDto>
<RecipientDto>
<CreationDate>2026-01-10T12:28:16.2163375+00:00</CreationDate>
<ExternalId>sample string 3</ExternalId>
<Id>0e9be7bd-9285-4500-b97c-fd67e18e68e3</Id>
<TenantId>63598748-5fde-4032-9800-cb3d289a1563</TenantId>
</RecipientDto>
</Recipients>
<SchemaId>e6c6986f-5355-4b1f-bc32-36d94bad4651</SchemaId>
<TenantId>4eddf05f-b140-4a3d-9219-a586804fd4de</TenantId>
<UserId>52e38dd7-0854-4cdf-9118-424f6f77e5b7</UserId>
<ViewPermissionGroupId>169ebc65-9deb-49cc-a6c9-ebe3487a62ca</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.