Resource Target

Update a target.

post/target/{targetId}

Request

  • Base URL: https://api.pangolin.net/v1
  • URL: https://api.pangolin.net/v1/target/{targetId}
  • Auth: HTTP bearer

Path parameters

targetIdinteger required

Request body

siteIdinteger required
ipstring required
mode'http' | 'tcp' | 'udp' | 'ssh' | 'rdp' | 'vnc' | 'null' nullable
methodstring nullable
portinteger
enabledboolean
hcEnabledboolean nullable
hcPathstring nullable
hcSchemestring nullable
hcModestring nullable
hcHostnamestring nullable
hcPortinteger nullable
hcIntervalinteger nullable
hcUnhealthyIntervalinteger nullable
hcTimeoutinteger nullable
hcFollowRedirectsboolean nullable
hcMethodstring nullable
hcStatusinteger nullable
hcTlsServerNamestring nullable
hcHealthyThresholdinteger nullable
hcUnhealthyThresholdinteger nullable
pathstring nullable
pathMatchType'exact' | 'prefix' | 'regex' | 'null' nullable
rewritePathstring nullable
rewritePathType'exact' | 'prefix' | 'regex' | 'stripPrefix' | 'null' nullable
priorityinteger

Response

Successful response

dataobject nullable required
successboolean required
errorboolean required
messagestring required
statusnumber required

Changes

No recorded changes to this operation across all 1 revision of this API.