MetadataItem

Represents one Metadata element is the set of meta data attached to a resource.

Meta-data is used to attach extra information to an object. Like custom form information on a person.

MetadataItem Properties

Item -> MetadataItem

Field Type Inherited from Description
Href String Item Gets or sets the href.
Application String MetadataItem Gets or sets the application.
ShouldPublishUpdateEvents Nullable<Boolean> MetadataItem Gets or sets if updates to this MetadataItem should publish Object Modified events.
Values String MetadataItem Gets or sets the values.

JSON Structure of MetadataItem

{
   "Href"	:	"String",
   "Application"	:	"String",
   "ShouldPublishUpdateEvents"	:	"Nullable\<Boolean\>",
   "Values"	:	"String"
}

Get Metadata Anonymous Type Async

Example in C#

// Returns: T
var item = await client.GetMetadataAnonymousTypeAsync<T>(BaseInfo baseInfo, String application, T annonymousTypeObject);

Example in CURL



            curl -X GET \
                https://keepapi.feenicshosting.com/api/f/INSRTANCE.KEY/people/PERSON.KEY/meta/cUrlExample \
                -H 'Authorization: Bearer TOKEN_GOES_HERE'
             

Get Metadata Async

Example in C#

// Returns: T
var item = await client.GetMetadataAsync<T>(BaseInfo baseInfo, String application);

Example in CURL



           curl -X GET \
               https://keepapi.feenicshosting.com/api/f/INSRTANCE.KEY/people/PERSON.KEY/meta/cUrlExample \
               -H 'Authorization: Bearer TOKEN_GOES_HERE'
            

Remove Metadata Async

Example in C#

// Returns: nothing
await client.RemoveMetadataAsync(BaseInfo baseInfo, String application);

Example in CURL



           curl -X DELETE \
               https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/people/PERSON.KEY/meta/cUrlExample \
               -H 'Authorization: Bearer TOKEN_GOES_HERE'
            

Set Metadata Async

Example in C#

// Returns: nothing
await client.SetMetadataAsync(BaseInfo baseInfo, String application, Object values, Boolean publishUpdateEvents);

Example in CURL



           curl -X PUT \
               https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/people/PERSON.KEY/meta2/cUrlExample?shouldPublishUpdateEvents=True \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "property":"value",
                       "otherProperty":42
                   }'