Workers
Modify an existing worker machine.
put/spaces/{spaceIdentifier}/workers/{id}
Request
- Base URLhttps://demo.octopus.app/api
- URLhttps://demo.octopus.app/api/spaces/{spaceIdentifier}/workers/{id}
- Auth
- API key in header X-Octopus-ApiKey
- or API key in query parameter ApiKey
- or API key in header X-NuGet-ApiKey
Path parameters
spaceIdentifierstring required
Identifier (ID or slug) of the space
idstring required
The ID of the worker
Request body
Example request
{
"Endpoint": {
"Links": {
"Self": "/api/..."
}
},
"Id": "Machines-1",
"MachinePolicyId": "MachinePolicies-1",
"SpaceId": "Spaces-1",
"WorkerPoolIds": [
"WorkerPools-1",
"..."
]
}Response
The modified worker
Example response
{
"Endpoint": {
"Links": {
"Self": "/api/..."
}
},
"Links": {
"Self": "/api/..."
},
"SpaceId": "Spaces-1",
"WorkerPoolIds": [
"WorkerPools-1",
"..."
]
}Changes
No recorded changes to this operation across all 13 revisions of this API.