Update a profile set
PUThttps://api.one.blendvision.com/bv/configuration/v1/profile-sets/:id
Modifies the details of an existing profile set using the specified id.
Request
Path Parameters
Required. The resource identifier of profile set.
Header Parameters
To invoke this API using api_token
, you need to set the x-bv-org-id
header to specify the organization for which you want to perform the action.
- application/json
Body
required
profile_set objectrequired
Required. The maximum number of appended profiles is 10.
Responses
- 200
- 400
- 401
- 403
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
profile_set object
{
"profile_set": {
"id": "768b3c1a-f091-4985-83d8-803bd078565c",
"multiple_audio_track": {
"lang_customizes": [],
"lang_from": "LANG_FROM_FIRST_TRACK"
},
"name": "test1",
"preset": false,
"profiles": [
{
"audio_bitrate": "192",
"b_frame": true,
"codec_profile": "CODEC_PROFILE_AUTO",
"frame_rate": "FRAME_RATE_60",
"gop_size": 2,
"id": "77a94c55-57f7-419d-8520-ee288251a748",
"level": "CODEC_PROFILE_LEVEL_AUTO",
"name": "2160p-40Mbps",
"preset": true,
"segment_duration": 6,
"standard": "RESOLUTION_TYPE_4K",
"video_bitrate": "40000",
"video_codec": "VIDEO_CODEC_H264",
"video_height": 2160,
"video_width": 3840
},
{
"audio_bitrate": "192",
"b_frame": true,
"codec_profile": "CODEC_PROFILE_AUTO",
"frame_rate": "FRAME_RATE_30",
"gop_size": 2,
"id": "e11f00a6-9989-4ffe-b685-acea84ab85dd",
"level": "CODEC_PROFILE_LEVEL_AUTO",
"name": "2160p-20Mbps",
"preset": true,
"segment_duration": 6,
"standard": "RESOLUTION_TYPE_4K",
"video_bitrate": "20000",
"video_codec": "VIDEO_CODEC_H264",
"video_height": 2160,
"video_width": 3840
},
{
"audio_bitrate": "128",
"b_frame": true,
"codec_profile": "CODEC_PROFILE_AUTO",
"frame_rate": "FRAME_RATE_60",
"gop_size": 2,
"id": "1024fed8-f8b9-4b54-99b2-85688296638a",
"level": "CODEC_PROFILE_LEVEL_AUTO",
"name": "1080p-10Mbps",
"preset": true,
"segment_duration": 6,
"standard": "RESOLUTION_TYPE_FHD",
"video_bitrate": "10000",
"video_codec": "VIDEO_CODEC_H264",
"video_height": 1080,
"video_width": 1920
}
],
"protocols": [
"PROTOCOL_DASH"
],
"smart_abr": false,
"video_codec": "VIDEO_CODEC_H264"
}
}
A bad request response.
The code
is 3
means got an invalid argument. There are more HTTP status code mappings listed on here and gRPC code on here.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A unauthenticated response.
The header authorization
was missing or unidentified.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A forbidden response.
It means that the provided authorization
did not have enough permission to access the resource or the API.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A server error response. There are more HTTP status code mappings listed on here.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Authorization: authorization
name: authorizationtype: apiKeydescription: Enter the token with Bearer schema prefix, eg. `Bearer <token-string>`in: header
- curl
- python
- go
- nodejs
- php
- CURL
curl -L -X PUT 'https://api.one.blendvision.com/bv/configuration/v1/profile-sets/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'authorization: <API_KEY_VALUE>' \
-d '{
"profile_ids": [
"1024fed8-f8b9-4b54-99b2-85688296638a",
"77a94c55-57f7-419d-8520-ee288251a748",
"e11f00a6-9989-4ffe-b685-acea84ab85dd"
],
"profile_set": {
"multiple_audio_track": {
"lang_customizes": [],
"lang_from": "LANG_FROM_FIRST_TRACK"
},
"name": "test1",
"protocols": [
"PROTOCOL_DASH"
],
"smart_abr": false,
"video_codec": "VIDEO_CODEC_H264"
}
}'