diff --git a/openapi-internal.yaml b/openapi-internal.yaml index 1cde29e..29a4d12 100644 --- a/openapi-internal.yaml +++ b/openapi-internal.yaml @@ -712,6 +712,8 @@ components: - GameID - AssetID - AssetVersion + - Status + - Roles type: object properties: OperationID: @@ -740,6 +742,14 @@ components: type: integer format: int64 minimum: 0 + Status: + type: integer + format: uint32 + minimum: 0 + maximum: 9 + Roles: + type: integer + format: uint32 Script: required: - ID diff --git a/openapi.yaml b/openapi.yaml index 2e94f30..2879ae8 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -654,6 +654,31 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" + /submissions-admin: + post: + summary: Trigger the validator to create a new submission + operationId: createSubmissionAdmin + tags: + - Submissions + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/SubmissionTriggerCreate' + responses: + "201": + description: Successful response + content: + application/json: + schema: + $ref: "#/components/schemas/OperationID" + default: + description: General Error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" /submissions/{SubmissionID}: get: summary: Retrieve map with ID