This is a standard ApplicationEditor method which allows you to create and modify objects by applying transactions. For documentation on these endpoints, see Conduit API: Using Edit Endpoints.
diffusion.repository.edit
API Method: diffusion.repository.edit
- Returns
- map<string, wild>
- Errors
- ERR-CONDUIT-CORE: See error message for details.
- OAuth Scope
- OAuth clients may never call this method.
Transaction Types
This endpoint supports these types of transactions. See below for detailed information about each transaction type.
Key | Description |
---|---|
space | Shift the object between spaces. |
vcs | Choose which version control system to use when creating a repository. |
name | Rename the repository. |
callsign | Change the repository callsign. |
shortName | Change the repository short name. |
description | Change the repository description. |
encoding | Change the default text encoding. |
allowDangerousChanges | Allow or prevent dangerous changes. |
allowEnormousChanges | Allow or prevent enormous changes. |
status | Active or deactivate the repository. |
defaultBranch | Set the default branch name. |
fetchRefs | Set the fetched refs. |
permanentRefs | Set the permanent refs. |
trackOnly | Set the tracked branches. |
importOnly | Set the subpath to import. |
stagingAreaURI | Set the staging area URI. |
automationBlueprintPHIDs | Change automation blueprints. |
symbolLanguages | Change symbol languages for this repository. |
symbolRepositoryPHIDs | Change symbol source repositories. |
publish | Change publishing options. |
filesizeLimit | Change the filesize limit. |
copyTimeLimit | Change the copy time limit. |
touchLimit | Change the touch limit. |
view | Change the view policy of the object. |
edit | Change the edit policy of the object. |
policy.push | Change the push policy of the repository. |
projects.add | Add project tags. |
projects.remove | Remove project tags. |
projects.set | Set project tags, overwriting current value. |
mfa | Sign this transaction group with MFA. |
Transaction Type: space
Shift the object between spaces.
Key | Type | Description |
---|---|---|
type | const | space |
value | phid | New space PHID. |
Transaction Type: vcs
Choose which version control system to use when creating a repository.
Key | Type | Description |
---|---|---|
type | const | vcs |
value | string | Version control system selection. |
Transaction Type: name
Rename the repository.
Key | Type | Description |
---|---|---|
type | const | name |
value | string | New repository name. |
Transaction Type: callsign
Change the repository callsign.
Key | Type | Description |
---|---|---|
type | const | callsign |
value | string | New repository callsign. |
Transaction Type: shortName
Change the repository short name.
Key | Type | Description |
---|---|---|
type | const | shortName |
value | string | New short name for the repository. |
Transaction Type: description
Change the repository description.
Key | Type | Description |
---|---|---|
type | const | description |
value | string | New repository description. |
Transaction Type: encoding
Change the default text encoding.
Key | Type | Description |
---|---|---|
type | const | encoding |
value | string | New text encoding. |
Transaction Type: allowDangerousChanges
Allow or prevent dangerous changes.
Key | Type | Description |
---|---|---|
type | const | allowDangerousChanges |
value | bool | New protection setting. |
Transaction Type: allowEnormousChanges
Allow or prevent enormous changes.
Key | Type | Description |
---|---|---|
type | const | allowEnormousChanges |
value | bool | New protection setting. |
Transaction Type: status
Active or deactivate the repository.
Key | Type | Description |
---|---|---|
type | const | status |
value | string | New repository status. |
Transaction Type: defaultBranch
Set the default branch name.
Key | Type | Description |
---|---|---|
type | const | defaultBranch |
value | string | New default branch name. |
Transaction Type: fetchRefs
Set the fetched refs.
Key | Type | Description |
---|---|---|
type | const | fetchRefs |
value | list<string> | New fetched refs. |
Transaction Type: permanentRefs
Set the permanent refs.
Key | Type | Description |
---|---|---|
type | const | permanentRefs |
value | list<string> | New permanent ref rules. |
Transaction Type: trackOnly
Set the tracked branches.
Key | Type | Description |
---|---|---|
type | const | trackOnly |
value | list<string> | New tracked branches. |
Transaction Type: importOnly
Set the subpath to import.
Key | Type | Description |
---|---|---|
type | const | importOnly |
value | string | New subpath to import. |
Transaction Type: stagingAreaURI
Set the staging area URI.
Key | Type | Description |
---|---|---|
type | const | stagingAreaURI |
value | string | New staging area URI. |
Transaction Type: automationBlueprintPHIDs
Change automation blueprints.
Key | Type | Description |
---|---|---|
type | const | automationBlueprintPHIDs |
value | list<phid> | New blueprint PHIDs. |
Transaction Type: symbolLanguages
Change symbol languages for this repository.
Key | Type | Description |
---|---|---|
type | const | symbolLanguages |
value | list<string> | New symbol languages. |
Transaction Type: symbolRepositoryPHIDs
Change symbol source repositories.
Key | Type | Description |
---|---|---|
type | const | symbolRepositoryPHIDs |
value | list<phid> | New symbol repositories. |
Transaction Type: publish
Change publishing options.
Key | Type | Description |
---|---|---|
type | const | publish |
value | bool | New notification setting. |
Transaction Type: filesizeLimit
Change the filesize limit.
Key | Type | Description |
---|---|---|
type | const | filesizeLimit |
value | string | New repository filesize limit. |
Transaction Type: copyTimeLimit
Change the copy time limit.
Key | Type | Description |
---|---|---|
type | const | copyTimeLimit |
value | string | New repository copy time limit. |
Transaction Type: touchLimit
Change the touch limit.
Key | Type | Description |
---|---|---|
type | const | touchLimit |
value | string | New repository touch limit. |
Transaction Type: view
Change the view policy of the object.
Key | Type | Description |
---|---|---|
type | const | view |
value | string | New policy PHID or constant. |
Transaction Type: edit
Change the edit policy of the object.
Key | Type | Description |
---|---|---|
type | const | edit |
value | string | New policy PHID or constant. |
Transaction Type: policy.push
Change the push policy of the repository.
Key | Type | Description |
---|---|---|
type | const | policy.push |
value | string | New policy PHID or constant. |
Transaction Type: projects.add
Add project tags.
Key | Type | Description |
---|---|---|
type | const | projects.add |
value | list<project> | List of PHIDs to add. |
Transaction Type: projects.remove
Remove project tags.
Key | Type | Description |
---|---|---|
type | const | projects.remove |
value | list<project> | List of PHIDs to remove. |
Transaction Type: projects.set
Set project tags, overwriting current value.
Key | Type | Description |
---|---|---|
type | const | projects.set |
value | list<project> | List of PHIDs to set. |
Transaction Type: mfa
Sign this transaction group with MFA.
Key | Type | Description |
---|---|---|
type | const | mfa |
value | bool |
Call Method
Examples
- Use the Conduit API Tokens panel in Settings to generate or manage API tokens.
- If you submit parameters, these examples will update to show exactly how to encode the parameters you submit.
-d api.token=api-token \
-d param=value \
...