Skip to main content

How to Update a Project

To update a Project, you must use a updateProject mutation. You have to provide projectId for the Project you want to update and any fields you want to update. See How to Get Projects for information on how to retrieve your projects and their ids. Here's an example updating Project's name:

Operation: mutation UpdateProject($input: UpdateProjectInput!) { updateProject(input: $input) { project { ...ProjectDetails } } } fragment ProjectDetails on Project { id name # ...other fields you want to retrieve }Variables: { "input": { "projectId": "TjAwN1Byb2plY3Q5ODM5", "name": "Updated www.lumar.io Project" } }Response Example: { "data": { "updateProject": { "id": "TjAwN1Byb2plY3Q5ODM5", "name": "Updated www.lumar.io Project" } } }
UpdateProjectTry in Explorer
GraphQL
mutation UpdateProject($input: UpdateProjectInput!) {
updateProject(input: $input) {
project {
...ProjectDetails
}
}
}

fragment ProjectDetails on Project {
id
name
# ...other fields you want to retrieve
}

Explore UpdateProjectInput to see what fields are available.