Upload an attachment

POST /attachments

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"
}
Request examples
{
  "parent": 42,
  "parent_model": "string",
  "parent_field": "string",
  "file": "string"
}