Modifies a component of a production studio.
Operation description
You can call this operation to modify a production studio component, such as a text, image, or translation caption component.
QPS limits
The queries per second (QPS) limit for a single user is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation as needed.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:ModifyCasterComponent |
update |
*Caster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| CasterId |
string |
Yes |
The ID of the production studio.
Note
The name of the production studio in the list on the Cloud Production Studio page is the production studio ID. |
LIVEPRODUCER_POST-cn-0pp1czt**** |
| ComponentId |
string |
Yes |
The component ID. The ID is returned after you call the AddCasterComponent operation. |
05ab713c-676e-49c0-96ce-cc408da1**** |
| ComponentName |
string |
No |
The name of the component. The default value is the component ID. |
text01 |
| ComponentType |
string |
No |
The type of the component. Valid values:
|
text |
| Effect |
string |
No |
The display effect of the component. Valid values:
|
animateV |
| ComponentLayer |
string |
No |
The size and layout of the layer. The value is a JSON string. The following properties are supported:
|
{"HeightNormalized":"1","PositionRefer":"topRight","WidthNormalized":"0","PositionNormalized":["0.1","0.2"]} |
| TextLayerContent |
string |
No |
The properties of the text layer. The value is a JSON string. The following properties are supported: Important
This parameter is required if you set ComponentType to text.
|
{"BorderWidthNormalized":"1","SizeNormalized":"0.2","Color":"0x000000","FontName":"KaiTi","BorderColor":"0x000000","Text":"hello world!"} |
| ImageLayerContent |
string |
No |
The properties of the image layer. The value is a JSON string. Important
This parameter is required if you set ComponentType to image. MaterialId is the ID of the material in the media asset library. |
{"MaterialId":"6cf724c6ebfd4a59b5b3cec6f10d5ecf"} |
| CaptionLayerContent |
string |
No |
The properties of the caption layer. The value is a JSON string. The following properties are supported: Important
This parameter is required if you set ComponentType to caption.
|
{"BorderWidthNormalized":0.01,"SizeNormalized":0.05,"Color":"0x000000","LocationId":"RV01","SourceLan":"cn","FontName":"KaiTi","BorderColor":"0xffffff"} |
Production studio fonts
Font | Value of FontName |
KaiTi | KaiTi |
Alibaba PuHuiTi-Regular | AlibabaPuHuiTi-Regular |
Alibaba PuHuiTi-Bold | AlibabaPuHuiTi-Bold |
Alibaba PuHuiTi-Light | AlibabaPuHuiTi-Light |
Source Han Sans-Regular | NotoSansHans-Regular |
Source Han Sans-Bold | NotoSansHans-Bold |
Source Han Sans-Light | NotoSansHans-Light |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| ComponentId |
string |
The component ID. You can use this ID as a request parameter to query the components of the production studio. |
05ab713c-676e-49c0-96ce-cc408da1**** |
| RequestId |
string |
The request ID. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
Examples
Success response
JSON format
{
"ComponentId": "05ab713c-676e-49c0-96ce-cc408da1****",
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidUserId.Malformed | %s | |
| 400 | InvalidCasterId.Malformed | %s | |
| 400 | MissingParameter | %s | |
| 400 | InvalidParameter.Malformed | %s | |
| 400 | InvalidPositionNormalized.Malformed | %s | |
| 401 | IllegalOperation | %s | |
| 500 | InternalError | %s | |
| 404 | InvalidCaster.NotFound | %s | |
| 404 | InvalidComponent.NotFound | %s | |
| 404 | CanvasNotExist | %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.