AlgoJudge documentation0.1
REST reference

Permission Templates

GET/permission-templates

Response Body

curl -X GET "https://example.com/permission-templates"
[  {    "id": "string",    "name": "string",    "description": "string",    "permissions": [      "string"    ],    "isBuiltIn": true  }]
POST/permission-templates

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/permission-templates" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "permissions": [      "string"    ]  }'
{  "id": "string",  "name": "string",  "description": "string",  "permissions": [    "string"  ],  "isBuiltIn": true}
DELETE/permission-templates/{id}

Path Parameters

id*string
Formatuuid

Response Body

curl -X DELETE "https://example.com/permission-templates/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
PUT/permission-templates/{id}

Path Parameters

id*string
Formatuuid

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PUT "https://example.com/permission-templates/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "permissions": [      "string"    ]  }'
{  "id": "string",  "name": "string",  "description": "string",  "permissions": [    "string"  ],  "isBuiltIn": true}