---
title: "Entry"
description: "Entry"
url: "https://www.contentstack.com/docs/developers/sdks/content-management-sdk/python/reference/entry"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-09-06"
---

# Entry

## Entry

An entry is the actual piece of content created using one of the defined content types. Read more about [Entries](https://www.contentstack.com/docs/headless-cms/about-entries).

## create

The create method creates a new entry for the selected content type in a particular stack.

```
data = {
           "global_field": {
               "title": "Servlet",
               "uid": "servlet",
           "schema": [{
                   "display_ndata = {
         "entry": {
                    "title": "example",
                    "url": "/example"
                 }
        }
import contentstack_management
client = contentstack_management.Client(authtoken="authtoken")

response = client.stack('api_key').content_types().entry().create(data).json()
```

The content of the new entry that you want to create.

## delete

The delete method deletes an existing entry for the selected content type in a particular stack.

```
import contentstack_management
client = contentstack_management.Client(authtoken="authtoken")

response = response = client.stack('api_key').content_types('content_type_uid').entry('entry_uid').delete().json()
```

UID of the entry

## export

The export method exports an existing entry in a JSON format.

```
import contentstack_management
client = contentstack_management.Client(authtoken="authtoken")

response = client.stack('api_key').content_types(''content_type_uid'').entry('entry_uid').export().json()
```

UID of the entry

## fetch

The fetch method retrieves the details of an existing entry.

```
import contentstack_management
client = contentstack_management.Client(authtoken="authtoken")

response = client.stack('api_key').content_types('content_type_uid').entry('entry_uid').fetch().json()
```

UID of the entry

## find

The find method retrieves the details of all existing entries.

```
import contentstack_management
client = contentstack_management.Client(authtoken="authtoken")

response = client.stack("api_key").content_types('content_type_uid').entry().find().json()
```

## addParam

The addParam method adds a parameter to the request.

```
Example 1:
import contentstack_management
client = contentstack_management.Client(authtoken='your_authtoken')
query = client.stack('api_key').content_types('content_type_uid').entry()
query.add_param("limit", 2)
result = query.find()Example 2:
import contentstack_management
client = contentstack_management.Client(authtoken='your_authtoken')
query = client.stack('api_key').content_types('content_type_uid').entry()
query.add_param("skip", 2)
result = query.find()
```

Query parameter key for the request

Query parameter value for the request

## addParam with Dictionary

The addParam with Dictionary method adds multiple parameters to the request.

```
Example:
import contentstack_management
testdict =	{
  "limit": 2,
  "skip": 2,
  "include_branch": True
}

client = contentstack_management.Client(authtoken='your_authtoken')
query = client.stack('api_key').content_types('content_type_uid').entry()
query.add_param_dict(testdict)
result = query.find()
```

Query parameter dictionary for the request

## addHeader

The addHeader method adds a header to the request.

```
Example:
import contentstack_management
client = contentstack_management.Client(authtoken='your_authtoken')
query = client.stack('api_key').content_types('content_type_uid').entry()
query.add_header("branch", "branch_uid")
result = query.find()
```

Header key for the request

Header value for the request

## addHeader with Dictionary

The addHeader with Dictionary method adds multiple headers to the request.

```
Example:
import contentstack_management
testdict =	{
  "branch": "branch_uid"
}

client = contentstack_management.Client(authtoken='your_authtoken')
query = client.stack('api_key').content_types('content_type_uid').entry()
query.add_header_dict(testdict)
result = query.find()
```

Query parameter dictionary for the request

## import

The import method imports the entries in the JSON.

```
import contentstack_management
client = contentstack_management.Client(authtoken="authtoken")

file_path = "tests/resources/mock_content_types/import_content_types.json"
response = client.stack('api_key').content_types().entry('entry_uid').imports(file_path).json()
```

UID of the entry

The file path of the file you want to import

The language for the entry. Set to en-us by default

## language

The languages method retrieves the details of all the languages that an entry exists in.

```
import contentstack_management
client = contentstack_management.Client(authtoken="authtoken")

response = client.stack('api_key').content_types('content_type_uid').entry('entry_uid').languages().json()
```

UID of the entry

## publish

The publish method allows you to publish an entry for a specified environment either immediately or schedule it for a later date/time.

```
data = {
               "entry": {
                   "environments": ["development"],
                   "locales": ["en-us"]
               },
               "locale": "en-us",
               "version": 1,
               "scheduled_at": "2019-02-14T18:30:00.000Z"
           }
import contentstack_management
client = contentstack_management.Client(authtoken="authtoken")

response = client.stack('api_key').content_types().entry('entry_uid').publish(data).json()
```

The data you want to publish

## localize

The localize method will allow you to localize an entry, i.e., the entry will cease to retrieve the data from the fallback language and possess an independent content specific to the selected locale.

```
data ={
              "entry": {
                  "title": "Home",
                   "url": "/home-french",
                   "tags": [],
                   "locale": "en-us",
                   "uid": "entry_uid",
                   "created_by": "user_uid",
                   "updated_by": "user_uid",
                   "created_at": "2017-06-13T12:34:52.083Z",
                   "updated_at": "2018-12-28T06:33:06.752Z",
                   "ACL": {},
                   "_version": 2
                   }
           }
import contentstack_management
client = contentstack_management.Client(authtoken="authtoken")

response = client.stack('api_key').content_types('content_type_uid').entry('entry_uid').localize(data).json()
```

Fields and values that you want to add or update for the specified locale

The language for the entry. Set to en-us by default

## references

The references method retrieves the details of all the entries referenced by a particular entry.

```
import contentstack_management
client = contentstack_management.Client(authtoken="authtoken")

response = client.stack('api_key').content_types('content_type_uid').entry('entry_uid').references().json()
```

UID of the entry

## unlocalize

The unlocalize method will allow you to unlocalize an existing entry, i.e., the entry will retrieve the data from the fallback language.

```
import contentstack_management
client = contentstack_management.Client(authtoken="authtoken")

response = client.stack('api_key').content_types('content_type_uid').entry('entry_uid').unlocalize().json()
```

The language for the entry. Set to en-us by default.

## unpublish

The unpublish method allows you to unpublish an entry for a specified environment either immediately or schedule it for a later date/time.

```
data = {
               "entry": {
                   "environments": ["development"],
                   "locales": ["en-us"]
               },
               "locale": "en-us",
               "version": 1,
               "scheduled_at": "2019-02-14T18:30:00.000Z"
           }
import contentstack_management
client = contentstack_management.Client(authtoken="authtoken")

response = client.stack('api_key').content_types().entry('entry_uid').unpublish().json()
```

The content type UID and any additional data required for the unpublishing process

## update

The update method allows you to make changes in the contents of an existing entry.

```
data = {
          "entry": {
                   "title": "example",
                   "url": "/example"
           }
        }
import contentstack_management
client = contentstack_management.Client(authtoken="authtoken")

response = client.stack('api_key').content_types('content_type_uid').entry('entry_uid').update(data).json()
```

The content type UID and any additional data required for the unpublishing process

The language for the entry. Set to en-us by default.

## version_naming

The version\_naming method allows you to assign a name to a specific version of an entry.

```
data ={
               "entry": {
                   "_version_name": "Test version",
                   "locale": "en-us",
                   "force": true
               }
           }
import contentstack_management
client = contentstack_management.Client(authtoken="authtoken")

response = client.stack('api_key').content_types('content_type_uid').entry('entry_uid').version_naming(data).json()
```

The information you want to send to the server

The identifier to a specific version of an entry.

## Entry | Python Management SDK | Contentstack

Entry is an actual piece of content created from a defined content type, in the Contentstack Python Management SDK.