Appearance
Default resources
Author default image
Author image is optional so a default image can be shown when there is no image associated author.
To load a default common image for authors use the API image import endpoint, for example:
shell
curl \
-s \
-X POST \
-H "Authorization: Bearer $IAPI_TOKEN" \
-H "Content-Type: application/xml" \
-d @file.xml \
"$IAPI_SERVER/images"
Where file.xml must have the following data:
xml
<?xml version="1.0"?>
<item>
<data>
<name>filename.jpeg</name>
<contentType>image</contentType>
<title>Image title</title>
<description>filename.jpeg</description>
<uuid>wf:img:author:avatar:default</uuid>
<base64file>/9j/4AAQSkZJRgABA...AAAAAAAAAAAAAAAP/Z</base64file>
</data>
<metadata/>
<type>image</type>
</item>
uuid must have the value wf:img:author:avatar:default to associate the image with the author default image.