Skip to content

Update Lists

URL: /v1/lists/{slug}

HTTP Method: POST

Headers:

KeyValue
Acceptapplication/json
Authorization<your-api-token>

Body Data

PropertyTypeRequiredDescription
_methodstringYesIndicates to the server that this is an update to a list. The value must be PUT.
namestringYesThe name of the list
gameintegerYesThe ID of the game the list is for
descriptionstringYesA brief description of the list
files[]arrayYesThe files of the list. At least one file is required
versionstringNoThe version of the list
websitestringNoThe URL of the list’s website
discordstringNoThe URL of the list’s Discord server
readmestringNoThe URL of the list’s readme file
privatebooleanNoWhether the list is private. Defaults to false
expiresstringNoThe 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:

{
"data": {
"name": "A Test List!",
"version": null,
"slug": "a-test-list-3",
"url": "/v1/lists/a-test-list-3",
"description": "A Description about the test list!",
"website": "example.com",
"discord": "example.com",
"readme": null,
"private": true,
"expires": null,
"created": "2023-03-25T01:19:17.000000Z",
"updated": "2023-03-25T01:19:17.000000Z",
"author": {
"name": "Test22",
"verified": false
},
"game": {
"name": "TESIII Morrowind"
},
"links": {
"url": "http://localhost:3000/lists/a-test-list-3",
"self": "http://localhost/v1/lists/a-test-list-3"
}
}
}

Error Responses

Code: HTTP 422 UNPROCESSABLE ENTITY

Content:

{
"message": "The game field is required.",
"errors": {
"game": ["The game field is required."]
}
}

Code: HTTP 401 UNAUTHENTICATED

Content:

{
"message": "Unauthenticated."
}

Code: HTTP 403 FORBIDDEN

Content:

{
"message": "Invalid ability provided."
}

Example Usage

Better examples soon.

POST /v1/lists/{slug}

{
"_method": "PUT",
"name": "My Load Order",
"game": 1,
"description": "This is my amazing load order.",
"files[]": [file, file], // Files must be, well, files.
"version": "1.0.0",
"website": "https://example.com/loadorder",
"discord": "https://discord.gg/K3KnEgrQE4", // Invite is to the Load Order Library server
"readme": "https://example.com/loadorder/readme.txt",
"private": true,
"expires": "1w"
}