Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Parameters

Name

Type

Value

Required

titlestringNo
preset_id
integer
Integer
Yes

title

String
No
video_bitrate
integer
Integer
No
resolution
string
StringEx. 1920x1080No
video_framerate
integer
Integer
No
audio_bitrates
integer
Integer
No
audio_samplerate
integer
Integer
No
level
string
String
No
gop
integer
Integer
No
ord
integer
IntegerSequential order numberNo

Example

$data = array('object' => 'preset','action' => 'createitem', 'parameters' => array(
    'preset_id' => 71 1,
    'video_bitrate' => '123123',
    'resolution' => '1920x1080',
    'video_framerate' => '25',
    'audio_bitrate' => '192',
    'audio_samplerate' => '44100'
    )
);


Response

{

   "statusCode":0,

   "statusMessage":"created",

   "data":

   {

   "id": 57

   }

}

Response FieldsTypeSample ValueComment
statusCode
Integer00 - Success
statusMessage
String""Error or confirmation message
data
Array
Array of response data

idInteger23id of the created item