Cadmatic Web API for Plant Modeller 24.3
JWT token authentication using bearer scheme and OAuth2 are supported.
project required | string The project database ID |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "result": {
- "files": [
- "string"
], - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
]
Note that if using a network path, then the Web API must get the path in UNC format, since it is installed as a service. Further, the service must have been installed using a domain account, otherwise the network drives will not be available to the service.
project required | string The project database ID |
queryId | string COS OID of the export configuration |
Directory | string or null Directory where the export is stored. If no directory is specified, then the export is stored in the data directory set for the Web API. |
{- "Directory": "string"
}
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
project required | string The project database ID |
exportId required | string <uuid> Export GUID |
{- "result": {
- "files": [
- "string"
], - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
If the export is in "pending" mode, then it will be removed and not run. If the export is currently running it cannot be removed.
project required | string The project database ID |
exportId required | string <uuid> Export GUID |
{- "StatusCode": 0,
- "StatusDescription": "string",
- "Message": "string"
}
project required | string The project database ID |
exportId required | string <uuid> Export GUID |
file required | string Name of the file to download |
{- "StatusCode": 0,
- "StatusDescription": "string",
- "Message": "string"
}
project required | string The project database ID |
exportId required | string <uuid> Export GUID |
{- "StatusCode": 0,
- "StatusDescription": "string",
- "Message": "string"
}
project required | string The project database ID |
exportId required | string <uuid> |
{- "StatusCode": 0,
- "StatusDescription": "string",
- "Message": "string"
}
project required | string The project database ID |
type required | integer <int32> (ExportType) Enum: 0 1 2 3 The export's type. The integer values mean: 0 = JT Export 1 = IFC Export 2 = 3DDX Export 3 = eBrowser Export |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "Attributes": [
- {
- "name": "string",
- "tag": "string",
- "value": "string"
}
], - "OID": "string"
}
]
project required | string The project database ID |
queryId | string |
Directory | string or null Directory where the export is stored. If no directory is specified, then the export is stored in the data directory set for the Web API. |
{- "Directory": "string"
}
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
project required | string The project database ID |
exportId required | string <uuid> Export GUID |
0
exportId required | string <uuid> Export GUID |
project required | string |
[- "string"
]
project required | string The project database ID |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
]
project required | string The project database ID |
id required | string The COS OID of the settings |
{- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
project required | string The project database ID |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "settingsOid": "string",
- "importFile": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "group": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
]
This creates an import process for a new object and returns its current status. The process is created in waiting status. The process can be run from the functional endpoints under its resource location.
project required | string The project database ID |
settingsOid required | string non-empty The import configuration used by the process. |
importFile | string or null The full path to the file to import from. The WebAPI process must be able to find the file under this location. |
{- "settingsOid": "string",
- "importFile": "string"
}
{- "settingsOid": "string",
- "importFile": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "group": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
project required | string The project database ID |
processId required | string <uuid> GUID of the asynchronous import request |
{- "settingsOid": "string",
- "importFile": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "group": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
To delete the import process and the imported data (group and objects), use a POST request to the /delete endpoint of the process, instead.
project required | string The project database ID |
processId required | string <uuid> GUID of the asynchronous import request |
{- "settingsOid": "string",
- "importFile": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "group": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
This schedules the import to be run asynchronously. To find out if the process actually started or terminated, check its status.
project required | string The project database ID |
processId required | string <uuid> GUID of the asynchronous import request |
{- "settingsOid": "string",
- "importFile": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "group": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
This schedules an import process, the import group and all imported objects for deletion. The actual deletion is run by the Web API as an asynchronous process as soon as possible. Import processes marked for deletion cannot be run anymore.
project required | string The project database ID |
processId required | string <uuid> GUID of the import process to mark for deletion |
{- "settingsOid": "string",
- "importFile": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "group": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
The token expires after 30 minutes, at that point a new token is needed.
Client with the ID and secret key.
ClientID required | string non-empty ID of the client. Can be found in the management tool. |
ClientSecret required | string non-empty Client secret. Given when the client was registered. |
{- "ClientID": "string",
- "ClientSecret": "string"
}
{- "token": "string"
}
Only the client-credentials grant flow is supported as described in RFC 6749. The client ID and client secret must be sent encoded as Base64 in the request header.
The format must be following:
Authorization: Basic <EncodedIdentifier>
where EncodedIdentifier is the base-64 encoded string "client_id:client_secret".
Note that the "Try it out" feature with this endpoint will not work for getting the token. You have to use the "Authorize" button to use the OAuth 2.0 flow here on the Swagger page.
Here is an example of a CURL command that can be used to get the token using the client-credentials grant flow:
curl -X "POST\" -H \"Authorization: Basic N0M1MzA1RjJER .. KWT0=\" -d grant_type=client_credentials http://localhost:25000/api/oauth/token
Note that the Base64 encoded credentials have been shortened due to length. As response you will get an OAuth 2.0 token.
grant_type | string |
{- "access_token": "string",
- "token_type": "string",
- "expires_in": 0
}
database required | string The project or library database ID |
offset | integer <int32> [ 0 .. 2147483647 ] Index of the first item to include in the reply.Indices start with zero.If the index is equal to or larger than the total number of items, an empty array is returned.This parameter and the after parameter cannot be used at the same time. |
after | string = 22 characters The OID to start reading items from, the object with this OID will not be included in the response. The OID must be given as a Base-64 encoded string. If the OID is not found, then an empty list is returned.This parameter and the offset parameter cannot be used at the same time. |
limit | integer <int32> [ 0 .. 2147483647 ] Determines how many items should be read, starting from the offset. In case no limit is given, all items following the offset are returned.In case the limit exceeds the total number of items in COS, all items following the offset are returned |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "Sizes": {
- "id": "string",
- "href": "string"
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
]
Only editable attributes are affected.
database required | string The project or library database ID |
oid required | string COS OID of the catalog part |
Array of objects (CosAttribute) List of the COS object's attributes |
{- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
]
}
{- "Sizes": {
- "id": "string",
- "href": "string"
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
database required | string The project or library database ID |
oid required | string COS OID of the catalog part |
{- "Sizes": {
- "id": "string",
- "href": "string"
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
database required | string The project or library database ID |
oid required | string COS OID of the catalog part |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "DimensionalDescription": "string",
- "CatalogPart": {
- "id": "string",
- "href": "string"
}, - "Dimensions": {
- "id": "string",
- "href": "string"
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
]
Get all part sizes
database required | string The project or library database ID |
offset | integer <int32> [ 0 .. 2147483647 ] Index of the first item to include in the reply.Indices start with zero.If the index is equal to or larger than the total number of items, an empty array is returned.This parameter and the after parameter cannot be used at the same time. |
after | string = 22 characters The OID to start reading items from, the object with this OID will not be included in the response. The OID must be given as a Base-64 encoded string. If the OID is not found, then an empty list is returned.This parameter and the offset parameter cannot be used at the same time. |
limit | integer <int32> [ 0 .. 2147483647 ] Determines how many items should be read, starting from the offset. In case no limit is given, all items following the offset are returned.In case the limit exceeds the total number of items in COS, all items following the offset are returned |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "DimensionalDescription": "string",
- "CatalogPart": {
- "id": "string",
- "href": "string"
}, - "Dimensions": {
- "id": "string",
- "href": "string"
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
]
Get a single part size
database required | string The project or library database ID |
oid required | string COS OID of the part size |
{- "DimensionalDescription": "string",
- "CatalogPart": {
- "id": "string",
- "href": "string"
}, - "Dimensions": {
- "id": "string",
- "href": "string"
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
Only editable attributes are affected.
database required | string The project or library database ID |
oid required | string COS OID of the part size |
Array of objects (CosAttribute) List of the COS object's attributes |
{- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
]
}
{- "DimensionalDescription": "string",
- "CatalogPart": {
- "id": "string",
- "href": "string"
}, - "Dimensions": {
- "id": "string",
- "href": "string"
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
database required | string The project or library database ID |
oid required | string COS OID of the part size |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "Name": "string",
- "QuantityId": 0,
- "Ordinal": 0,
- "Value": 0
}
]
Read recent changes to a database. Changes to the databases are enumerated with increasing transaction IDs.
Library and project databases track their own, independent transaction IDs. Hence, unlike for other endpoints, calls to the /changes endpoints of a project database will never implicitly query the library database.
For each object that has been changed in the given transaction or any transaction after it, the latest object change is returned. Changes are in no defined order. This endpoint can be used to find all objects that have been changed since a given ID. Intermediate changes are not returned: If an object has been created and deleted, only the deletion is contained.
database required | string The project or library database ID |
first required | integer <int32> [ 0 .. 2147483647 ] First transaction to consider |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "id": 0,
- "transactionType": "Modified",
- "objectType": "string",
- "oid": "string"
}
]
The query filter must either request exactly one COS type by equality (e.g. query=properties.ObjectType="Drawing") or muliple types using set operations (e.g.query=properties.objectType in ["Drawing", "Catalog Part"]
database required | string The project or library database ID |
offset | integer <int32> [ 0 .. 2147483647 ] Index of the first item to include in the reply.Indices start with zero.If the index is equal to or larger than the total number of items, an empty array is returned.This parameter and the after parameter cannot be used at the same time. |
after | string = 22 characters The OID to start reading items from, the object with this OID will not be included in the response. The OID must be given as a Base-64 encoded string. If the OID is not found, then an empty list is returned.This parameter and the offset parameter cannot be used at the same time. |
limit | integer <int32> [ 0 .. 2147483647 ] Determines how many items should be read, starting from the offset. In case no limit is given, all items following the offset are returned.In case the limit exceeds the total number of items in COS, all items following the offset are returned |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
]
database required | string The project or library database ID |
oid required | string COS OID of the object |
{- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
database required | string The project or library database ID |
oid required | string COS OID of the object |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
{- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
project required | string The project database ID |
docType | integer <int32> (DocType) Enum: 0 1 2 3 4 5 6 7 The document's type. The integer values mean: 0 = Plant Modeller Drawing 1 = Diagram Drawing 2 = Isometric Drawing 3 = Duct Main Drawing 4 = Pipe Main Drawing 5 = Electrical Document 6 = Hull Document 7 = Piping Isometric Document. If missing, all types are considered. |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "DocumentOID": "string",
- "DocumentName": "string",
- "PublicationFiles": [
- {
- "PublicationOID": "string",
- "PublicationRevision": "string",
- "Files": [
- "string"
]
}
], - "Attributes": [
- {
- "name": "string",
- "tag": "string",
- "value": "string"
}
], - "Pages": [
- { }
], - "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}
}
]
project required | string The project database ID |
oid required | string COS OID of the document |
{- "DocumentOID": "string",
- "DocumentName": "string",
- "PublicationFiles": [
- {
- "PublicationOID": "string",
- "PublicationRevision": "string",
- "Files": [
- "string"
]
}
], - "Attributes": [
- {
- "name": "string",
- "tag": "string",
- "value": "string"
}
], - "Pages": [
- { }
], - "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}
}
project required | string The project database ID |
oid required | string COS OID of the document |
revision | string Default: "" Revision of the publication. If no revision or an empty string is given then the zero revision is returned |
[- "string"
]
project required | string The project database ID |
oid required | string COS OID of the document |
file required | string Name of file to download |
revision | string Default: "" Revision of the publication |
{- "StatusCode": 0,
- "StatusDescription": "string",
- "Message": "string"
}
project required | string The project database ID |
docType required | integer <int32> (DocType) Enum: 0 1 2 3 4 5 6 7 The document's type. The integer values mean: 0 = Plant Modeller Drawing 1 = Diagram Drawing 2 = Isometric Drawing 3 = Duct Main Drawing 4 = Pipe Main Drawing 5 = Electrical Document 6 = Hull Document 7 = Piping Isometric Document |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "Type": 1,
- "AttributeTagName": "string",
- "AttributeName": "string",
- "HasMax": true,
- "HasMin": true,
- "MaxLength": 0,
- "MaxIntVal": 0,
- "MinIntVal": 0,
- "QuantityString": "string",
- "MaxFloatVal": 0,
- "MinFloatVal": 0,
- "EnumChoices": [
- "string"
], - "CodedEnumChoices": {
- "property1": "string",
- "property2": "string"
}
}
]
database required | string The project or library database ID |
offset | integer <int32> [ 0 .. 2147483647 ] Index of the first item to include in the reply.Indices start with zero.If the index is equal to or larger than the total number of items, an empty array is returned.This parameter and the after parameter cannot be used at the same time. |
after | string = 22 characters The OID to start reading items from, the object with this OID will not be included in the response. The OID must be given as a Base-64 encoded string. If the OID is not found, then an empty list is returned.This parameter and the offset parameter cannot be used at the same time. |
limit | integer <int32> [ 0 .. 2147483647 ] Determines how many items should be read, starting from the offset. In case no limit is given, all items following the offset are returned.In case the limit exceeds the total number of items in COS, all items following the offset are returned |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "parametricModels": {
- "id": "string",
- "href": "string"
}, - "instanceParameters": {
- "property1": {
- "quantityId": 0
}, - "property2": {
- "quantityId": 0
}
}, - "computedParameters": {
- "property1": {
- "comment": "string"
}, - "property2": {
- "comment": "string"
}
}, - "parameters": {
- "property1": {
- "quantityId": 0
}, - "property2": {
- "quantityId": 0
}
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
]
database required | string The project or library database ID |
oid required | string COS OID of the equipment GDL |
Array of objects (CosAttribute) List of the COS object's attributes |
{- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
]
}
{- "parametricModels": {
- "id": "string",
- "href": "string"
}, - "instanceParameters": {
- "property1": {
- "quantityId": 0
}, - "property2": {
- "quantityId": 0
}
}, - "computedParameters": {
- "property1": {
- "comment": "string"
}, - "property2": {
- "comment": "string"
}
}, - "parameters": {
- "property1": {
- "quantityId": 0
}, - "property2": {
- "quantityId": 0
}
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
database required | string The project or library database ID |
oid required | string COS OID of the equipment GDL |
{- "parametricModels": {
- "id": "string",
- "href": "string"
}, - "instanceParameters": {
- "property1": {
- "quantityId": 0
}, - "property2": {
- "quantityId": 0
}
}, - "computedParameters": {
- "property1": {
- "comment": "string"
}, - "property2": {
- "comment": "string"
}
}, - "parameters": {
- "property1": {
- "quantityId": 0
}, - "property2": {
- "quantityId": 0
}
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
database required | string The project or library database ID |
oid required | string COS OID of the equipment GDL |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "parameters": {
- "property1": 0,
- "property2": 0
}, - "computedParameters": {
- "property1": 0,
- "property2": 0
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
]
database required | string The project or library database ID |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "importFile": "string",
- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "targetDatabase": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "createdObject": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
]
This creates an import process for a new equipment GDL object and returns its current status. The process is created in waiting status. The process can be run from the functional endpoints under its resource location.
database required | string The project or library database ID |
importFile | string or null The full path to the file to import from. The Web API process must be able to find the file under this location. |
Array of objects or null (CosAttribute) List of attributes to set on the imported object. |
{- "importFile": "string",
- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
]
}
{- "importFile": "string",
- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "targetDatabase": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "createdObject": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
database required | string The project or library database ID |
processId required | string <uuid> GUID of the import process |
{- "importFile": "string",
- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "targetDatabase": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "createdObject": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
database required | string The project or library database ID |
processId required | string <uuid> GUID of the import process |
{- "importFile": "string",
- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "targetDatabase": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "createdObject": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
This schedules the import to be run and returns immediately. To find out if the process actually started or terminated, check its status.
database required | string The project or library database ID |
processId required | string <uuid> GUID of the import process |
{- "importFile": "string",
- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "targetDatabase": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "createdObject": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
project required | string The project database ID |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "OID": "string",
- "EpdOID": "string",
- "PositionId": "string",
- "ModelObject": "string",
- "PositionIdType": 0,
- "ExternalId": "string",
- "InstanceParameters": "string",
- "System": "string",
- "Line": "string",
- "RequiresElectricity": "string",
- "ComponentModel": "string",
- "Compartment": "string",
- "CatalogPart": "string",
- "Transform": [
- 0
], - "ExternalPositionIdStatus": "string",
- "Attributes": [
- {
- "name": "string",
- "tag": "string",
- "value": "string"
}
]
}
]
project required | string The project database ID |
oid required | string COS OID of the EDM |
[- {
- "OID": "string",
- "EpdOID": "string",
- "PositionId": "string",
- "ModelObject": "string",
- "PositionIdType": 0,
- "ExternalId": "string",
- "InstanceParameters": "string",
- "System": "string",
- "Line": "string",
- "RequiresElectricity": "string",
- "ComponentModel": "string",
- "Compartment": "string",
- "CatalogPart": "string",
- "Transform": [
- 0
], - "ExternalPositionIdStatus": "string",
- "Attributes": [
- {
- "name": "string",
- "tag": "string",
- "value": "string"
}
]
}
]
Returns EDMs for the OIDs provided in the body
project required | string The project database ID |
[- "string"
]
[- {
- "OID": "string",
- "EpdOID": "string",
- "PositionId": "string",
- "ModelObject": "string",
- "PositionIdType": 0,
- "ExternalId": "string",
- "InstanceParameters": "string",
- "System": "string",
- "Line": "string",
- "RequiresElectricity": "string",
- "ComponentModel": "string",
- "Compartment": "string",
- "CatalogPart": "string",
- "Transform": [
- 0
], - "ExternalPositionIdStatus": "string",
- "Attributes": [
- {
- "name": "string",
- "tag": "string",
- "value": "string"
}
]
}
]
Create EDM objects to COS
project required | string The project database ID |
EpdOID | string or null OID of a possibly linked EPD object |
PositionId required | string non-empty The EDM's position ID |
ModelObject | string or null The linked model object's OID |
PositionIdType | integer <int32> (EdmPositionIdType) Enum: 0 1 2 3 The position ID's type. The integer values mean: 0 = General Position ID 1 = Valve Position ID 2 = Instrument Position ID 3 = Equipment Position ID |
ExternalId required | string non-empty The EDM's external ID. This ID must be unique. |
InstanceParameters | string or null Instance parameters as a string. The string should have the following format: A1 x1 A2 x2 .. An xn, + where each Ai is the name of the dimension, and each xi is the value of the dimension in it's base units. The values should be double precision floating point numbers. |
System | string or null The EDM's system, as a COS OID |
Line | string or null The EDM's line (pipe or ductline), as a COS OID |
RequiresElectricity | string or null Value of enumerated attribute "Requires electricity" as a string |
ComponentModel | string or null The EDM's component model, as a COS OID. This should be either a GDL or a parametric model. |
Compartment | string or null The EDM's compartment. Should be the name of the compartment. |
CatalogPart | string or null The EDM's catalog part. Can be used if the EDM is modelling a standard component. |
Transform | Array of numbers or null <float> The transformation for the EDM object, given as a list of 12 floating point numbers. Formatted as follows (x y z x1 x2 x3 y1 y2 y3 z1 z2 z3) where (x y z) is the origin, (x1 x2 x3) the x-direction, (y1 y2 y3) the y-direction, and (z1 z2 z3) the z-direction. |
ExternalPositionIdStatus | string or null Status of the position ID. Valid values are 'Deleted' and 'Reserved'. 'Deleted' means that the EDM has been deleted from the 3rd party system and Plant Modeller will not allow users to insert such EDMs into the model. |
Array of objects or null (CosAttributeWithName) List of the EDM's user-defined attributes |
[- {
- "EpdOID": "string",
- "PositionId": "string",
- "ModelObject": "string",
- "PositionIdType": 0,
- "ExternalId": "string",
- "InstanceParameters": "string",
- "System": "string",
- "Line": "string",
- "RequiresElectricity": "string",
- "ComponentModel": "string",
- "Compartment": "string",
- "CatalogPart": "string",
- "Transform": [
- 0
], - "ExternalPositionIdStatus": "string",
- "Attributes": [
- {
- "tag": "string",
- "value": "string"
}
]
}
]
[- {
- "OID": "string",
- "ExternalId": "string"
}
]
This method will erase all data of the object and replace it with the new given values, except for the COS OID
project required | string The project database ID |
EpdOID | string or null OID of a possibly linked EPD object |
PositionId required | string non-empty The EDM's position ID |
ModelObject | string or null The linked model object's OID |
PositionIdType | integer <int32> (EdmPositionIdType) Enum: 0 1 2 3 The position ID's type. The integer values mean: 0 = General Position ID 1 = Valve Position ID 2 = Instrument Position ID 3 = Equipment Position ID |
ExternalId required | string non-empty The EDM's external ID. This ID must be unique. |
InstanceParameters | string or null Instance parameters as a string. The string should have the following format: A1 x1 A2 x2 .. An xn, + where each Ai is the name of the dimension, and each xi is the value of the dimension in it's base units. The values should be double precision floating point numbers. |
System | string or null The EDM's system, as a COS OID |
Line | string or null The EDM's line (pipe or ductline), as a COS OID |
RequiresElectricity | string or null Value of enumerated attribute "Requires electricity" as a string |
ComponentModel | string or null The EDM's component model, as a COS OID. This should be either a GDL or a parametric model. |
Compartment | string or null The EDM's compartment. Should be the name of the compartment. |
CatalogPart | string or null The EDM's catalog part. Can be used if the EDM is modelling a standard component. |
Transform | Array of numbers or null <float> The transformation for the EDM object, given as a list of 12 floating point numbers. Formatted as follows (x y z x1 x2 x3 y1 y2 y3 z1 z2 z3) where (x y z) is the origin, (x1 x2 x3) the x-direction, (y1 y2 y3) the y-direction, and (z1 z2 z3) the z-direction. |
ExternalPositionIdStatus | string or null Status of the position ID. Valid values are 'Deleted' and 'Reserved'. 'Deleted' means that the EDM has been deleted from the 3rd party system and Plant Modeller will not allow users to insert such EDMs into the model. |
Array of objects or null (CosAttributeWithName) List of the EDM's user-defined attributes |
[- {
- "EpdOID": "string",
- "PositionId": "string",
- "ModelObject": "string",
- "PositionIdType": 0,
- "ExternalId": "string",
- "InstanceParameters": "string",
- "System": "string",
- "Line": "string",
- "RequiresElectricity": "string",
- "ComponentModel": "string",
- "Compartment": "string",
- "CatalogPart": "string",
- "Transform": [
- 0
], - "ExternalPositionIdStatus": "string",
- "Attributes": [
- {
- "tag": "string",
- "value": "string"
}
]
}
]
{- "StatusCode": 0,
- "StatusDescription": "string",
- "Message": "string"
}
Update objects' attributes. Does not update unspecified attributes. To remove attributes use edm/replace
project required | string The project database ID |
EpdOID | string or null OID of a possibly linked EPD object |
PositionId required | string non-empty The EDM's position ID |
ModelObject | string or null The linked model object's OID |
PositionIdType | integer <int32> (EdmPositionIdType) Enum: 0 1 2 3 The position ID's type. The integer values mean: 0 = General Position ID 1 = Valve Position ID 2 = Instrument Position ID 3 = Equipment Position ID |
ExternalId required | string non-empty The EDM's external ID. This ID must be unique. |
InstanceParameters | string or null Instance parameters as a string. The string should have the following format: A1 x1 A2 x2 .. An xn, + where each Ai is the name of the dimension, and each xi is the value of the dimension in it's base units. The values should be double precision floating point numbers. |
System | string or null The EDM's system, as a COS OID |
Line | string or null The EDM's line (pipe or ductline), as a COS OID |
RequiresElectricity | string or null Value of enumerated attribute "Requires electricity" as a string |
ComponentModel | string or null The EDM's component model, as a COS OID. This should be either a GDL or a parametric model. |
Compartment | string or null The EDM's compartment. Should be the name of the compartment. |
CatalogPart | string or null The EDM's catalog part. Can be used if the EDM is modelling a standard component. |
Transform | Array of numbers or null <float> The transformation for the EDM object, given as a list of 12 floating point numbers. Formatted as follows (x y z x1 x2 x3 y1 y2 y3 z1 z2 z3) where (x y z) is the origin, (x1 x2 x3) the x-direction, (y1 y2 y3) the y-direction, and (z1 z2 z3) the z-direction. |
ExternalPositionIdStatus | string or null Status of the position ID. Valid values are 'Deleted' and 'Reserved'. 'Deleted' means that the EDM has been deleted from the 3rd party system and Plant Modeller will not allow users to insert such EDMs into the model. |
Array of objects or null (CosAttributeWithName) List of the EDM's user-defined attributes |
[- {
- "EpdOID": "string",
- "PositionId": "string",
- "ModelObject": "string",
- "PositionIdType": 0,
- "ExternalId": "string",
- "InstanceParameters": "string",
- "System": "string",
- "Line": "string",
- "RequiresElectricity": "string",
- "ComponentModel": "string",
- "Compartment": "string",
- "CatalogPart": "string",
- "Transform": [
- 0
], - "ExternalPositionIdStatus": "string",
- "Attributes": [
- {
- "tag": "string",
- "value": "string"
}
]
}
]
{- "StatusCode": 0,
- "StatusDescription": "string",
- "Message": "string"
}
project required | string The project database ID |
[- "string"
]
{- "StatusCode": 0,
- "StatusDescription": "string",
- "Message": "string"
}
project required | string The project database ID |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "Type": 1,
- "AttributeTagName": "string",
- "AttributeName": "string",
- "HasMax": true,
- "HasMin": true,
- "MaxLength": 0,
- "MaxIntVal": 0,
- "MinIntVal": 0,
- "QuantityString": "string",
- "MaxFloatVal": 0,
- "MinFloatVal": 0,
- "EnumChoices": [
- "string"
], - "CodedEnumChoices": {
- "property1": "string",
- "property2": "string"
}
}
]
Returns all EPDs in a given COS project.
project required | string The project database ID |
posIdType | integer <int32> (PosIdTypes) Enum: 0 1 2 3 4 The position ID's type. The integer values mean: 0 = Instrument Position ID 1 = Equipment Position ID 2 = Valve Position ID 3 = All 4 = Cable Position ID. Can be used to filter which EPDs are returned. If none is given then all EPDs are returned. |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "OID": "string",
- "ValvePositionId": "string",
- "InstrumentPositionId": "string",
- "EquipmentPositionId": "string",
- "CablePositionId": "string",
- "RequiresElectricity": "string",
- "TypeTableName": "string",
- "Attributes": [
- {
- "name": "string",
- "tag": "string",
- "value": "string"
}
]
}
]
Returns EPDs for the OIDs provided in the body.
project required | string The project database ID |
[- "string"
]
[- {
- "OID": "string",
- "ValvePositionId": "string",
- "InstrumentPositionId": "string",
- "EquipmentPositionId": "string",
- "CablePositionId": "string",
- "RequiresElectricity": "string",
- "TypeTableName": "string",
- "Attributes": [
- {
- "name": "string",
- "tag": "string",
- "value": "string"
}
]
}
]
project required | string The project database ID |
System required | string non-empty System for the EPD. Given as a COS oid. If the EPD is an equipment, then the system must be given. If the EPD is a valve, then the system must not be given, but instead a pipeline. |
EquipmentPositionId required | string non-empty Position ID for the equipment |
ComponentModel | string or null Component model that can be used when insert the equipment into the model. |
Transform | Array of numbers or null <float> The transformation for the EDM object, given as a list of 12 floating point numbers. Formatted as follows (x y z x1 x2 x3 y1 y2 y3 z1 z2 z3) where (x y z) is the origin, (x1 x2 x3) the x-direction, (y1 y2 y3) the y-direction, and (z1 z2 z3) the z-direction. |
OID | string or null([a-zA-Z0-9_.]){22} OID of the EPD, used when updating. Not needed for creation. |
RequiresElectricity | string or null Value of enumerated attribute "Requires electricity" as a string |
Array of objects or null (CosAttributeWithName) List of attributes. These must have been assigned to the object type in COS. | |
InstanceParameters | string or null Instance parameters as a string. The string should have the following format: A1 x1 A2 x2 .. An xn, where each Ai is the name of the dimension, and each xi is the value of the dimension in it's base units. The values should be double precision floating point numbers. |
[- {
- "System": "string",
- "EquipmentPositionId": "string",
- "ComponentModel": "string",
- "Transform": [
- 0
], - "OID": "string",
- "RequiresElectricity": "string",
- "Attributes": [
- {
- "tag": "string",
- "value": "string"
}
], - "InstanceParameters": "string"
}
]
[- "string"
]
project required | string The project database ID |
InstrumentPositionId required | string non-empty Position ID for the instrument. |
Pipeline required | string non-empty Pipeline for the instrument. Given as a COS oid. |
System required | string non-empty System for the EPD. Given as a COS oid. |
InstrumentTag required | string non-empty Reference to instrument tag COS object. Given as COS OID. |
Superscript | string or null Instrument superscript |
Subscript | string or null Instrument subscript |
InstrumentLocation | string or null A description of the instrument's location. Not a coordinate. |
Function | string or null Instrument's function |
Measure | string or null Instrument's measure |
Modifier | string or null Instrument's modifier. |
NominalSizes | Array of numbers or null <float> Instrument's nominal sizes. Only one is used by Plant Modeller. |
OID | string or null([a-zA-Z0-9_.]){22} OID of the EPD, used when updating. Not needed for creation. |
RequiresElectricity | string or null Value of enumerated attribute "Requires electricity" as a string |
Array of objects or null (CosAttributeWithName) List of attributes. These must have been assigned to the object type in COS. | |
InstanceParameters | string or null Instance parameters as a string. The string should have the following format: A1 x1 A2 x2 .. An xn, where each Ai is the name of the dimension, and each xi is the value of the dimension in it's base units. The values should be double precision floating point numbers. |
[- {
- "InstrumentPositionId": "string",
- "Pipeline": "string",
- "System": "string",
- "InstrumentTag": "string",
- "Superscript": "string",
- "Subscript": "string",
- "InstrumentLocation": "string",
- "Function": "string",
- "Measure": "string",
- "Modifier": "string",
- "NominalSizes": [
- 0
], - "OID": "string",
- "RequiresElectricity": "string",
- "Attributes": [
- {
- "tag": "string",
- "value": "string"
}
], - "InstanceParameters": "string"
}
]
[- "string"
]
project required | string The project database ID |
ValvePositionId required | string non-empty Position ID for the valve. |
Pipeline required | string non-empty Pipeline for the valve. Given as a COS oid. |
PartCode | string or null The partcode should be a COS-OID of a catalog-part. It can be used together with the NominalSizes field to specify the size of the part. |
PartId | string or null The part ID is a reference to a catalog part size, which can be used when the part is inserted into the model. The string should be a COS OID to a catalog part size. |
SpecificationOid | string or null Oid of the specification to use, nominal size can be specified with a specification, as well as shortcode. |
ShortCode | string or null Shortcode from the specification to use, specify which category of parts to use. Mandatory if specification is used. Otherwise not needed. |
NominalSizes | Array of numbers or null <float> List of nominal sizes. Only two are currently supported by Plant Modeller, however additional sizes can be given, but only the first two will be used for valves, and only the first one for instruments. |
OID | string or null([a-zA-Z0-9_.]){22} OID of the EPD, used when updating. Not needed for creation. |
RequiresElectricity | string or null Value of enumerated attribute "Requires electricity" as a string |
Array of objects or null (CosAttributeWithName) List of attributes. These must have been assigned to the object type in COS. | |
InstanceParameters | string or null Instance parameters as a string. The string should have the following format: A1 x1 A2 x2 .. An xn, where each Ai is the name of the dimension, and each xi is the value of the dimension in it's base units. The values should be double precision floating point numbers. |
[- {
- "ValvePositionId": "string",
- "Pipeline": "string",
- "PartCode": "string",
- "PartId": "string",
- "SpecificationOid": "string",
- "ShortCode": "string",
- "NominalSizes": [
- 0
], - "OID": "string",
- "RequiresElectricity": "string",
- "Attributes": [
- {
- "tag": "string",
- "value": "string"
}
], - "InstanceParameters": "string"
}
]
[- "string"
]
project required | string The project database ID |
PositionId required | string non-empty Position ID for the duct. |
Ductline required | string non-empty Ductline for the duct. Given as a COS oid. |
(SpecificationRule (object or null)) or (PartIdRule (object or null)) or (CatalogPartRule (object or null)) The rule for which component the duct will use | |
Area | number or null <float> The minimum cross sectional area (in mm^2) which the part must satisfy when inserting it into the model |
OID | string or null([a-zA-Z0-9_.]){22} OID of the EPD, used when updating. Not needed for creation. |
RequiresElectricity | string or null Value of enumerated attribute "Requires electricity" as a string |
Array of objects or null (CosAttributeWithName) List of attributes. These must have been assigned to the object type in COS. | |
InstanceParameters | string or null Instance parameters as a string. The string should have the following format: A1 x1 A2 x2 .. An xn, where each Ai is the name of the dimension, and each xi is the value of the dimension in it's base units. The values should be double precision floating point numbers. |
[- {
- "PositionId": "string",
- "Ductline": "string",
- "ComponentRule": {
- "type": "string",
- "shortCode": "string",
- "specificationOid": "string",
- "rectangularSize": {
- "Width": 0,
- "Height": 0
}
}, - "Area": 0,
- "OID": "string",
- "RequiresElectricity": "string",
- "Attributes": [
- {
- "tag": "string",
- "value": "string"
}
], - "InstanceParameters": "string"
}
]
[- "string"
]
project required | string The project database ID |
system required | string or null non-empty ([a-zA-Z0-9_.]){22} The COS-OID of the cable system to use |
material required | string non-empty ([a-zA-Z0-9_.]){22} The COS-OID of the cable material (catalog part size) to use. The material should use the GT_PIPE geometry type, and have at least one dimension of type mass/length. |
required | object (CableEquipment) Represents an equipment attached to either the head or tail of a cable |
required | object (CableEquipment) Represents an equipment attached to either the head or tail of a cable |
positionId required | string non-empty The cable's position ID |
interferenceClassCode | integer or null <int32> [ 0 .. 2147483647 ] The interference class code. If given, this will override the interference class specified by the cable system. |
maxLength | number or null <double> The maximum length of the cable, in millimeters |
object or null List of user-defined COS attributes. Strings and numerical values are supported. |
[- {
- "system": "string",
- "material": "string",
- "headEquipment": {
- "location": [
- 0
], - "node": "string",
- "positionId": "string"
}, - "tailEquipment": {
- "location": [
- 0
], - "node": "string",
- "positionId": "string"
}, - "positionId": "string",
- "interferenceClassCode": 2147483647,
- "maxLength": 0,
- "attributes": {
- "property1": null,
- "property2": null
}
}
]
[- "string"
]
Only updates existing objects and cannot be used to create new instruments.
project required | string The project database ID |
InstrumentPositionId required | string non-empty Position ID for the instrument. |
Pipeline required | string non-empty Pipeline for the instrument. Given as a COS oid. |
System required | string non-empty System for the EPD. Given as a COS oid. |
InstrumentTag required | string non-empty Reference to instrument tag COS object. Given as COS OID. |
Superscript | string or null Instrument superscript |
Subscript | string or null Instrument subscript |
InstrumentLocation | string or null A description of the instrument's location. Not a coordinate. |
Function | string or null Instrument's function |
Measure | string or null Instrument's measure |
Modifier | string or null Instrument's modifier. |
NominalSizes | Array of numbers or null <float> Instrument's nominal sizes. Only one is used by Plant Modeller. |
OID | string or null([a-zA-Z0-9_.]){22} OID of the EPD, used when updating. Not needed for creation. |
RequiresElectricity | string or null Value of enumerated attribute "Requires electricity" as a string |
Array of objects or null (CosAttributeWithName) List of attributes. These must have been assigned to the object type in COS. | |
InstanceParameters | string or null Instance parameters as a string. The string should have the following format: A1 x1 A2 x2 .. An xn, where each Ai is the name of the dimension, and each xi is the value of the dimension in it's base units. The values should be double precision floating point numbers. |
[- {
- "InstrumentPositionId": "string",
- "Pipeline": "string",
- "System": "string",
- "InstrumentTag": "string",
- "Superscript": "string",
- "Subscript": "string",
- "InstrumentLocation": "string",
- "Function": "string",
- "Measure": "string",
- "Modifier": "string",
- "NominalSizes": [
- 0
], - "OID": "string",
- "RequiresElectricity": "string",
- "Attributes": [
- {
- "tag": "string",
- "value": "string"
}
], - "InstanceParameters": "string"
}
]
{- "StatusCode": 0,
- "StatusDescription": "string",
- "Message": "string"
}
This endpoint requires that at least all required fields are supplied with the update, even if they are not updated.
project required | string The project database ID |
ValvePositionId required | string non-empty Position ID for the valve. |
Pipeline required | string non-empty Pipeline for the valve. Given as a COS oid. |
PartCode | string or null The partcode should be a COS-OID of a catalog-part. It can be used together with the NominalSizes field to specify the size of the part. |
PartId | string or null The part ID is a reference to a catalog part size, which can be used when the part is inserted into the model. The string should be a COS OID to a catalog part size. |
SpecificationOid | string or null Oid of the specification to use, nominal size can be specified with a specification, as well as shortcode. |
ShortCode | string or null Shortcode from the specification to use, specify which category of parts to use. Mandatory if specification is used. Otherwise not needed. |
NominalSizes | Array of numbers or null <float> List of nominal sizes. Only two are currently supported by Plant Modeller, however additional sizes can be given, but only the first two will be used for valves, and only the first one for instruments. |
OID | string or null([a-zA-Z0-9_.]){22} OID of the EPD, used when updating. Not needed for creation. |
RequiresElectricity | string or null Value of enumerated attribute "Requires electricity" as a string |
Array of objects or null (CosAttributeWithName) List of attributes. These must have been assigned to the object type in COS. | |
InstanceParameters | string or null Instance parameters as a string. The string should have the following format: A1 x1 A2 x2 .. An xn, where each Ai is the name of the dimension, and each xi is the value of the dimension in it's base units. The values should be double precision floating point numbers. |
[- {
- "ValvePositionId": "string",
- "Pipeline": "string",
- "PartCode": "string",
- "PartId": "string",
- "SpecificationOid": "string",
- "ShortCode": "string",
- "NominalSizes": [
- 0
], - "OID": "string",
- "RequiresElectricity": "string",
- "Attributes": [
- {
- "tag": "string",
- "value": "string"
}
], - "InstanceParameters": "string"
}
]
{- "StatusCode": 0,
- "StatusDescription": "string",
- "Message": "string"
}
This endpoint requires that at least all required fields are supplied with the update, even if they are not updated.
project required | string The project database ID |
System required | string non-empty System for the EPD. Given as a COS oid. If the EPD is an equipment, then the system must be given. If the EPD is a valve, then the system must not be given, but instead a pipeline. |
EquipmentPositionId required | string non-empty Position ID for the equipment |
ComponentModel | string or null Component model that can be used when insert the equipment into the model. |
Transform | Array of numbers or null <float> The transformation for the EDM object, given as a list of 12 floating point numbers. Formatted as follows (x y z x1 x2 x3 y1 y2 y3 z1 z2 z3) where (x y z) is the origin, (x1 x2 x3) the x-direction, (y1 y2 y3) the y-direction, and (z1 z2 z3) the z-direction. |
OID | string or null([a-zA-Z0-9_.]){22} OID of the EPD, used when updating. Not needed for creation. |
RequiresElectricity | string or null Value of enumerated attribute "Requires electricity" as a string |
Array of objects or null (CosAttributeWithName) List of attributes. These must have been assigned to the object type in COS. | |
InstanceParameters | string or null Instance parameters as a string. The string should have the following format: A1 x1 A2 x2 .. An xn, where each Ai is the name of the dimension, and each xi is the value of the dimension in it's base units. The values should be double precision floating point numbers. |
[- {
- "System": "string",
- "EquipmentPositionId": "string",
- "ComponentModel": "string",
- "Transform": [
- 0
], - "OID": "string",
- "RequiresElectricity": "string",
- "Attributes": [
- {
- "tag": "string",
- "value": "string"
}
], - "InstanceParameters": "string"
}
]
{- "StatusCode": 0,
- "StatusDescription": "string",
- "Message": "string"
}
This endpoint requires that at least all required fields are supplied with the update, even if they are not updated. Fields can only be updated, and not removed using this endpoint.
project required | string The project database ID |
PositionId required | string non-empty Position ID for the duct. |
Ductline required | string non-empty Ductline for the duct. Given as a COS oid. |
(SpecificationRule (object or null)) or (PartIdRule (object or null)) or (CatalogPartRule (object or null)) The rule for which component the duct will use | |
Area | number or null <float> The minimum cross sectional area (in mm^2) which the part must satisfy when inserting it into the model |
OID | string or null([a-zA-Z0-9_.]){22} OID of the EPD, used when updating. Not needed for creation. |
RequiresElectricity | string or null Value of enumerated attribute "Requires electricity" as a string |
Array of objects or null (CosAttributeWithName) List of attributes. These must have been assigned to the object type in COS. | |
InstanceParameters | string or null Instance parameters as a string. The string should have the following format: A1 x1 A2 x2 .. An xn, where each Ai is the name of the dimension, and each xi is the value of the dimension in it's base units. The values should be double precision floating point numbers. |
[- {
- "PositionId": "string",
- "Ductline": "string",
- "ComponentRule": {
- "type": "string",
- "shortCode": "string",
- "specificationOid": "string",
- "rectangularSize": {
- "Width": 0,
- "Height": 0
}
}, - "Area": 0,
- "OID": "string",
- "RequiresElectricity": "string",
- "Attributes": [
- {
- "tag": "string",
- "value": "string"
}
], - "InstanceParameters": "string"
}
]
{- "StatusCode": 0,
- "StatusDescription": "string",
- "Message": "string"
}
This endpoint requires that at least all required fields are supplied with the update, even if they are not updated. Fields can only be updated, and not removed using this endpoint.
project required | string The project database ID |
oid required | string or null non-empty ([a-zA-Z0-9_.]){22} The OID of the cable to update |
system required | string or null non-empty ([a-zA-Z0-9_.]){22} The COS-OID of the cable system to use |
material required | string non-empty ([a-zA-Z0-9_.]){22} The COS-OID of the cable material (catalog part size) to use. The material should use the GT_PIPE geometry type, and have at least one dimension of type mass/length. |
required | object (CableEquipment) Represents an equipment attached to either the head or tail of a cable |
required | object (CableEquipment) Represents an equipment attached to either the head or tail of a cable |
positionId required | string non-empty The cable's position ID |
interferenceClassCode | integer or null <int32> [ 0 .. 2147483647 ] The interference class code. If given, this will override the interference class specified by the cable system. |
maxLength | number or null <double> The maximum length of the cable, in millimeters |
object or null List of user-defined COS attributes. Strings and numerical values are supported. |
[- {
- "oid": "string",
- "system": "string",
- "material": "string",
- "headEquipment": {
- "location": [
- 0
], - "node": "string",
- "positionId": "string"
}, - "tailEquipment": {
- "location": [
- 0
], - "node": "string",
- "positionId": "string"
}, - "positionId": "string",
- "interferenceClassCode": 2147483647,
- "maxLength": 0,
- "attributes": {
- "property1": null,
- "property2": null
}
}
]
{- "StatusCode": 0,
- "StatusDescription": "string",
- "Message": "string"
}
project required | string The project database ID |
epdOids required | Array of strings List of EPDs to delete, given as a query parameter |
{- "StatusCode": 0,
- "StatusDescription": "string",
- "Message": "string"
}
project required | string The project database ID |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
]
project required | string The project database ID |
oid required | string COS OID of the group |
{- "items": [
- {
- "oid": "string"
}
], - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
database required | string The project or library database ID |
offset | integer <int32> [ 0 .. 2147483647 ] Index of the first item to include in the reply.Indices start with zero.If the index is equal to or larger than the total number of items, an empty array is returned.This parameter and the after parameter cannot be used at the same time. |
after | string = 22 characters The OID to start reading items from, the object with this OID will not be included in the response. The OID must be given as a Base-64 encoded string. If the OID is not found, then an empty list is returned.This parameter and the offset parameter cannot be used at the same time. |
limit | integer <int32> [ 0 .. 2147483647 ] Determines how many items should be read, starting from the offset. In case no limit is given, all items following the offset are returned.In case the limit exceeds the total number of items in COS, all items following the offset are returned |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "parameters": {
- "property1": 0,
- "property2": 0
}, - "computedParameters": {
- "property1": 0,
- "property2": 0
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
]
database required | string The project or library database ID |
oid required | string COS OID of the parametric model |
{- "parameters": {
- "property1": 0,
- "property2": 0
}, - "computedParameters": {
- "property1": 0,
- "property2": 0
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
database required | string The project or library database ID |
oid required | string COS OID of the parametric model |
Array of objects (CosAttribute) List of the COS object's attributes |
{- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
]
}
{- "parameters": {
- "property1": 0,
- "property2": 0
}, - "computedParameters": {
- "property1": 0,
- "property2": 0
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
If you do not provide query parameters, the method returns all attributes. Deprecated. Use the 'Catalog Parts & sizes' and GDL endpoints instead.
database required | string The project or library database ID |
attributes | string Attribute tags of the attributes that the method should return, separated by ',' |
attributesExist | string Returns only parts that have one of these attribute tags set. Separate multiple tags with ',' (evaluated as OR)) |
[- {
- "OID": "string",
- "Attributes": [
- {
- "name": "string",
- "tag": "string",
- "value": "string"
}
], - "Type": 0,
- "DimensionalDescription": "string",
- "PartSizeDescription": "string"
}
]
Deprecated. Use the 'Catalog Parts & sizes' and GDL endpoints instead.
database required | string The project or library database ID |
oid required | string COS oid of the part |
attributes | string List of tags of the attributes that should be returned, separated with ','. If empty, then all attributes are returned. |
{- "Type": "string",
- "Title": "string",
- "Status": 0,
- "Detail": "string",
- "Instance": "string",
- "property1": null,
- "property2": null
}
Deprecated. Use the 'Catalog Parts & sizes' and GDL endpoints instead.
database required | string The project or library database ID |
OID required | string non-empty The OID of the part |
required | Array of objects (CosAttributeWithName) List of COS attributes |
Type | integer <int32> (PartType) Enum: 0 1 2 Different types for parts available to query. 0 = Catalog part size 1 = GDL for Equipment 2 = Parametric Model |
DimensionalDescription | string or null Human-readable description of the dimensions |
PartSizeDescription | string or null Description of the part-size, comes from the catalog part |
[- {
- "OID": "string",
- "Attributes": [
- {
- "tag": "string",
- "value": "string"
}
], - "Type": 0,
- "DimensionalDescription": "string",
- "PartSizeDescription": "string"
}
]
[- {
- "Oid": "string",
- "Status": "string",
- "Message": "string"
}
]
Deprecated. Use the 'Catalog Parts & sizes' and GDL endpoints instead.
project required | string The project database ID |
type required | integer <int32> (PartType) Enum: 0 1 2 Part type for which attributes are fetched |
[- {
- "Type": 1,
- "AttributeTagName": "string",
- "AttributeName": "string",
- "HasMax": true,
- "HasMin": true,
- "MaxLength": 0,
- "MaxIntVal": 0,
- "MinIntVal": 0,
- "QuantityString": "string",
- "MaxFloatVal": 0,
- "MinFloatVal": 0,
- "EnumChoices": [
- "string"
], - "CodedEnumChoices": {
- "property1": "string",
- "property2": "string"
}
}
]
project required | string The project database ID |
OID required | string COS OID of the model query to run |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
offset | integer <int32> [ 0 .. 2147483647 ] Index of the first item to include in the reply.Indices start with zero.If the index is equal to or larger than the total number of items, an empty array is returned.This parameter and the after parameter cannot be used at the same time. |
after | string = 22 characters The OID to start reading items from, the object with this OID will not be included in the response. The OID must be given as a Base-64 encoded string. If the OID is not found, then an empty list is returned.This parameter and the offset parameter cannot be used at the same time. |
limit | integer <int32> [ 0 .. 2147483647 ] Determines how many items should be read, starting from the offset. In case no limit is given, all items following the offset are returned.In case the limit exceeds the total number of items in COS, all items following the offset are returned |
listingMode | string (ExtraMaterialListingMode) Enum: "None" "All" "ByOwner" Material listing mode. The default is 'None', meaning that no connection points or materials are returned. |
[- {
- "oid": "string",
- "attributes": [
- {
- "name": "string",
- "tag": "string",
- "value": "string"
}
], - "connectionPoints": [
- {
- "data": {
- "property1": null,
- "property2": null
}, - "materials": [
- {
- "data": {
- "property1": null,
- "property2": null
}
}
]
}
], - "insulation": {
- "data": {
- "property1": null,
- "property2": null
}, - "materials": [
- {
- "data": {
- "property1": null,
- "property2": null
}
}
]
}
}
]
Filtering of attributes is made with the 3D-publishing control object.
project required | string The project database ID |
webapiModelQueryOid required | string COS OID of the Web API Model Query to run |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
offset | integer <int32> [ 0 .. 2147483647 ] Index of the first item to include in the reply.Indices start with zero.If the index is equal to or larger than the total number of items, an empty array is returned.This parameter and the after parameter cannot be used at the same time. |
after | string = 22 characters The OID to start reading items from, the object with this OID will not be included in the response. The OID must be given as a Base-64 encoded string. If the OID is not found, then an empty list is returned.This parameter and the offset parameter cannot be used at the same time. |
limit | integer <int32> [ 0 .. 2147483647 ] Determines how many items should be read, starting from the offset. In case no limit is given, all items following the offset are returned.In case the limit exceeds the total number of items in COS, all items following the offset are returned |
listingMode | string (ExtraMaterialListingMode) Enum: "None" "All" "ByOwner" Material listing mode. The default is 'None', meaning that no connection points or materials are returned. |
[- {
- "oid": "string",
- "attributes": [
- {
- "name": "string",
- "tag": "string",
- "value": "string"
}
], - "connectionPoints": [
- {
- "data": {
- "property1": null,
- "property2": null
}, - "materials": [
- {
- "data": {
- "property1": null,
- "property2": null
}
}
]
}
], - "insulation": {
- "data": {
- "property1": null,
- "property2": null
}, - "materials": [
- {
- "data": {
- "property1": null,
- "property2": null
}
}
]
}
}
]
Specific object types can be requested using a filter. A single type can be queried as 'type="Equipment"'. A set of typescan be queried using set operations as type in ["Equipment, StandardComponent"]
project required | string The project database ID |
boundingBox | string Example: boundingBox=-1000, -1000, -1000, 1000, 1000, 1000 The bounding box used for the test. A bounding box specified by two points p1 = (xmin, ymin, zmin) and p2 = (xmax, ymax, zmax). The coordinates of p2 must be larger than or equal to the coordinates of p1. The points should be given as a string 'xmin, ymin, zmin, xmax, ymax, zmax'. If no bounding box is given, then all model objects are considered in the test. |
boundingBoxMode | string (BoundingBoxMode) Enum: "Inside" "Intersecting" "Outside" The mode used for the bounding box test. If not given, then 'Inside' is the default mode. |
pipePartSize | string (PipingUnitSize) Enum: "Part" "Spool" The piping unit size to use in the test. If not given, then the mode is set to 'PipingPart' |
cableNetworkMode | string (CableNetworkMode) Enum: "WholeNetwork" "AssociatedNodes" The cable network mode used in the test. If not given, then the mode is set to 'WholeNetwork' |
publishingControl | string OID of the '3D publishing control' object to use. This object can be used to include tags which are normally not present in a model query result. This parameter is optional. |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
offset | integer <int32> [ 0 .. 2147483647 ] Index of the first item to include in the reply.Indices start with zero.If the index is equal to or larger than the total number of items, an empty array is returned.This parameter and the after parameter cannot be used at the same time. |
after | string = 22 characters The OID to start reading items from, the object with this OID will not be included in the response. The OID must be given as a Base-64 encoded string. If the OID is not found, then an empty list is returned.This parameter and the offset parameter cannot be used at the same time. |
limit | integer <int32> [ 0 .. 2147483647 ] Determines how many items should be read, starting from the offset. In case no limit is given, all items following the offset are returned.In case the limit exceeds the total number of items in COS, all items following the offset are returned |
listingMode | string (ExtraMaterialListingMode) Enum: "None" "All" "ByOwner" Material listing mode. The default is 'None', meaning that no connection points or materials are returned. |
[- {
- "oid": "string",
- "attributes": {
- "property1": null,
- "property2": null
}, - "connectionPoints": [
- {
- "data": {
- "property1": null,
- "property2": null
}, - "materials": [
- {
- "data": {
- "property1": null,
- "property2": null
}
}
]
}
], - "insulation": {
- "data": {
- "property1": null,
- "property2": null
}, - "materials": [
- {
- "data": {
- "property1": null,
- "property2": null
}
}
]
}, - "type": "Equipment",
- "id": "string",
- "href": "string"
}
]
project required | string The project database ID |
oid required | string COS OID of the model object |
reply | Array of strings Reply filters |
{- "oid": "string",
- "attributes": {
- "property1": null,
- "property2": null
}, - "connectionPoints": [
- {
- "data": {
- "property1": null,
- "property2": null
}, - "materials": [
- {
- "data": {
- "property1": null,
- "property2": null
}
}
]
}
], - "insulation": {
- "data": {
- "property1": null,
- "property2": null
}, - "materials": [
- {
- "data": {
- "property1": null,
- "property2": null
}
}
]
}, - "type": "Equipment",
- "id": "string",
- "href": "string"
}
project required | string The project database ID |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "Attributes": [
- {
- "name": "string",
- "tag": "string",
- "value": "string"
}
], - "OID": "string"
}
]
project required | string The project database ID |
offset | integer <int32> [ 0 .. 2147483647 ] Index of the first item to include in the reply.Indices start with zero.If the index is equal to or larger than the total number of items, an empty array is returned.This parameter and the after parameter cannot be used at the same time. |
after | string = 22 characters The OID to start reading items from, the object with this OID will not be included in the response. The OID must be given as a Base-64 encoded string. If the OID is not found, then an empty list is returned.This parameter and the offset parameter cannot be used at the same time. |
limit | integer <int32> [ 0 .. 2147483647 ] Determines how many items should be read, starting from the offset. In case no limit is given, all items following the offset are returned.In case the limit exceeds the total number of items in COS, all items following the offset are returned |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "document": {
- "id": "string",
- "href": "string"
}, - "revision": "string",
- "revisionIndex": 0,
- "files": [
- "string"
], - "childPublications": [
- {
- "id": "string",
- "href": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
]
project required | string The project database ID |
oid required | string The publication's OID |
{- "document": {
- "id": "string",
- "href": "string"
}, - "revision": "string",
- "revisionIndex": 0,
- "files": [
- "string"
], - "childPublications": [
- {
- "id": "string",
- "href": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
project required | string The project database ID |
oid required | string The publication's OID |
file required | string Name of file to download |
{- "StatusCode": 0,
- "StatusDescription": "string",
- "Message": "string"
}
database required | string The project or library database ID |
{- "quantities": [
- {
- "name": "string",
- "id": 0,
- "outputFormat": "string",
- "epsilon": 0,
- "units": [
- {
- "name": "string",
- "value": 0
}
]
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "server": "string",
- "serverOid": "string",
- "library": "string",
- "libraryOid": "string",
- "project": "string",
- "projectOid": "string"
}
]
Only projects configured for the Web API are returned.
server required | string COS OID of the server |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "server": "string",
- "serverOid": "string",
- "library": "string",
- "libraryOid": "string",
- "project": "string",
- "projectOid": "string"
}
]
server required | string COS OID of the server |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "accountName": "string",
- "fullName": "string",
- "serverOid": "string",
- "profile": {
- "id": "string",
- "href": "string"
}, - "id": "string",
- "href": "string"
}
]
server required | string COS OID of the server |
oid required | string COS OID of the user |
{- "accountName": "string",
- "fullName": "string",
- "serverOid": "string",
- "profile": {
- "id": "string",
- "href": "string"
}, - "id": "string",
- "href": "string"
}
server required | string COS OID of the server |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "name": "string",
- "id": "string",
- "href": "string"
}
]
database required | string The project or library database ID |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "Oid": "string",
- "Name": "string",
- "Description": "string",
- "Rating": "string",
- "Material": "string",
- "Attributes": [
- {
- "name": "string",
- "tag": "string",
- "value": "string"
}
]
}
]
database required | string The project or library database ID |
specOid required | string COS OID of the specification |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "Shortcode": "string",
- "Description": "string",
- "PartSizeOids": [
- "string"
]
}
]
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "type": "Area",
- "asynchronous": true,
- "serverName": "string",
- "projectName": "string",
- "status": "Starting",
- "processes": 0,
- "statusMessage": "string"
}
]
database required | string The project or library database ID |
offset | integer <int32> [ 0 .. 2147483647 ] Index of the first item to include in the reply.Indices start with zero.If the index is equal to or larger than the total number of items, an empty array is returned.This parameter and the after parameter cannot be used at the same time. |
after | string = 22 characters The OID to start reading items from, the object with this OID will not be included in the response. The OID must be given as a Base-64 encoded string. If the OID is not found, then an empty list is returned.This parameter and the offset parameter cannot be used at the same time. |
limit | integer <int32> [ 0 .. 2147483647 ] Determines how many items should be read, starting from the offset. In case no limit is given, all items following the offset are returned.In case the limit exceeds the total number of items in COS, all items following the offset are returned |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "parametricModels": {
- "id": "string",
- "href": "string"
}, - "instanceParameters": {
- "property1": {
- "quantityId": 0
}, - "property2": {
- "quantityId": 0
}
}, - "computedParameters": {
- "property1": {
- "comment": "string"
}, - "property2": {
- "comment": "string"
}
}, - "parameters": {
- "property1": {
- "quantityId": 0
}, - "property2": {
- "quantityId": 0
}
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
]
database required | string The project or library database ID |
oid required | string COS OID of the structural GDL |
{- "parametricModels": {
- "id": "string",
- "href": "string"
}, - "instanceParameters": {
- "property1": {
- "quantityId": 0
}, - "property2": {
- "quantityId": 0
}
}, - "computedParameters": {
- "property1": {
- "comment": "string"
}, - "property2": {
- "comment": "string"
}
}, - "parameters": {
- "property1": {
- "quantityId": 0
}, - "property2": {
- "quantityId": 0
}
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
database required | string The project or library database ID |
oid required | string COS OID of the structural GDL |
Array of objects (CosAttribute) List of the COS object's attributes |
{- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
]
}
{- "parametricModels": {
- "id": "string",
- "href": "string"
}, - "instanceParameters": {
- "property1": {
- "quantityId": 0
}, - "property2": {
- "quantityId": 0
}
}, - "computedParameters": {
- "property1": {
- "comment": "string"
}, - "property2": {
- "comment": "string"
}
}, - "parameters": {
- "property1": {
- "quantityId": 0
}, - "property2": {
- "quantityId": 0
}
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
database required | string The project or library database ID |
oid required | string COS OID of the structural GDL |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "parameters": {
- "property1": 0,
- "property2": 0
}, - "computedParameters": {
- "property1": 0,
- "property2": 0
}, - "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "oid": "string",
- "properties": {
- "ObjectType": "string",
- "DatabaseName": "string",
- "Version": 0,
- "CreatedBy": "string",
- "ModifiedBy": "string",
- "CreationTime": 0,
- "ModificationTime": 0,
- "SizeInBytes": 0,
- "CheckedOutBy": "string",
- "CheckedOutTime": 0,
- "OwnedBy": "string",
- "TransactionId": 0,
- "UpdateTransactionId": 0
}, - "referencedObjects": [
- "string"
], - "id": "string",
- "href": "string"
}
]
database required | string The project or library database ID |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "importFile": "string",
- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "targetDatabase": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "createdObject": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
]
This creates an import process for a new structural GDL object and returns its current status. The process is created in waiting status. The process can be run from the functional endpoints under its resource location.
database required | string The project or library database ID |
importFile | string or null The full path to the file to import from. The Web API process must be able to find the file under this location. |
Array of objects or null (CosAttribute) List of attributes to set on the imported object. |
{- "importFile": "string",
- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
]
}
{- "importFile": "string",
- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "targetDatabase": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "createdObject": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
database required | string The project or library database ID |
processId required | string <uuid> GUID of the structural GDL import |
{- "importFile": "string",
- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "targetDatabase": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "createdObject": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
database required | string The project or library database ID |
processId required | string <uuid> GUID of the structural GDL import |
{- "importFile": "string",
- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "targetDatabase": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "createdObject": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
This schedules the import to be run asynchronously. To find out if the process actually started or terminated, check its status.
database required | string The project or library database ID |
processId required | string <uuid> GUID of the structural GDL import |
{- "importFile": "string",
- "attributes": [
- {
- "Tag": "string",
- "Value": "string"
}
], - "targetDatabase": "string",
- "result": {
- "startTime": 0,
- "endTime": 0,
- "createdObject": {
- "id": "string",
- "href": "string"
}, - "result": "Success",
- "message": "string"
}, - "status": "Created",
- "id": "string",
- "href": "string"
}
project required | string The project database ID |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "Attributes": [
- {
- "name": "string",
- "tag": "string",
- "value": "string"
}
], - "OID": "string"
}
]
project required | string The project database ID |
query | Array of strings Query filters |
reply | Array of strings Reply filters |
[- {
- "Attributes": [
- {
- "name": "string",
- "tag": "string",
- "value": "string"
}
], - "OID": "string"
}
]