Skip to main content
PATCH
/
v1
/
targets
/
{projectId}
/
{targetId}
Update Target
curl --request PATCH \
  --url http://localhost:3004/v1/targets/{projectId}/{targetId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "url": "<string>",
  "method": "POST",
  "description": "<string>",
  "enabled": true,
  "config": {
    "timeout": 5000,
    "retryCount": 3
  },
  "customHeaders": {}
}
'
Modify the configuration of an existing target.

Authorizations

x-api-key
string
header
required

Path Parameters

projectId
string
required
targetId
string
required

Body

application/json
name
string
required
Required string length: 3 - 100
url
string<uri>
required
method
enum<string>
default:POST
Available options:
POST,
PUT,
PATCH,
GET,
DELETE
description
string
Maximum string length: 500
enabled
boolean
default:true
config
object
customHeaders
object

Response

200

Target updated