[null,null,["最后更新时间 (UTC):2025-07-29。"],[[["\u003cp\u003eDevice Access Projects can be modified, including project name, OAuth Client ID, and event settings, through the Device Access Console.\u003c/p\u003e\n"],["\u003cp\u003eChanging the OAuth Client ID will deauthorize existing access tokens, requiring new ones to be generated.\u003c/p\u003e\n"],["\u003cp\u003eProjects can be configured to enable events, providing a Pub/Sub topic for receiving device-related data.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers interested in commercial partnerships can apply for review through the Device Access Console.\u003c/p\u003e\n"]]],[],null,["# Modify a Project\n\nA Device Access Project can be modified through the Device Access Console.\n\n[Go to the Device Access Console](https://console.nest.google.com/device-access)\n\nSelect an existing project from the home screen to enter the project's\ninformation screen.\n\nModify the project name\n-----------------------\n\nA project name can be changed at any time. The name must be 1-25 characters,\nincluding spaces.\n\n1. Click the create icon to the right of the current project name at the top.\n2. Modify the project name and click **Save** when you're finished.\n\nModify the OAuth Client ID\n--------------------------\n\nThe OAuth Client ID associated with your project can be changed at any time.\nRemember that an OAuth Client ID must be valid and unique to a\nproject, and cannot be shared with other projects.\n\nTake caution when changing your client ID. If you do so, **any existing access\ntokens associated with the previous client ID will be deauthorized and any\nsubsequent API calls made with those tokens will fail.**\n\n1. Click the more_vert icon for **OAuth\n client ID** and select **Edit**.\n2. Update the client ID and click **Save**.\n\nSee\n[Set up Google Cloud Platform](/nest/device-access/get-started#set_up_google_cloud_platform)\nfor instructions on how to obtain a Client ID.\n\nEnable events\n-------------\n\nIf you've already enabled events (for example, during [project\ncreation](/nest/device-access/project/create#create_your_project)),\nthe **Pub/Sub topic** field in the *Enable Pubsub topic for Events* section\nshould already have a value, called a Topic ID, in the older format of: \n\n```\nprojects/sdm-prod/topics/enterprise-project-id\n```\n\nThis topic format is Google-hosted and will persist for your project unless\nyou disable the Google-hosted Pub/Sub topic. If you re-enable it later, you'll\nbe switched to the self-hosted Pub/Sub topic.\n\nSelf-hosted Pub/Sub topics can be created or changed in a developer's own\nGoogle Cloud project. The developer is also responsible for all\ncosts associated with using Pub/Sub, see\n[Pub/Sub pricing](https://cloud.google.com/pubsub/pricing)\nfor more information.\n\nCreate the Pub/Sub topic: \n\n gcloud pubsub topics create {topic} --message-retention-duration=0s\n\nGrant the necessary SDM API permissions to access and\npublish event data for your project's Topic ID: \n\n gcloud pubsub topics add-iam-policy-binding projects/{project}/topics/{topic} \\\n --member=\"group:sdm-publisher@googlegroups.com\" \\\n --role=\"roles/pubsub.publisher\"\n\nThe format of your newly created Topic ID will look like: \n\n```\nprojects/gcp-project-name/subscriptions/topic-id\n```\n\nTake note of your Topic ID, you'll need it to complete\nenabling events. See\n[Create a topic](https://cloud.google.com/pubsub/docs/create-topic#pubsub_create_topic-gcloud)\nfor further information.\n\nTo enable events:\n\n1. Check **Enable events** and click **Create Project**.\n2. Click the more_vert icon for **Pub/Sub\n topic** and select **Enable events with PubSub topic**.\n3. Enter the Pub/Sub Topic ID that was either provided or created earlier.\n\nCopy your Topic ID, you'll need it to create a subscription to the topic so\nevent messages can be retrieved. For\nmore information, see [Events](/nest/device-access/api/events).\n\nApply for Commercial Development\n--------------------------------\n\nIf you're interested in becoming a Commercial partner, you'll need to submit\nyour use case for review and approval by Google. Use the **Apply for\ncommercial development** button to begin the process.\n\nFor more information, see [Apply for\nCommercial Development](/nest/device-access/project/apply)."]]