import { UploadDatasetImageFromGenResponse } from "@leonardo-ai/sdk/sdk/models/operations";
let value: UploadDatasetImageFromGenResponse = {
contentType: "<value>",
statusCode: 511,
rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" },
}),
};
Field | Type | Required | Description |
---|---|---|---|
contentType |
string | ✔️ | HTTP response content type for this operation |
statusCode |
number | ✔️ | HTTP response status code for this operation |
rawResponse |
Response | ✔️ | Raw HTTP response; suitable for custom response parsing |
object |
operations.UploadDatasetImageFromGenResponseBody | ➖ | Responses for POST /datasets/{datasetId}/upload/gen |