Create or update an asset

Creates a new asset with the specified ID or updates an existing one. When updating, include the current version in X-Contentful-Version.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

space_idstringRequired
ID of the Space in form of a string
environment_idstringRequired
ID of the environment in form of a string
asset_idstringRequired
ID of the Asset in form of a string

Headers

X-Contentful-VersionstringOptional
Version of the asset to update

Request

This endpoint expects a map from strings to any.

Response headers

Content-Typestring

Content-Type

Response

Created - Resource created successfully