younifyd
Menu

Create Entry

Create an entry

POST/spaces/{spaceId}/environments/{environmentId}/entries

Use it in a workflow

  1. Add a step and choose the Contentful connector.
  2. Pick the Create Entry action (under Contentful Content Management API).
  3. Fill in the fields below, then reference the result from later steps as {{createEntry.response.data}}.

Request

Path parameters

spaceIdstringrequired

ID of the space

environmentIdstringrequired

ID of the environment

Headers

X-Contentful-Content-Typestringrequired

Content type ID for the new entry

Request body

Enter the body as JSON in the step's Body field.

fieldsobject

Content fields with values by locale

json
{
  "fields": {}
}

Response

Returns 201 with an object. Read it in later steps with {{createEntry.response.data.<field>}}.

fieldsobject

Content fields with values by locale

sysobject
json
{
  "fields": {},
  "sys": {}
}

Need more? See the Contentful guide for connection setup and behaviour shared by every action.