I have been trying to test property endpoints and they work for every get endpoint. but when I try post, delete, or patch endpoints for properties they give
HTTP 400
{
“status”: “error”,
“message”: “Property failed validation.”,
“correlationId”: “94821d77-c4a5-4d8e-827b-42e35d69ed64”,
“category”: “VALIDATION_ERROR”,
“subCategory”: “Properties.PROPERTY_CREATE_FAILED_VALIDATION”
}
I can’t create a property from the dashboard either saying I don’t have permission. How to test post, delete and patch endpoints without error ?
@mandodevelopapp - have you checked the scopes on the API key you are using? You would need both read and write scopes to manipulate the property values (although to be honest I might have expected a differet error response in this case). In addition - and it’s not clear here - you may be tripping over a validation rule for the specific property you are attempting to change. For example, if the property definition validates for numbers between a certain range, and you are trying to write a number outside that range. If it’s an enumeration property, you will need to set of the allowed internal values for the property.
yes I created 3 different test accounts with different scopes to be sure. problem is I can’t create a property in my test account even in the dashboard. Only normal account has access for that but normal account can’t create an app to test APIs.