Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Export / Import

Exporting Custom Entities

post

Exports custom entities with corresponding schemas.

Required scopes
This endpoint requires the following scopes:
  • : Required for managing schemas.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: Always write the tenant name in lowercase.

Pattern: ^[a-z][a-z0-9]+$
Bodystring[]
string[]Optional
Responses
400

Unsupported content language provided.

application/json
codeintegerOptional
statusstringOptional
messagestringOptional
errorCodestringOptional
post/schema/{tenant}/custom-entities/export
POST /schema/{tenant}/custom-entities/export HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 39

[
  "CUSTOM_PRODUCT",
  "MANUFACTURER",
  "CAR"
]
{
  "code": 400,
  "status": "Bad Request",
  "message": "Language header validation failed.",
  "details": [
    {
      "message": "Following languages are not supported: 'ru'"
    }
  ]
}

Importing Custom Entities

post

Imports custom entities with corresponding schemas.

Note: If given Custom Entity Type or Schema already exists then it will be created with _COPY suffix. For example, CUSTOM_PRODUCT will be created as CUSTOM_PRODUCT_COPY.

Required scopes
This endpoint requires the following scopes:
  • : Required for managing schemas.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: Always write the tenant name in lowercase.

Pattern: ^[a-z][a-z0-9]+$
Body
datastring · byteRequired

Base64 representation of custom entities with corresponding schemas.

Responses
400

Unsupported content language provided.

application/json
codeintegerOptional
statusstringOptional
messagestringOptional
errorCodestringOptional
post/schema/{tenant}/custom-entities/import
POST /schema/{tenant}/custom-entities/import HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 48

{
  "data": "MQUlOVF9BR0VOVF9DT05URVhUIl19XX1dfQ=="
}
{
  "code": 400,
  "status": "Bad Request",
  "message": "Language header validation failed.",
  "details": [
    {
      "message": "Following languages are not supported: 'ru'"
    }
  ]
}

Last updated

Was this helpful?