AddBadgeTypeAsync

add badge type as an asynchronous operation. Returns (Task.)

Create a Badge Type for a designated Folder.

Name Description
folder The folder.
badgeType Type of the badge.

Add Badge Type Async

Example in C#

// Returns: BadgeTypeInfo
var badgeTypeInfo = await client.AddBadgeTypeAsync(FolderInfo folder, BadgeTypeInfo badgeType);

Example in CURL



           curl -X POST \
               https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/badgetypes \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
               	"$type":"Feenics.Keep.WebApi.Model.BadgeTypeInfo, Feenics.Keep.WebApi.Model",
               	"AbsoluteExpiryDate":null,
               	"SlidingExpirySpan":null,
               	"BackgroundColor":null,
               	"BackBackgroundColor":null,
               	"FrontOrientation":0,
               	"BackOrientation":0,
               	"FrontBorderThickness":0.0,
               	"FrontBorderBrush":null,
               	"BackBorderThickness":0.0,
               	"BackBorderBrush":null,
               	"Width":0.0,
               	"Height":0.0,
               	"Key":null,
               	"CommonName":"BadgeFor_cUrl",
               	"InFolderHref":null,
               	"InFolderKey":null,
               	"Links":[],
               	"ObjectLinks":null,
               	"Metadata":null,
               	"Notes":null,
               	"Tags":null,
               	"Monikers":null,
               	"Href":null
               }'