---
schema_version: "1"
id: c18b581c4aacf6d959e2bed6fd36a035c70ee774ce441c9d163abec603a5f03f
title: NamespaceRegistry
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_namespaceregistry.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_namespaceregistry.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6c8ef56d3056cefe12c410d6f4c38662da19d4798d9ef2289fb476b00e897f90
description: Represents a namespace that you can link to scratch orgs that were created from your org’s Dev Hub. You use the namespace when developing, packaging, and releasing an app. You can’t create this object with the API. Use the Link Namespace action in the Dev Hub graphical interface to insert a NamespaceRegistry record. This object is available in API version 41.0 and later.
---
# NamespaceRegistry

Represents a namespace that you can link to scratch orgs that were created from your org’s Dev Hub. You use the namespace when developing, packaging, and releasing an app. You can’t create this object with the API. Use the **Link Namespace** action in the Dev Hub graphical interface to insert a NamespaceRegistry record. This object is available in API version 41.0 and later.

## Supported Calls

delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update()

## Fields

| Field Name | Details |
| --- | --- |
| Name | 
Type

string

Properties

Autonumber, Defaulted on create, Filter, Sort

Description

The name of this namespace registry entry.



 |
| NamespaceOrg | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The org ID of the Developer Edition org where you've registered the namespace you want to link.



 |
| NamespacePrefix | 

Type

string

Properties

Filter, Group, Sort

Description

The namespace prefix that you want to link to the scratch org.



 |

## Associated Objects

This object has these associated objects. Unless noted, they’re available in the same API version as this object.

[NamespaceRegistryFeed](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")

Feed tracking is available for the object.

[NamespaceRegistryHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.

#### See Also

- [ActiveScratchOrg](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_activescratchorg.htm "Represents an active scratch org. This object is available in API version 41.0 and later.")
- [ScratchOrgInfo](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_scratchorginfo.htm "Represents a scratch org and its audit log. Use this object to create a scratch org and keep a log of its creation and deletion. This object is available in API version 41.0 and later.")