Update project resource

updateProjectResource(input: UpdateProjectResourceInput!): ProjectResourceDocument

Requires project.files.write.

Arguments

ArgumentTypeRequired
inputUpdateProjectResourceInput!Yes

Input fields

input

UpdateProjectResourceInput

FieldTypeRequired
projectReferenceStringNo
resourceIdString!Yes
sourceTargetKindStringNo
targetBranchIdIDNo
patternStringNo
descriptionStringNo
titleStringNo

Response

Returns ProjectResourceDocument. Open the type for its fields and nested types.

FieldType
idID!
patternString!
descriptionString!
titleString
sourcePathString!
sourceString!
editModeString!
sourceOnlyReasons[String!]!

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation UpdateProjectResource($input: UpdateProjectResourceInput!) {
  updateProjectResource(input: $input) {
    id
    description
    editMode
    pattern
    source
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "resourceId": "00000000-0000-4000-8000-000000000001"
  }
}