Segments


List Segments

GET https://api.zype.com/videos/[id]/segments

Parameters

Parameter Function Type
video_id ID of the parent video (Example: 5389352e69702d401b000000) String

Retrieve a Segment

GET https://api.zype.com/videos/[video_id]/segments/[id]

Parameters

Parameter Function Type
video_id ID of the parent video (Example: 5389352e69702d401b000000) String
id ID of the record (Example: 5389352e69702d401b000000) String

Create a Segment

POST https://api.zype.com/videos/[video_id]/segments

Parameters

Parameter Function Type
video_id ID of the parent video (Example: 5389352e69702d401b000000) String
segment[description] The description for the video segment String
segment[start] The point in the video where the segment begins Integer
segment[end] The point in the video where the segment ends Integer

Update a Segment

PUT https://api.zype.com/videos/[video_id]/segments/[id]

Parameters

Parameter Function Type
video_id ID of the parent video (Example: 5389352e69702d401b000000) String
segment[description] The description for the video segment String
segment[start] The point in the video where the segment begins Integer
segment[end] The point in the video where the segment ends Integer

Delete a Segment

DELETE https://api.zype.com/videos/[video_id]/segments/[id]

Parameters

Parameter Function Type
video_id ID of the parent video (Example: 5389352e69702d401b000000) String
id ID of the record to be deleted (Example: 5389352e69702d401b000000) String

Segment Object

{
  "_id": "54c6cbe56368726454050000",
  "description": "theBest",
  "end": 112,
  "start": 90
}