# projectResource

```graphql
query ProjectResource($input: ProjectResourceInput!) {
  projectResource(input: $input) {
    id
    pattern
    description
    title
    sourcePath
    editMode
  }
}
```

Read one project resource by its ID to inspect its URI pattern, title and description; returns the project resource. Requires project.resources.read.

## Arguments

| Name                        | Type                  | Required | Description |
| --------------------------- | --------------------- | -------- | ----------- |
| `input`                     | ProjectResourceInput! | Yes      |             |
| `input.projectReference`    | String                |          |             |
| `input.resourceId`          | String!               | Yes      |             |
| `input.sourceTargetKind`    | String                |          |             |
| `input.runtimeTargetKind`   | String                |          |             |
| `input.targetEnvironmentId` | ID                    |          |             |
| `input.targetBranchId`      | ID                    |          |             |

## Variables

```json
{
  "input": {
    "resourceId": "string"
  }
}
```

## Responses

| Status | Description                                  |
| ------ | -------------------------------------------- |
| 200    | The ProjectResource in data.projectResource. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query ProjectResource($input: ProjectResourceInput!) {\n  projectResource(input: $input) {\n    id\n    pattern\n    description\n    title\n    sourcePath\n    editMode\n  }\n}",
  "variables": {
    "input": {
      "resourceId": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "projectResource": {
      "id": "string",
      "pattern": "string",
      "description": "string",
      "title": "string",
      "sourcePath": "string",
      "editMode": "string"
    }
  }
}
```
