Upload an attachment

POST /attachments
application/json

Body

Responses

POST /attachments
curl \
 -X POST /wp-json/hivepress/v1/attachments \
 -H "Content-Type: application/json" \
 -d '{"parent":42,"parent_model":"string","parent_field":"string","file":"string"}'
Request example
{
  "parent": 42,
  "parent_model": "string",
  "parent_field": "string",
  "file": "string"
}