Custom fields not working


I have strange issue. I have few CF in RT. When opening ticket via API everything is set, only CF are not set.

My POST looks like this:

16:55:15.132156 IP > Flags [P.], seq 1803960293:1803960824, ack 2612508648, win 512, length 531: HTTP: POST /rt/REST/1.0/ticket/new?user=test&pass=1231234 HTTP/1.1
E…;…@…x.0.Pk.?..P…}1…POST /rt/REST/1.0/ticket/new?user=test&pass=1231234 HTTP/1.1
User-Agent: insomnia/2021.5.1
Cookie: RT_SID_rt.debian.80=3a25e2362b89472c227b65fc22dcaa58
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
Accept: /
Content-Length: 247

content=id: ticket/new
Queue: test
Priority: 1
Subject: Spanish Testing ticket id - CircuitID: FCZ211540YY
Text: SpanishTesting ticket id
CF-TelefonicaID: INC000003059840
CF-CircuitID: FCZ211540YY
CF-Test: qwasdsa


What could be an issue. I send this in POST like CF-Name_of_CF. I know this was working, what could be an issue now?

thank you

What if you do a GET request? This works for me:

curl --location --request GET 'https://MyRT/REST/1.0/ticket/new?user=root&pass=password&content=Requestor:
Queue: general
Subject: Test
Status: new
CF-Category: Some category' \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Basic cm9vdDpwYXNzd29yZA=='

Also you can try the REST2 endpoint for a more modern REST interface!

If I do this as you told me with you data (i have also tried with my) i get:

curl: (3) Illegal characters found in URL

it was issue with permision on CF