Login Required: This method requires authentication. You must log in before you can make calls to it.
- Returns
- map<string, wild>
- Errors
- ERR-CONDUIT-CORE: See error message for details.
- OAuth Scope
- OAuth clients may never call this method.
Key | Description |
---|
update | Create or update a revision with a diff. |
title | Retitle the revision. |
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. |
Key | Type | Description |
---|
type | const | update |
value | phid | PHID of the diff. |
Key | Type | Description |
---|
type | const | title |
value | string | New revision title. |
Key | Type | Description |
---|
type | const | summary |
value | string | New revision summary. |
Key | Type | Description |
---|
type | const | testPlan |
value | string | New test plan. |
Key | Type | Description |
---|
type | const | reviewers.add |
value | list<phid> | List of PHIDs to add. |
Key | Type | Description |
---|
type | const | reviewers.remove |
value | list<phid> | List of PHIDs to remove. |
Key | Type | Description |
---|
type | const | reviewers.set |
value | list<phid> | List of PHIDs to set. |
Key | Type | Description |
---|
type | const | repositoryPHID |
value | phid | New repository. |
Key | Type | Description |
---|
type | const | tasks.add |
value | list<phid> | List of PHIDs to add. |
Key | Type | Description |
---|
type | const | tasks.remove |
value | list<phid> | List of PHIDs to remove. |
Key | Type | Description |
---|
type | const | tasks.set |
value | list<phid> | List of PHIDs to set. |
Key | Type | Description |
---|
type | const | parents.add |
value | list<phid> | List of PHIDs to add. |
Key | Type | Description |
---|
type | const | parents.remove |
value | list<phid> | List of PHIDs to remove. |
Key | Type | Description |
---|
type | const | parents.set |
value | list<phid> | List of PHIDs to set. |
Key | Type | Description |
---|
type | const | children.add |
value | list<phid> | List of PHIDs to add. |
Key | Type | Description |
---|
type | const | children.remove |
value | list<phid> | List of PHIDs to remove. |
Key | Type | Description |
---|
type | const | children.set |
value | list<phid> | List of PHIDs to set. |
Key | Type | Description |
---|
type | const | plan-changes |
value | bool | |
Key | Type | Description |
---|
type | const | request-review |
value | bool | |
Key | Type | Description |
---|
type | const | close |
value | bool | |
Key | Type | Description |
---|
type | const | reopen |
value | bool | |
Key | Type | Description |
---|
type | const | abandon |
value | bool | |
Key | Type | Description |
---|
type | const | accept |
value | bool | |
Key | Type | Description |
---|
type | const | reclaim |
value | bool | |
Key | Type | Description |
---|
type | const | reject |
value | bool | |
Key | Type | Description |
---|
type | const | commandeer |
value | bool | |
Key | Type | Description |
---|
type | const | resign |
value | bool | |
Key | Type | Description |
---|
type | const | draft |
value | bool | New "Hold as Draft" setting. |
Key | Type | Description |
---|
type | const | view |
value | string | New policy PHID or constant. |
Key | Type | Description |
---|
type | const | edit |
value | string | New policy PHID or constant. |
Key | Type | Description |
---|
type | const | projects.add |
value | list<project> | List of PHIDs to add. |
Key | Type | Description |
---|
type | const | projects.remove |
value | list<project> | List of PHIDs to remove. |
Key | Type | Description |
---|
type | const | projects.set |
value | list<project> | List of PHIDs to set. |
Key | Type | Description |
---|
type | const | subscribers.add |
value | list<user> | List of PHIDs to add. |
Key | Type | Description |
---|
type | const | subscribers.remove |
value | list<user> | List of PHIDs to remove. |
Key | Type | Description |
---|
type | const | subscribers.set |
value | list<user> | List of PHIDs to set. |
Key | Type | Description |
---|
type | const | phabricator:auditors |
value | list<phid> | |
Key | Type | Description |
---|
type | const | comment |
value | string | Comment to add, formatted as remarkup. |
Key | Type | Description |
---|
type | const | mfa |
value | bool | |
- 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.
$ echo <json-parameters> | arc call-conduit --conduit-uri http://xreate.org/ --conduit-token <conduit-token> differential.revision.edit
$ curl http://xreate.org/api/differential.revision.edit \
-d api.token=api-token \
-d param=value \
...
<?php
require_once 'path/to/libphutil/src/__phutil_library_init__.php';
$api_token = "<api-token>";
$api_parameters = array(<parameters>);
$client = new ConduitClient('http://xreate.org/');
$client->setConduitToken($api_token);
$result = $client->callMethodSynchronous('differential.revision.edit', $api_parameters);
print_r($result);
Email: pr.h7@xreate.org · 2019 Xreate.org · Powered by Phabricator