[POST] /variants
/api/dms/objects/{objectId}/native/variants
Description | Within this endpoint a new variant can be created. The new variant will be returned as JSON. Starting with version 5.4.0, please use the payload instead of the query parameter for |
|---|---|
Request Method | POST |
Request Query Parameter (mandatory) | variantType (String): One of the constants 'main' for a new first level variant X (X.0.0), 'parallel' for a new second level variant Y (X.Y.0) or 'sub' for a new third level variant Z (X.Y.Z). |
Request Query Parameter (optional) | objectTypeId (Integer): For performance reasons, the |
Response Format | JSON |
Minimum Version | 3.1.0 |
Change log |
|
Request | /api/dms/objects/4528/native/variants?objectTypeId=262168&variantType=main&transferPlannedRetention=true |
Request | {
"objects": [{
"properties": {
"system:objectTypeId": {
"value": "262245"
},
"variantType": {
"value": "main"
},
"transferPlannedRetention": {
"value": false
}
}
}]
} |
Result | {
"objects": [{
"properties": {
"system:objectId": {
"value": "89119"
},
"system:objectTypeId": {
"value": "262245"
},
"system:variantVersion": {
"value": "1.0.0"
},
...
}
}]
} |