Skip to main content
Upload media
curl --request POST \
  --url https://{tenantId}.api.nestmed.com/api/v1/visits/{visitId}/media \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form mediaType=audio \
  --form timestamp=2023-11-07T05:31:56Z \
  --form 'metadata={}'
{
  "mediaId": "<string>",
  "status": "<string>",
  "analysisTaskId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string<uuid>

A unique key (e.g., UUID) to ensure a POST request is processed only once. If a request with the same key is received again within 24 hours, the original response will be returned without creating a new resource.

Path Parameters

visitId
string
required

Body

multipart/form-data
file
file
required
mediaType
enum<string>
required
Available options:
audio,
image
timestamp
string<date-time>
metadata
object

Response

202 - application/json

Media accepted for processing.

mediaId
string
status
string
analysisTaskId
string