createProjectFavorite

Adds the project to the caller's favorites and returns the favorite record; a repeat call returns the existing record. Requires project.read.

Arguments

  • projectReferenceID!required

    Project UUID, slug or domain. A repeat call returns the existing favorite record.

Responses

mutation CreateProjectFavorite($projectReference: ID!) {  createProjectFavorite(projectReference: $projectReference) {    id    userId    projectId    createdAt    project {      id      slug      name      description      type      systemManaged      isClaimed      features      createdAt      updatedAt      publishedAt      config      disableMetaRobots      providerId      layoutId      category      isTemplate      comingSoon    }  }}
{  "data": {    "createProjectFavorite": {      "id": "string",      "userId": "string",      "projectId": "string",      "createdAt": "2026-01-01T00:00:00Z",      "project": {        "id": "string",        "slug": "string",        "name": "string",        "description": "string",        "type": "string",        "systemManaged": false,        "isClaimed": false,        "features": [          "BASIC_SETTINGS"        ],        "createdAt": "2026-01-01T00:00:00Z",        "updatedAt": "2026-01-01T00:00:00Z",        "publishedAt": "2026-01-01T00:00:00Z",        "config": {},        "disableMetaRobots": false,        "providerId": "string",        "layoutId": "string",        "category": "string",        "isTemplate": false,        "comingSoon": false      }    }  }}

The ProjectFavorite! in data.createProjectFavorite.