Sign in

Upload media

documented

Upload a new piece of media.

POST /sites/{site}/media/newMediano implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://public-api.wordpress.com/rest/v1/sites/{{$site}}/media/new" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Accept: application/json" \
  -F "media[]=@{{$file_path}}"
Upload media · WordPress.com · OpenIntegrations