Sign in

Update site snippet

documented

Replace an existing site snippet.

PUT /api/v1/sites/{site_id}/snippets/{snippet_id}Sitesno 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://api.netlify.com/api/v1/sites/{{$site_id}}/snippets/{{$snippet_id}}" \
  -X PUT \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"title": "{{$title}}", "general": "{{$general}}", "general_position": "{{$general_position}}", "goal": "{{$goal}}", "goal_position": "{{$goal_position}}"}'