Saves Activation with configuration.manage, aggregate concurrency and operation idempotency.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Put, RequestUri = new Uri("https://example.com/api/workspace/workflow/configuration/workflow-definitions/example/activation"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"Mode\": 0, \"Precondition\": \"example\", \"ExplicitPermission\": { \"Mode\": 0, \"ResourcePath\": \"example\", \"ResponsibilityKey\": \"example\", \"AnyOf\": [ { \"ResourcePath\": \"example\", \"ResponsibilityKey\": \"example\" } ], \"Match\": 0, \"Permissions\": [ { \"Key\": \"example\", \"Transition\": \"example\" } ], \"Expression\": \"example\" }, \"ExpectedRowVersion\": \"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0\", \"OperationId\": \"example\" }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/workflow/configuration/workflow-definitions/example/activation';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"Mode":0,"Precondition":"example","ExplicitPermission":{"Mode":0,"ResourcePath":"example","ResponsibilityKey":"example","AnyOf":[{"ResourcePath":"example","ResponsibilityKey":"example"}],"Match":0,"Permissions":[{"Key":"example","Transition":"example"}],"Expression":"example"},"ExpectedRowVersion":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","OperationId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/workspace/workflow/configuration/workflow-definitions/example/activation \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "Mode": 0, "Precondition": "example", "ExplicitPermission": { "Mode": 0, "ResourcePath": "example", "ResponsibilityKey": "example", "AnyOf": [ { "ResourcePath": "example", "ResponsibilityKey": "example" } ], "Match": 0, "Permissions": [ { "Key": "example", "Transition": "example" } ], "Expression": "example" }, "ExpectedRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "OperationId": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Body
Section titled “Request Body”object
Portable authoring value for admission to an operation on its context.
object
The source of a context permission rule.
Resource scope used by Responsible.
Responsibility definition key used by Responsible.
Any selected responsibility may grant admission. When present, scalar ResourcePath/ResponsibilityKey must be absent.
A responsibility definition in an exact context resource scope.
object
How selected context permissions are combined.
Selections used by InheritPermission.
An existing permission and its optional transition selector.
object
Security DSL source used by Dsl.
object
Portable authoring value for admission to an operation on its context.
object
The source of a context permission rule.
Resource scope used by Responsible.
Responsibility definition key used by Responsible.
Any selected responsibility may grant admission. When present, scalar ResourcePath/ResponsibilityKey must be absent.
A responsibility definition in an exact context resource scope.
object
How selected context permissions are combined.
Selections used by InheritPermission.
An existing permission and its optional transition selector.
object
Security DSL source used by Dsl.
object
Portable authoring value for admission to an operation on its context.
object
The source of a context permission rule.
Resource scope used by Responsible.
Responsibility definition key used by Responsible.
Any selected responsibility may grant admission. When present, scalar ResourcePath/ResponsibilityKey must be absent.
A responsibility definition in an exact context resource scope.
object
How selected context permissions are combined.
Selections used by InheritPermission.
An existing permission and its optional transition selector.
object
Security DSL source used by Dsl.
Responses
Section titled “Responses”OK
object
object
object
Portable authoring value for admission to an operation on its context.
object
The source of a context permission rule.
Resource scope used by Responsible.
Responsibility definition key used by Responsible.
Any selected responsibility may grant admission. When present, scalar ResourcePath/ResponsibilityKey must be absent.
A responsibility definition in an exact context resource scope.
object
How selected context permissions are combined.
Selections used by InheritPermission.
An existing permission and its optional transition selector.
object
Security DSL source used by Dsl.
object
object
object
object
Example
{ "Data": { "Activation": { "Mode": 0, "ExplicitPermission": { "Mode": 0, "Match": 0 } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}