Editing player
- Print
- PDF
Editing player
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
You have two deployment options for modifying the player in the console: develop environment and production environment. When modifying the player from the Open API, it is deployed to the production environment.
The following describes how you can modify the player.
Request
PUT {API_URL}/players/{player_no}
Request parameters
Field name | Required | Type | Restrictions | Description |
---|---|---|---|---|
player_no | Y | Integer | Path Parameter | Player number |
domains | Y | Array | Domain list | |
domains.type | Y | String | web / ios / aos | Select among the three |
domains.domain | Y | String | URL/package ID |
Success code
HttpStatusCode | Code | Message |
---|---|---|
200 | 200 | ok |
Errors
HttpStatusCode | Code | Message | Description |
---|---|---|---|
200 | 4707 | Body (JSON) pricing is missing or invalid | |
200 | 4702 | Body (JSON) domains is missing | |
200 | 4703 | Some domains in Body (JSON) domains are invalid (if type is web) | |
200 | 4705 | Some types in Body (JSON) domains are invalid | |
200 | 4708 | There are duplicate domains in Body (JSON) domains | |
200 | 4709 | Up to 5 domains can be added to Body (JSON) domains | |
200 | 4711 | Only 1 Body (JSON) app per OS can be added | |
200 | 4712 | At least 1 Body (JSON) web domain must be added | |
200 | 4713 | Body (JSON) name or web domains cannot be edited | |
200 | 4799 | Enter an option value for Body (JSON) |
Request example
PUT {API_URL}/player/1
HOST: vpe.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-timestamp:1521787414578
x-ncp-iam-access-key:6uxz1nKkcYwUjWRG5Q1V7NsW0i5jErlu2NjBXXgy
x-ncp-apigw-signature-v2:iJFK773KH0WwQ79PasqJ+ZGixtpDQ/abS57WGQdld2M=
x-ncp-region_code:KR
Request body
{
"domains": [{
"type":"web",
"domain":"http://domain.com"
},
{
"type":"ios",
"domain":"com.test.demo"
},
{
"type":"aos",
"domain":"com.aos.demo"
}]
}
Response example
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 26 Feb 2021 09:53:32 GMT
Content-Type: application/json;charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
x-ncp-trace-id: 36c9k60om4p3238cpmc9gm4cj4
{
"code": 200,
"message": "ok"
}
Was this article helpful?