Rally - WSAPI: Not authorized to create error when using API to create work items
search cancel

Rally - WSAPI: Not authorized to create error when using API to create work items

book

Article ID: 200208

calendar_today

Updated On:

Products

Rally SaaS Rally On-Premise

Issue/Introduction

When trying to create a work item in Rally using the API, the following error is seen in the response body:

Not authorized to create: <Work Item Type>

This may also return a HTTP status of 401

Cause

This can be caused by trying to create a work item type within a project to which the user has no access or the user has only viewer access

Resolution

The ways to resolve this are

  • Change the integration to use a user ID with appropriate permissions
  • Modify the permissions of the current user to include at least editor access the project where the work item is being created
  • Create the work item in a different project that the user does have access to

 

Additional Information

Keywords: HierarchicalRequirement, Defect, PortfolioItem/Feature, TestCase