Status | ||||
---|---|---|---|---|
|
Status | ||||||
---|---|---|---|---|---|---|
|
Excerpt | ||||||
---|---|---|---|---|---|---|
|
...
The request body is a JSON representation of the attribute being created.
The "form_group" is required when creating an attribute, since attribute creation without a group isn't very useful. However attributes can be in multiple forms/groups, and can be orphaned later when a group is removed.
Example request
Panel | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
POST https://ushv3.dev/api/v2/attributes
|
...
Panel | |||||||
---|---|---|---|---|---|---|---|
GET https://ushv3.dev/api/v2/attributes
|
...
Panel | |||||||
---|---|---|---|---|---|---|---|
GET http://ushv3.dev/api/v2/attributes/1
|
...
METHOD: PUT
ENDPOINT: /api/v2/attributes/:id
AUTHENTICATED: Yes
Note: form_group isn't required or used when updating an attribute. To add/remove attributes from groups use the Groups api resource.
Query Parameters
Name | Type | Description |
---|---|---|
id | Required | The numerical id of the attribute being updated. |
...
Panel | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PUT http://ushv3.dev/api/v2/attributes/1
|
...
Panel | |||||||
---|---|---|---|---|---|---|---|
DELETE api/v2/attributes/2
|