Update ASM characte sets with REST

Hi,

i would like to update the ASM policy’s character-sets (url or header …) with REST but i don’t know how! When i GET a policy (/mgmt/tm/asm/policies/sUHvoeuXMTm6slcYRzRdNQ), the json object contains this following element :

“characterSetReference”: {

“link”: ";, “isSubCollection”: true

}

So i’ve requested (GET) the character-sets (/mgmt/tm/asm/policies/sUHvoeuXMTm6slcYRzRdNQ/character-sets) and so i received a listing of json objects with characters sets by type (url / header / parameter / …). Each object have an id and a self link (/mgmt/tm/asm/policies/sUHvoeuXMTm6slcYRzRdNQ/character-sets/yB5yjZ1ML2NvBn-JzBSGLA).

“characterSet”: [ { “isAllowed”: false, “metachar”: “0x0” }, { “isAllowed”: false, “metachar”: “0x1” }, … ]

I’ve tried to PATCH the self link with modified data but it doesn’t work, even though the ASM policy is unactive.

Is there a way to update this kind of character set ?

Thanks for your help.

i finally found the answer… the PATCH on the specific character set (/mgmt/tm/asm/policies/h-MeglgwRs4rvG_G9k--EA/character-sets/yB5yjZ1ML2NvBn-JzBSGLA) request work… i just have done my tests on the first character ({ “isAllowed”: false,“metachar”: “0x0” }) witch is the NULL value and readonly ! i have modified the second character’s value (isAllowed) and it work fine.