LuaShield Documentation
  • What is LuaShield?
  • API Documentation
    • Projects
      • User Management
      • Script Management
Powered by GitBook
On this page
  • Create Script
  • Delete Script
  1. API Documentation
  2. Projects

Script Management

Create Script

POST https://api.luashield.com/projects/:project_id/scripts

Create a script

Path Parameters

Name
Type
Description

project_id*

String

Project ID

Headers

Name
Type
Description

LuaShield-API-Key*

String

API Key

Request Body

Name
Type
Description

name*

String

Script Name

script*

String

Base64 encoded script

{
  "error": "Invalid API Key"
}
{
  "error": "Your subscription has expired"
}

{
    "error": "You have reached your maximum amount of scripts for your account"
}
{
	"id": "0fc272e1-a604-4a07-9fe7-aaefddc38428",
	"Name": "dsf likes men",
	"ProjectID": "39dd1ccb-78f7-44ca-ad86-bbd6abeb7118",
	"Version": "v1.0.0",
	"Versions": [
		"v1.0.0"
	],
	"Loader": "https://api.luashield.com/s/39dd1ccb-78f7-44ca-ad86-bbd6abeb7118/0fc272e1-a604-4a07-9fe7-aaefddc38428"
}

Delete Script

DELETE https://api.luashield.com/projects/:project_id/scripts

Delete a script

Path Parameters

Name
Type
Description

project_id*

String

Project ID

Request Body

Name
Type
Description

script_id*

String

Script ID

{
    "success": true
}
{
    "error": "You don't own this project"
}

PreviousUser Management

Last updated 2 years ago