POST api/FairPlayDataSets
Creates a new FairPlay data set.
Request Information
URI Parameters
None.
Body Parameters
Data to use for the new data set.
NewFairPlayDataSet| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
The name of the data set. |
string |
Max length: 256 Min length: 1 |
| ApplicationSecretKey |
The application secret key. |
Collection of byte |
Required Max length: 16 Min length: 16 |
| ApplicationCertificate |
The X.509 application certificate in DER format. |
Collection of byte |
Required |
| PrivateKey |
The 1024-bit RSA private key in the PKCS#1 PEM format, not password protected. |
Collection of byte |
Required |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"ApplicationSecretKey": "QEA=",
"ApplicationCertificate": "QEA=",
"PrivateKey": "QEA="
}
Response Information
Resource Description
FairPlayDataSet| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
The ID of the data set. |
globally unique identifier |
Required |
| Name |
The name of the data set. |
string |
None. |
| CertificateHash |
The hash of the certificate. |
Collection of byte |
Required Max length: 20 Min length: 20 |
| Created |
The date when the data set was created (in the ISO 8601 format). |
date |
Required |
| Updated |
The date when the data set was updated last time (in the ISO 8601 format). |
date |
None. |
Status Codes
All HTTP status codes must be expected, but the following status codes are the most probable:
- Created (201) - The data set is successfully added.
- BadRequest (400) - The data for a new data set is invalid.
Response Formats
application/json, text/json
Sample:
{
"Id": "3683f2e9-58a5-4220-9a4d-474a8940cafe",
"Name": "sample string 2",
"CertificateHash": "QEA=",
"Created": "2025-10-26T13:39:13.6267154+00:00",
"Updated": "2025-10-26T13:39:13.6267154+00:00"
}