Content

The Content service manages various types of content on the e-commerce platform, including Announcements, Blogs, Legal content, Navigation menus, Custom Pages, Path Redirection Rules, Customer Support information, and Slideshows.

Custom Fields

Custom fields are a flexible way to attach additional information to a resource (e.g. Product, promotions, etc.). Some examples of data stored using customfields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Custom fields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.

Operations
GET
/service/platform/content/v1.0/company/{company_id}/metafields/types
# Get custom field types
GET
/service/platform/content/v1.0/company/{company_id}/metafields/resources
# Get resources
GET
/service/platform/content/v1.0/company/{company_id}/metafields/definitions
# Get custom fields definitions
POST
/service/platform/content/v1.0/company/{company_id}/metafields/definitions
# Create custom field definition
GET
/service/platform/content/v1.0/company/{company_id}/metafields/definitions/{definition_id}
# Get custom fields definition
PUT
/service/platform/content/v1.0/company/{company_id}/metafields/definitions/{definition_id}
# Update custom field definition
DEL
/service/platform/content/v1.0/company/{company_id}/metafields/definitions/{definition_id}
# Delete custom fields definition
GET
/service/platform/content/v1.0/company/{company_id}/metafields/{resource}
# Get list of custom fields of given resource
GET
/service/platform/content/v1.0/company/{company_id}/metafields/{resource}/{resource_id}
# Get list of custom fields of given resource and resource id
PUT
/service/platform/content/v1.0/company/{company_id}/metafields/{resource}/{resource_id}
# Create custom field entries for gives resource and resource_id
GET

Get custom field types

Each custom field and custom field definition has a type, which defines the type of information that it can store. The custom field types have built-in validation. This api will give list of supported custom fields types
Parameters
company_id
integer
Required
This is company id
Response
200
400
500
Success. Returns all custom field types.
CustomObjectByIdSchema
_id
string
status
string
display_name
string
definition
object (CustomObjectListItemDefinationSchema)
CustomObjectListItemDefinationSchema
references
array of object
fields
array of object (CustomObjectFieldSchema)
Array of CustomObjectFieldSchema
Examples
Parameters
companyId:
1
GET
/service/platform/content/v1.0/company/{company_id}/metafields/types
Loading...
Response
Loading...
GET

Get resources

Each custom fields is assosiated with a resource such as product, promotion, coupon, selling location etc, This will gives list of supported resource list.
Parameters
company_id
integer
Required
This is company id
Response
200
4XX
5XX
Success. Returns a JSON object of resources. Refer `ResourcesSchema` for more details.
ResourcesSchema
resources
array of object (ResourceSchema)
Array of ResourceSchema
Examples
Parameters
companyId:
1
GET
/service/platform/content/v1.0/company/{company_id}/metafields/resources
Loading...
Response
Example not available.
GET

Get custom fields definitions

Custom field definitions enable you to include data validation for custom fields, and enable sellers to add custom fields values for resources. With the help of this seller can retrive list of custom field definitions list.
Parameters
company_id
integer
Required
This is company id
page_no
string
Required
This is the page number
page_size
string
Required
This is the page size
resource
string
This is the resource for which we are fetching definitions
type
string
This is the type of the custom fields definitions
search
string
This is the search text to filter custom fields definitions
Response
200
400
500
Success. Returns a list of custom fields definitions. Refer `CustomFieldDefinitionsSchema` for more details.
CustomFieldDefinitionsSchema
items
array of object (FieldDefinitionSchema)
Array of FieldDefinitionSchema
page
object (Page)
Page
Examples
Parameters
companyId:
1
pageNo:
1
pageSize:
10
resource:
"product"
type:
"string_single_line"
search:
"sometext"
GET
/service/platform/content/v1.0/company/{company_id}/metafields/definitions
Loading...
Response
Example not available.
POST

Create custom field definition

You can create custom fields definition to any resource so you can extend property of resource.
Parameters
company_id
integer
Required
This is company id
Request body
resource
string
type
string
key
string
namespace
string
multi_value
boolean
name
string
description
string
validations
array of object (FieldValidations)
Array of FieldValidations
Response
200
400
500
Custom field definition created.
CustomFieldDefinitionDetailResSchema
creator
string
resource
string
name
string
namespace
string
key
string
description
string
type
string
multi_value
boolean
company_id
string
| integer
application_id
string
created_by
string
updated_by
string
required
boolean
is_deleted
boolean
_id
string
validations
array of object
created_at
string
| date-time
updated_at
string
| date-time
Examples
Parameters
companyId:
1
body:
body
POST
/service/platform/content/v1.0/company/{company_id}/metafields/definitions
Loading...
Response
Example not available.
GET

Get custom fields definition

Custom field definitions can be fetch using definition id.
Parameters
company_id
integer
Required
This is company id
definition_id
string
Required
This is definition id
Response
200
400
500
Success. Returns a object of custom field definition. Refer `CustomFieldDefinitionsSchema` for more details.
CustomFieldDefinitionDetailResSchema
creator
string
resource
string
name
string
namespace
string
key
string
description
string
type
string
multi_value
boolean
company_id
string
| integer
application_id
string
created_by
string
updated_by
string
required
boolean
is_deleted
boolean
_id
string
validations
array of object
created_at
string
| date-time
updated_at
string
| date-time
Examples
Parameters
companyId:
1
definitionId:
"65369afad436ae0e54147e86"
GET
/service/platform/content/v1.0/company/{company_id}/metafields/definitions/{definition_id}
Loading...
Response
Example not available.
PUT

Update custom field definition

Custom fields definition can be update using this api, You can update custom field definition name and description.
Parameters
company_id
integer
Required
This is company id
definition_id
string
Required
This is definition id
Request body
resource
string
type
string
key
string
namespace
string
multi_value
boolean
name
string
description
string
validations
array of object (FieldValidations)
Array of FieldValidations
Response
200
400
500
Custom field definition created.
CustomFieldDefinitionDetailResSchema
creator
string
resource
string
name
string
namespace
string
key
string
description
string
type
string
multi_value
boolean
company_id
string
| integer
application_id
string
created_by
string
updated_by
string
required
boolean
is_deleted
boolean
_id
string
validations
array of object
created_at
string
| date-time
updated_at
string
| date-time
Examples
Parameters
companyId:
1
definitionId:
"65369afad436ae0e54147e86"
PUT
/service/platform/content/v1.0/company/{company_id}/metafields/definitions/{definition_id}
Loading...
Response
Example not available.
DEL

Delete custom fields definition

Custom field definition and its assosiated custom fields value can be deleted using this api on the basis of definition id.
Parameters
company_id
integer
Required
This is company id
definition_id
string
Required
This is definition id
Response
200
400
500
Success. It will returns the message for delete successfully.
CustomDataDeleteSchema
success
boolean
message
string
Examples
Parameters
companyId:
1
definitionId:
"65369afad436ae0e54147e86"
DEL
/service/platform/content/v1.0/company/{company_id}/metafields/definitions/{definition_id}
Loading...
Response
Example not available.
GET

Get list of custom fields of given resource

Retrieves a list of custom fields attached to a particular resource by using the resource.
Parameters
company_id
integer
Required
This is company id
resource
string
Required
This is the name of resource for which you want to fetch custom fields eg. product, collection, customer etc.
Response
200
400
500
Success. Returns a list of custom fields. Refer `CustomFieldsResponseSchema` for more details.
CustomFieldsResponseSchema
items
array of object (CustomFieldSchema)
Array of CustomFieldSchema
page
object (Page)
Page
Examples
Parameters
companyId:
1
resource:
"product"
GET
/service/platform/content/v1.0/company/{company_id}/metafields/{resource}
Loading...
Response
Example not available.
GET

Get list of custom fields of given resource and resource id

Retrieves a list of custom fields attached to a particular resource by using the resource and resource id.
Parameters
company_id
integer
Required
This is company id
resource
string
Required
This is the name of resource for which you want to fetch custom fields eg. product, collection, customer etc.
resource_id
string
Required
This is the resource id for which custom fields created
Response
200
400
500
Success. Returns a list of custom fields. Refer `CustomFieldsResponseByResourceIdSchema` for more details.
CustomFieldsResponseByResourceIdSchema
items
array of object (CustomFieldSchema)
Array of CustomFieldSchema
Examples
Parameters
companyId:
1
resource:
"product"
resourceId:
"64bb987e9a3c4b6c29d676bc"
GET
/service/platform/content/v1.0/company/{company_id}/metafields/{resource}/{resource_id}
Loading...
Response
Loading...
PUT

Create custom field entries for gives resource and resource_id

You can add a custom field using this endpoint to any resource by providing the resource ID.
Parameters
company_id
integer
Required
This is company id
resource
string
Required
This is the name of resource for which you want to fetch custom fields eg. product, collection, customer etc.
resource_id
string
Required
This is the resource id for which custom fields created
Request body
fields
array of object (CustomField)
Array of CustomField
Response
200
400
500
Success. Returns a list of custom fields. Refer `CustomFieldsResponseByResourceIdSchema` for more details.
CustomFieldsResponseByResourceIdSchema
items
array of object (CustomFieldSchema)
Array of CustomFieldSchema
Examples
Parameters
companyId:
1
resource:
"product"
resourceId:
"64bb987e9a3c4b6c29d676bc"
body:
body
PUT
/service/platform/content/v1.0/company/{company_id}/metafields/{resource}/{resource_id}
Loading...
Response
Loading...

Custom Objects

Custom objects refer to entities that are not currently present on the platform. Sellers can create these custom data structures, allowing them to define the essential custom fields according to their preferences. These custom objects are introduced to address unique data requirements that fall outside the platform's standard features.

Operations
POST
/service/platform/content/v1.0/company/{company_id}/metaobjects/definitions
# Create custom object definition
GET
/service/platform/content/v1.0/company/{company_id}/metaobjects/definitions
# Get custom object definitions
GET
/service/platform/content/v1.0/company/{company_id}/metaobjects/definitions/{definition_id}
# Get custom object definition
PUT
/service/platform/content/v1.0/company/{company_id}/metaobjects/definitions/{definition_id}
# Update custom object definition
DEL
/service/platform/content/v1.0/company/{company_id}/metaobjects/definitions/{definition_id}
# delete custom object definition
GET
/service/platform/content/v1.0/company/{company_id}/metaobjects
# Get list of custom objects
POST
/service/platform/content/v1.0/company/{company_id}/metaobjects
# Create custom object entries
GET
/service/platform/content/v1.0/company/{company_id}/metaobjects/{metaobject_id}
# Get custom object details
DEL
/service/platform/content/v1.0/company/{company_id}/metaobjects/{metaobject_id}
# Delete custom object
PUT
/service/platform/content/v1.0/company/{company_id}/metaobjects/{metaobject_id}
# Update custom object details
POST
/service/platform/content/v1.0/company/{company_id}/metaobjects/bulk/{definition_id}/upload
# Bulk custom object entries upload
GET
/service/platform/content/v1.0/company/{company_id}/metaobjects/bulk/{definition_id}/download
# Initiate download for bulk custom object entries
GET
/service/platform/content/v1.0/company/{company_id}/metaobjects/bulk/{definition_id}/sample
# Download sample for custom object bulk entry
POST

Create custom object definition

Create a custom object that will have a collection of custom fields and can be used anywhere in the custom field for any resource.
Parameters
company_id
integer
Required
This is company id
Request body
type
string
description
string
name
string
display_name_key
string
field_definitions
array of object (CustomObjectCustomFieldDefinitions)
Array of CustomObjectCustomFieldDefinitions
Response
200
400
500
Success. Returns the saved custom object defintion
CustomObjectDefinitionSchema
_id
string
name
string
type
string
display_name_key
string
description
string
creator
string
created_by
string
updated_by
string
field_definitions
array of object (CustomObjectCustomFieldDefinitionResSchema)
Array of CustomObjectCustomFieldDefinitionResSchema
Examples
Parameters
companyId:
1
body:
body
POST
/service/platform/content/v1.0/company/{company_id}/metaobjects/definitions
Loading...
Response
Loading...
GET

Get custom object definitions

Custom object definition lists can be obtained using this endpoint.
Parameters
company_id
integer
Required
This is company id
page_no
string
Required
This is the page number
page_size
string
Required
This is the page size
search
string
This is the search text to filter custom fields definitions
Response
200
400
500
Success. Returns a list custom object definitions.
CustomObjectDefinitionsSchema
items
array of object (CustomObjectEntry)
Array of CustomObjectEntry
page
object (Page)
Page
Examples
Parameters
companyId:
1
pageNo:
1
pageSize:
10
search:
"sometext"
GET
/service/platform/content/v1.0/company/{company_id}/metaobjects/definitions
Loading...
Response
Loading...
GET

Get custom object definition

Custom object definitions can be fetched using their definition ID.
Parameters
company_id
integer
Required
This is company id
definition_id
string
Required
This is definition id
Response
200
400
500
Custom object definition details.
CustomObjectDefinitionSchema
_id
string
name
string
type
string
display_name_key
string
description
string
creator
string
created_by
string
updated_by
string
field_definitions
array of object (CustomObjectCustomFieldDefinitionResSchema)
Array of CustomObjectCustomFieldDefinitionResSchema
Examples
Parameters
companyId:
1
definitionId:
"65369afad436ae0e54147e86"
GET
/service/platform/content/v1.0/company/{company_id}/metaobjects/definitions/{definition_id}
Loading...
Response
Loading...
PUT

Update custom object definition

Custom object definitions can be updated using this endpoint. You can update the name and description of the custom object and add more custom field definitions to the existing custom object.
Parameters
company_id
integer
Required
This is company id
definition_id
string
Required
This is definition id
Request body
type
string
description
string
name
string
display_name_key
string
field_definitions
array of object (CustomObjectCustomFieldDefinitions)
Array of CustomObjectCustomFieldDefinitions
Response
200
400
500
Custom field definition updated.
CustomObjectDefinitionSchema
_id
string
name
string
type
string
display_name_key
string
description
string
creator
string
created_by
string
updated_by
string
field_definitions
array of object (CustomObjectCustomFieldDefinitionResSchema)
Array of CustomObjectCustomFieldDefinitionResSchema
Examples
Parameters
companyId:
1
definitionId:
"65369afad436ae0e54147e86"
PUT
/service/platform/content/v1.0/company/{company_id}/metaobjects/definitions/{definition_id}
Loading...
Response
Loading...
DEL

delete custom object definition

Custom object definitions can be deleted using this endpoint by providing the definition ID.
Parameters
company_id
integer
Required
This is company id
definition_id
string
Required
This is definition id
Response
200
400
500
Custom object definition details.
CustomObjectDefinitionDeleteResponseSchema
success
boolean
message
string
Examples
Parameters
companyId:
1
definitionId:
"65369afad436ae0e54147e86"
DEL
/service/platform/content/v1.0/company/{company_id}/metaobjects/definitions/{definition_id}
Loading...
Response
Loading...
GET

Get list of custom objects

Custom object entries can fetch using this endpoint.
Parameters
company_id
integer
Required
This is company id
definition_id
string
This is definition id
page_no
string
Required
This is the page number
page_size
string
Required
This is the page size
Response
200
400
500
Success. Returns a list of custom objects. Refer `CustomObjectsSchema` for more details.
CustomObjectsSchema
items
array of object (CustomObjectListItemSchema)
Array of CustomObjectListItemSchema
page
object (Page)
Page
Examples
Parameters
companyId:
1
definitionId:
"65369afad436ae0e54147e86"
pageNo:
1
pageSize:
10
GET
/service/platform/content/v1.0/company/{company_id}/metaobjects
Loading...
Response
Example not available.
POST

Create custom object entries

Custom object entries against the custom object definition can be added using this API.
Parameters
company_id
integer
Required
This is company id
Request body
status
string
definition_id
string
fields
array of object (CustomObjectEntryFieldSchema)
Array of CustomObjectEntryFieldSchema
Response
200
400
500
Success. Returns a list of custom objects. Refer `CustomObjectSchema` for more details.
CustomObjectSchema
_id
string
creator
string
company_id
string
| integer
application_id
string
created_by
string
updated_by
string
status
string
type
string
display_name
string
definition_id
string
fields
array of object (CustomFieldSchema)
Array of CustomFieldSchema
Examples
Parameters
companyId:
1
POST
/service/platform/content/v1.0/company/{company_id}/metaobjects
Loading...
Response
Example not available.
GET

Get custom object details

Details of custom objects, their field details, definitions, and references can be obtained using this endpoint.
Parameters
company_id
integer
Required
This is company id
metaobject_id
string
Required
This is meta object id
Response
200
400
500
Success. Returns a custom object. Refer `CustomObjectByIdSchema` for more details.
CustomObjectByIdSchema
_id
string
status
string
display_name
string
definition
object (CustomObjectListItemDefinationSchema)
CustomObjectListItemDefinationSchema
references
array of object
fields
array of object (CustomObjectFieldSchema)
Array of CustomObjectFieldSchema
Examples
Parameters
companyId:
1
metaobjectId:
"65392bd912376081aafa90ff"
GET
/service/platform/content/v1.0/company/{company_id}/metaobjects/{metaobject_id}
Loading...
Response
Example not available.
DEL

Delete custom object

Custom object entries can be deleted by providing the delete ID using this endpoint.
Parameters
company_id
integer
Required
This is company id
metaobject_id
string
Required
This is meta object id
Response
200
400
500
Success. It will returns the message for delete successfully.
CustomDataDeleteSchema
success
boolean
message
string
Examples
Parameters
companyId:
1
metaobjectId:
"65392bd912376081aafa90ff"
DEL
/service/platform/content/v1.0/company/{company_id}/metaobjects/{metaobject_id}
Loading...
Response
Example not available.
PUT

Update custom object details

Custom object entries can be updated using this endpoint.
Parameters
company_id
integer
Required
This is company id
metaobject_id
string
Required
This is meta object id
Request body
status
string
definition_id
string
fields
array of object (CustomObjectEntryFieldSchema)
Array of CustomObjectEntryFieldSchema
Response
200
400
500
Custom field definition created.
CustomObjectByIdSchema
_id
string
status
string
display_name
string
definition
object (CustomObjectListItemDefinationSchema)
CustomObjectListItemDefinationSchema
references
array of object
fields
array of object (CustomObjectFieldSchema)
Array of CustomObjectFieldSchema
Examples
Parameters
companyId:
1
metaobjectId:
"65392bd912376081aafa90ff"
PUT
/service/platform/content/v1.0/company/{company_id}/metaobjects/{metaobject_id}
Loading...
Response
Loading...
POST

Bulk custom object entries upload

Custom object bulk import of bulk entries can be performed using this endpoint.
Parameters
company_id
integer
Required
This is company id
definition_id
string
Required
This is definition id
Request body
url
string
total_records
integer
Response
200
400
500
Success. Returns confirmation that the upload has started
CustomObjectEntryBulkUploadResponse
url
string
total_records
integer
Examples
Parameters
companyId:
1
definitionId:
"65369afad436ae0e54147e86"
body:
body
POST
/service/platform/content/v1.0/company/{company_id}/metaobjects/bulk/{definition_id}/upload
Loading...
Response
Loading...
GET

Initiate download for bulk custom object entries

Custom object bulk export of bulk entries can be perform using this endpoint.
Parameters
company_id
integer
Required
This is company id
definition_id
string
Required
This is definition id
Response
200
400
500
Success. Initiates bulk entries download
CustomObjectBulkEntryInitiateDownload
message
string
task_id
string
Examples
Parameters
companyId:
1
definitionId:
"65369afad436ae0e54147e86"
GET
/service/platform/content/v1.0/company/{company_id}/metaobjects/bulk/{definition_id}/download
Loading...
Response
Loading...
GET

Download sample for custom object bulk entry

Sample files for custom object bulk import can be obtained from this endpoint.
Parameters
company_id
integer
Required
This is company id
definition_id
string
Required
This is definition id
Response
200
400
500
Success. Get headers of custom object definition
Examples
Parameters
companyId:
1
definitionId:
"65369afad436ae0e54147e86"
GET
/service/platform/content/v1.0/company/{company_id}/metaobjects/bulk/{definition_id}/sample
Loading...
Response
Loading...