/r/{repoId}/objectmanagement/properties

POST
https://sample-api.d-velop.cloud
Creating a property
Optionally, you can link a property with a dataset to enable the DMS user to choose from a predefined set of values. In case you want to create a property with a dataset not already contained in the repository, you need to create it before the property.
Parameters
repoId/string/required
The unique ID of the repository.
Responses
201
The property was created successfully.
Headers
Location
URI of the created property resource
string
URI of the created property resource
400
Invalid data was transferred or the property already exists in the repository.
Content
Media type: application/json
{
  "code": {
    "type": "integer",
    "format": "int32",
    "example": 240100
  },
  "reason": {
    "type": "string",
    "nullable": true,
    "example": "Reason why the request failed."
  }
}
Media type: application/hal+json
{
  "code": {
    "type": "integer",
    "format": "int32",
    "example": 240100
  },
  "reason": {
    "type": "string",
    "nullable": true,
    "example": "Reason why the request failed."
  }
}
Show operation

Language

const options = {
  method: 'POST',
  headers: {accept: 'application/json', 'content-type': 'application/hal+json'},
  body: '{"dataSetId":"00000000-0000-0000-0000-000000000000","dataType":"STRING | CURRENCY | NUMERIC | DATE | DATETIME","id":"00000000-0000-0000-0000-000000000000","isMultiValue":"test","isSystemProperty":"test","maxValue":10,"minValue":1,"name":{"en":"Bill"},"readOnly":"test","validationRegEx":"\\d+(\\.\\d\\d)?"}'
};

fetch('https://example.com/dmsconfig/r/REPOID/objectmanagement/properties', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));