Search documentation
karat

+

K

User Documentation ↗
Version 2.0

Modify Target Board

PUT/api/v2/targetWorkbench/targetBoards/{targetBoardRid}/modify

Modify a Target Board by RID.

Sets the current state of a Collection. Any fields, except hptl, not supplied will result in removal if there was a value present. Trying to set hptl to empty when there's already a value will result in an INVALID_ARGUMENT exception. You cannot modify the hptl field if a value is already set. Fields that are not supported by the OpenAPI layer will remain unmodified.

Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:target-write.

Path parameters

targetBoardRid
string

The unique identifier for a Target Board

Request body

ModifyTargetBoardRequest
object
Hide child attributes

Hide child attributes

name
string
description
string
optional
highPriorityTargetList
string
optional
configuration
object
optional

Configuration for a target board

Show child attributes

Show child attributes

baseRevisionId
string

The current version of the Target Board to be modified. The archive operation will be transformed against any concurrent operations made since this version. If there are any conflicting edits that result in changes to these operations when they're applied, that will be noted in the response.

Response body

EmptySuccessResponse
any

An empty response object indicating the request was successful.

Examples

Request

Copied!
1 2 3 4 5 curl -X PUT \ \t-H "Content-type: application/json" \ \t-H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/targetWorkbench/targetBoards/ri.gotham-artifact.0-0.target-board.example/modify" \ -d '{"highPriorityTargetList":"ri.gotham-artifact.0-0.hptl.example","configuration":{"columns":[{"id":"EXECUTION","name":"IN PROGRESS","color":"RED"}],"targetIdentifiers":["CUSTOM"]},"name":"Example target board name.","description":"Example target board description.","baseRevisionId":1}'

Error responses

Error Name
CannotUpdateColumnsWithTargetsError CodeINVALID_ARGUMENT
Status Code400
DescriptionCannot update a target board's columns if targets are present in the column.
ParameterstargetBoardRid
RevisionOutdatedError CodeINVALID_ARGUMENT
Status Code400
DescriptionThe provided revision id is behind the current id.
Parametersid, revisionId
ModifyTargetBoardPermissionDeniedError CodePERMISSION_DENIED
Status Code403
DescriptionCould not modify the TargetBoard.
ParameterstargetBoardRid