The stamp preferences service allows managing stamps (signature images or annotations) for users.
Get stamps for current user
# <CORE_HOST> FlowerDocs Core base URL
# <TOKEN> authentication token
curl -X GET "<CORE_HOST>/rest/preferences/stamps" \
-H "token: <TOKEN>"
Get stamps for specific authorities
Create a stamp
# <CORE_HOST> FlowerDocs Core base URL
# <TOKEN> authentication token
curl -X POST "<CORE_HOST>/rest/preferences/stamps" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"title": "My Signature",
"type": "SIGNATURE",
"content": "base64-encoded-image-data"
}'
Update a stamp
# <CORE_HOST> FlowerDocs Core base URL
# <TOKEN> authentication token
# <ID> stamp identifier
curl -X POST "<CORE_HOST>/rest/preferences/stamps/<ID>" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"title": "My Updated Signature",
"type": "SIGNATURE",
"content": "base64-encoded-image-data"
}'
Delete stamps
# <CORE_HOST> FlowerDocs Core base URL
# <TOKEN> authentication token
# <IDS> stamp identifiers (comma-separated)
curl -X DELETE "<CORE_HOST>/rest/preferences/stamps/<IDS>" \
-H "token: <TOKEN>"