PUT api/ContentKeys/{id}
Updates a content key.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The ID of the content key to update. |
globally unique identifier |
Required |
Body Parameters
The new data for the content key.
UpdatedContentKey| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
The name of the content key. |
string |
Max length: 256 Min length: 1 |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1"
}
Response Information
Resource Description
ContentKey| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
The ID of the content key. |
globally unique identifier |
Required |
| Name |
The name of the content key. |
string |
Max length: 256 Min length: 1 |
| Created |
The date when the content key was created (in the ISO 8601 format). |
date |
Required |
| Updated |
The date when the content key was updated last time (in the ISO 8601 format). |
date |
None. |
| CreationMethod |
The category of the log entry. Where: 0 is "Random"; 1 is "KeySeed"; 2 is "Import". |
byte |
Required |
Status Codes
All HTTP status codes must be expected, but the following status codes are the most probable:
- OK (200) - The content key is successfully updated.
- BadRequest (400) - The ID of the content key or the updated data for the content key is invalid.
- NotFound (404) - The content key with the specified ID is not found.
Response Formats
application/json, text/json
Sample:
{
"Id": "f989f744-7fb7-4a76-950e-88d4fa0064c0",
"Name": "sample string 2",
"Created": "2025-10-26T03:01:59.0768493+00:00",
"Updated": "2025-10-26T03:01:59.0768493+00:00",
"CreationMethod": 64
}