Create an entity
Creates an entity with the specified details, including associated members and groups. The link to the associated Entity Definition Resource is required. The self property is ignored and can be omitted. <br> <br> If the request body contains an id, the request is treated as a possible UPSERT. If the id is omitted and only an identifier is provided, the request returns a conflict instead of updating the existing entity. The request then checks for the existence of the entity and if the response is positive, it updates the entity based on the provided body elements. When an id is present, the header contains the same Location property as with a normal POST response. When an identifier is used, the header contains an X-Global-Identifier property with the updated identifier as its value. <br> <br> Use the Upload API to upload assets to Content Hub. {% admonition type="info" name="Note" %}It is not possible to set relations while creating an entity unless the relations are nested. Additionally, this functionality is available only through the REST API and not through the Web Client SDK. For non-nested relations one call is made for each relation that is updated. {% /admonition %}
Request
- Base URLhttps://your-server
- AuthOAuth 2Authorization code/oauth/authorizeToken URL/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Culture for the entity, for example en-US.
Member groups to associate with the entity, for example PreambleGroup,ChoiceGroup.
Members to associate with the entity, for example PreambleThemeProperty,ChoiceThemeProperty.
Request body
Response
Successful operation
Changes
No recorded changes to this operation across all 1 revision of this API.