API - binary custom field

Hello,

how can I create/modify binary (Binary or Image) custom field via API?

Michał
Cirrus