Update a target​
Update an existing target.
Path Parameters
unique identifier of the target.
Request Body required
Possible values: non-empty
and <= 200 characters
Optionally change the unique name of the target.
restWebhook object
restRequestResponse object
Optionally change the timeout, which defines the duration until ZITADEL cancels the execution.
Set the execution to run asynchronously.
Define if any error stops the whole execution. By default the process continues as normal.
Request Body required
Possible values: non-empty
and <= 200 characters
Optionally change the unique name of the target.
restWebhook object
restRequestResponse object
Optionally change the timeout, which defines the duration until ZITADEL cancels the execution.
Set the execution to run asynchronously.
Define if any error stops the whole execution. By default the process continues as normal.
Request Body required
Possible values: non-empty
and <= 200 characters
Optionally change the unique name of the target.
restWebhook object
restRequestResponse object
Optionally change the timeout, which defines the duration until ZITADEL cancels the execution.
Set the execution to run asynchronously.
Define if any error stops the whole execution. By default the process continues as normal.
- 200
- 403
- 404
- default
Target successfully updated
Schema
details object
{
"details": {
"sequence": "2",
"changeDate": "2024-03-27T10:05:49.514Z",
"resourceOwner": "69629023906488334"
}
}
Schema
details object
{
"details": {
"sequence": "2",
"changeDate": "2024-03-27T10:05:49.514Z",
"resourceOwner": "69629023906488334"
}
}
Schema
details object
{
"details": {
"sequence": "2",
"changeDate": "2024-03-27T10:05:49.514Z",
"resourceOwner": "69629023906488334"
}
}
Returned when the user does not have permission to access the resource.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
PUT /v3alpha/targets/:targetId
Authorization
name: OAuth2type: oauth2scopes:openid,urn:zitadel:iam:org:project:id:zitadel:aud
flows: { "authorizationCode": { "authorizationUrl": "$CUSTOM-DOMAIN/oauth/v2/authorize", "tokenUrl": "$CUSTOM-DOMAIN/oauth/v2/token", "scopes": { "openid": "openid", "urn:zitadel:iam:org:project:id:zitadel:aud": "urn:zitadel:iam:org:project:id:zitadel:aud" } } }
Request
Request
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/targets/:targetId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "ip_allow_list",
"restWebhook": {
"url": "https://example.com/hooks/ip_check"
},
"restRequestResponse": {
"url": "https://example.com/hooks/ip_check"
},
"timeout": "10s",
"isAsync": true,
"interruptOnError": true
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/targets/:targetId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "ip_allow_list",
"restWebhook": {
"url": "https://example.com/hooks/ip_check"
},
"restRequestResponse": {
"url": "https://example.com/hooks/ip_check"
},
"timeout": "10s",
"isAsync": true,
"interruptOnError": true
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/targets/:targetId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "ip_allow_list",
"restWebhook": {
"url": "https://example.com/hooks/ip_check"
},
"restRequestResponse": {
"url": "https://example.com/hooks/ip_check"
},
"timeout": "10s",
"isAsync": true,
"interruptOnError": true
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/targets/:targetId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "ip_allow_list",
"restWebhook": {
"url": "https://example.com/hooks/ip_check"
},
"restRequestResponse": {
"url": "https://example.com/hooks/ip_check"
},
"timeout": "10s",
"isAsync": true,
"interruptOnError": true
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/targets/:targetId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "ip_allow_list",
"restWebhook": {
"url": "https://example.com/hooks/ip_check"
},
"restRequestResponse": {
"url": "https://example.com/hooks/ip_check"
},
"timeout": "10s",
"isAsync": true,
"interruptOnError": true
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/targets/:targetId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "ip_allow_list",
"restWebhook": {
"url": "https://example.com/hooks/ip_check"
},
"restRequestResponse": {
"url": "https://example.com/hooks/ip_check"
},
"timeout": "10s",
"isAsync": true,
"interruptOnError": true
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/targets/:targetId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "ip_allow_list",
"restWebhook": {
"url": "https://example.com/hooks/ip_check"
},
"restRequestResponse": {
"url": "https://example.com/hooks/ip_check"
},
"timeout": "10s",
"isAsync": true,
"interruptOnError": true
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/targets/:targetId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "ip_allow_list",
"restWebhook": {
"url": "https://example.com/hooks/ip_check"
},
"restRequestResponse": {
"url": "https://example.com/hooks/ip_check"
},
"timeout": "10s",
"isAsync": true,
"interruptOnError": true
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/targets/:targetId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "ip_allow_list",
"restWebhook": {
"url": "https://example.com/hooks/ip_check"
},
"restRequestResponse": {
"url": "https://example.com/hooks/ip_check"
},
"timeout": "10s",
"isAsync": true,
"interruptOnError": true
}'