curl --request POST \
--url https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/assets \
--header 'Authorization: <api-key>' \
--header 'Content-Type: multipart/form-data' \
--form 'assets={
"name": "<string>",
"content": "<string>"
}' \
--form 'files=<string>' \
--form 'tags=<string>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"content_url": "<string>",
"content_type": "image",
"content": "<string>",
"created_by_email": "<string>",
"thumbnail_url": "<string>",
"is_archived": true,
"is_deleted": true,
"tags": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Create new asset(s). This endpoint accepts only multipart/form-data content type, not JSON. Required permission: write:asset_evaluation.
curl --request POST \
--url https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/assets \
--header 'Authorization: <api-key>' \
--header 'Content-Type: multipart/form-data' \
--form 'assets={
"name": "<string>",
"content": "<string>"
}' \
--form 'files=<string>' \
--form 'tags=<string>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"content_url": "<string>",
"content_type": "image",
"content": "<string>",
"created_by_email": "<string>",
"thumbnail_url": "<string>",
"is_archived": true,
"is_deleted": true,
"tags": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Documentation Index
Fetch the complete documentation index at: https://docs.shareofmodel.ai/llms.txt
Use this file to discover all available pages before exploring further.
A UUID string identifying the organization.
A UUID string identifying the workspace.
Base for all the serializers in the assets app
This field is used only for plain text assets, for other asset types please use the files attribute
1 - 10 elementsShow child attributes
Assets files to be evaluated: video, image or text from a document.
Optional list of tags for the asset
255255255image - imagetext - textvideo - videoimage, text, video 255255