{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nopaque-co-uk/json-schema/nopaque-co-uk-create-audio-upload-url-response-schema.json",
  "title": "CreateAudioUploadUrlResponse",
  "description": "Response for `POST /audio/upload-url`. Use `uploadUrl` to PUT the audio bytes\ndirectly to S3 within `expiresIn` seconds. The metadata row is already persisted.\n",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nopaque-co-uk-audio-api-openapi.yml#/components/schemas/CreateAudioUploadUrlResponse",
  "type": "object",
  "required": [
    "audioId",
    "uploadUrl",
    "s3Key",
    "expiresIn"
  ],
  "properties": {
    "audioId": {
      "type": "string",
      "format": "uuid",
      "description": "The new audio metadata id (also the default `associatedId`)."
    },
    "uploadUrl": {
      "type": "string",
      "format": "uri",
      "description": "Presigned S3 PUT URL. Send the audio bytes as the body of an HTTP PUT with\n`Content-Type` identical to the request's `contentType` and exactly `sizeBytes`\nbytes; otherwise S3 returns 403 `SignatureDoesNotMatch`. URL expires in `expiresIn` seconds.\n"
    },
    "s3Key": {
      "type": "string",
      "description": "S3 key the bytes will land at. Opaque and unique per upload: it contains the\n`audioId`, so two uploads of the same filename never overwrite each other.\n"
    },
    "expiresIn": {
      "type": "integer",
      "description": "Seconds until the presigned URL expires."
    }
  }
}