Workers
Create a new worker
post/{spaceId}/workers
Request
- Base URLhttps://demo.octopus.app/api
- URLhttps://demo.octopus.app/api/{spaceId}/workers
- 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
spaceIdstring required
The ID of the space containing the resource(s).
Request body
Example request
{
"Endpoint": {
"Links": {
"Self": "/api/..."
}
},
"MachinePolicyId": "MachinePolicies-1",
"SpaceId": "Spaces-1",
"WorkerPoolIds": [
"WorkerPools-1",
"..."
]
}Response
Created
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.