Skip to content

PUT api #558

@Lungsangg

Description

@Lungsangg

Description :
Update the existing post api to store multiple segments in db

Endpoint :

PUT /cms/sub-tasks

Request body :

{
  "task_id": "550e8400-e29b-41d4-a716-446655440000",
  "sub_tasks": [
    {
      "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
      "content_type": "SOURCE_REFERENCE",
      "content": "Practice mindful breathing for 5 minutes",
      "duration": "5 min",
      "source_text_id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
      "pecha_segment_id": "seg_001",
      "segment_ids": [
        "f47ac10b-58cc-4372-a567-0e02b2c3d479",
        "7c9e6679-7425-40de-944b-e07fc1f90ae7",
        "e4eaaaf2-d142-11e1-b3e4-080027620cdd"
      ],
      "display_order": 1
    },
    {
      "id": null,
      "content_type": "VIDEO",
      "content": "https://example.com/meditation-video.mp4",
      "duration": "10 min",
      "source_text_id": null,
      "pecha_segment_id": null,
      "segment_ids": null,
      "display_order": 2
    }
  ]
}

Response : 204

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    user feedback

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions