New-GitHubOrganizationExternalPropertiesForReposRegisterOrganizationAppInstallation

SYNOPSIS

Register an app installation for external custom properties

SYNTAX

Default (Default)

New-GitHubOrganizationExternalPropertiesForReposRegisterOrganizationAppInstallation [-Org] <string>
 -DisplayName <string> [-InstallationId <long>] [-Accept <string>] [-WhatIf] [-Confirm]

Body

New-GitHubOrganizationExternalPropertiesForReposRegisterOrganizationAppInstallation [-Org] <string>
 -Body <Object> [-DisplayName <string>] [-InstallationId <long>] [-Accept <string>] [-WhatIf]
 [-Confirm]

ALIASES

This cmdlet has the following aliases,

  • Get-GHNewOrganizationExternalPropertiesForReposRegisterOrganizationAppInstallation

DESCRIPTION

The New-GitHubOrganizationExternalPropertiesForReposRegisterOrganizationAppInstallation cmdlet invokes the POST method of the /orgs/{org}/properties/installations endpoint (Register an app installation for external custom properties)

Registers a GitHub App installation so it can read and write external custom properties for an organization, and assigns it a display name.

The display name must be 1 to 15 characters and contain only letters and numbers. Capitalization is preserved as entered.

An app installation can only be registered once, and its display name can’t be changed afterward. Calling with an app installation that has already been registered returns a ‘422’ response with an ‘already_exists’ error code for ‘installation_id’. If the display name is already in use by another app installation in the organization, the response is ‘422’ with an ‘already_exists’ error code for ‘display_name’. An invalid display name also returns ‘422’.

The app installation being registered must have write or admin permission for organization external custom properties for repositories. If it doesn’t, the response is ‘422’. This is the permission of the installation being registered, which isn’t necessarily the caller.

Uninstalling the GitHub App unregisters it, and removes the external custom properties it created.

To use this endpoint, the authenticated caller must have the ‘organization_external_properties_for_repos:admin’ permission.

Endpoint: POST /orgs/{org}/properties/installations API version: 2026-03-10

EXAMPLES

EXAMPLE 1

New-GitHubOrganizationExternalPropertiesForReposRegisterOrganizationAppInstallation -Org 'github' -DisplayName 'Acme' -Body @{ key = 'value' }

Invokes POST /orgs/{org}/properties/installations

EXAMPLE 2

New-GitHubOrganizationExternalPropertiesForReposRegisterOrganizationAppInstallation -Org 'github' -Body @{ display_name = 'Acme' }

Sends the request body from a hashtable, parameters override the keys of -Body

PARAMETERS

-Accept

The Accept header (media type) of the request Default value: application/vnd.github+json

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Body

The whole request body as a hashtable or object. Keys that are also available as parameters are overwritten by the parameter values

Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Body
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-DisplayName

The display name for this app installation’s external custom properties in the organization. Must be 1 to 15 characters and contain only letters and numbers. Capitalization is preserved as entered. This can’t be changed after the app installation is registered.

Required unless -Body is used

Body property [ display_name ]

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Body
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Default
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-InstallationId

The unique identifier of the GitHub App installation to register for managing external custom properties. When authenticating as a GitHub App installation, this defaults to the authenticated installation and can be omitted. It is required for all other callers (users and fine-grained personal access tokens).

Body property [ installation_id ]

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Org

The organization name. The name is not case sensitive.

Path parameter [ org ]

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-WhatIf

Runs the command in a mode that only reports what would happen without performing the actions.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Objects with properties named like the path parameters can be piped to this function

{{ Fill in the Description }}

System.String

{{ Fill in the Description }}

OUTPUTS

The response of the GitHub API (objects

{{ Fill in the Description }}

NOTES

OperationId: orgs/external-properties-for-repos-register-organization-app-installation Category: orgs / custom-properties