LuauExecutionSessionTask

  • CHEMINS POUR RESSOURCES
  • /cloud/v2/universes/{universe}/places/{place}/luau-execution-session-tasks
  • /cloud/v2/universes/{universe}/places/{place}/versions/{version}/luau-execution-session-tasks
  • /cloud/v2/universes/{universe}/places/{place}/luau-execution-sessions/{luau-execution-session}/tasks
  • /cloud/v2/universes/{universe}/places/{place}/versions/{version}/luau-execution-sessions/{luau-execution-session}/tasks

Attributs

pathstring
createTimestring
Sortie seule
updateTimestring
Sortie seule
userstring
Sortie seule
stateEnum<string>
Sortie seule
scriptstring
Immuable

Un des éléments suivants pour result:

errorobject
outputobject
URL de base

https://apis.roblox.com/cloud
La ressource LuauExecutionSessionTask

{
"path": "universes/123/places/123/luau-execution-session-tasks/123e4567-e89b-12d3-a456-426655440000",
"createTime": "2023-07-05T12:34:56Z",
"updateTime": "2023-07-05T12:34:56Z",
"user": "string",
"state": "STATE_UNSPECIFIED",
"script": "string",
"error": {
"code": "ERROR_CODE_UNSPECIFIED",
"message": "string"
}
}

LuauExecutionSessionTask

Create Luau Execution Session Task
Bêta

POST /cloud/v2/universes/{universe}/places/{place}/luau-execution-session-tasks
Périmètres d'application
universe.place.luau-execution-session:write
RequêteParamètres du chemin
universestring
Requis
placestring
Requis
Corps de la requêteLuauExecutionSessionTask
POST /cloud/v2/universes/{universe}/places/{place}/luau-execution-session-tasks

curl -L -X POST 'https://apis.roblox.com/cloud/v2/universes/{universe}/places/{place}/luau-execution-session-tasks' \
-H 'x-api-key: {your-api-key}' \
--data '{ \
"script": "string", \
"error": { \
"code": "ERROR_CODE_UNSPECIFIED", \
"message": "string" \
} \
}'
Réponse

{
"path": "universes/123/places/123/luau-execution-session-tasks/123e4567-e89b-12d3-a456-426655440000",
"createTime": "2023-07-05T12:34:56Z",
"updateTime": "2023-07-05T12:34:56Z",
"user": "string",
"state": "STATE_UNSPECIFIED",
"script": "string",
"error": {
"code": "ERROR_CODE_UNSPECIFIED",
"message": "string"
}
}

LuauExecutionSessionTask

Get Luau Execution Session Task
Bêta

GET /cloud/v2/universes/{universe}/places/{place}/luau-execution-session-tasks/{luau-execution-session-task}
Périmètres d'application
universe.place.luau-execution-session:readuniverse.place.luau-execution-session:write
RequêteParamètres du chemin
universestring
Requis
placestring
Requis
luau-execution-session-taskstring
Requis
Paramètres de requête
viewEnum<string>
GET /cloud/v2/universes/{universe}/places/{place}/luau-execution-session-tasks/{luau-execution-session-task}

curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe}/places/{place}/luau-execution-session-tasks/{luau-execution-session-task}?view={string}' \
-H 'x-api-key: {your-api-key}'
Réponse

{
"path": "universes/123/places/123/luau-execution-session-tasks/123e4567-e89b-12d3-a456-426655440000",
"createTime": "2023-07-05T12:34:56Z",
"updateTime": "2023-07-05T12:34:56Z",
"user": "string",
"state": "STATE_UNSPECIFIED",
"script": "string",
"error": {
"code": "ERROR_CODE_UNSPECIFIED",
"message": "string"
}
}