Create asset
documentedCreate a new asset.
POST /spaces/{space_id}/assetsAssetsno 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://api.contentful.com/v1/spaces/{{$space_id}}/assets" \
-X POST \
-H "Authorization: Bearer {{CONTENTFUL_API_KEY}}" \
-H "Content-Type: application/vnd.contentful.management.v1+json" \
-H "Accept: application/json" \
-d '{"fields": {"title": {"{{$locale}}": "{{$title}}"}, "description": {"{{$locale}}": "{{$description}}"}, "file": {"{{$locale}}": {"contentType": "{{$contentType}}", "fileName": "{{$fileName}}", "uploadFrom": {"sys": {"type": "Link", "linkType": "Upload", "id": "{{$upload_id}}"}}}}}}'