curl --request PATCH \
--url https://api.openworklabs.com/v1/workers/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"worker": {
"id": "<string>",
"orgId": "<string>",
"createdByUserId": "<string>",
"isMine": true,
"name": "<string>",
"description": "<string>",
"destination": "<string>",
"status": "<string>",
"imageVersion": "<string>",
"workspacePath": "<string>",
"sandboxBackend": "<string>",
"lastHeartbeatAt": "2023-11-07T05:31:56Z",
"lastActiveAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Renames a worker, but only when the caller is the user who originally created that worker.
curl --request PATCH \
--url https://api.openworklabs.com/v1/workers/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"worker": {
"id": "<string>",
"orgId": "<string>",
"createdByUserId": "<string>",
"isMine": true,
"name": "<string>",
"description": "<string>",
"destination": "<string>",
"status": "<string>",
"imageVersion": "<string>",
"workspacePath": "<string>",
"sandboxBackend": "<string>",
"lastHeartbeatAt": "2023-11-07T05:31:56Z",
"lastActiveAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}