Create project resource

createProjectResource(input: CreateProjectResourceInput!): ProjectResourceDocument!

Requires project.files.write.

Arguments

ArgumentTypeRequired
inputCreateProjectResourceInput!Yes

Input fields

input

CreateProjectResourceInput

FieldTypeRequired
projectReferenceStringNo
sourceTargetKindStringNo
targetBranchIdIDNo
idString!Yes
patternString!Yes
descriptionString!Yes
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 CreateProjectResource($input: CreateProjectResourceInput!) {
  createProjectResource(input: $input) {
    id
    description
    editMode
    pattern
    source
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "id": "example",
    "pattern": "example",
    "description": "example"
  }
}