Update Lists
URL: /v1/lists/{slug}
HTTP Method: POST
Headers:
Key | Value |
---|---|
Accept | application/json |
Authorization | <your-api-token> |
Body Data
Property | Type | Required | Description |
---|---|---|---|
_method | string | Yes | Indicates to the server that this is an update to a list. The value must be PUT . |
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 200 OK
Content:
Error Responses
Code: HTTP 422 UNPROCESSABLE ENTITY
Content:
Code: HTTP 401 UNAUTHENTICATED
Content:
Code: HTTP 403 FORBIDDEN
Content:
Example Usage
Better examples soon.
POST /v1/lists/{slug}