Workzone - REST API

Default

deleteBranchAutomergers


/branch/automerge/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/automerge/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestBranchAutoMergers body = ; // RestBranchAutoMergers | 
        try {
            apiInstance.deleteBranchAutomergers(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteBranchAutomergers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestBranchAutoMergers body = ; // RestBranchAutoMergers | 
        try {
            apiInstance.deleteBranchAutomergers(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteBranchAutomergers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
RestBranchAutoMergers *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance deleteBranchAutomergersWith:projectKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{RestBranchAutoMergers}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteBranchAutomergers(projectKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteBranchAutomergersExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new RestBranchAutoMergers(); // RestBranchAutoMergers |  (optional) 

            try
            {
                apiInstance.deleteBranchAutomergers(projectKey, repoSlug, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteBranchAutomergers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // RestBranchAutoMergers | 

try {
    $api_instance->deleteBranchAutomergers($projectKey, $repoSlug, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteBranchAutomergers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = WWW::SwaggerClient::Object::RestBranchAutoMergers->new(); # RestBranchAutoMergers | 

eval { 
    $api_instance->deleteBranchAutomergers(projectKey => $projectKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteBranchAutomergers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # RestBranchAutoMergers |  (optional)

try: 
    api_instance.delete_branch_automergers(projectKey, repoSlug, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteBranchAutomergers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


deleteBranchAutomergersList


/branch/automergelist/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: */*"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/automergelist/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            apiInstance.deleteBranchAutomergersList(projectKey, repoSlug);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteBranchAutomergersList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            apiInstance.deleteBranchAutomergersList(projectKey, repoSlug);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteBranchAutomergersList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance deleteBranchAutomergersListWith:projectKey
    repoSlug:repoSlug
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteBranchAutomergersList(projectKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteBranchAutomergersListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

            try
            {
                apiInstance.deleteBranchAutomergersList(projectKey, repoSlug);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteBranchAutomergersList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 

try {
    $api_instance->deleteBranchAutomergersList($projectKey, $repoSlug);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteBranchAutomergersList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 

eval { 
    $api_instance->deleteBranchAutomergersList(projectKey => $projectKey, repoSlug => $repoSlug);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteBranchAutomergersList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 

try: 
    api_instance.delete_branch_automergers_list(projectKey, repoSlug)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteBranchAutomergersList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required

Responses

Status: default - default response


deleteBranchReviewers


/branch/reviewers/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/reviewers/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestBranchReviewers body = ; // RestBranchReviewers | 
        try {
            apiInstance.deleteBranchReviewers(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteBranchReviewers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestBranchReviewers body = ; // RestBranchReviewers | 
        try {
            apiInstance.deleteBranchReviewers(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteBranchReviewers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
RestBranchReviewers *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance deleteBranchReviewersWith:projectKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{RestBranchReviewers}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteBranchReviewers(projectKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteBranchReviewersExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new RestBranchReviewers(); // RestBranchReviewers |  (optional) 

            try
            {
                apiInstance.deleteBranchReviewers(projectKey, repoSlug, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteBranchReviewers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // RestBranchReviewers | 

try {
    $api_instance->deleteBranchReviewers($projectKey, $repoSlug, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteBranchReviewers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = WWW::SwaggerClient::Object::RestBranchReviewers->new(); # RestBranchReviewers | 

eval { 
    $api_instance->deleteBranchReviewers(projectKey => $projectKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteBranchReviewers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # RestBranchReviewers |  (optional)

try: 
    api_instance.delete_branch_reviewers(projectKey, repoSlug, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteBranchReviewers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


deleteBranchReviewersList


/branch/reviewerslist/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: */*"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/reviewerslist/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            apiInstance.deleteBranchReviewersList(projectKey, repoSlug);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteBranchReviewersList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            apiInstance.deleteBranchReviewersList(projectKey, repoSlug);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteBranchReviewersList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance deleteBranchReviewersListWith:projectKey
    repoSlug:repoSlug
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteBranchReviewersList(projectKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteBranchReviewersListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

            try
            {
                apiInstance.deleteBranchReviewersList(projectKey, repoSlug);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteBranchReviewersList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 

try {
    $api_instance->deleteBranchReviewersList($projectKey, $repoSlug);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteBranchReviewersList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 

eval { 
    $api_instance->deleteBranchReviewersList(projectKey => $projectKey, repoSlug => $repoSlug);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteBranchReviewersList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 

try: 
    api_instance.delete_branch_reviewers_list(projectKey, repoSlug)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteBranchReviewersList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required

Responses

Status: default - default response


deleteProjectAutomergers


/project/{projectKey}/automerge

Usage and SDK Samples

curl -X DELETE\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/automerge"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        RestBranchAutoMergers body = ; // RestBranchAutoMergers | 
        try {
            apiInstance.deleteProjectAutomergers(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteProjectAutomergers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        RestBranchAutoMergers body = ; // RestBranchAutoMergers | 
        try {
            apiInstance.deleteProjectAutomergers(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteProjectAutomergers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
RestBranchAutoMergers *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance deleteProjectAutomergersWith:projectKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var opts = { 
  'body':  // {{RestBranchAutoMergers}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteProjectAutomergers(projectKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteProjectAutomergersExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var body = new RestBranchAutoMergers(); // RestBranchAutoMergers |  (optional) 

            try
            {
                apiInstance.deleteProjectAutomergers(projectKey, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteProjectAutomergers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$body = ; // RestBranchAutoMergers | 

try {
    $api_instance->deleteProjectAutomergers($projectKey, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteProjectAutomergers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $body = WWW::SwaggerClient::Object::RestBranchAutoMergers->new(); # RestBranchAutoMergers | 

eval { 
    $api_instance->deleteProjectAutomergers(projectKey => $projectKey, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteProjectAutomergers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
body =  # RestBranchAutoMergers |  (optional)

try: 
    api_instance.delete_project_automergers(projectKey, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteProjectAutomergers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


deleteProjectAutomergersList


/project/{projectKey}/automergelist

Usage and SDK Samples

curl -X DELETE\
-H "Accept: */*"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/automergelist"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            apiInstance.deleteProjectAutomergersList(projectKey);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteProjectAutomergersList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            apiInstance.deleteProjectAutomergersList(projectKey);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteProjectAutomergersList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance deleteProjectAutomergersListWith:projectKey
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteProjectAutomergersList(projectKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteProjectAutomergersListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 

            try
            {
                apiInstance.deleteProjectAutomergersList(projectKey);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteProjectAutomergersList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 

try {
    $api_instance->deleteProjectAutomergersList($projectKey);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteProjectAutomergersList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 

eval { 
    $api_instance->deleteProjectAutomergersList(projectKey => $projectKey);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteProjectAutomergersList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 

try: 
    api_instance.delete_project_automergers_list(projectKey)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteProjectAutomergersList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required

Responses

Status: default - default response


deleteProjectReviewers


/project/{projectKey}/reviewers

Usage and SDK Samples

curl -X DELETE\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/reviewers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        RestBranchReviewers body = ; // RestBranchReviewers | 
        try {
            apiInstance.deleteProjectReviewers(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteProjectReviewers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        RestBranchReviewers body = ; // RestBranchReviewers | 
        try {
            apiInstance.deleteProjectReviewers(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteProjectReviewers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
RestBranchReviewers *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance deleteProjectReviewersWith:projectKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var opts = { 
  'body':  // {{RestBranchReviewers}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteProjectReviewers(projectKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteProjectReviewersExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var body = new RestBranchReviewers(); // RestBranchReviewers |  (optional) 

            try
            {
                apiInstance.deleteProjectReviewers(projectKey, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteProjectReviewers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$body = ; // RestBranchReviewers | 

try {
    $api_instance->deleteProjectReviewers($projectKey, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteProjectReviewers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $body = WWW::SwaggerClient::Object::RestBranchReviewers->new(); # RestBranchReviewers | 

eval { 
    $api_instance->deleteProjectReviewers(projectKey => $projectKey, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteProjectReviewers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
body =  # RestBranchReviewers |  (optional)

try: 
    api_instance.delete_project_reviewers(projectKey, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteProjectReviewers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


deleteProjectSignapprovers


/project/{projectKey}/signapprovers

Usage and SDK Samples

curl -X DELETE\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/signapprovers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        RestBranchSignapprovers body = ; // RestBranchSignapprovers | 
        try {
            apiInstance.deleteProjectSignapprovers(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteProjectSignapprovers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        RestBranchSignapprovers body = ; // RestBranchSignapprovers | 
        try {
            apiInstance.deleteProjectSignapprovers(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteProjectSignapprovers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
RestBranchSignapprovers *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance deleteProjectSignapproversWith:projectKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var opts = { 
  'body':  // {{RestBranchSignapprovers}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteProjectSignapprovers(projectKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteProjectSignapproversExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var body = new RestBranchSignapprovers(); // RestBranchSignapprovers |  (optional) 

            try
            {
                apiInstance.deleteProjectSignapprovers(projectKey, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteProjectSignapprovers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$body = ; // RestBranchSignapprovers | 

try {
    $api_instance->deleteProjectSignapprovers($projectKey, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteProjectSignapprovers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $body = WWW::SwaggerClient::Object::RestBranchSignapprovers->new(); # RestBranchSignapprovers | 

eval { 
    $api_instance->deleteProjectSignapprovers(projectKey => $projectKey, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteProjectSignapprovers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
body =  # RestBranchSignapprovers |  (optional)

try: 
    api_instance.delete_project_signapprovers(projectKey, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteProjectSignapprovers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


deleteSignapprovers


/branch/signapprovers/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/signapprovers/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestBranchSignapprovers body = ; // RestBranchSignapprovers | 
        try {
            apiInstance.deleteSignapprovers(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteSignapprovers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestBranchSignapprovers body = ; // RestBranchSignapprovers | 
        try {
            apiInstance.deleteSignapprovers(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteSignapprovers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
RestBranchSignapprovers *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance deleteSignapproversWith:projectKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{RestBranchSignapprovers}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteSignapprovers(projectKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteSignapproversExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new RestBranchSignapprovers(); // RestBranchSignapprovers |  (optional) 

            try
            {
                apiInstance.deleteSignapprovers(projectKey, repoSlug, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteSignapprovers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // RestBranchSignapprovers | 

try {
    $api_instance->deleteSignapprovers($projectKey, $repoSlug, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteSignapprovers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = WWW::SwaggerClient::Object::RestBranchSignapprovers->new(); # RestBranchSignapprovers | 

eval { 
    $api_instance->deleteSignapprovers(projectKey => $projectKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteSignapprovers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # RestBranchSignapprovers |  (optional)

try: 
    api_instance.delete_signapprovers(projectKey, repoSlug, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteSignapprovers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


deleteSignapproversList


/branch/signapproverslist/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: */*"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/signapproverslist/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            apiInstance.deleteSignapproversList(projectKey, repoSlug);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteSignapproversList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            apiInstance.deleteSignapproversList(projectKey, repoSlug);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteSignapproversList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance deleteSignapproversListWith:projectKey
    repoSlug:repoSlug
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteSignapproversList(projectKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteSignapproversListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

            try
            {
                apiInstance.deleteSignapproversList(projectKey, repoSlug);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteSignapproversList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 

try {
    $api_instance->deleteSignapproversList($projectKey, $repoSlug);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteSignapproversList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 

eval { 
    $api_instance->deleteSignapproversList(projectKey => $projectKey, repoSlug => $repoSlug);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteSignapproversList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 

try: 
    api_instance.delete_signapprovers_list(projectKey, repoSlug)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteSignapproversList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required

Responses

Status: default - default response


getBranchAutomergerConfigForPullRequest

Get merge configuration for pull request


/branch/automerge/{projectKey}/{repoSlug}/{prId}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/automerge/{projectKey}/{repoSlug}/{prId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Long prId = 789; // Long | 
        try {
            apiInstance.getBranchAutomergerConfigForPullRequest(projectKey, repoSlug, prId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getBranchAutomergerConfigForPullRequest");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Long prId = 789; // Long | 
        try {
            apiInstance.getBranchAutomergerConfigForPullRequest(projectKey, repoSlug, prId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getBranchAutomergerConfigForPullRequest");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
Long *prId = 789; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getBranchAutomergerConfigForPullRequestWith:projectKey
    repoSlug:repoSlug
    prId:prId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var prId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getBranchAutomergerConfigForPullRequest(projectKey, repoSlug, prId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getBranchAutomergerConfigForPullRequestExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var prId = 789;  // Long | 

            try
            {
                apiInstance.getBranchAutomergerConfigForPullRequest(projectKey, repoSlug, prId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getBranchAutomergerConfigForPullRequest: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$prId = 789; // Long | 

try {
    $api_instance->getBranchAutomergerConfigForPullRequest($projectKey, $repoSlug, $prId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getBranchAutomergerConfigForPullRequest: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $prId = 789; # Long | 

eval { 
    $api_instance->getBranchAutomergerConfigForPullRequest(projectKey => $projectKey, repoSlug => $repoSlug, prId => $prId);
};
if ($@) {
    warn "Exception when calling DefaultApi->getBranchAutomergerConfigForPullRequest: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
prId = 789 # Long | 

try: 
    api_instance.get_branch_automerger_config_for_pull_request(projectKey, repoSlug, prId)
except ApiException as e:
    print("Exception when calling DefaultApi->getBranchAutomergerConfigForPullRequest: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required
prId*
Long (int64)
Required

Responses

Status: 204 - No existing configuration

Status: 404 - Pull request not found

Status: default -


getBranchAutomergers


/branch/automerge/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/automerge/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestBranchAutoMergers] result = apiInstance.getBranchAutomergers(projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getBranchAutomergers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestBranchAutoMergers] result = apiInstance.getBranchAutomergers(projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getBranchAutomergers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getBranchAutomergersWith:projectKey
    repoSlug:repoSlug
              completionHandler: ^(array[RestBranchAutoMergers] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getBranchAutomergers(projectKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getBranchAutomergersExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

            try
            {
                array[RestBranchAutoMergers] result = apiInstance.getBranchAutomergers(projectKey, repoSlug);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getBranchAutomergers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 

try {
    $result = $api_instance->getBranchAutomergers($projectKey, $repoSlug);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getBranchAutomergers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 

eval { 
    my $result = $api_instance->getBranchAutomergers(projectKey => $projectKey, repoSlug => $repoSlug);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getBranchAutomergers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 

try: 
    api_response = api_instance.get_branch_automergers(projectKey, repoSlug)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getBranchAutomergers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required

Responses

Status: default -


getBranchAutomergersList


/branch/automergelist/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/automergelist/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestBranchAutoMergers] result = apiInstance.getBranchAutomergersList(projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getBranchAutomergersList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestBranchAutoMergers] result = apiInstance.getBranchAutomergersList(projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getBranchAutomergersList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getBranchAutomergersListWith:projectKey
    repoSlug:repoSlug
              completionHandler: ^(array[RestBranchAutoMergers] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getBranchAutomergersList(projectKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getBranchAutomergersListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

            try
            {
                array[RestBranchAutoMergers] result = apiInstance.getBranchAutomergersList(projectKey, repoSlug);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getBranchAutomergersList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 

try {
    $result = $api_instance->getBranchAutomergersList($projectKey, $repoSlug);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getBranchAutomergersList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 

eval { 
    my $result = $api_instance->getBranchAutomergersList(projectKey => $projectKey, repoSlug => $repoSlug);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getBranchAutomergersList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 

try: 
    api_response = api_instance.get_branch_automergers_list(projectKey, repoSlug)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getBranchAutomergersList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required

Responses

Status: default -


getBranchReviewers


/branch/reviewers/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/reviewers/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestBranchReviewers] result = apiInstance.getBranchReviewers(projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getBranchReviewers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestBranchReviewers] result = apiInstance.getBranchReviewers(projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getBranchReviewers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getBranchReviewersWith:projectKey
    repoSlug:repoSlug
              completionHandler: ^(array[RestBranchReviewers] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getBranchReviewers(projectKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getBranchReviewersExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

            try
            {
                array[RestBranchReviewers] result = apiInstance.getBranchReviewers(projectKey, repoSlug);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getBranchReviewers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 

try {
    $result = $api_instance->getBranchReviewers($projectKey, $repoSlug);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getBranchReviewers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 

eval { 
    my $result = $api_instance->getBranchReviewers(projectKey => $projectKey, repoSlug => $repoSlug);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getBranchReviewers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 

try: 
    api_response = api_instance.get_branch_reviewers(projectKey, repoSlug)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getBranchReviewers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required

Responses

Status: default -


getBranchReviewersList


/branch/reviewerslist/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/reviewerslist/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestBranchReviewers] result = apiInstance.getBranchReviewersList(projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getBranchReviewersList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestBranchReviewers] result = apiInstance.getBranchReviewersList(projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getBranchReviewersList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getBranchReviewersListWith:projectKey
    repoSlug:repoSlug
              completionHandler: ^(array[RestBranchReviewers] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getBranchReviewersList(projectKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getBranchReviewersListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

            try
            {
                array[RestBranchReviewers] result = apiInstance.getBranchReviewersList(projectKey, repoSlug);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getBranchReviewersList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 

try {
    $result = $api_instance->getBranchReviewersList($projectKey, $repoSlug);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getBranchReviewersList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 

eval { 
    my $result = $api_instance->getBranchReviewersList(projectKey => $projectKey, repoSlug => $repoSlug);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getBranchReviewersList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 

try: 
    api_response = api_instance.get_branch_reviewers_list(projectKey, repoSlug)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getBranchReviewersList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required

Responses

Status: default -


getGlobalConfig


/globalconfig/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/globalconfig/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            apiInstance.getGlobalConfig(projectKey, repoSlug);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getGlobalConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            apiInstance.getGlobalConfig(projectKey, repoSlug);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getGlobalConfig");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getGlobalConfigWith:projectKey
    repoSlug:repoSlug
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getGlobalConfig(projectKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getGlobalConfigExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

            try
            {
                apiInstance.getGlobalConfig(projectKey, repoSlug);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getGlobalConfig: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 

try {
    $api_instance->getGlobalConfig($projectKey, $repoSlug);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getGlobalConfig: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 

eval { 
    $api_instance->getGlobalConfig(projectKey => $projectKey, repoSlug => $repoSlug);
};
if ($@) {
    warn "Exception when calling DefaultApi->getGlobalConfig: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 

try: 
    api_instance.get_global_config(projectKey, repoSlug)
except ApiException as e:
    print("Exception when calling DefaultApi->getGlobalConfig: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required

Responses

Status: default - default response


getGlobalConfig1


/globalconfig

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/globalconfig"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            GlobalConfig result = apiInstance.getGlobalConfig1();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getGlobalConfig1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            GlobalConfig result = apiInstance.getGlobalConfig1();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getGlobalConfig1");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getGlobalConfig1WithCompletionHandler: 
              ^(GlobalConfig output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getGlobalConfig1(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getGlobalConfig1Example
    {
        public void main()
        {

            var apiInstance = new DefaultApi();

            try
            {
                GlobalConfig result = apiInstance.getGlobalConfig1();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getGlobalConfig1: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();

try {
    $result = $api_instance->getGlobalConfig1();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getGlobalConfig1: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

eval { 
    my $result = $api_instance->getGlobalConfig1();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getGlobalConfig1: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    api_response = api_instance.get_global_config1()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getGlobalConfig1: %s\n" % e)

Parameters

Responses

Status: default -


getGlobalConfig2


/globalconfig/{projectKey}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/globalconfig/{projectKey}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            apiInstance.getGlobalConfig2(projectKey);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getGlobalConfig2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            apiInstance.getGlobalConfig2(projectKey);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getGlobalConfig2");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getGlobalConfig2With:projectKey
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getGlobalConfig2(projectKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getGlobalConfig2Example
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 

            try
            {
                apiInstance.getGlobalConfig2(projectKey);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getGlobalConfig2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 

try {
    $api_instance->getGlobalConfig2($projectKey);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getGlobalConfig2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 

eval { 
    $api_instance->getGlobalConfig2(projectKey => $projectKey);
};
if ($@) {
    warn "Exception when calling DefaultApi->getGlobalConfig2: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 

try: 
    api_instance.get_global_config2(projectKey)
except ApiException as e:
    print("Exception when calling DefaultApi->getGlobalConfig2: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required

Responses

Status: default - default response


getMergeVeto


/merge-check/{projectKey}/{repoSlug}/{prId}/veto

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/merge-check/{projectKey}/{repoSlug}/{prId}/veto"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Long prId = 789; // Long | 
        try {
            'String' result = apiInstance.getMergeVeto(projectKey, repoSlug, prId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getMergeVeto");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Long prId = 789; // Long | 
        try {
            'String' result = apiInstance.getMergeVeto(projectKey, repoSlug, prId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getMergeVeto");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
Long *prId = 789; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getMergeVetoWith:projectKey
    repoSlug:repoSlug
    prId:prId
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var prId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getMergeVeto(projectKey, repoSlug, prId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getMergeVetoExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var prId = 789;  // Long | 

            try
            {
                'String' result = apiInstance.getMergeVeto(projectKey, repoSlug, prId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getMergeVeto: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$prId = 789; // Long | 

try {
    $result = $api_instance->getMergeVeto($projectKey, $repoSlug, $prId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getMergeVeto: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $prId = 789; # Long | 

eval { 
    my $result = $api_instance->getMergeVeto(projectKey => $projectKey, repoSlug => $repoSlug, prId => $prId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getMergeVeto: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
prId = 789 # Long | 

try: 
    api_response = api_instance.get_merge_veto(projectKey, repoSlug, prId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getMergeVeto: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required
prId*
Long (int64)
Required

Responses

Status: default - List of Workzone merge veto titles and messages list.


getProjectAutomergers


/project/{projectKey}/automerge

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/automerge"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            array[RestBranchAutoMergers] result = apiInstance.getProjectAutomergers(projectKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectAutomergers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            array[RestBranchAutoMergers] result = apiInstance.getProjectAutomergers(projectKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectAutomergers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getProjectAutomergersWith:projectKey
              completionHandler: ^(array[RestBranchAutoMergers] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getProjectAutomergers(projectKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getProjectAutomergersExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 

            try
            {
                array[RestBranchAutoMergers] result = apiInstance.getProjectAutomergers(projectKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getProjectAutomergers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 

try {
    $result = $api_instance->getProjectAutomergers($projectKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getProjectAutomergers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 

eval { 
    my $result = $api_instance->getProjectAutomergers(projectKey => $projectKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getProjectAutomergers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 

try: 
    api_response = api_instance.get_project_automergers(projectKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getProjectAutomergers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required

Responses

Status: default -


getProjectAutomergersList


/project/{projectKey}/automergelist

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/automergelist"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            array[RestBranchAutoMergers] result = apiInstance.getProjectAutomergersList(projectKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectAutomergersList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            array[RestBranchAutoMergers] result = apiInstance.getProjectAutomergersList(projectKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectAutomergersList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getProjectAutomergersListWith:projectKey
              completionHandler: ^(array[RestBranchAutoMergers] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getProjectAutomergersList(projectKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getProjectAutomergersListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 

            try
            {
                array[RestBranchAutoMergers] result = apiInstance.getProjectAutomergersList(projectKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getProjectAutomergersList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 

try {
    $result = $api_instance->getProjectAutomergersList($projectKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getProjectAutomergersList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 

eval { 
    my $result = $api_instance->getProjectAutomergersList(projectKey => $projectKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getProjectAutomergersList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 

try: 
    api_response = api_instance.get_project_automergers_list(projectKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getProjectAutomergersList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required

Responses

Status: default -


getProjectReviewers


/project/{projectKey}/reviewers

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/reviewers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            array[RestBranchReviewers] result = apiInstance.getProjectReviewers(projectKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectReviewers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            array[RestBranchReviewers] result = apiInstance.getProjectReviewers(projectKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectReviewers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getProjectReviewersWith:projectKey
              completionHandler: ^(array[RestBranchReviewers] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getProjectReviewers(projectKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getProjectReviewersExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 

            try
            {
                array[RestBranchReviewers] result = apiInstance.getProjectReviewers(projectKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getProjectReviewers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 

try {
    $result = $api_instance->getProjectReviewers($projectKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getProjectReviewers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 

eval { 
    my $result = $api_instance->getProjectReviewers(projectKey => $projectKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getProjectReviewers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 

try: 
    api_response = api_instance.get_project_reviewers(projectKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getProjectReviewers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required

Responses

Status: default -


getProjectReviewersList


/project/{projectKey}/reviewerslist

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/reviewerslist"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            array[RestBranchReviewers] result = apiInstance.getProjectReviewersList(projectKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectReviewersList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            array[RestBranchReviewers] result = apiInstance.getProjectReviewersList(projectKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectReviewersList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getProjectReviewersListWith:projectKey
              completionHandler: ^(array[RestBranchReviewers] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getProjectReviewersList(projectKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getProjectReviewersListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 

            try
            {
                array[RestBranchReviewers] result = apiInstance.getProjectReviewersList(projectKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getProjectReviewersList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 

try {
    $result = $api_instance->getProjectReviewersList($projectKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getProjectReviewersList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 

eval { 
    my $result = $api_instance->getProjectReviewersList(projectKey => $projectKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getProjectReviewersList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 

try: 
    api_response = api_instance.get_project_reviewers_list(projectKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getProjectReviewersList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required

Responses

Status: default -


getProjectSignapprovers


/project/{projectKey}/signapprovers

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/signapprovers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            array[RestBranchSignapprovers] result = apiInstance.getProjectSignapprovers(projectKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectSignapprovers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            array[RestBranchSignapprovers] result = apiInstance.getProjectSignapprovers(projectKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectSignapprovers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getProjectSignapproversWith:projectKey
              completionHandler: ^(array[RestBranchSignapprovers] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getProjectSignapprovers(projectKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getProjectSignapproversExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 

            try
            {
                array[RestBranchSignapprovers] result = apiInstance.getProjectSignapprovers(projectKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getProjectSignapprovers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 

try {
    $result = $api_instance->getProjectSignapprovers($projectKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getProjectSignapprovers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 

eval { 
    my $result = $api_instance->getProjectSignapprovers(projectKey => $projectKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getProjectSignapprovers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 

try: 
    api_response = api_instance.get_project_signapprovers(projectKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getProjectSignapprovers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required

Responses

Status: default -


getProjectSignapproversList


/project/{projectKey}/signapproverslist

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/signapproverslist"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            array[RestBranchSignapprovers] result = apiInstance.getProjectSignapproversList(projectKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectSignapproversList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            array[RestBranchSignapprovers] result = apiInstance.getProjectSignapproversList(projectKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectSignapproversList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getProjectSignapproversListWith:projectKey
              completionHandler: ^(array[RestBranchSignapprovers] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getProjectSignapproversList(projectKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getProjectSignapproversListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 

            try
            {
                array[RestBranchSignapprovers] result = apiInstance.getProjectSignapproversList(projectKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getProjectSignapproversList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 

try {
    $result = $api_instance->getProjectSignapproversList($projectKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getProjectSignapproversList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 

eval { 
    my $result = $api_instance->getProjectSignapproversList(projectKey => $projectKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getProjectSignapproversList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 

try: 
    api_response = api_instance.get_project_signapprovers_list(projectKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getProjectSignapproversList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required

Responses

Status: default -


getSignApprovers


/approvals/{projectKey}/{repoSlug}/{pullReqId}/approvers

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/approvals/{projectKey}/{repoSlug}/{pullReqId}/approvers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Long pullReqId = 789; // Long | 
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestApplicationUser] result = apiInstance.getSignApprovers(pullReqId, projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getSignApprovers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Long pullReqId = 789; // Long | 
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestApplicationUser] result = apiInstance.getSignApprovers(pullReqId, projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getSignApprovers");
            e.printStackTrace();
        }
    }
}
Long *pullReqId = 789; // 
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getSignApproversWith:pullReqId
    projectKey:projectKey
    repoSlug:repoSlug
              completionHandler: ^(array[RestApplicationUser] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var pullReqId = 789; // {{Long}} 
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSignApprovers(pullReqId, projectKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSignApproversExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var pullReqId = 789;  // Long | 
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

            try
            {
                array[RestApplicationUser] result = apiInstance.getSignApprovers(pullReqId, projectKey, repoSlug);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getSignApprovers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$pullReqId = 789; // Long | 
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 

try {
    $result = $api_instance->getSignApprovers($pullReqId, $projectKey, $repoSlug);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getSignApprovers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $pullReqId = 789; # Long | 
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 

eval { 
    my $result = $api_instance->getSignApprovers(pullReqId => $pullReqId, projectKey => $projectKey, repoSlug => $repoSlug);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getSignApprovers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
pullReqId = 789 # Long | 
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 

try: 
    api_response = api_instance.get_sign_approvers(pullReqId, projectKey, repoSlug)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getSignApprovers: %s\n" % e)

Parameters

Path parameters
Name Description
pullReqId*
Long (int64)
Required
projectKey*
String
Required
repoSlug*
String
Required

Responses

Status: default -


getSignapprovers


/branch/signapprovers/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/signapprovers/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestBranchSignapprovers] result = apiInstance.getSignapprovers(projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getSignapprovers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestBranchSignapprovers] result = apiInstance.getSignapprovers(projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getSignapprovers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getSignapproversWith:projectKey
    repoSlug:repoSlug
              completionHandler: ^(array[RestBranchSignapprovers] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSignapprovers(projectKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSignapproversExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

            try
            {
                array[RestBranchSignapprovers] result = apiInstance.getSignapprovers(projectKey, repoSlug);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getSignapprovers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 

try {
    $result = $api_instance->getSignapprovers($projectKey, $repoSlug);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getSignapprovers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 

eval { 
    my $result = $api_instance->getSignapprovers(projectKey => $projectKey, repoSlug => $repoSlug);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getSignapprovers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 

try: 
    api_response = api_instance.get_signapprovers(projectKey, repoSlug)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getSignapprovers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required

Responses

Status: default -


getSignapproversList


/branch/signapproverslist/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/signapproverslist/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestBranchSignapprovers] result = apiInstance.getSignapproversList(projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getSignapproversList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestBranchSignapprovers] result = apiInstance.getSignapproversList(projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getSignapproversList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getSignapproversListWith:projectKey
    repoSlug:repoSlug
              completionHandler: ^(array[RestBranchSignapprovers] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSignapproversList(projectKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSignapproversListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

            try
            {
                array[RestBranchSignapprovers] result = apiInstance.getSignapproversList(projectKey, repoSlug);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getSignapproversList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 

try {
    $result = $api_instance->getSignapproversList($projectKey, $repoSlug);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getSignapproversList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 

eval { 
    my $result = $api_instance->getSignapproversList(projectKey => $projectKey, repoSlug => $repoSlug);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getSignapproversList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 

try: 
    api_response = api_instance.get_signapprovers_list(projectKey, repoSlug)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getSignapproversList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required

Responses

Status: default -


getSignatures


/approvals/{projectKey}/{repoSlug}/{pullReqId}/signatures

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/approvals/{projectKey}/{repoSlug}/{pullReqId}/signatures"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Long pullReqId = 789; // Long | 
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestPullRequestSignature] result = apiInstance.getSignatures(pullReqId, projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getSignatures");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Long pullReqId = 789; // Long | 
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            array[RestPullRequestSignature] result = apiInstance.getSignatures(pullReqId, projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getSignatures");
            e.printStackTrace();
        }
    }
}
Long *pullReqId = 789; // 
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getSignaturesWith:pullReqId
    projectKey:projectKey
    repoSlug:repoSlug
              completionHandler: ^(array[RestPullRequestSignature] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var pullReqId = 789; // {{Long}} 
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSignatures(pullReqId, projectKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSignaturesExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var pullReqId = 789;  // Long | 
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

            try
            {
                array[RestPullRequestSignature] result = apiInstance.getSignatures(pullReqId, projectKey, repoSlug);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getSignatures: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$pullReqId = 789; // Long | 
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 

try {
    $result = $api_instance->getSignatures($pullReqId, $projectKey, $repoSlug);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getSignatures: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $pullReqId = 789; # Long | 
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 

eval { 
    my $result = $api_instance->getSignatures(pullReqId => $pullReqId, projectKey => $projectKey, repoSlug => $repoSlug);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getSignatures: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
pullReqId = 789 # Long | 
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 

try: 
    api_response = api_instance.get_signatures(pullReqId, projectKey, repoSlug)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getSignatures: %s\n" % e)

Parameters

Path parameters
Name Description
pullReqId*
Long (int64)
Required
projectKey*
String
Required
repoSlug*
String
Required

Responses

Status: default -


getWorkflowProperties


/workflow/{projectKey}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/workflow/{projectKey}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            WorkflowProperties result = apiInstance.getWorkflowProperties(projectKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getWorkflowProperties");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            WorkflowProperties result = apiInstance.getWorkflowProperties(projectKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getWorkflowProperties");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getWorkflowPropertiesWith:projectKey
              completionHandler: ^(WorkflowProperties output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getWorkflowProperties(projectKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getWorkflowPropertiesExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 

            try
            {
                WorkflowProperties result = apiInstance.getWorkflowProperties(projectKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getWorkflowProperties: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 

try {
    $result = $api_instance->getWorkflowProperties($projectKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getWorkflowProperties: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 

eval { 
    my $result = $api_instance->getWorkflowProperties(projectKey => $projectKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getWorkflowProperties: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 

try: 
    api_response = api_instance.get_workflow_properties(projectKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getWorkflowProperties: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required

Responses

Status: default -


getWorkflowProperties1


/workflow/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/workflow/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            WorkflowProperties result = apiInstance.getWorkflowProperties1(projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getWorkflowProperties1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            WorkflowProperties result = apiInstance.getWorkflowProperties1(projectKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getWorkflowProperties1");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance getWorkflowProperties1With:projectKey
    repoSlug:repoSlug
              completionHandler: ^(WorkflowProperties output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getWorkflowProperties1(projectKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getWorkflowProperties1Example
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

            try
            {
                WorkflowProperties result = apiInstance.getWorkflowProperties1(projectKey, repoSlug);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getWorkflowProperties1: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 

try {
    $result = $api_instance->getWorkflowProperties1($projectKey, $repoSlug);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getWorkflowProperties1: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 

eval { 
    my $result = $api_instance->getWorkflowProperties1(projectKey => $projectKey, repoSlug => $repoSlug);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getWorkflowProperties1: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 

try: 
    api_response = api_instance.get_workflow_properties1(projectKey, repoSlug)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getWorkflowProperties1: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required

Responses

Status: default -


isSignRequired


/approvals/{projectKey}/{repoSlug}/{pullReqId}/{userId}/signrequired

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/approvals/{projectKey}/{repoSlug}/{pullReqId}/{userId}/signrequired"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Long pullReqId = 789; // Long | 
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Integer userId = 56; // Integer | 
        try {
            apiInstance.isSignRequired(pullReqId, projectKey, repoSlug, userId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#isSignRequired");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Long pullReqId = 789; // Long | 
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Integer userId = 56; // Integer | 
        try {
            apiInstance.isSignRequired(pullReqId, projectKey, repoSlug, userId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#isSignRequired");
            e.printStackTrace();
        }
    }
}
Long *pullReqId = 789; // 
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
Integer *userId = 56; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance isSignRequiredWith:pullReqId
    projectKey:projectKey
    repoSlug:repoSlug
    userId:userId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var pullReqId = 789; // {{Long}} 
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var userId = 56; // {{Integer}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.isSignRequired(pullReqId, projectKey, repoSlug, userId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class isSignRequiredExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var pullReqId = 789;  // Long | 
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var userId = 56;  // Integer | 

            try
            {
                apiInstance.isSignRequired(pullReqId, projectKey, repoSlug, userId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.isSignRequired: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$pullReqId = 789; // Long | 
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$userId = 56; // Integer | 

try {
    $api_instance->isSignRequired($pullReqId, $projectKey, $repoSlug, $userId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->isSignRequired: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $pullReqId = 789; # Long | 
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $userId = 56; # Integer | 

eval { 
    $api_instance->isSignRequired(pullReqId => $pullReqId, projectKey => $projectKey, repoSlug => $repoSlug, userId => $userId);
};
if ($@) {
    warn "Exception when calling DefaultApi->isSignRequired: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
pullReqId = 789 # Long | 
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
userId = 56 # Integer | 

try: 
    api_instance.is_sign_required(pullReqId, projectKey, repoSlug, userId)
except ApiException as e:
    print("Exception when calling DefaultApi->isSignRequired: %s\n" % e)

Parameters

Path parameters
Name Description
pullReqId*
Long (int64)
Required
projectKey*
String
Required
repoSlug*
String
Required
userId*
Integer (int32)
Required

Responses

Status: default - default response


removeWorkflowProperties


/workflow/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/workflow/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            apiInstance.removeWorkflowProperties(projectKey, repoSlug);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#removeWorkflowProperties");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            apiInstance.removeWorkflowProperties(projectKey, repoSlug);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#removeWorkflowProperties");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance removeWorkflowPropertiesWith:projectKey
    repoSlug:repoSlug
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.removeWorkflowProperties(projectKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class removeWorkflowPropertiesExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

            try
            {
                apiInstance.removeWorkflowProperties(projectKey, repoSlug);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.removeWorkflowProperties: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 

try {
    $api_instance->removeWorkflowProperties($projectKey, $repoSlug);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->removeWorkflowProperties: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 

eval { 
    $api_instance->removeWorkflowProperties(projectKey => $projectKey, repoSlug => $repoSlug);
};
if ($@) {
    warn "Exception when calling DefaultApi->removeWorkflowProperties: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 

try: 
    api_instance.remove_workflow_properties(projectKey, repoSlug)
except ApiException as e:
    print("Exception when calling DefaultApi->removeWorkflowProperties: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required

Responses

Status: default - default response


removeWorkflowProperties1


/workflow/{projectKey}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/workflow/{projectKey}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            apiInstance.removeWorkflowProperties1(projectKey);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#removeWorkflowProperties1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        try {
            apiInstance.removeWorkflowProperties1(projectKey);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#removeWorkflowProperties1");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance removeWorkflowProperties1With:projectKey
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.removeWorkflowProperties1(projectKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class removeWorkflowProperties1Example
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 

            try
            {
                apiInstance.removeWorkflowProperties1(projectKey);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.removeWorkflowProperties1: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 

try {
    $api_instance->removeWorkflowProperties1($projectKey);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->removeWorkflowProperties1: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 

eval { 
    $api_instance->removeWorkflowProperties1(projectKey => $projectKey);
};
if ($@) {
    warn "Exception when calling DefaultApi->removeWorkflowProperties1: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 

try: 
    api_instance.remove_workflow_properties1(projectKey)
except ApiException as e:
    print("Exception when calling DefaultApi->removeWorkflowProperties1: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required

Responses

Status: default - default response


resetGroupUsersCache


/globalconfig/caches/{command}/{authkey}

Usage and SDK Samples

curl -X GET\
-H "Accept: */*"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/globalconfig/caches/{command}/{authkey}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String command = command_example; // String | 
        String authkey = authkey_example; // String | 
        try {
            apiInstance.resetGroupUsersCache(command, authkey);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#resetGroupUsersCache");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String command = command_example; // String | 
        String authkey = authkey_example; // String | 
        try {
            apiInstance.resetGroupUsersCache(command, authkey);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#resetGroupUsersCache");
            e.printStackTrace();
        }
    }
}
String *command = command_example; // 
String *authkey = authkey_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance resetGroupUsersCacheWith:command
    authkey:authkey
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var command = command_example; // {{String}} 
var authkey = authkey_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.resetGroupUsersCache(command, authkey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class resetGroupUsersCacheExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var command = command_example;  // String | 
            var authkey = authkey_example;  // String | 

            try
            {
                apiInstance.resetGroupUsersCache(command, authkey);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.resetGroupUsersCache: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$command = command_example; // String | 
$authkey = authkey_example; // String | 

try {
    $api_instance->resetGroupUsersCache($command, $authkey);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->resetGroupUsersCache: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $command = command_example; # String | 
my $authkey = authkey_example; # String | 

eval { 
    $api_instance->resetGroupUsersCache(command => $command, authkey => $authkey);
};
if ($@) {
    warn "Exception when calling DefaultApi->resetGroupUsersCache: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
command = command_example # String | 
authkey = authkey_example # String | 

try: 
    api_instance.reset_group_users_cache(command, authkey)
except ApiException as e:
    print("Exception when calling DefaultApi->resetGroupUsersCache: %s\n" % e)

Parameters

Path parameters
Name Description
command*
String
Required
authkey*
String
Required

Responses

Status: default - default response


setBranchAutoMergers


/branch/automerge/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/automerge/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestBranchAutoMergers body = ; // RestBranchAutoMergers | 
        try {
            apiInstance.setBranchAutoMergers(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setBranchAutoMergers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestBranchAutoMergers body = ; // RestBranchAutoMergers | 
        try {
            apiInstance.setBranchAutoMergers(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setBranchAutoMergers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
RestBranchAutoMergers *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setBranchAutoMergersWith:projectKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{RestBranchAutoMergers}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setBranchAutoMergers(projectKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setBranchAutoMergersExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new RestBranchAutoMergers(); // RestBranchAutoMergers |  (optional) 

            try
            {
                apiInstance.setBranchAutoMergers(projectKey, repoSlug, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setBranchAutoMergers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // RestBranchAutoMergers | 

try {
    $api_instance->setBranchAutoMergers($projectKey, $repoSlug, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setBranchAutoMergers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = WWW::SwaggerClient::Object::RestBranchAutoMergers->new(); # RestBranchAutoMergers | 

eval { 
    $api_instance->setBranchAutoMergers(projectKey => $projectKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setBranchAutoMergers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # RestBranchAutoMergers |  (optional)

try: 
    api_instance.set_branch_auto_mergers(projectKey, repoSlug, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setBranchAutoMergers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setBranchAutomergersList


/branch/automergelist/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/automergelist/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        array[RestBranchAutoMergers] body = ; // array[RestBranchAutoMergers] | 
        try {
            apiInstance.setBranchAutomergersList(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setBranchAutomergersList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        array[RestBranchAutoMergers] body = ; // array[RestBranchAutoMergers] | 
        try {
            apiInstance.setBranchAutomergersList(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setBranchAutomergersList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
array[RestBranchAutoMergers] *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setBranchAutomergersListWith:projectKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{array[RestBranchAutoMergers]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setBranchAutomergersList(projectKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setBranchAutomergersListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new array[RestBranchAutoMergers](); // array[RestBranchAutoMergers] |  (optional) 

            try
            {
                apiInstance.setBranchAutomergersList(projectKey, repoSlug, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setBranchAutomergersList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // array[RestBranchAutoMergers] | 

try {
    $api_instance->setBranchAutomergersList($projectKey, $repoSlug, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setBranchAutomergersList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = [WWW::SwaggerClient::Object::array[RestBranchAutoMergers]->new()]; # array[RestBranchAutoMergers] | 

eval { 
    $api_instance->setBranchAutomergersList(projectKey => $projectKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setBranchAutomergersList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # array[RestBranchAutoMergers] |  (optional)

try: 
    api_instance.set_branch_automergers_list(projectKey, repoSlug, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setBranchAutomergersList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setBranchReviewers


/branch/reviewers/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/reviewers/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestBranchReviewers body = ; // RestBranchReviewers | 
        try {
            apiInstance.setBranchReviewers(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setBranchReviewers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestBranchReviewers body = ; // RestBranchReviewers | 
        try {
            apiInstance.setBranchReviewers(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setBranchReviewers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
RestBranchReviewers *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setBranchReviewersWith:projectKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{RestBranchReviewers}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setBranchReviewers(projectKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setBranchReviewersExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new RestBranchReviewers(); // RestBranchReviewers |  (optional) 

            try
            {
                apiInstance.setBranchReviewers(projectKey, repoSlug, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setBranchReviewers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // RestBranchReviewers | 

try {
    $api_instance->setBranchReviewers($projectKey, $repoSlug, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setBranchReviewers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = WWW::SwaggerClient::Object::RestBranchReviewers->new(); # RestBranchReviewers | 

eval { 
    $api_instance->setBranchReviewers(projectKey => $projectKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setBranchReviewers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # RestBranchReviewers |  (optional)

try: 
    api_instance.set_branch_reviewers(projectKey, repoSlug, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setBranchReviewers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setBranchReviewersList


/branch/reviewerslist/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/reviewerslist/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        array[RestBranchReviewers] body = ; // array[RestBranchReviewers] | 
        try {
            apiInstance.setBranchReviewersList(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setBranchReviewersList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        array[RestBranchReviewers] body = ; // array[RestBranchReviewers] | 
        try {
            apiInstance.setBranchReviewersList(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setBranchReviewersList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
array[RestBranchReviewers] *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setBranchReviewersListWith:projectKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{array[RestBranchReviewers]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setBranchReviewersList(projectKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setBranchReviewersListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new array[RestBranchReviewers](); // array[RestBranchReviewers] |  (optional) 

            try
            {
                apiInstance.setBranchReviewersList(projectKey, repoSlug, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setBranchReviewersList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // array[RestBranchReviewers] | 

try {
    $api_instance->setBranchReviewersList($projectKey, $repoSlug, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setBranchReviewersList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = [WWW::SwaggerClient::Object::array[RestBranchReviewers]->new()]; # array[RestBranchReviewers] | 

eval { 
    $api_instance->setBranchReviewersList(projectKey => $projectKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setBranchReviewersList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # array[RestBranchReviewers] |  (optional)

try: 
    api_instance.set_branch_reviewers_list(projectKey, repoSlug, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setBranchReviewersList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setGlobalConfig


/globalconfig/{projectKey}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/globalconfig/{projectKey}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        GlobalConfig body = ; // GlobalConfig | 
        try {
            apiInstance.setGlobalConfig(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setGlobalConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        GlobalConfig body = ; // GlobalConfig | 
        try {
            apiInstance.setGlobalConfig(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setGlobalConfig");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
GlobalConfig *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setGlobalConfigWith:projectKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var opts = { 
  'body':  // {{GlobalConfig}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setGlobalConfig(projectKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setGlobalConfigExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var body = new GlobalConfig(); // GlobalConfig |  (optional) 

            try
            {
                apiInstance.setGlobalConfig(projectKey, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setGlobalConfig: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$body = ; // GlobalConfig | 

try {
    $api_instance->setGlobalConfig($projectKey, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setGlobalConfig: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $body = WWW::SwaggerClient::Object::GlobalConfig->new(); # GlobalConfig | 

eval { 
    $api_instance->setGlobalConfig(projectKey => $projectKey, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setGlobalConfig: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
body =  # GlobalConfig |  (optional)

try: 
    api_instance.set_global_config(projectKey, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setGlobalConfig: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setGlobalConfig1


/globalconfig/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/globalconfig/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        GlobalConfig body = ; // GlobalConfig | 
        try {
            apiInstance.setGlobalConfig1(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setGlobalConfig1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        GlobalConfig body = ; // GlobalConfig | 
        try {
            apiInstance.setGlobalConfig1(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setGlobalConfig1");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
GlobalConfig *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setGlobalConfig1With:projectKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{GlobalConfig}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setGlobalConfig1(projectKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setGlobalConfig1Example
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new GlobalConfig(); // GlobalConfig |  (optional) 

            try
            {
                apiInstance.setGlobalConfig1(projectKey, repoSlug, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setGlobalConfig1: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // GlobalConfig | 

try {
    $api_instance->setGlobalConfig1($projectKey, $repoSlug, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setGlobalConfig1: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = WWW::SwaggerClient::Object::GlobalConfig->new(); # GlobalConfig | 

eval { 
    $api_instance->setGlobalConfig1(projectKey => $projectKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setGlobalConfig1: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # GlobalConfig |  (optional)

try: 
    api_instance.set_global_config1(projectKey, repoSlug, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setGlobalConfig1: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setGlobalConfig2


/globalconfig

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/globalconfig"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        GlobalConfig body = ; // GlobalConfig | 
        try {
            apiInstance.setGlobalConfig2(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setGlobalConfig2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        GlobalConfig body = ; // GlobalConfig | 
        try {
            apiInstance.setGlobalConfig2(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setGlobalConfig2");
            e.printStackTrace();
        }
    }
}
GlobalConfig *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setGlobalConfig2With:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var opts = { 
  'body':  // {{GlobalConfig}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setGlobalConfig2(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setGlobalConfig2Example
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new GlobalConfig(); // GlobalConfig |  (optional) 

            try
            {
                apiInstance.setGlobalConfig2(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setGlobalConfig2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = ; // GlobalConfig | 

try {
    $api_instance->setGlobalConfig2($body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setGlobalConfig2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::GlobalConfig->new(); # GlobalConfig | 

eval { 
    $api_instance->setGlobalConfig2(body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setGlobalConfig2: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body =  # GlobalConfig |  (optional)

try: 
    api_instance.set_global_config2(body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setGlobalConfig2: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: default - default response


setProjectAutoMergers


/project/{projectKey}/automerge

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/automerge"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        RestBranchAutoMergers body = ; // RestBranchAutoMergers | 
        try {
            apiInstance.setProjectAutoMergers(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setProjectAutoMergers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        RestBranchAutoMergers body = ; // RestBranchAutoMergers | 
        try {
            apiInstance.setProjectAutoMergers(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setProjectAutoMergers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
RestBranchAutoMergers *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setProjectAutoMergersWith:projectKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var opts = { 
  'body':  // {{RestBranchAutoMergers}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setProjectAutoMergers(projectKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setProjectAutoMergersExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var body = new RestBranchAutoMergers(); // RestBranchAutoMergers |  (optional) 

            try
            {
                apiInstance.setProjectAutoMergers(projectKey, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setProjectAutoMergers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$body = ; // RestBranchAutoMergers | 

try {
    $api_instance->setProjectAutoMergers($projectKey, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setProjectAutoMergers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $body = WWW::SwaggerClient::Object::RestBranchAutoMergers->new(); # RestBranchAutoMergers | 

eval { 
    $api_instance->setProjectAutoMergers(projectKey => $projectKey, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setProjectAutoMergers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
body =  # RestBranchAutoMergers |  (optional)

try: 
    api_instance.set_project_auto_mergers(projectKey, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setProjectAutoMergers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setProjectAutoMergersList


/project/{projectKey}/automergelist

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/automergelist"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        array[RestBranchAutoMergers] body = ; // array[RestBranchAutoMergers] | 
        try {
            apiInstance.setProjectAutoMergersList(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setProjectAutoMergersList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        array[RestBranchAutoMergers] body = ; // array[RestBranchAutoMergers] | 
        try {
            apiInstance.setProjectAutoMergersList(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setProjectAutoMergersList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
array[RestBranchAutoMergers] *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setProjectAutoMergersListWith:projectKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var opts = { 
  'body':  // {{array[RestBranchAutoMergers]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setProjectAutoMergersList(projectKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setProjectAutoMergersListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var body = new array[RestBranchAutoMergers](); // array[RestBranchAutoMergers] |  (optional) 

            try
            {
                apiInstance.setProjectAutoMergersList(projectKey, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setProjectAutoMergersList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$body = ; // array[RestBranchAutoMergers] | 

try {
    $api_instance->setProjectAutoMergersList($projectKey, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setProjectAutoMergersList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $body = [WWW::SwaggerClient::Object::array[RestBranchAutoMergers]->new()]; # array[RestBranchAutoMergers] | 

eval { 
    $api_instance->setProjectAutoMergersList(projectKey => $projectKey, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setProjectAutoMergersList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
body =  # array[RestBranchAutoMergers] |  (optional)

try: 
    api_instance.set_project_auto_mergers_list(projectKey, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setProjectAutoMergersList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setProjectReviewers


/project/{projectKey}/reviewers

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/reviewers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        RestBranchReviewers body = ; // RestBranchReviewers | 
        try {
            apiInstance.setProjectReviewers(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setProjectReviewers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        RestBranchReviewers body = ; // RestBranchReviewers | 
        try {
            apiInstance.setProjectReviewers(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setProjectReviewers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
RestBranchReviewers *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setProjectReviewersWith:projectKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var opts = { 
  'body':  // {{RestBranchReviewers}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setProjectReviewers(projectKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setProjectReviewersExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var body = new RestBranchReviewers(); // RestBranchReviewers |  (optional) 

            try
            {
                apiInstance.setProjectReviewers(projectKey, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setProjectReviewers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$body = ; // RestBranchReviewers | 

try {
    $api_instance->setProjectReviewers($projectKey, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setProjectReviewers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $body = WWW::SwaggerClient::Object::RestBranchReviewers->new(); # RestBranchReviewers | 

eval { 
    $api_instance->setProjectReviewers(projectKey => $projectKey, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setProjectReviewers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
body =  # RestBranchReviewers |  (optional)

try: 
    api_instance.set_project_reviewers(projectKey, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setProjectReviewers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setProjectReviewersList


/project/{projectKey}/reviewerslist

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/reviewerslist"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        array[RestBranchReviewers] body = ; // array[RestBranchReviewers] | 
        try {
            apiInstance.setProjectReviewersList(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setProjectReviewersList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        array[RestBranchReviewers] body = ; // array[RestBranchReviewers] | 
        try {
            apiInstance.setProjectReviewersList(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setProjectReviewersList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
array[RestBranchReviewers] *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setProjectReviewersListWith:projectKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var opts = { 
  'body':  // {{array[RestBranchReviewers]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setProjectReviewersList(projectKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setProjectReviewersListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var body = new array[RestBranchReviewers](); // array[RestBranchReviewers] |  (optional) 

            try
            {
                apiInstance.setProjectReviewersList(projectKey, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setProjectReviewersList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$body = ; // array[RestBranchReviewers] | 

try {
    $api_instance->setProjectReviewersList($projectKey, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setProjectReviewersList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $body = [WWW::SwaggerClient::Object::array[RestBranchReviewers]->new()]; # array[RestBranchReviewers] | 

eval { 
    $api_instance->setProjectReviewersList(projectKey => $projectKey, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setProjectReviewersList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
body =  # array[RestBranchReviewers] |  (optional)

try: 
    api_instance.set_project_reviewers_list(projectKey, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setProjectReviewersList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setProjectSignApprovers


/project/{projectKey}/signapprovers

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/signapprovers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        RestBranchSignapprovers body = ; // RestBranchSignapprovers | 
        try {
            apiInstance.setProjectSignApprovers(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setProjectSignApprovers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        RestBranchSignapprovers body = ; // RestBranchSignapprovers | 
        try {
            apiInstance.setProjectSignApprovers(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setProjectSignApprovers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
RestBranchSignapprovers *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setProjectSignApproversWith:projectKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var opts = { 
  'body':  // {{RestBranchSignapprovers}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setProjectSignApprovers(projectKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setProjectSignApproversExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var body = new RestBranchSignapprovers(); // RestBranchSignapprovers |  (optional) 

            try
            {
                apiInstance.setProjectSignApprovers(projectKey, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setProjectSignApprovers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$body = ; // RestBranchSignapprovers | 

try {
    $api_instance->setProjectSignApprovers($projectKey, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setProjectSignApprovers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $body = WWW::SwaggerClient::Object::RestBranchSignapprovers->new(); # RestBranchSignapprovers | 

eval { 
    $api_instance->setProjectSignApprovers(projectKey => $projectKey, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setProjectSignApprovers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
body =  # RestBranchSignapprovers |  (optional)

try: 
    api_instance.set_project_sign_approvers(projectKey, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setProjectSignApprovers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setProjectSignApproversList


/project/{projectKey}/signapproverslist

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/project/{projectKey}/signapproverslist"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        array[RestBranchSignapprovers] body = ; // array[RestBranchSignapprovers] | 
        try {
            apiInstance.setProjectSignApproversList(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setProjectSignApproversList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        array[RestBranchSignapprovers] body = ; // array[RestBranchSignapprovers] | 
        try {
            apiInstance.setProjectSignApproversList(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setProjectSignApproversList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
array[RestBranchSignapprovers] *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setProjectSignApproversListWith:projectKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var opts = { 
  'body':  // {{array[RestBranchSignapprovers]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setProjectSignApproversList(projectKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setProjectSignApproversListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var body = new array[RestBranchSignapprovers](); // array[RestBranchSignapprovers] |  (optional) 

            try
            {
                apiInstance.setProjectSignApproversList(projectKey, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setProjectSignApproversList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$body = ; // array[RestBranchSignapprovers] | 

try {
    $api_instance->setProjectSignApproversList($projectKey, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setProjectSignApproversList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $body = [WWW::SwaggerClient::Object::array[RestBranchSignapprovers]->new()]; # array[RestBranchSignapprovers] | 

eval { 
    $api_instance->setProjectSignApproversList(projectKey => $projectKey, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setProjectSignApproversList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
body =  # array[RestBranchSignapprovers] |  (optional)

try: 
    api_instance.set_project_sign_approvers_list(projectKey, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setProjectSignApproversList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setSignApprovers


/branch/signapprovers/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/signapprovers/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestBranchSignapprovers body = ; // RestBranchSignapprovers | 
        try {
            apiInstance.setSignApprovers(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setSignApprovers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestBranchSignapprovers body = ; // RestBranchSignapprovers | 
        try {
            apiInstance.setSignApprovers(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setSignApprovers");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
RestBranchSignapprovers *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setSignApproversWith:projectKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{RestBranchSignapprovers}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setSignApprovers(projectKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setSignApproversExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new RestBranchSignapprovers(); // RestBranchSignapprovers |  (optional) 

            try
            {
                apiInstance.setSignApprovers(projectKey, repoSlug, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setSignApprovers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // RestBranchSignapprovers | 

try {
    $api_instance->setSignApprovers($projectKey, $repoSlug, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setSignApprovers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = WWW::SwaggerClient::Object::RestBranchSignapprovers->new(); # RestBranchSignapprovers | 

eval { 
    $api_instance->setSignApprovers(projectKey => $projectKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setSignApprovers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # RestBranchSignapprovers |  (optional)

try: 
    api_instance.set_sign_approvers(projectKey, repoSlug, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setSignApprovers: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setSignApproversList


/branch/signapproverslist/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/signapproverslist/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        array[RestBranchSignapprovers] body = ; // array[RestBranchSignapprovers] | 
        try {
            apiInstance.setSignApproversList(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setSignApproversList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        array[RestBranchSignapprovers] body = ; // array[RestBranchSignapprovers] | 
        try {
            apiInstance.setSignApproversList(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setSignApproversList");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
array[RestBranchSignapprovers] *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setSignApproversListWith:projectKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{array[RestBranchSignapprovers]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setSignApproversList(projectKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setSignApproversListExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new array[RestBranchSignapprovers](); // array[RestBranchSignapprovers] |  (optional) 

            try
            {
                apiInstance.setSignApproversList(projectKey, repoSlug, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setSignApproversList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // array[RestBranchSignapprovers] | 

try {
    $api_instance->setSignApproversList($projectKey, $repoSlug, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setSignApproversList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = [WWW::SwaggerClient::Object::array[RestBranchSignapprovers]->new()]; # array[RestBranchSignapprovers] | 

eval { 
    $api_instance->setSignApproversList(projectKey => $projectKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setSignApproversList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # array[RestBranchSignapprovers] |  (optional)

try: 
    api_instance.set_sign_approvers_list(projectKey, repoSlug, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setSignApproversList: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setWorkflowProperties


/workflow/{projectKey}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/workflow/{projectKey}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        WorkflowProperties body = ; // WorkflowProperties | 
        try {
            apiInstance.setWorkflowProperties(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setWorkflowProperties");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        WorkflowProperties body = ; // WorkflowProperties | 
        try {
            apiInstance.setWorkflowProperties(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setWorkflowProperties");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
WorkflowProperties *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setWorkflowPropertiesWith:projectKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var opts = { 
  'body':  // {{WorkflowProperties}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setWorkflowProperties(projectKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setWorkflowPropertiesExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var body = new WorkflowProperties(); // WorkflowProperties |  (optional) 

            try
            {
                apiInstance.setWorkflowProperties(projectKey, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setWorkflowProperties: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$body = ; // WorkflowProperties | 

try {
    $api_instance->setWorkflowProperties($projectKey, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setWorkflowProperties: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $body = WWW::SwaggerClient::Object::WorkflowProperties->new(); # WorkflowProperties | 

eval { 
    $api_instance->setWorkflowProperties(projectKey => $projectKey, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setWorkflowProperties: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
body =  # WorkflowProperties |  (optional)

try: 
    api_instance.set_workflow_properties(projectKey, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setWorkflowProperties: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setWorkflowProperties1


/workflow/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/workflow/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        WorkflowProperties body = ; // WorkflowProperties | 
        try {
            apiInstance.setWorkflowProperties1(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setWorkflowProperties1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        WorkflowProperties body = ; // WorkflowProperties | 
        try {
            apiInstance.setWorkflowProperties1(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setWorkflowProperties1");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
WorkflowProperties *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance setWorkflowProperties1With:projectKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{WorkflowProperties}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setWorkflowProperties1(projectKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setWorkflowProperties1Example
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new WorkflowProperties(); // WorkflowProperties |  (optional) 

            try
            {
                apiInstance.setWorkflowProperties1(projectKey, repoSlug, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setWorkflowProperties1: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // WorkflowProperties | 

try {
    $api_instance->setWorkflowProperties1($projectKey, $repoSlug, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setWorkflowProperties1: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = WWW::SwaggerClient::Object::WorkflowProperties->new(); # WorkflowProperties | 

eval { 
    $api_instance->setWorkflowProperties1(projectKey => $projectKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setWorkflowProperties1: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # WorkflowProperties |  (optional)

try: 
    api_instance.set_workflow_properties1(projectKey, repoSlug, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setWorkflowProperties1: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


signApprove


/approvals/{projectKey}/{repoSlug}/{pullReqId}/sign

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/approvals/{projectKey}/{repoSlug}/{pullReqId}/sign"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Long pullReqId = 789; // Long | 
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        SignApprove body = ; // SignApprove | 
        try {
            apiInstance.signApprove(pullReqId, projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#signApprove");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Long pullReqId = 789; // Long | 
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        SignApprove body = ; // SignApprove | 
        try {
            apiInstance.signApprove(pullReqId, projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#signApprove");
            e.printStackTrace();
        }
    }
}
Long *pullReqId = 789; // 
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
SignApprove *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance signApproveWith:pullReqId
    projectKey:projectKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var pullReqId = 789; // {{Long}} 
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{SignApprove}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.signApprove(pullReqIdprojectKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class signApproveExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var pullReqId = 789;  // Long | 
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new SignApprove(); // SignApprove |  (optional) 

            try
            {
                apiInstance.signApprove(pullReqId, projectKey, repoSlug, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.signApprove: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$pullReqId = 789; // Long | 
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // SignApprove | 

try {
    $api_instance->signApprove($pullReqId, $projectKey, $repoSlug, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->signApprove: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $pullReqId = 789; # Long | 
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = WWW::SwaggerClient::Object::SignApprove->new(); # SignApprove | 

eval { 
    $api_instance->signApprove(pullReqId => $pullReqId, projectKey => $projectKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->signApprove: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
pullReqId = 789 # Long | 
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # SignApprove |  (optional)

try: 
    api_instance.sign_approve(pullReqId, projectKey, repoSlug, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->signApprove: %s\n" % e)

Parameters

Path parameters
Name Description
pullReqId*
Long (int64)
Required
projectKey*
String
Required
repoSlug*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


updateWorkflowProperties


/workflow/{projectKey}

Usage and SDK Samples

curl -X PUT\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/workflow/{projectKey}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        WorkflowProperties body = ; // WorkflowProperties | 
        try {
            apiInstance.updateWorkflowProperties(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateWorkflowProperties");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        WorkflowProperties body = ; // WorkflowProperties | 
        try {
            apiInstance.updateWorkflowProperties(projectKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateWorkflowProperties");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
WorkflowProperties *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance updateWorkflowPropertiesWith:projectKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var opts = { 
  'body':  // {{WorkflowProperties}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateWorkflowProperties(projectKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateWorkflowPropertiesExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var body = new WorkflowProperties(); // WorkflowProperties |  (optional) 

            try
            {
                apiInstance.updateWorkflowProperties(projectKey, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateWorkflowProperties: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$body = ; // WorkflowProperties | 

try {
    $api_instance->updateWorkflowProperties($projectKey, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateWorkflowProperties: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $body = WWW::SwaggerClient::Object::WorkflowProperties->new(); # WorkflowProperties | 

eval { 
    $api_instance->updateWorkflowProperties(projectKey => $projectKey, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->updateWorkflowProperties: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
body =  # WorkflowProperties |  (optional)

try: 
    api_instance.update_workflow_properties(projectKey, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->updateWorkflowProperties: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response


updateWorkflowProperties1


/workflow/{projectKey}/{repoSlug}

Usage and SDK Samples

curl -X PUT\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/workflow/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        WorkflowProperties body = ; // WorkflowProperties | 
        try {
            apiInstance.updateWorkflowProperties1(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateWorkflowProperties1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectKey = projectKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        WorkflowProperties body = ; // WorkflowProperties | 
        try {
            apiInstance.updateWorkflowProperties1(projectKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateWorkflowProperties1");
            e.printStackTrace();
        }
    }
}
String *projectKey = projectKey_example; // 
String *repoSlug = repoSlug_example; // 
WorkflowProperties *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance updateWorkflowProperties1With:projectKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkzoneRestApi = require('workzone___rest_api');

var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{WorkflowProperties}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateWorkflowProperties1(projectKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateWorkflowProperties1Example
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var projectKey = projectKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new WorkflowProperties(); // WorkflowProperties |  (optional) 

            try
            {
                apiInstance.updateWorkflowProperties1(projectKey, repoSlug, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateWorkflowProperties1: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // WorkflowProperties | 

try {
    $api_instance->updateWorkflowProperties1($projectKey, $repoSlug, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateWorkflowProperties1: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = WWW::SwaggerClient::Object::WorkflowProperties->new(); # WorkflowProperties | 

eval { 
    $api_instance->updateWorkflowProperties1(projectKey => $projectKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->updateWorkflowProperties1: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # WorkflowProperties |  (optional)

try: 
    api_instance.update_workflow_properties1(projectKey, repoSlug, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->updateWorkflowProperties1: %s\n" % e)

Parameters

Path parameters
Name Description
projectKey*
String
Required
repoSlug*
String
Required
Body parameters
Name Description
body

Responses

Status: default - default response