Set an execution​
Set an execution to call a previously defined target or include the targets of a previously defined execution.
Request Body required
condition object
Defines the execution targets which are defined as a different resource, which are called in the defined conditions.
Defines other executions as included with the same condition-types.
Request Body required
condition object
Defines the execution targets which are defined as a different resource, which are called in the defined conditions.
Defines other executions as included with the same condition-types.
Request Body required
condition object
Defines the execution targets which are defined as a different resource, which are called in the defined conditions.
Defines other executions as included with the same condition-types.
- 200
- 403
- 404
- default
Execution successfully set
Schema
details object
{
"details": {
"sequence": "2",
"changeDate": "2024-03-27T10:05:49.522Z",
"resourceOwner": "69629023906488334"
}
}
Schema
details object
{
"details": {
"sequence": "2",
"changeDate": "2024-03-27T10:05:49.522Z",
"resourceOwner": "69629023906488334"
}
}
Schema
details object
{
"details": {
"sequence": "2",
"changeDate": "2024-03-27T10:05:49.522Z",
"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/executions
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/executions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"condition": {
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
},
"targets": [
"string"
],
"includes": [
"string"
]
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/executions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"condition": {
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
},
"targets": [
"string"
],
"includes": [
"string"
]
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/executions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"condition": {
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
},
"targets": [
"string"
],
"includes": [
"string"
]
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/executions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"condition": {
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
},
"targets": [
"string"
],
"includes": [
"string"
]
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/executions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"condition": {
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
},
"targets": [
"string"
],
"includes": [
"string"
]
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/executions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"condition": {
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
},
"targets": [
"string"
],
"includes": [
"string"
]
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/executions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"condition": {
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
},
"targets": [
"string"
],
"includes": [
"string"
]
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/executions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"condition": {
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
},
"targets": [
"string"
],
"includes": [
"string"
]
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/v3alpha/executions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"condition": {
"request": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"response": {
"method": "/zitadel.session.v2beta.SessionService/ListSessions",
"service": "zitadel.session.v2beta.SessionService",
"all": true
},
"function": "string",
"event": {
"event": "user.human.added",
"group": "user.human",
"all": true
}
},
"targets": [
"string"
],
"includes": [
"string"
]
}'