diff --git a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/creatething.md b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/creatething.md index e1e7401a44..7d86715c12 100644 --- a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/creatething.md +++ b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/creatething.md @@ -8,10 +8,6 @@ Creates a new Thing with ID ``com.acme:xdk_53`` that uses an existing Policy wit "headers": {}, "path": "/", "value": { - "__schemaVersion": 2, - "__lifecycle": "ACTIVE", - "_revision": 1, - "_namespace": "com.acme", "thingId": "com.acme:xdk_53", "policyId": "com.acme:the_policy_id", "attributes": { diff --git a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/createthingalternatives.md b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/createthingalternatives.md index e4229d1720..d14a0af297 100644 --- a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/createthingalternatives.md +++ b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/createthingalternatives.md @@ -1,6 +1,6 @@ ## Alternative CreateThing commands -If you want to copy an Existing policy instead of creating a new one by yourself or reference an existing Policy, you +If you want to copy an existing Policy instead of creating a new one by yourself or reference an existing Policy, you can adjust the CreateThing command like demonstrated in the following examples. ### CreateThing with copied Policy by Policy ID @@ -13,10 +13,6 @@ Creates a new Thing with ID ``com.acme:xdk_53`` with a Policy copied from the Po "headers": {}, "path": "/", "value": { - "__schemaVersion": 2, - "__lifecycle": "ACTIVE", - "_revision": 1, - "_namespace": "com.acme", "thingId": "com.acme:xdk_53", "policyId": "com.acme:the_policy_id", "_copyPolicyFrom": "com:acme:the_policy_id_to_copy" @@ -34,10 +30,6 @@ Creates a new Thing with ID ``com.acme:xdk_53`` with a Policy copied from a Thin "headers": {}, "path": "/", "value": { - "__schemaVersion": 2, - "__lifecycle": "ACTIVE", - "_revision": 1, - "_namespace": "com.acme", "thingId": "com.acme:xdk_53", "policyId": "com.acme:the_policy_id", "_copyPolicyFrom": "{% raw %}{{ ref:things/com:acme:xdk_52/policyId }}{% endraw %}" diff --git a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyacl.md b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyacl.md index e94e147a43..b50326e124 100644 --- a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyacl.md +++ b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyacl.md @@ -6,7 +6,6 @@ "headers": {}, "path": "/acl", "value": { - "__schemaVersion": 1, "the_auth_subject_2": { "READ": true, "WRITE": false, diff --git a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyaclentry.md b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyaclentry.md index 698e7fdbcc..d7faaa593b 100644 --- a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyaclentry.md +++ b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyaclentry.md @@ -6,7 +6,6 @@ "headers": {}, "path": "/acl/the_auth_subject", "value": { - "__schemaVersion": 1, "the_auth_subject": { "READ": true, "WRITE": true, diff --git a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyfeature.md b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyfeature.md index c5ce4e320a..7c271df58d 100644 --- a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyfeature.md +++ b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyfeature.md @@ -6,7 +6,6 @@ "headers": {}, "path": "/features/accelerometer", "value": { - "__schemaVersion": 2, "properties": { "x": 3.141, "y": 2.718, diff --git a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyfeatures.md b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyfeatures.md index 932ae1416d..2fc678eb5d 100644 --- a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyfeatures.md +++ b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifyfeatures.md @@ -6,9 +6,7 @@ "headers": {}, "path": "/features", "value": { - "__schemaVersion": 2, "accelerometer": { - "__schemaVersion": 2, "properties": { "x": 3.141, "y": 2.718, diff --git a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifything.md b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifything.md index 60b4627989..2fa1c41c3f 100644 --- a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifything.md +++ b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifything.md @@ -6,10 +6,6 @@ "headers": {}, "path": "/", "value": { - "__schemaVersion": 2, - "__lifecycle": "ACTIVE", - "_revision": 1, - "_namespace": "com.acme", "thingId": "com.acme:xdk_53", "policyId": "com.acme:the_policy_id", "attributes": { diff --git a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifythingalternatives.md b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifythingalternatives.md index aa43fa844e..9f5176d234 100644 --- a/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifythingalternatives.md +++ b/documentation/src/main/resources/pages/ditto/protocol/things/commands/modify/modifythingalternatives.md @@ -1,7 +1,7 @@ ## Alternative ModifyThing commands -If you want to copy an Existing policy instead of creating a new one by yourself or reference an existing Policy, you -can adjust the ModifyThing command like demonstrated in the following examples. +If you want to copy an existing Policy instead of creating a new one by yourself or reference an existing Policy, you +can adjust the ModifyThing command like demonstrated in the following examples.
This only works if a Thing with the given ``thingId`` does not exist, yet. If it exists the ``_copyPolicyFrom`` field will be ignored. @@ -16,10 +16,6 @@ Policy copied from the Policy with ID ``com.acme:the_policy_id_to_copy``. "headers": {}, "path": "/", "value": { - "__schemaVersion": 2, - "__lifecycle": "ACTIVE", - "_revision": 1, - "_namespace": "com.acme", "thingId": "com.acme:xdk_53", "policyId": "com.acme:the_policy_id", "_copyPolicyFrom": "com:acme:the_policy_id_to_copy" @@ -38,10 +34,6 @@ Policy copied from a Thing with ID ``com.acme:xdk_52``. "headers": {}, "path": "/", "value": { - "__schemaVersion": 2, - "__lifecycle": "ACTIVE", - "_revision": 1, - "_namespace": "com.acme", "thingId": "com.acme:xdk_53", "policyId": "com.acme:the_policy_id", "_copyPolicyFrom": "{% raw %}{{ ref:things/com:acme:xdk_52/policyId }}{% endraw %}"