Update agent by id
PUT
jwtheader
AuthorizationBearer <JWT>application/json- body
description?stringdisplayName*stringenvVars?array<>size*stringconfigName?stringlivenessTimeoutSeconds*integerMultiple Of
10Range
50 <= value <= 3600Default
50customDomain?stringMatch
^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$type*stringworker*stringMatch
^[a-z0-9]+(?:-[a-z0-9]+)*$workerVersion*integerRange
0 < value <= 9007199254740991runtimeClassName*stringValue in
"kata-xxsmall""kata-xsmall""kata-small""kata-medium""kata-large""kata-xlarge""kata-xxlarge"schedule?stringMatch
^((\*(\/\d+)?|([0-5]?\d)(-([0-5]?\d)(\/\d+)?)?(,([0-5]?\d)(-([0-5]?\d)(\/\d+)?)?)*)\s+(\*(\/\d+)?|([01]?\d|2[0-3])(-([01]?\d|2[0-3])(\/\d+)?)?(,([01]?\d|2[0-3])(-([01]?\d|2[0-3])(\/\d+)?)?)*)\s+(\*(\/\d+)?|(0?[1-9]|[12]\d|3[01])(-(0?[1-9]|[12]\d|3[01])(\/\d+)?)?(,(0?[1-9]|[12]\d|3[01])(-(0?[1-9]|[12]\d|3[01])(\/\d+)?)?)*)\s+(\*(\/\d+)?|([1-9]|1[012])(-([1-9]|1[012])(\/\d+)?)?(,([1-9]|1[012])(-([1-9]|1[012])(\/\d+)?)?)*|jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\s+(\*(\/\d+)?|([0-6])(-([0-6])(\/\d+)?)?(,([0-6])(-([0-6])(\/\d+)?)?)*|mon|tue|wed|thu|fri|sat|sun)|(@yearly|@annually|@monthly|@weekly|@daily|@midnight|@hourly))$maxReplicas*integerRange
1 <= value <= 100scaleType*stringDefault
"cpu"minReplicas*integerRange
1 <= value <= 100targetCpu*numberRange
1 <= value <= 100Event not required
curl -X PUT 'https://agents.your-tenant-id.my.contextual.io/api/v1/$event/agents/{agentId}' \ -H 'Content-Type: application/json' \ -d '{ "displayName": "string", "size": "string", "livenessTimeoutSeconds": 50, "type": "worker", "worker": "string", "workerVersion": 1, "runtimeClassName": "kata-xxsmall", "maxReplicas": 1, "scaleType": "cpu", "minReplicas": 1, "targetCpu": 1}'Example Response
Empty