Create code deployment
documentedCreate or update a deployment configuration for this site.
POST /sites/{wpcom_site}/hosting/code-deploymentsGitHub Deploymentsno implementation yet0 runsNo 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}}"}'