Users API
Create attribute
Create attribute.
POST/rest/msm/attributes/
Query parameters | none |
Header | auth-token: value of the authentication token. |
Header/Parameter | tenant |
Body | AttributeModel |
Returns | AttributeModel
|
Required role | MWP_ADMIN |
Managed errors |
|
Example request
curl 'http://localhost:8080/mwp/rest/msm/attributes' -H 'auth-token:e30573a2-0dad-49f8-8f4c-5bee951e69f3._hzInstance_1_dev' -H 'tenant:default' -X POST -H 'Content-Type:application/json' -d '{"name": "Test 3", "description": "Test attribtue 3", "unique": "true", "mandatory": "false"}'
Example response
{ "id": 5, "name": "Test 3", "description": "Test attribtue 3", "unique": true, "mandatory": false }