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.
- Overview
- Documentation
- Transaction Summary
- update
- title
- author
- summary
- testPlan
- reviewers.add
- reviewers.remove
- reviewers.set
- repositoryPHID
- tasks.add
- tasks.remove
- tasks.set
- parents.add
- parents.remove
- parents.set
- children.add
- children.remove
- children.set
- plan-changes
- request-review
- close
- reopen
- abandon
- accept
- reclaim
- reject
- commandeer
- resign
- draft
- view
- edit
- projects.add
- projects.remove
- projects.set
- subscribers.add
- subscribers.remove
- subscribers.set
- phabricator:auditors
- comment
- mfa
- Call Method
- Examples
differential.revision.edit
API Method: differential.revision.edit
- Summary
- Apply transactions to create or update a revision.
- Returns
- map<string, wild>
- Errors
- ERR-CONDUIT-CORE: See error message for details.
 
- OAuth Scope
- OAuth clients may never call this method.
Method Description
Transaction Summary
This endpoint supports these types of transactions. See below for detailed information about each transaction type.
| Key | Description | 
|---|---|
| update | Create or update a revision with a diff. | 
| title | Retitle the revision. | 
| author | Foist this revision upon another user. | 
| summary | Change the revision summary. | 
| testPlan | Update the revision test plan. | 
| reviewers.add | Change the reviewers for this revision. | 
| reviewers.remove | Change the reviewers for this revision. | 
| reviewers.set | Change the reviewers for this revision. | 
| repositoryPHID | Change the repository for this revision. | 
| tasks.add | Change associated tasks. | 
| tasks.remove | Change associated tasks. | 
| tasks.set | Change associated tasks. | 
| parents.add | Change associated parent revisions. | 
| parents.remove | Change associated parent revisions. | 
| parents.set | Change associated parent revisions. | 
| children.add | Change associated child revisions. | 
| children.remove | Change associated child revisions. | 
| children.set | Change associated child revisions. | 
| plan-changes | |
| request-review | |
| close | |
| reopen | |
| abandon | |
| accept | |
| reclaim | |
| reject | |
| commandeer | |
| resign | |
| draft | Change autosubmission from draft state after builds finish. | 
| view | Change the view policy of the object. | 
| edit | Change the edit policy of the object. | 
| projects.add | Add project tags. | 
| projects.remove | Remove project tags. | 
| projects.set | Set project tags, overwriting current value. | 
| subscribers.add | Add subscribers. | 
| subscribers.remove | Remove subscribers. | 
| subscribers.set | Set subscribers, overwriting current value. | 
| phabricator:auditors | Allows commits to trigger audits explicitly. | 
| comment | Make comments. | 
| mfa | Sign this transaction group with MFA. | 
update
Create or update a revision with a diff.
| Key | Type | Description | 
|---|---|---|
| type | const | update | 
| value | phid | PHID of the diff. | 
title
Retitle the revision.
| Key | Type | Description | 
|---|---|---|
| type | const | title | 
| value | string | New revision title. | 
author
Foist this revision upon another user.
| Key | Type | Description | 
|---|---|---|
| type | const | author | 
| value | phid | New author. | 
summary
Change the revision summary.
| Key | Type | Description | 
|---|---|---|
| type | const | summary | 
| value | string | New revision summary. | 
testPlan
Update the revision test plan.
| Key | Type | Description | 
|---|---|---|
| type | const | testPlan | 
| value | string | New test plan. | 
reviewers.add
Change the reviewers for this revision.
| Key | Type | Description | 
|---|---|---|
| type | const | reviewers.add | 
| value | list<phid> | List of PHIDs to add. | 
reviewers.remove
Change the reviewers for this revision.
| Key | Type | Description | 
|---|---|---|
| type | const | reviewers.remove | 
| value | list<phid> | List of PHIDs to remove. | 
reviewers.set
Change the reviewers for this revision.
| Key | Type | Description | 
|---|---|---|
| type | const | reviewers.set | 
| value | list<phid> | List of PHIDs to set. | 
repositoryPHID
Change the repository for this revision.
| Key | Type | Description | 
|---|---|---|
| type | const | repositoryPHID | 
| value | phid | New repository. | 
tasks.add
Change associated tasks.
| Key | Type | Description | 
|---|---|---|
| type | const | tasks.add | 
| value | list<phid> | List of PHIDs to add. | 
tasks.remove
Change associated tasks.
| Key | Type | Description | 
|---|---|---|
| type | const | tasks.remove | 
| value | list<phid> | List of PHIDs to remove. | 
tasks.set
Change associated tasks.
| Key | Type | Description | 
|---|---|---|
| type | const | tasks.set | 
| value | list<phid> | List of PHIDs to set. | 
parents.add
Change associated parent revisions.
| Key | Type | Description | 
|---|---|---|
| type | const | parents.add | 
| value | list<phid> | List of PHIDs to add. | 
parents.remove
Change associated parent revisions.
| Key | Type | Description | 
|---|---|---|
| type | const | parents.remove | 
| value | list<phid> | List of PHIDs to remove. | 
parents.set
Change associated parent revisions.
| Key | Type | Description | 
|---|---|---|
| type | const | parents.set | 
| value | list<phid> | List of PHIDs to set. | 
children.add
Change associated child revisions.
| Key | Type | Description | 
|---|---|---|
| type | const | children.add | 
| value | list<phid> | List of PHIDs to add. | 
children.remove
Change associated child revisions.
| Key | Type | Description | 
|---|---|---|
| type | const | children.remove | 
| value | list<phid> | List of PHIDs to remove. | 
children.set
Change associated child revisions.
| Key | Type | Description | 
|---|---|---|
| type | const | children.set | 
| value | list<phid> | List of PHIDs to set. | 
plan-changes
| Key | Type | Description | 
|---|---|---|
| type | const | plan-changes | 
| value | bool | 
request-review
| Key | Type | Description | 
|---|---|---|
| type | const | request-review | 
| value | bool | 
close
| Key | Type | Description | 
|---|---|---|
| type | const | close | 
| value | bool | 
reopen
| Key | Type | Description | 
|---|---|---|
| type | const | reopen | 
| value | bool | 
abandon
| Key | Type | Description | 
|---|---|---|
| type | const | abandon | 
| value | bool | 
accept
| Key | Type | Description | 
|---|---|---|
| type | const | accept | 
| value | bool | 
reclaim
| Key | Type | Description | 
|---|---|---|
| type | const | reclaim | 
| value | bool | 
reject
| Key | Type | Description | 
|---|---|---|
| type | const | reject | 
| value | bool | 
commandeer
| Key | Type | Description | 
|---|---|---|
| type | const | commandeer | 
| value | bool | 
resign
| Key | Type | Description | 
|---|---|---|
| type | const | resign | 
| value | bool | 
draft
Change autosubmission from draft state after builds finish.
| Key | Type | Description | 
|---|---|---|
| type | const | draft | 
| value | bool | New "Hold as Draft" setting. | 
view
Change the view policy of the object.
| Key | Type | Description | 
|---|---|---|
| type | const | view | 
| value | string | New policy PHID or constant. | 
edit
Change the edit policy of the object.
| Key | Type | Description | 
|---|---|---|
| type | const | edit | 
| value | string | New policy PHID or constant. | 
projects.add
Add project tags.
| Key | Type | Description | 
|---|---|---|
| type | const | projects.add | 
| value | list<project> | List of PHIDs to add. | 
projects.remove
Remove project tags.
| Key | Type | Description | 
|---|---|---|
| type | const | projects.remove | 
| value | list<project> | List of PHIDs to remove. | 
projects.set
Set project tags, overwriting current value.
| Key | Type | Description | 
|---|---|---|
| type | const | projects.set | 
| value | list<project> | List of PHIDs to set. | 
subscribers.add
Add subscribers.
| Key | Type | Description | 
|---|---|---|
| type | const | subscribers.add | 
| value | list<user> | List of PHIDs to add. | 
subscribers.remove
Remove subscribers.
| Key | Type | Description | 
|---|---|---|
| type | const | subscribers.remove | 
| value | list<user> | List of PHIDs to remove. | 
subscribers.set
Set subscribers, overwriting current value.
| Key | Type | Description | 
|---|---|---|
| type | const | subscribers.set | 
| value | list<user> | List of PHIDs to set. | 
phabricator:auditors
Allows commits to trigger audits explicitly.
| Key | Type | Description | 
|---|---|---|
| type | const | phabricator:auditors | 
| value | list<phid> | 
comment
Make comments.
| Key | Type | Description | 
|---|---|---|
| type | const | comment | 
| value | string | Comment to add, formatted as remarkup. | 
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 \
...