Files
bookhoard/bruno-yaml/notes/Create Media Note.yml
T

38 lines
915 B
YAML

info:
name: Create Media Note
type: http
seq: 2
http:
method: POST
url: '{{base_url}}/api/media-items/{{media_item_id}}/notes'
auth: inherit
body:
type: json
jsonBody: "{\n \"content\": \"This is a test note about this media item.\"\
,\n \"position\": \"page:45\""
docs: |-
## Create Media Note
Creates a new note for a specific media item.
**Method:** POST
**Endpoint:** /api/media-items/:id/notes
**Path Parameters:**
- `id` (string): Media item ID
**Request Body:**
- `content` (string): Note content (required, 1-10000 chars)
- `position` (string): Optional position reference (max 100 chars)
**Response:**
- Note object with all fields including generated ID and timestamps
**Status Codes:**
- 201: Created
- 400: Invalid request
- 401: Unauthorized
- 404: Media item not found