Sign in

Create code deployment

documented

Create or update a deployment configuration for this site.

POST /sites/{wpcom_site}/hosting/code-deploymentsGitHub Deploymentsno 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/wpcom/v2/sites/{{$wpcom_site}}/hosting/code-deployments" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"external_repository_id": {{$external_repository_id}}, "branch_name": "{{$branch_name}}", "target_dir": "{{$target_dir}}", "installation_id": {{$installation_id}}, "is_automated": {{$is_automated}}, "workflow_path": "{{$workflow_path}}"}'