curl --request POST \
--url https://api.landing.ai/v1/projects/{project_id}/images \
--header 'Content-Type: multipart/form-data' \
--form 'name=<string>' \
--form split=train \
--form 'tags=[
"<string>"
]' \
--form nothing_to_label=false \
--form 'metadata=<string>' \
--form file=@example-file \
--form label=@example-file
{
"data": {
"id": 123,
"name": "<string>",
"uploadTime": "<string>"
}
}
curl --request POST \
--url https://api.landing.ai/v1/projects/{project_id}/images \
--header 'Content-Type: multipart/form-data' \
--form 'name=<string>' \
--form split=train \
--form 'tags=[
"<string>"
]' \
--form nothing_to_label=false \
--form 'metadata=<string>' \
--form file=@example-file \
--form label=@example-file
{
"data": {
"id": 123,
"name": "<string>",
"uploadTime": "<string>"
}
}
Successful Response
The response is of type object
.
Was this page helpful?