Type
Was this helpful?
Was this helpful?
Retrieves types which have at least one schema assigned.
Your Emporix tenant's name.
Note: Always write the tenant name in lowercase.
^[a-z][a-z0-9]+$
GET /schema/{tenant}/types HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
"ORDER",
"PRODUCT",
"QUOTE"
]
Updates assigned types to the schema. It's allowed to change the assigned types to the newest schema as well as to the previous versions of the schema. This operation does not generate a new version of the schema.
Required scopes
schema.schema_manage
Your Emporix tenant's name.
Note: Always write the tenant name in lowercase.
^[a-z][a-z0-9]+$
Unique identifier of the entity.
Version of the entity.
Defines how types assigned to given schema should be resolved. REPLACE is a default value. REPLACE takes provided types and replaces the existing ones with it. ADD adds provided types to the existing ones. REMOVE removes provided types from the existing ones.
REPLACE
Possible values: List of types to which assign the schema.
Type which the schema should be assigned to. Can be one of the predefined values or any custom schema type id.
PUT /schema/{tenant}/schemas/{id}/types HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 19
[
"PRODUCT",
"ORDER"
]
No content