/r/{repoId}/structures

POST
https://sample-api.d-velop.cloud
Creating a structure rule
You need at least two available categories to create a new structure rule.
Parameters
repoId/string/required
The unique ID of the repository.
Responses
201
The structure rule was created successfully.
Headers
Location
URI of the created structure rule resource
string
URI of the created structure rule resource
400
Invalid data was transferred or the structure rule 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: '{"child":"00000000-0000-0000-0000-000000000000","createSiblingDossiers":"test","id":"00000000-0000-0000-0000-000000000000","inheritance":"test","parent":"00000000-0000-0000-0000-000000000000","recognition":"test"}'
};

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