---
ai:
  exclude: true
search:
  tags:
    - workflowscheme
    - PUT
seo:
  description: >-
    Update the passed workflow scheme. The body of… Reference for the PUT
    /api/2/workflowscheme/{id} endpoint in the Jira Software Data Center REST
    API Reference.
sidebar:
  label: Update a specified workflow scheme
  badge: PUT
title: Update a specified workflow scheme
type: openapi-operation
---
Update the passed workflow scheme. The body of the request is a representation of the workflow scheme. Values not passed are assumed to indicate no change for that field.
The passed representation can have its updateDraftIfNeeded flag set to true to indicate that the draft
should be created and/or updated when the actual scheme cannot be edited (e.g. when the scheme is being used by
a project). Values not appearing the body will not be touched.

`PUT /api/2/workflowscheme/{id}`

**Request body** (`application/json`, required)

The body of the request is a representation of the workflow scheme. Values not passed are assumed to indicate no change for that field.

- `defaultWorkflow` (string)
- `description` (string)
- `draft` (boolean)
- `id` (integer<int64>)
- `issueTypeMappings` (object)
- `issueTypes` (object)
- `lastModified` (string)
- `lastModifiedUser` (UserBean)
- `name` (string)
- `originalDefaultWorkflow` (string)
- `originalIssueTypeMappings` (object)
- `self` (string<uri>)
- `updateDraftIfNeeded` (boolean)

Request body example:

```json
{
  "defaultWorkflow": "DefaultWorkflowName",
  "description": "This is a workflow scheme",
  "draft": false,
  "id": 10000,
  "issueTypeMappings": {
    "IsueTypeId": "WorkflowName",
    "IsueTypeId2": "WorkflowName"
  },
  "issueTypes": {
    "IsueTypeId": {
      "name": "IssueTypeName",
      "description": "IssueTypeDescription"
    }
  },
  "lastModified": "Today 12:45",
  "lastModifiedUser": {
    "active": true,
    "applicationRoles": [
      "jira-core",
      "jira-admin",
      "important"
    ],
    "avatarUrls": {
      "48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
      "24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
      "16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
      "32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
    },
    "deleted": false,
    "displayName": "Fred F. User",
    "emailAddress": "fred@example.com",
    "expand": "string",
    "groups": {
      "callback": {},
      "maxResults": 0,
      "pagingCallback": {},
      "size": 0
    },
    "key": "JIRAUSER10100",
    "lastLoginTime": "2023-08-30T16:37:01+1000",
    "locale": "en_AU",
    "name": "fred",
    "self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
    "timeZone": "Australia/Sydney"
  },
  "name": "My Workflow Scheme",
  "originalDefaultWorkflow": "ParentsDefaultWorkflowName",
  "originalIssueTypeMappings": {
    "IssueTypeId": "WorkflowName2"
  },
  "self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
  "updateDraftIfNeeded": true
}
```

**Responses**

- `200` — The updated scheme.
- `401` — Returned if there is no user or if the user has not entered a websudo session.
- `404` — Returned if the requested scheme does not exist.

Response example, 200:

```json
{
  "defaultWorkflow": "DefaultWorkflowName",
  "description": "This is a workflow scheme",
  "draft": false,
  "id": 10000,
  "issueTypeMappings": {
    "IsueTypeId": "WorkflowName",
    "IsueTypeId2": "WorkflowName"
  },
  "issueTypes": {
    "IsueTypeId": {
      "name": "IssueTypeName",
      "description": "IssueTypeDescription"
    }
  },
  "lastModified": "Today 12:45",
  "lastModifiedUser": {
    "active": true,
    "applicationRoles": [
      "jira-core",
      "jira-admin",
      "important"
    ],
    "avatarUrls": {
      "48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
      "24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
      "16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
      "32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
    },
    "deleted": false,
    "displayName": "Fred F. User",
    "emailAddress": "fred@example.com",
    "expand": "string",
    "groups": {
      "callback": {},
      "maxResults": 0,
      "pagingCallback": {},
      "size": 0
    },
    "key": "JIRAUSER10100",
    "lastLoginTime": "2023-08-30T16:37:01+1000",
    "locale": "en_AU",
    "name": "fred",
    "self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
    "timeZone": "Australia/Sydney"
  },
  "name": "My Workflow Scheme",
  "originalDefaultWorkflow": "ParentsDefaultWorkflowName",
  "originalIssueTypeMappings": {
    "IssueTypeId": "WorkflowName2"
  },
  "self": "http://www.example.com/jira/rest/api/2/workflowscheme/10000",
  "updateDraftIfNeeded": true
}
```
