Skip to navigation

Update a target

View as Markdown
Changes the destination URL or its targeting rules.

Authentication

Authorizationstring

API key credential, sent as Key <base64(keyId:secret)>.

Path parameters

domain_idstringRequired
route_idstringRequired
target_idstringRequired

Request

Request body for models.TargetPutObject
descriptionstringOptional
enabledboolean or nullOptional
Whether the target may be resolved for the proxy. Omit to leave unchanged.
selectorValuestringOptional
urlstringOptional
weightlong or nullOptional>=0

Relative share for the weighted strategy. 0 removes the target from rotation; omit to leave unchanged.

Response

OK
bodyobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error