Invokes an async HTTP PUT request on the resource href/meta2/{application}Metadata is stored with the resource. The total size of a resource on disk may not exceed 16MB. Use attached Images to attach arbitrary large binary objects to existing resources Returns (Task.)
this connects Metadata to the designated Base. The method will attempt to serialize the stored object as a BSON document.
Name | Description |
---|---|
baseInfo | the Resource receiving the meta data |
application | The application that this meta data is tagged as |
values | an instance of the meta data to save |
publishUpdateEvents | if updates to the metadata should publish object modified events |
Example in C#
// Returns: nothing
await client.SetMetadataAsync(BaseInfo baseInfo, String application, Object values, Boolean publishUpdateEvents);
Example in CURL
curl -X PUT \
https://api.us.acresecurity.cloud/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
}'