younifyd
Menu

Create Content Type Snippet

Create a content type snippet

POST/v2/projects/{environment_id}/snippets

Use it in a workflow

  1. Add a step and choose the Kontent.ai connector.
  2. Pick the Create Content Type Snippet action (under Content Type Snippets).
  3. Fill in the fields below, then reference the result from later steps as {{createContentTypeSnippet.response.data}}.

Request

Path parameters

environment_idstringrequired

Environment (project) ID.

Request body

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

namestringrequired
codenamestring
external_idstring
elementsarray<object>
json
{
  "name": "string",
  "codename": "string",
  "external_id": "string",
  "elements": [
    {}
  ]
}

Response

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

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