Creating attachments during ticket creation with REST (4.0.2)

I am trying to add an attachment as part of the ticket creation with REST (in 4.0.2)
Following is my input:

Requestor: johnt
Queue: 'General’
Attachment: /var/log/test.pdf

Ticket gets created but no attachment and I get the error

RT/4.0.2 409 Syntax Error

Ticket 6 created.

attachment: Unknown field.

What is the input to create ticket with attachments? Does anyone know?

Thanks

I am trying to add an attachment as part of the ticket creation with REST (in 4.0.2)
Following is my input:
Requestor: johnt
Subject: ‘test ticket’
Queue: ‘General’
Attachment: /var/log/test.pdf
Ticket gets created but no attachment and I get the error
RT/4.0.2 409 Syntax Error

Ticket 6 created.

attachment: Unknown field.

What is the input to create ticket with attachments? Does anyone know?

The REST interface only supports commenting or corresponding with
attachments, not creating.

-kevin