API REST Variables

I am starting a process by api rest / process-definition / key / start. How to create a file-type variable with this api

Hi Marcelo,

Here is an example:

POST /engine-rest/process-definition/key/invoice/start HTTP/1.1
Host: localhost:8080
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: bc518d75-ab0b-f429-75b8-86d32e5ef11c

{
  "businessKey" : "myBusinessKey",
  "variables": {
  	"creditor" : {
        "value" : "the creditor",
        "type": "String"
    },
    "invoiceCategory" : {
        "value" : "Travel Expenses",
        "type": "String"
    },
    "invoiceNumber" : {
        "value" : "FFSW-4688",
        "type": "String"
    },
    "amount" : {
        "value" : "23",
        "type": "Double"
    },
    "invoiceDocument" : {
        "value" : "invoice.pdf",
        "type": "File",
        "valueInfo": {
        	"filename": "invoice.pdf",
		    "mimetype": "application/pdf"
        }
    }
  }
}

Best regards,
Yana

tank you for answer

but,
how to create a file-type variable by api rest in an excution process