Sign in

Add site snippet

documented

Add a new snippet to a site.

POST /api/v1/sites/{site_id}/snippetsSitesno 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" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "User-Agent: Netlify API Client" \
  -d '{"site_id": "{{$site_id}}", "title": "{{$title}}", "general": "{{$general}}", "general_position": "{{$general_position}}", "goal": "{{$goal}}", "goal_position": "{{$goal_position}}"}'
Add site snippet · netlify · OpenIntegrations