Create Lists
URL: /lists
METHOD: POST
HEADERS:
Key | Value | Optional |
---|---|---|
Accept | application/json | No |
Authorization | Bearer <your-api-token> | Yes |
Body Data
Name | Type | Required | Description |
---|---|---|---|
name | string | Yes | The name of the list |
game | integer | Yes | The ID of the game the list is for |
description | string | Yes | A brief description of the list |
files[] | array | Yes | The files of the list. At least one file is required |
version | string | No | The version of the list |
website | string | No | The URL of the list’s website |
discord | string | No | The URL of the list’s Discord server |
readme | string | No | The URL of the list’s readme file |
private | boolean | No | Whether the list is private. Defaults to false |
expires | string | No | The expiration time of the list. Valid values are 3h , 24h , 3d , 1w , or perm . If this property is not provided, the default value will be determined based on whether the user is logged in or not. Default for anonymous lists is 24h , for logged in is perm |
Example HTTP Responses
Success Response
Code: HTTP 201 CREATED
Content:
Error Responses
Code: HTTP 401 UNAUTHORIZED
Content:
Code: HTTP 403 FORBIDDEN
Content:
Code: HTTP 422 UNPROCESSABLE ENTITY
Content:
Example Usage
POST /v1/lists
This will create a list titled My Load Order
that is private and expires in one week.