/r/{repoId}/restrictionset/{id}/assignments

POST
https://sample-api.d-velop.cloud
Creating a restriction set assignment
Parameters
repoId/string/required
The unique ID of the repository.
id/string/required
The unique ID of the restriction set.
Responses
201
The restriction set assignment was created successfully.
Headers
Location
URI of the created restriction set assignment resource
string
URI of the created restriction set assignment resource
400
Invalid data was transferred.
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."
  }
}
409
An assignment with this group already exists.
No content
422
An assignment contains invalid values.
No content
Show operation

Language

const options = {
  method: 'POST',
  headers: {accept: 'application/json', 'content-type': 'application/hal+json'},
  body: '{"id":"00000000-0000-0000-0000-000000000000","type":"GROUP | NO_ASSIGNMENT","values":["Value A","Value B","Value C"]}'
};

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