metadataForKey
Metadata for a linked object with key.
Arguments
Returns
MetadataPossible Errors
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-4123: Unauthorized.
- KT-CT-4124: Unauthorized.
- KT-CT-4155: Invalid data.
- KT-CT-4177: Unauthorized.
- KT-CT-4179: No metadata found with given key.
- KT-CT-6622: Unauthorized.
- KT-CT-6637: Unauthorized.
- KT-CT-7899: An internal error occurred.
- KT-CT-8411: Invalid data.
- KT-CT-8416: No metadata found with given key.
Allowed Viewers
Required Permissions
Can access customer queriesCan query metadata
Query Complexity
1Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
query MetadataForKey(
$identifier: String!,
$key: String!,
$linkedObjectType: LinkedObjectType
) {
metadataForKey(
identifier: $identifier,
key: $key,
linkedObjectType: $linkedObjectType
) {
key
value
}
}
Variables
{
"identifier": "96472700",
"key": "beautiful-hope-protect-family-meet",
"linkedObjectType": "ACCOUNT"
}
Response
{
"data": {
"metadataForKey": {
"key": "toward-break-take-black-hit",
"value": {"key": "value"}
}
}
}