4.2.5 Method Upload
This method uploads a specific information model to the UA Cloud Library.
Signature
/informationmodel/upload?overwrite=falseParameters
Boolean overwrite (optional) An optional flag if an existing OPC UA information model with the same identifier found in the UA Cloud Library should be overwritten. Default value: false
Request Body Schema
{
"title": "string",
"version": "string",
"license": 0,
"copyrightText": "string",
"contributor": {
"name": "string",
"description": "string",
"logoUrl": "string",
"contactEmail": "string",
"website": "string",
},
"description": "string",
"category": {
"name": "string",
"description": "string",
"iconUrl": "string",
},
"nodeset": {
"nodesetXml": "string",
"publicationDate": "2022-01-25T19:55:07.348Z",
"lastModifiedDate": "2022-01-25T19:55:07.348Z"
},
"documentationUrl": "string",
"iconUrl": "string",
"licenseUrl": "string",
"keywords": [
"string"
],
"purchasingInformationUrl": "string",
"releaseNotesUrl": "string",
"testSpecificationUrl": "string",
"supportedLocales": [
"string"
],
"numberOfDownloads": 0,
"additionalProperties": [
{
"name": "string",
"value": "string"
}
]
}
Responses
| HTTP Code | Description |
| 200 | A status message indicating the successful upload. |
| 404 | The provided NodeSet file failed verification. |
| 409 | An existing information model with the same identifier already exists in the UA Cloud Library and the overwrite flag was not set. |
| 409 | The contributor name of existing information model is different to the one provided. |
| 500 | The provided information model could not be stored or updated. |
Response Body Schema
stringComments
Upload cannot overwrite a matching NameSpace from another organization.
The Namespace can be uniquely identified by its NamespaceUri and its PublicationDate and this is how the information model identifier can be generated. The reference implementation provided by the OPC Foundation on GitHub uses this approach.