POST api/app/metadata/upsert
This allows app developers to store custom metadata against an entity
Request Information
URI Parameters
None.
Body Parameters
{ "AppliesToSystemName" :"PropertySalesRole", "EntityId" :14790, "Values":[ {"Name":"meta1","Value":"value of meta 1"}, {"Name":"meta2","Value":"value of meta 2"} ]}
UpsertMetaDataCommandDataContract| Name | Description | Type | Additional information |
|---|---|---|---|
| AppliesToSystemName | string |
None. |
|
| EntityId | integer |
None. |
|
| Values | Collection of UpsertMetaDataValue |
None. |
Request Formats
application/x-www-form-urlencoded
Sample:
Sample not available.
application/json, text/json
Sample:
{
"AppliesToSystemName": "sample string 1",
"EntityId": 2,
"Values": [
{
"Name": "sample string 1",
"Value": "sample string 2"
},
{
"Name": "sample string 1",
"Value": "sample string 2"
}
]
}
Response Information
Resource Description
the values as dictionary of names and values
Collection of Pair of string [key] and string [value]Response Formats
application/json, text/json
Sample:
[
{
"Key": "sample string 1",
"Value": "sample string 2"
},
{
"Key": "sample string 1",
"Value": "sample string 2"
}
]