Skip to main content

Replace a template group's access grants.

POST/api/v1/workflow-template-groups/{workflow_template_group_id}/access-grants/replaceworkflow_setup:write

Sends the complete set of users and user groups that may see the group. An empty set makes the group visible to everyone. If-Match is honoured. The answer is the new set.

Scopeworkflow_setup:write
AsynchronousNo
MCP toolreplace_workflow_template_group_access_grants
Portal permissionsmanage_template_group_security

Parameters​

NameInTypeRequiredDescription
workflow_template_group_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonWorkflowTemplateGroupAccessGrantSetInput

Responses​

StatusDescriptionBody
200Success.application/json WorkflowTemplateGroupAccessGrantSet or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

WorkflowTemplateGroupAccessGrant​

FieldTypeRequiredDescription
principalobject or object or objectRequiredA user ({type: user, user_id}) or a user group ({type: group, group_id}) that may see the group's templates.

WorkflowTemplateGroupAccessGrantInput​

FieldTypeRequiredDescription
principalobject or objectOptionalA user ({type: user, user_id}) or a user group ({type: group, group_id}) that may see the group's templates.

WorkflowTemplateGroupAccessGrantSet​

FieldTypeRequiredDescription
itemsarray of WorkflowTemplateGroupAccessGrantRequiredThe complete set. An empty list makes the group visible to everyone.

WorkflowTemplateGroupAccessGrantSetInput​

FieldTypeRequiredDescription
itemsarray of WorkflowTemplateGroupAccessGrantInputRequiredThe complete set. An empty list makes the group visible to everyone.