Step 6 EITHER Save as a new asset
Save as a new asset
For metaproperties that use options (Select, Select2, Autocomplete), modifying an asset's metaproperty options should be done via option UUID's for the API to work optimally, sending name or label values will be deprecated in the future. Other metaproperties (Date, Text and Longtext), values can be submitted directly. Be aware that the endpoints described in Step 6 are an Either/Or choice. You should use either the Save as a new asset endpoint to save the uploaded file as a new asset, or the Update existing asset endpoint to update an existing asset with the uploaded file.
post/api/v4/media/save/{importId}
Request
- Base URLhttps://your-bynder-domain
- URLhttps://your-bynder-domain/api/v4/media/save/{importId}
- Auth
- OAuth 2Authorization code: https://your-bynder-domainDefaultValue/Client credentialsToken URL: https://your-bynder-domainDefaultValue/token scopes: MEDIAUPLOAD, MEDIAUPLOADFORAPPROVAL
- or API key in header Authorization
Path parameters
importIdstring required
Example:00000000-0000-0000-0000000000000000
Import id of a finalised and processed upload to be saved.
Headers
Content-Type'application/x-www-form-urlencoded' required
Request body application/x-www-form-urlencoded
Example request
{
"ISOPublicationDate": "2014-06-12T18:53:21.000Z",
"accessRequestId": "00000000-0000-0000-0000000000000000",
"accessType": "upload",
"archiveDate": "2014-12-25T10:30:00.000Z",
"audit": true,
"brandId": "00000000-0000-0000-00000000000000000000",
"categories": "00000000-0000-0000-0000000000000000,00000000-0000-0000-0000000000000000",
"copyright": "Copyright (c) Example corp.",
"crc32": 79764919,
"description": "Extended asset description",
"isPublic": true,
"metaproperty": "metaproperty.00000000-0000-0000-0000000000000000=00000000-0000-0000-0000000000000000,00000000-0000-0000-0000000000000000",
"name": "Asset name",
"publicationDate": "05-31-2010",
"requestorId": "00000000-0000-0000-0000000000000000",
"tags": "scenery,grassland,Holland",
"watermarkDate": "2014-12-25T10:30:00.000Z"
}Response
Created
unknown required
Example response
{
"accessRequestId": "00000000-0000-0000-0000000000000000",
"batchId": "00000000-0000-0000-0000000000000000",
"mediaid": "00000000-0000-0000-0000000000000000",
"mediaitems": [
{
"destination": "___URL_TO_BYNDER_CDN___",
"original": "final/00000000-0000-0000-0000000000000000/image.jpg"
},
{
"destination": "___URL_TO_BYNDER_CDN___",
"original": "final/00000000-0000-0000-0000000000000000/thul-image.jpg"
},
{
"destination": "___URL_TO_BYNDER_CDN___",
"original": "final/00000000-0000-0000-0000000000000000/mini-image.jpg"
}
],
"success": true
}Changes
No recorded changes to this operation across all 1 revision of this API.