PATCH api/WidevineDataSets/{id}

Updates a data set with only the provided fields. If the PATCH method cannot be used, this endpoint can still be reached by using the POST method and setting the "X-HTTP-Method-Override" header to "PATCH".

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

PatchedWidevineDataSet
NameDescriptionTypeAdditional information
Name

The name of the data set.

string

Max length: 256

Min length: 1

IsDefault

Indicates whether the certificate must be treated as the default one. In case of multiple certificates, the certificate that is made default the latest will be returned.

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "IsDefault": true
}

Response Information

Resource Description

WidevineDataSet
NameDescriptionTypeAdditional information
Id

The ID of the data set.

globally unique identifier

Required

Name

The name of the data set.

string

None.

ServiceCertificateSerial

The serial number of the service certificate.

Collection of byte

Required

Max length: 256

Min length: 1

Created

The date when the data set was created (in the ISO 8601 format).

date

Required

Updated

The date when the Widevine data set was updated last time (in the ISO 8601 format).

date

None.

MadeDefault

The date when the Widevine data set was made as the default one (in the ISO 8601 format). There may be multiple key seeds that were made as the default ones, but only one key seed will be treated as the default one. The default key seed is the last key seed that was made as the default one. If no key seeds were ever made as the default ones, the oldest key seed will be treated as the default one.

date

None.

Status Codes

All HTTP status codes must be expected, but the following status codes are the most probable:

  • OK (200) - The data set is successfully patched.
  • BadRequest (400) - The patch data for the data set is invalid.
  • NotFound (404) - The data set with the specified ID is not found.

Response Formats

application/json, text/json

Sample:
{
  "Id": "f0354668-f359-4c31-b24c-dce652382e6d",
  "Name": "sample string 2",
  "ServiceCertificateSerial": "QEA=",
  "Created": "2024-09-24T02:28:41.0105267+00:00",
  "Updated": "2024-09-24T02:28:41.0105267+00:00",
  "MadeDefault": "2024-09-24T02:28:41.0105267+00:00"
}