All properties, variables, and attributes that have a string data type cannot exceed a length of 64135 characters when part of a PUT, POST, or PATCH operation payload.
Models created using this endpoint cannot contain more than 9000 short or 3000 complex properties
and values in the body, while the maximum object model payload size allowed is 64KB.
Whichever limit is crossed first will cause an error.
Insert based on either objectId + model or unique properties + type.
If no objectId is given and it cannot be determined from related models
(using unique properties), a new objectId will be safely generated and
assigned to the object model.
If an existing objectId is provided but the given model does not yet exist,
the object model given in the request git payload will be used.
Unique properties (as defined in the referenced type) are used to validate
that the model does not already exist.
If either the combination of objectId and model already exist or an existing
object model can be found by the unique properties an error (409 Conflict)
will be raised.
References may NOT be included here. Use the
/objects/{objectId}/models/{modelId}/references API for that.
If referenced type contains related models, the models will also be created.
The response contains the IDs of created object identities. The root element
is the main object; relatedModels is an array of created related models.
Model creation by background application
Background applications are by default considered tenant agnostic
(they have access to all data in an instance and no tenant is
mapped to the application).
Model creation operation requires tenant to be known, therefore the request shall
be decorated with the header:
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Update existing object model based on given objectId and modelId. If values
of unique properties do not match the ones in the database, the request will
be rejected with a 400 error. The version must be present in the payload. If a
version provided in the payload does not match the one in the database, the
request will be rejected with a 409 error.
TIP
Type change functionality allows users to change Type Definition associated with
object model during its update (if compatible). See Object Type
Modification for more
information.
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
There is no protection against concurrent writes on this endpoint. In case
there are overlapping patches the last one will always apply.
If the value of a unique property is changed, the request is rejected with a
400 error.
The version attribute can be provided optionally. If it is provided, it will
be checked the same way as for a PUT operation. If it is not provided, there
will be NO cuncurrency check performed.
The version attribute on the object model will be increased by this operation.
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Removes from the database an existing object model identified by objectId and
modelId.
Incoming and outgoing references will also be deleted.
Object models referenced by outgoing references with isContainment=true will
also be deleted. This will cascade along outgoing references of those object
models as well.
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Creates new type definition extension for a specific object model. If the
extension for this object model already exists, a new version is created and
acts as the current extension for the object model. Historical extensions are
preserved for telemetry check purposes.
Extensions PUT calls are applicable in both scenarios.
To change the already-existing components, such as variables, properties etc.
To delete the properties from current extensions, even if the extended property has been updated in the object model.
For instance, if a user wants to delete properties from an existing extension that has already been updated in the Object Model with version v2, those same properties will be removed internally from the Object Model as well, and the version will be increased (i.e., if existing version is v2 it will be updated to v3).
Updated ObjectModel (length property removed and version incremented)
{"model":"abb.ability.device","type":"extensions@1","version":3,// version updated"properties":{},"objectId":"8e053a1e-4cd3-4fdf-ab41-be3ef33e71c2","tenantId":"97d11902-8505-40bc-9af0-b6c7287a2d2c"}
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
The references provided will be added to the given object model as outgoing
references.
Existing references (uniquely identified by source, reference name, and
target) will not be duplicated.
References not existing in this request are outside the scope of this request
and will not be touched and thus also not deleted. To completely replace a
specific reference by name, first a call to DELETE
/objects/{objectId}/{models}/{modelId}/references/out/{name} must be issued
followed by a POST to this endpoint containing the new set of references.
If the request contains references that are not defined in the type definition
of the source, the WHOLE request will be rejected.
If any reference violates constraints for isHierarchical (no cycles, maximum
one incoming 'hierarchical' reference per model) or isContainment (maximum one
incoming 'containment' reference per model), the WHOLE request will be
rejected.
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Removes all outgoing references based on their name where the source is the
given objectId.
Object models that are the target of outgoing references which have
isContainment set to "true" will also be deleted. This will cascade along
outgoing references of those object models as well.
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
Removes outgoing reference based on the specified name and referenceId
where the source is the given objectId.
Object models that are the target of outgoing references which have
isContainment set to "true" will also be deleted. This will cascade along
outgoing references of those object models as well.
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors
A method must be specified in the type of this model. Input payload is specified
in the request body. If a callbackUrl has been provided, a method response
(whether successful or not) will be delivered there.
Service error. Service has encountered one or more unexpected conditions that prevented it from fulfilling the request, which may or may not be temporary. Response will contain more details about these errors