---
title: "Update access permission details of the workflow stage"
method: PUT
path: "/api/Access"
tags: ["Access"]
---

# Update access permission details of the workflow stage

`PUT /api/Access`

## Request

- Base URL: `https://apidocs.cflowapps.com` (the document declares no server; this is the origin it was published from)
- URL: `https://apidocs.cflowapps.com/api/Access`
- Auth: API key in header `X-Api-Key` and API key in header `X-User-Key`
- TypeScript: <https://skmtc.dev/cflowapps/apis/cflow-public-api/docs/api/Access/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates the access permission configuration for a specific stage in the workflow including role assignment, record visibility scope and edit permission level
            
<b>Notes:</b>
Record Visibility Scope Values:
- <b>My Items</b> – Limits record visibility to items created by or assigned to the user
- <b>My Team</b> – Allows visibility of records owned by users within the same team
- <b>All Items</b> – Grants visibility to all records in the workflow
 
Sample request:
            
    PUT 
    {
         "WorkflowName" : "Test Workflow",
         "StageName" : "Manager Approval",
         "Role" : "Manager",
         "ViewAccess" : "All Items",
         "EditAccess" : "My Items"
    }

## Request body

- AccessPermissionDto
  - `workflowName` string, required: Name of the worklfow
  - `stageName` string, required: Name of the stage
  - `role` string, required: Name of the role to assign to the stage
  - `viewAccess` string, required: View Access value. Value should be [All Items/My Items/My Team]
  - `editAccess` string, required: Edit Access value. Value should be [All Items/My Items/My Team/None]

## Response `200`

Return status of the request.

- StatusResDto
  - `status` string, nullable

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: The specified workflow stage or permission details were not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/cflowapps/apis/cflow-public-api.md) - [All operations](https://skmtc.dev/cflowapps/apis/cflow-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cflowapps/apis/cflow-public-api/revisions/af0dadd0ad10?raw)
