POST sets
Create a sets
METHOD: POST
ENDPOINT: /api/v2/sets/
AUTHENTICATED: No
The request body is a JSON representation of the sets being created.
Example request
POST https://ushv3.dev/api/v2/sets
GET sets
Listing all sets
METHOD: GET
ENDPOINT: /api/v2/sets/
AUTHENTICATED: No
Query Parameters
Name | Type | Description |
---|---|---|
q | Optional | Only sets containing this search string will be returned, matched against 'name' property |
name | Optional | Only sets with a matching 'name' will be returned |
user_id | Optional | Only sets with this user_id will be returned |
order | Optional | Returned sets will be sorted in this order: ASC or DESC. Default: DESC |
order_by | Optional | Returned sets will be sorted by this field. Default: created |
limit | Optional | Limit number of results returned. Default: 50. Max: 500 |
offset | Optional | Sets returned will be offset by this number of results |
Example Request
GET https://ushv3.dev/api/v2/sets
Search Example
GET https://ushv3.dev/api/v2/sets?q=Explo
GET sets/:id
Get a single set
METHOD: GET
ENDPOINT: /api/v2/sets/:id
AUTHENTICATED: Yes
Query Parameters
Name | Type | Description |
---|---|---|
id | Required | The numerical id of the set being updated. |
Example Request
GET http://ushv3.dev/api/v2/sets/1
PUT sets/:id
Update a set
METHOD: PUT
ENDPOINT: /api/v2/sets/:id
AUTHENTICATED: Yes
Query Parameters
Name | Type | Description |
---|---|---|
id | Required | The numerical id of the set being updated. |
Example Request
PUT http://ushv3.dev/api/v2/sets/1
DELETE sets/:id
Deleting a set
METHOD: DELETE
ENDPOINT: /api/v2/sets/:id
AUTHENTICATED: YES
Query Parameters
Name | Type | Description |
---|---|---|
id | Required | The numerical id of the set being deleted. |
Example request
DELETE /api/v2/sets/2