Add image to object as an asynchronous operation. Returns (Task)
Attach an Image to a designated base object with an option to replace any pre-existing Image.
Name | Description |
---|---|
baseInfo | The base information. |
imageData | The image data. |
replaceIfExisting | if set to true [replace if existing]. |
Example in C#
// Returns: ImageInfo
var imageInfo = await client.AddImageToObjectAsync(BaseInfo baseInfo, ImageInfo imageData, Boolean replaceIfExisting);
Example in CURL
curl -X POST \
https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/people/PERSON.KEY/images?replaceIfExisting=False \
-H 'Authorization: Bearer TOKEN_GOES_HERE' \
-H 'Content-Type: application/json' \
-D '{
"$type":"Feenics.Keep.WebApi.Model.ImageInfo, Feenics.Keep.WebApi.Model",
"Category":"cUrlExample",
"Image":null,
"Key":null,
"CommonName":"ImageInfoObjectFor_cUrlExample",
"InFolderHref":null,
"InFolderKey":null,
"Links":[],
"ObjectLinks":null,
"Metadata":null,
"Notes":null,
"Tags":null,
"Monikers":null,
"Href":null
}'