Available in Classic and VPC
Enable a site.
Request
This section describes the request format. The method and URI are as follows:
| Method | URI |
|---|---|
| PUT | /api/v1/sites/{siteId}/on |
Request headers
For information about the headers common to all One Click Multi DRM APIs, see One Click Multi DRM request headers.
Request path parameters
You can use the following path parameters with your request:
| Field | Type | Required | Description |
|---|---|---|---|
siteId |
String | Required | Site ID
|
Request example
The request example is as follows:
curl --location --request PUT 'https://multi-drm.apigw.ntruss.com/api/v1/sites/drm-20250903141775-*****/on' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--header 'x-ncp-region_code: KR'
Response
This section describes the response format.
Response body
The response body includes the following data:
| Field | Type | Required | Description |
|---|---|---|---|
success |
Boolean | - | API processing result
|
content |
Object | - | Site details |
content.disabled |
Boolean | - | Whether Sub Account is disabled
|
content.siteId |
String | - | Site ID |
content.siteName |
String | - | Site name |
content.siteStatus |
String | - | Site status
|
content.siteEnabledYn |
Boolean | - | Site activation status
|
content.policyId |
Integer | - | DRM policy ID
|
content.policyName |
String | - | Policy name
|
content.fairPlayCert |
Object | - | FairPlay Streaming authentication information |
content.fairPlayCert.certFile |
String | - | FPS certificate
|
content.fairPlayCert.privateKey |
String | - | Private key
|
content.fairPlayCert.privateEncryptedString |
String | - | Passphrase for opening the private key file |
content.fairPlayCert.secretKey |
String | - | Application Secret Key (ASK) string
|
content.statistics |
Object | - | Site statistics information |
content.siteCreatedTime |
Integer | - | Site creation date and time
|
content.siteUpdatedTime |
Integer | - | Site modification date and time
|
Response status codes
For information about the response status codes common to all One Click Multi DRM APIs, see One Click Multi DRM response status codes.
Response example
The response example is as follows:
{
"success": true,
"content": {
"disabled": false,
"siteId": "drm-20250903141775-*****",
"siteName": "myDrmSite1",
"siteStatus": "READY",
"siteEnabledYn": true,
"policyId": 0,
"policyName": "Basic",
"fairPlayCert": {
"certFile": "myFairPlayCert.cer",
"privateKey": "myFairPlayCertPrivateKey.pem",
"privateEncryptedString": "***********",
"secretKey": "***********"
},
"statistics": {},
"siteCreatedTime": 1756876670519,
"siteUpdatedTime": 1756954234317
}
}