POST api/WidevineProtectionInfoCredentials

Creates new credentials.

Request Information

URI Parameters

None.

Body Parameters

New credentials.

NewWidevineProtectionInfoCredentials
NameDescriptionTypeAdditional 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
NameDescriptionTypeAdditional 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": "682301bb-6ebe-416a-918c-7e6d78d63b8f",
  "ProviderName": "sample string 2",
  "SigningKey": "QEA=",
  "SigningIv": "QEA="
}