POST api/WidevineProtectionInfoCredentials
Creates new credentials.
Request Information
URI Parameters
None.
Body Parameters
New credentials.
NewWidevineProtectionInfoCredentials| Name | Description | Type | Additional information |
|---|---|---|---|
| ProviderName |
The name of the provider. |
string |
Required Max length: 128 Min length: 1 |
| SigningKey |
The key to use for signing. If not provided, it will be automatically generated. |
Collection of byte |
Max length: 32 Min length: 32 |
| SigningIv |
The initialization vector to use for signing. If not provided, it will be automatically generated. |
Collection of byte |
Max length: 16 Min length: 16 |
Request Formats
application/json, text/json
Sample:
{
"ProviderName": "sample string 1",
"SigningKey": "QEA=",
"SigningIv": "QEA="
}
Response Information
Resource Description
WidevineProtectionInfoCredentials| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
The ID of the credentials. |
globally unique identifier |
None. |
| ProviderName |
The name of the provider. |
string |
Required Max length: 128 Min length: 1 |
| SigningKey |
The key to use for signing. |
Collection of byte |
Required Max length: 32 Min length: 32 |
| SigningIv |
The initialization vector to use for signing. |
Collection of byte |
Required Max length: 16 Min length: 16 |
Status Codes
All HTTP status codes must be expected, but the following status codes are the most probable:
- Created (201) - Credentials are successfully added.
- BadRequest (400) - The data for new credentials is invalid.
Response Formats
application/json, text/json
Sample:
{
"Id": "15994d65-5f16-4edb-9f43-451309c0c7b0",
"ProviderName": "sample string 2",
"SigningKey": "QEA=",
"SigningIv": "QEA="
}