Editing Update Mod API
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 11: | Line 11: | ||
To use the API, POST some JSON to https://www.warzone.com/API/UpdateMod?ModID=###&APIToken=XXX | To use the API, POST some JSON to https://www.warzone.com/API/UpdateMod?ModID=###&APIToken=XXX | ||
− | The ID of your mod and your [[Get API Token API | + | The ID of your mod and your [[Get API Token API]] are passed on the querystring, as shown. |
The body of your post should be JSON that identifies all files that are to be included in your mod. Here's a sample of the format: | The body of your post should be JSON that identifies all files that are to be included in your mod. Here's a sample of the format: | ||
Line 17: | Line 17: | ||
{ | { | ||
"files": [ | "files": [ | ||
− | + | { | |
"path": "Client_PresentMenuUI.lua", | "path": "Client_PresentMenuUI.lua", | ||
"content": "..." | "content": "..." | ||
Line 32: | Line 32: | ||
− | The "content" field should | + | The "content" field should be base64 encoded. |
== Compression == | == Compression == |