POST
/attachments
curl \
--request POST '/wp-json/hivepress/v1/attachments' \
--header "Content-Type: application/json" \
--data '{
"parent": 42,
"parent_model": "string",
"parent_field": "string",
"file": "string"
}'
Request examples
{
"parent": 42,
"parent_model": "string",
"parent_field": "string",
"file": "string"
}