Skip to main content

Validation rules for brand asset intent including presence, validity, update restrictions, and uniqueness constraints

Intent​

IntentMustBePresent​

DefinitionSeverityAPISampleMode
Validate that intent is present
VIOLATION
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__IntentMustBePresent",
"severity": "VIOLATION",
"message": "'intent' must be present",
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [],
"compared": [],
"expected": []
}
}

IntentMustBeValid​

DefinitionSeverityAPISampleMode
Validate that intent value is valid
VIOLATION
POST_AND_PUT
Link
S
Example Validation Report
{
"code": "VALIDATION__IntentMustBeValid",
"severity": "VIOLATION",
"message": "'intent' value '{{value}}' is not valid. Valid values are 'COVER_PHOTO' and 'PLACECARD_LOGO'",
"context": {
"value": "logo"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.brandAssetDetails.intent",
"value": "logo"
}
],
"compared": [],
"expected": []
}
}

IntentMustNotBeEmpty​

DefinitionSeverityAPISampleMode
Validate that intent is not an empty string
VIOLATION
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__IntentMustNotBeEmpty",
"severity": "VIOLATION",
"message": "'intent' must not be empty string",
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.brandAssetDetails.intent",
"value": ""
}
],
"compared": [],
"expected": []
}
}

IntentMustNotBeUpdated​

DefinitionSeverityAPISampleMode
Validate that intent matches the previous submittal
VIOLATION
PUT
S
Example Validation Report
{
"code": "VALIDATION__IntentMustNotBeUpdated",
"severity": "VIOLATION",
"message": "'{{intent}}' must not be updated",
"context": {
"intent": "PLACECARD_LOGO"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.brandAssetDetails.intent",
"value": "PLACECARD_LOGO"
}
],
"compared": [
{
"field": "$.brandAssetDetails.intent",
"value": "COVER_PHOTO"
}
],
"expected": []
}
}

OneCoverPhotoIntentMayExist​

DefinitionSeverityAPISampleMode
Validate that only one (1) COVER_PHOTO asset exists
VIOLATION
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__OneCoverPhotoIntentMayExist",
"severity": "VIOLATION",
"message": "Only one (1) 'COVER_PHOTO' intent may exist",
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.brandAssetDetails.intent",
"value": "COVER_PHOTO"
}
],
"compared": [],
"expected": []
}
}

OnePlaceCardLogoIntentMayExist​

DefinitionSeverityAPISampleMode
Validate that only one (1) PLACECARD_LOGO asset exists
VIOLATION
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__OnePlaceCardLogoIntentMayExist",
"severity": "VIOLATION",
"message": "Only one (1) 'PLACECARD_LOGO' intent may exist",
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": "$.brandAssetDetails.intent",
"value": "PLACECARD_LOGO"
}
],
"compared": [],
"expected": []
}
}