document:addfromuploadedfile | |||||
---|---|---|---|---|---|
Description: | |||||
Add new document entry after the specific document file was uploaded and the upload token id exists |
|||||
Input Params | |||||
Name | Type | Description | Required | Default Value | Restrictions |
documentEntry | KalturaDocumentEntry | Document entry metadata | V | ||
uploadTokenId | string | Upload token id | V | ||
Output Type | |||||
KalturaDocumentEntry | |||||
Errors | |||||
PROPERTY_VALIDATION_MIN_LENGTH;PROP_NAME,MIN_LEN;The property "@PROP_NAME@" must have a min length of @MIN_LEN@ characters | |||||
PROPERTY_VALIDATION_CANNOT_BE_NULL;PROP_NAME;The property "@PROP_NAME@" cannot be null | |||||
UPLOADED_FILE_NOT_FOUND_BY_TOKEN;;The uploaded file was not found by the given token id, or was already used | |||||
Example HTTP Hit | |||||
http://www.kaltura.com/api_v3/?service=document&action=addfromuploadedfile POST fields: documentEntry:relatedObjects documentEntry:id documentEntry:name documentEntry:description documentEntry:partnerId documentEntry:userId documentEntry:creatorId documentEntry:tags documentEntry:adminTags documentEntry:categories documentEntry:categoriesIds documentEntry:status documentEntry:moderationStatus documentEntry:moderationCount documentEntry:type documentEntry:createdAt documentEntry:updatedAt documentEntry:rank documentEntry:totalRank documentEntry:votes documentEntry:groupId documentEntry:partnerData documentEntry:downloadUrl documentEntry:searchText documentEntry:licenseType documentEntry:version documentEntry:thumbnailUrl documentEntry:accessControlId documentEntry:startDate documentEntry:endDate documentEntry:referenceId documentEntry:replacingEntryId documentEntry:replacedEntryId documentEntry:replacementStatus documentEntry:partnerSortValue documentEntry:conversionProfileId documentEntry:redirectEntryId documentEntry:rootEntryId documentEntry:parentEntryId documentEntry:operationAttributes documentEntry:entitledUsersEdit documentEntry:entitledUsersPublish documentEntry:capabilities documentEntry:documentType documentEntry:assetParamsIds uploadTokenId |