Set an execution
PUThttps://$CUSTOM-DOMAIN/v3alpha/executions
Set an execution to call a previously defined target or include the targets of a previously defined execution.
Request​
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
condition
object
targets
object[]
Body
required
condition
object
targets
object[]
Body
required
condition
object
targets
object[]
Responses​
- 200
- 403
- 404
- default
Execution successfully set
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object
{
"details": {
"sequence": "2",
"changeDate": "2024-07-31T12:22:55.090Z",
"resourceOwner": "69629023906488334"
}
}
- Schema
- Example (from schema)
Schema
details
object
{
"details": {
"sequence": "2",
"changeDate": "2024-07-31T12:22:55.091Z",
"resourceOwner": "69629023906488334"
}
}
- Schema
- Example (from schema)
Schema
details
object
{
"details": {
"sequence": "2",
"changeDate": "2024-07-31T12:22:55.091Z",
"resourceOwner": "69629023906488334"
}
}
Returned when the user does not have permission to access the resource.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/executions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"condition": {
"request": {
"method": "/zitadel.session.v2.SessionService/ListSessions",
"service": "zitadel.session.v2.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2.SessionService/ListSessions",
"service": "zitadel.session.v2.SessionService",
"all": true
},
"function": {
"name": "string"
},
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
},
"targets": [
{
"target": "string",
"include": {
"request": {
"method": "/zitadel.session.v2.SessionService/ListSessions",
"service": "zitadel.session.v2.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2.SessionService/ListSessions",
"service": "zitadel.session.v2.SessionService",
"all": true
},
"function": {
"name": "string"
},
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
}
}
]
}'
ResponseClear