Taha ÇEKEN
10/03/2025, 8:04 AM{
"detail": [
{ "loc": [
"body",
"mapping_rules",
0,
"should_delete"
],
"msg": "extra fields not permitted",
"type": "value_error.extra"
}
],
"body": {
"name": "internal-endpoints",
"key": "internal-endpoints",
"secret": "FeatureIsntUsedInUrlMappingFearture - see PER 12646",
"auth_mechanism": "Bearer",
"mapping_rules": [
{
"url": "<https://api.abex.com.tr/test/internal/{lang}/addresses/states>",
"url_type": null,
"http_method": "get",
"resource": "bkg_invoice",
"action": "read",
"should_delete": false
}
]
}
}Ask Inkeep
10/03/2025, 8:04 AMAsk Inkeep
10/03/2025, 8:04 AMshould_delete is not a valid field for mapping rules in the Proxy Config API. Looking at the documented structure for mapping rules (1) , the valid fields for a mapping rule are:
• url - proxy configuration
• method - proxy configuration
• resource - proxy configuration
• headers - proxy configuration
The mapping rule structure should look like this :
{
"url": "<https://api.stripe.com/v1/balance>",
"method": "POST",
"resource": "balance"
}
Or with URL parameters :
{
"url": "<https://api.stripe.com/v1/customers/{customer_id}>",
"method": "GET",
"resource": "customer",
"headers": {
"x-permit-example": ""
}
}
Remove the should_delete field from your mapping rules. Your corrected configuration should be:
{
"name": "internal-endpoints",
"key": "internal-endpoints",
"secret": "FeatureIsntUsedInUrlMappingFearture - see PER 12646",
"auth_mechanism": "Bearer",
"mapping_rules": [
{
"url": "<https://api.abex.com.tr/test/internal/{lang}/addresses/states>",
"method": "get",
"resource": "bkg_invoice",
"action": "read"
}
]
}
Note that url_type is also not mentioned in the documented fields , so you should remove that as well. The method field should be used instead of http_method .
Since you're experiencing issues with your URL mapping configuration, could you please share:
1. Which Workspace / Project / Env you are using
2. What calls you are performing (as SDK code or CURL)
3. Which PDP version you are running
4. Any relevant logs from your PDP
This will help our engineerAsk Inkeep
10/03/2025, 8:04 AMTaha ÇEKEN
10/03/2025, 8:05 AMOr Weis
10/03/2025, 8:13 AMTaha ÇEKEN
10/03/2025, 8:17 AMOr Weis
10/03/2025, 8:20 AMAlon Boshi
10/06/2025, 9:58 AM