Organizr - REST API

Default

addLabelToPullRequest


/label/project/{projKey}/repo/{repoSlug}/pullrequest/{pullRequestId}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: */*"\
"http://localhost:7990/bitbucket/rest/organizr/latest/label/project/{projKey}/repo/{repoSlug}/pullrequest/{pullRequestId}"
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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Long pullRequestId = 789; // Long | 
        RestLabel body = ; // RestLabel | 
        try {
            apiInstance.addLabelToPullRequest(projKey, repoSlug, pullRequestId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addLabelToPullRequest");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Long pullRequestId = 789; // Long | 
        RestLabel body = ; // RestLabel | 
        try {
            apiInstance.addLabelToPullRequest(projKey, repoSlug, pullRequestId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addLabelToPullRequest");
            e.printStackTrace();
        }
    }
}
String *projKey = projKey_example; // 
String *repoSlug = repoSlug_example; // 
Long *pullRequestId = 789; // 
RestLabel *body = ; //  (optional)

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

[apiInstance addLabelToPullRequestWith:projKey
    repoSlug:repoSlug
    pullRequestId:pullRequestId
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var pullRequestId = 789; // {{Long}} 
var opts = { 
  'body':  // {{RestLabel}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.addLabelToPullRequest(projKeyrepoSlugpullRequestId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var pullRequestId = 789;  // Long | 
            var body = new RestLabel(); // RestLabel |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$pullRequestId = 789; // Long | 
$body = ; // RestLabel | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $pullRequestId = 789; # Long | 
my $body = WWW::SwaggerClient::Object::RestLabel->new(); # RestLabel | 

eval { 
    $api_instance->addLabelToPullRequest(projKey => $projKey, repoSlug => $repoSlug, pullRequestId => $pullRequestId, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->addLabelToPullRequest: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
pullRequestId = 789 # Long | 
body =  # RestLabel |  (optional)

try: 
    api_instance.add_label_to_pull_request(projKey, repoSlug, pullRequestId, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->addLabelToPullRequest: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
repoSlug*
String
Required
pullRequestId*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: default - default response


addQueryFilter


/filters

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/filters"
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();
        RestQueryFilter body = ; // RestQueryFilter | 
        try {
            apiInstance.addQueryFilter(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addQueryFilter");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

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

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

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

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

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

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

try {
    $api_instance->addQueryFilter($body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->addQueryFilter: ', $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::RestQueryFilter->new(); # RestQueryFilter | 

eval { 
    $api_instance->addQueryFilter(body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->addQueryFilter: $@\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 =  # RestQueryFilter |  (optional)

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

Parameters

Body parameters
Name Description
body

Responses

Status: default - default response


deleteDueDate


/meta/duedate/{projKey}/{repoSlug}/{id}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/meta/duedate/{projKey}/{repoSlug}/{id}"
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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Long id = 789; // Long | 
        try {
            apiInstance.deleteDueDate(projKey, repoSlug, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteDueDate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance deleteDueDateWith:projKey
    repoSlug:repoSlug
    id:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var id = 789; // {{Long}} 

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

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var id = 789;  // Long | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$id = 789; // Long | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $id = 789; # Long | 

eval { 
    $api_instance->deleteDueDate(projKey => $projKey, repoSlug => $repoSlug, id => $id);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteDueDate: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
id = 789 # Long | 

try: 
    api_instance.delete_due_date(projKey, repoSlug, id)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteDueDate: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
repoSlug*
String
Required
id*
Long (int64)
Required

Responses

Status: default - default response


deleteGlobalLabel


/label

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/label?label="
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 label = label_example; // String | 
        try {
            apiInstance.deleteGlobalLabel(label);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteGlobalLabel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance deleteGlobalLabelWith:label
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

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

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

            var apiInstance = new DefaultApi();
            var label = label_example;  // String |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$label = label_example; // String | 

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

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

eval { 
    $api_instance->deleteGlobalLabel(label => $label);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteGlobalLabel: $@\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()
label = label_example # String |  (optional)

try: 
    api_instance.delete_global_label(label=label)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteGlobalLabel: %s\n" % e)

Parameters

Query parameters
Name Description
label
String

Responses

Status: default - default response


deleteLabelFromPullRequest


/label/project/{projKey}/repo/{repoSlug}/pullrequest/{pullRequestId}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/label/project/{projKey}/repo/{repoSlug}/pullrequest/{pullRequestId}?label="
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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Long pullRequestId = 789; // Long | 
        String label = label_example; // String | 
        try {
            apiInstance.deleteLabelFromPullRequest(projKey, repoSlug, pullRequestId, label);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteLabelFromPullRequest");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Long pullRequestId = 789; // Long | 
        String label = label_example; // String | 
        try {
            apiInstance.deleteLabelFromPullRequest(projKey, repoSlug, pullRequestId, label);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteLabelFromPullRequest");
            e.printStackTrace();
        }
    }
}
String *projKey = projKey_example; // 
String *repoSlug = repoSlug_example; // 
Long *pullRequestId = 789; // 
String *label = label_example; //  (optional)

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

[apiInstance deleteLabelFromPullRequestWith:projKey
    repoSlug:repoSlug
    pullRequestId:pullRequestId
    label:label
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var pullRequestId = 789; // {{Long}} 
var opts = { 
  'label': label_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteLabelFromPullRequest(projKey, repoSlug, pullRequestId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var pullRequestId = 789;  // Long | 
            var label = label_example;  // String |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$pullRequestId = 789; // Long | 
$label = label_example; // String | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $pullRequestId = 789; # Long | 
my $label = label_example; # String | 

eval { 
    $api_instance->deleteLabelFromPullRequest(projKey => $projKey, repoSlug => $repoSlug, pullRequestId => $pullRequestId, label => $label);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteLabelFromPullRequest: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
pullRequestId = 789 # Long | 
label = label_example # String |  (optional)

try: 
    api_instance.delete_label_from_pull_request(projKey, repoSlug, pullRequestId, label=label)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteLabelFromPullRequest: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
repoSlug*
String
Required
pullRequestId*
Long (int64)
Required
Query parameters
Name Description
label
String

Responses

Status: default - default response


deleteLabels


/labels/{projKey}/{repoSlug}/{id}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: */*"\
"http://localhost:7990/bitbucket/rest/organizr/latest/labels/{projKey}/{repoSlug}/{id}"
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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Integer id = 56; // Integer | 
        try {
            apiInstance.deleteLabels(projKey, repoSlug, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteLabels");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance deleteLabelsWith:projKey
    repoSlug:repoSlug
    id:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var id = 56; // {{Integer}} 

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

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var id = 56;  // Integer | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$id = 56; // Integer | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $id = 56; # Integer | 

eval { 
    $api_instance->deleteLabels(projKey => $projKey, repoSlug => $repoSlug, id => $id);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteLabels: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
id = 56 # Integer | 

try: 
    api_instance.delete_labels(projKey, repoSlug, id)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteLabels: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
repoSlug*
String
Required
id*
Integer (int32)
Required

Responses

Status: default - default response


deleteProjectLabel


/label/project/{projKey}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/label/project/{projKey}?label="
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 projKey = projKey_example; // String | 
        String label = label_example; // String | 
        try {
            apiInstance.deleteProjectLabel(projKey, label);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteProjectLabel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projKey = projKey_example; // String | 
        String label = label_example; // String | 
        try {
            apiInstance.deleteProjectLabel(projKey, label);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteProjectLabel");
            e.printStackTrace();
        }
    }
}
String *projKey = projKey_example; // 
String *label = label_example; //  (optional)

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

[apiInstance deleteProjectLabelWith:projKey
    label:label
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var opts = { 
  'label': label_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteProjectLabel(projKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var label = label_example;  // String |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$label = label_example; // String | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $label = label_example; # String | 

eval { 
    $api_instance->deleteProjectLabel(projKey => $projKey, label => $label);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteProjectLabel: $@\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()
projKey = projKey_example # String | 
label = label_example # String |  (optional)

try: 
    api_instance.delete_project_label(projKey, label=label)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteProjectLabel: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
Query parameters
Name Description
label
String

Responses

Status: default - default response


deleteProjectLabelConfig


/globalcfg/labelconfig/project/{projKey}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: */*"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg/labelconfig/project/{projKey}"
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 projKey = projKey_example; // String | 
        try {
            apiInstance.deleteProjectLabelConfig(projKey);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteProjectLabelConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance deleteProjectLabelConfigWith:projKey
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 

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

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 

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

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

eval { 
    $api_instance->deleteProjectLabelConfig(projKey => $projKey);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteProjectLabelConfig: $@\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()
projKey = projKey_example # String | 

try: 
    api_instance.delete_project_label_config(projKey)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteProjectLabelConfig: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required

Responses

Status: default - default response


deleteQuery


/filters/{id}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/filters/{id}"
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();
        Integer id = 56; // Integer | 
        try {
            apiInstance.deleteQuery(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteQuery");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance deleteQueryWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var id = 56; // {{Integer}} 

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

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

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | 

eval { 
    $api_instance->deleteQuery(id => $id);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteQuery: $@\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()
id = 56 # Integer | 

try: 
    api_instance.delete_query(id)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteQuery: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: default - default response


deleteRepoLabel


/label/project/{projKey}/repo/{repoSlug}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/label/project/{projKey}/repo/{repoSlug}?label="
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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        String label = label_example; // String | 
        try {
            apiInstance.deleteRepoLabel(projKey, repoSlug, label);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteRepoLabel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance deleteRepoLabelWith:projKey
    repoSlug:repoSlug
    label:label
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'label': label_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteRepoLabel(projKey, repoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var label = label_example;  // String |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$label = label_example; // String | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $label = label_example; # String | 

eval { 
    $api_instance->deleteRepoLabel(projKey => $projKey, repoSlug => $repoSlug, label => $label);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteRepoLabel: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
label = label_example # String |  (optional)

try: 
    api_instance.delete_repo_label(projKey, repoSlug, label=label)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteRepoLabel: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
repoSlug*
String
Required
Query parameters
Name Description
label
String

Responses

Status: default - default response


deleteRepositoryLabelConfig


/globalcfg/labelconfig/project/{projKey}/repo/{repoSlug}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: */*"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg/labelconfig/project/{projKey}/repo/{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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            apiInstance.deleteRepositoryLabelConfig(projKey, repoSlug);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteRepositoryLabelConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance deleteRepositoryLabelConfigWith:projKey
    repoSlug:repoSlug
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_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.deleteRepositoryLabelConfig(projKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

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

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

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

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

eval { 
    $api_instance->deleteRepositoryLabelConfig(projKey => $projKey, repoSlug => $repoSlug);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteRepositoryLabelConfig: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 

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

Parameters

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

Responses

Status: default - default response


findLabels


/labels/find

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/labels/find?q=&page=&size="
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 q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestLabel] result = apiInstance.findLabels(q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findLabels");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestLabel] result = apiInstance.findLabels(q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findLabels");
            e.printStackTrace();
        }
    }
}
String *q = q_example; //  (optional)
Integer *page = 56; //  (optional)
Integer *size = 56; //  (optional)

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

[apiInstance findLabelsWith:q
    page:page
    size:size
              completionHandler: ^(array[RestLabel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var opts = { 
  'q': q_example, // {{String}} 
  'page': 56, // {{Integer}} 
  'size': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findLabels(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var q = q_example;  // String |  (optional) 
            var page = 56;  // Integer |  (optional) 
            var size = 56;  // Integer |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$q = q_example; // String | 
$page = 56; // Integer | 
$size = 56; // Integer | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $q = q_example; # String | 
my $page = 56; # Integer | 
my $size = 56; # Integer | 

eval { 
    my $result = $api_instance->findLabels(q => $q, page => $page, size => $size);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findLabels: $@\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()
q = q_example # String |  (optional)
page = 56 # Integer |  (optional)
size = 56 # Integer |  (optional)

try: 
    api_response = api_instance.find_labels(q=q, page=page, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findLabels: %s\n" % e)

Parameters

Query parameters
Name Description
q
String
page
Integer (int32)
size
Integer (int32)

Responses

Status: 200 - Labels with global scope


findProjectLabels


/labels/project/{projKey}/find

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/labels/project/{projKey}/find?q=&page=&size="
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 projKey = projKey_example; // String | 
        String q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestLabel] result = apiInstance.findProjectLabels(projKey, q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findProjectLabels");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projKey = projKey_example; // String | 
        String q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestLabel] result = apiInstance.findProjectLabels(projKey, q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findProjectLabels");
            e.printStackTrace();
        }
    }
}
String *projKey = projKey_example; // 
String *q = q_example; //  (optional)
Integer *page = 56; //  (optional)
Integer *size = 56; //  (optional)

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

[apiInstance findProjectLabelsWith:projKey
    q:q
    page:page
    size:size
              completionHandler: ^(array[RestLabel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var opts = { 
  'q': q_example, // {{String}} 
  'page': 56, // {{Integer}} 
  'size': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findProjectLabels(projKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var q = q_example;  // String |  (optional) 
            var page = 56;  // Integer |  (optional) 
            var size = 56;  // Integer |  (optional) 

            try
            {
                array[RestLabel] result = apiInstance.findProjectLabels(projKey, q, page, size);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findProjectLabels: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$q = q_example; // String | 
$page = 56; // Integer | 
$size = 56; // Integer | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $q = q_example; # String | 
my $page = 56; # Integer | 
my $size = 56; # Integer | 

eval { 
    my $result = $api_instance->findProjectLabels(projKey => $projKey, q => $q, page => $page, size => $size);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findProjectLabels: $@\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()
projKey = projKey_example # String | 
q = q_example # String |  (optional)
page = 56 # Integer |  (optional)
size = 56 # Integer |  (optional)

try: 
    api_response = api_instance.find_project_labels(projKey, q=q, page=page, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findProjectLabels: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
Query parameters
Name Description
q
String
page
Integer (int32)
size
Integer (int32)

Responses

Status: 200 - Labels with project scope or global scope

Status: 204 - Project not found


findPullRequests


/labels/pull-requests

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/labels/pull-requests?q=&page=&size="
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 q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestMetaPullRequest] result = apiInstance.findPullRequests(q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findPullRequests");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestMetaPullRequest] result = apiInstance.findPullRequests(q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findPullRequests");
            e.printStackTrace();
        }
    }
}
String *q = q_example; //  (optional)
Integer *page = 56; //  (optional)
Integer *size = 56; //  (optional)

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

[apiInstance findPullRequestsWith:q
    page:page
    size:size
              completionHandler: ^(array[RestMetaPullRequest] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var opts = { 
  'q': q_example, // {{String}} 
  'page': 56, // {{Integer}} 
  'size': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findPullRequests(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var q = q_example;  // String |  (optional) 
            var page = 56;  // Integer |  (optional) 
            var size = 56;  // Integer |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$q = q_example; // String | 
$page = 56; // Integer | 
$size = 56; // Integer | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $q = q_example; # String | 
my $page = 56; # Integer | 
my $size = 56; # Integer | 

eval { 
    my $result = $api_instance->findPullRequests(q => $q, page => $page, size => $size);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findPullRequests: $@\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()
q = q_example # String |  (optional)
page = 56 # Integer |  (optional)
size = 56 # Integer |  (optional)

try: 
    api_response = api_instance.find_pull_requests(q=q, page=page, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findPullRequests: %s\n" % e)

Parameters

Query parameters
Name Description
q
String
page
Integer (int32)
size
Integer (int32)

Responses

Status: 200 - Search for pull request based on Organizr query


findRepositoryLabels


/labels/project/{projKey}/repo/{repoSlug}/find

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/labels/project/{projKey}/repo/{repoSlug}/find?q=&page=&size="
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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        String q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestLabel] result = apiInstance.findRepositoryLabels(projKey, repoSlug, q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findRepositoryLabels");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        String q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestLabel] result = apiInstance.findRepositoryLabels(projKey, repoSlug, q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findRepositoryLabels");
            e.printStackTrace();
        }
    }
}
String *projKey = projKey_example; // 
String *repoSlug = repoSlug_example; // 
String *q = q_example; //  (optional)
Integer *page = 56; //  (optional)
Integer *size = 56; //  (optional)

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

[apiInstance findRepositoryLabelsWith:projKey
    repoSlug:repoSlug
    q:q
    page:page
    size:size
              completionHandler: ^(array[RestLabel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'q': q_example, // {{String}} 
  'page': 56, // {{Integer}} 
  'size': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findRepositoryLabels(projKey, repoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var q = q_example;  // String |  (optional) 
            var page = 56;  // Integer |  (optional) 
            var size = 56;  // Integer |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$q = q_example; // String | 
$page = 56; // Integer | 
$size = 56; // Integer | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $q = q_example; # String | 
my $page = 56; # Integer | 
my $size = 56; # Integer | 

eval { 
    my $result = $api_instance->findRepositoryLabels(projKey => $projKey, repoSlug => $repoSlug, q => $q, page => $page, size => $size);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findRepositoryLabels: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
q = q_example # String |  (optional)
page = 56 # Integer |  (optional)
size = 56 # Integer |  (optional)

try: 
    api_response = api_instance.find_repository_labels(projKey, repoSlug, q=q, page=page, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findRepositoryLabels: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
repoSlug*
String
Required
Query parameters
Name Description
q
String
page
Integer (int32)
size
Integer (int32)

Responses

Status: 200 - Labels with repository or project scope or global scope


getDueDate


/meta/duedate/{projKey}/{repoSlug}/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/meta/duedate/{projKey}/{repoSlug}/{id}"
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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Long id = 789; // Long | 
        try {
            apiInstance.getDueDate(projKey, repoSlug, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getDueDate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance getDueDateWith:projKey
    repoSlug:repoSlug
    id:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var id = 789; // {{Long}} 

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

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var id = 789;  // Long | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$id = 789; // Long | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $id = 789; # Long | 

eval { 
    $api_instance->getDueDate(projKey => $projKey, repoSlug => $repoSlug, id => $id);
};
if ($@) {
    warn "Exception when calling DefaultApi->getDueDate: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
id = 789 # Long | 

try: 
    api_instance.get_due_date(projKey, repoSlug, id)
except ApiException as e:
    print("Exception when calling DefaultApi->getDueDate: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
repoSlug*
String
Required
id*
Long (int64)
Required

Responses

Status: default - default response


getFilters


/filters

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/filters"
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 {
            apiInstance.getFilters();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getFilters");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance getFiltersWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

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

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

            var apiInstance = new DefaultApi();

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

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

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

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

eval { 
    $api_instance->getFilters();
};
if ($@) {
    warn "Exception when calling DefaultApi->getFilters: $@\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_instance.get_filters()
except ApiException as e:
    print("Exception when calling DefaultApi->getFilters: %s\n" % e)

Parameters

Responses

Status: default - default response


getGlobalColumnConfig


/globalcfg/columnConfig

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg/columnConfig"
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 {
            RestColumnConfig result = apiInstance.getGlobalColumnConfig();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getGlobalColumnConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance getGlobalColumnConfigWithCompletionHandler: 
              ^(RestColumnConfig output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

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

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

            var apiInstance = new DefaultApi();

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

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

try {
    $result = $api_instance->getGlobalColumnConfig();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getGlobalColumnConfig: ', $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->getGlobalColumnConfig();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getGlobalColumnConfig: $@\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_column_config()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getGlobalColumnConfig: %s\n" % e)

Parameters

Responses

Status: default - Global column configuration


getGlobalConfig


/globalcfg

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg"
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 {
            GlobalConfigModel result = apiInstance.getGlobalConfig();
            System.out.println(result);
        } 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();
        try {
            GlobalConfigModel result = apiInstance.getGlobalConfig();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getGlobalConfig");
            e.printStackTrace();
        }
    }
}

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

[apiInstance getGlobalConfigWithCompletionHandler: 
              ^(GlobalConfigModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getGlobalConfig(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();

            try
            {
                GlobalConfigModel result = apiInstance.getGlobalConfig();
                Debug.WriteLine(result);
            }
            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();

try {
    $result = $api_instance->getGlobalConfig();
    print_r($result);
} 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();

eval { 
    my $result = $api_instance->getGlobalConfig();
    print Dumper($result);
};
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()

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

Parameters

Responses

Status: default - Global Organizr configuration


getGlobalLabelConfig


/globalcfg/labelconfig

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg/labelconfig"
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 {
            RestLabelConfig result = apiInstance.getGlobalLabelConfig();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getGlobalLabelConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance getGlobalLabelConfigWithCompletionHandler: 
              ^(RestLabelConfig output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

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

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

            var apiInstance = new DefaultApi();

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

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

try {
    $result = $api_instance->getGlobalLabelConfig();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getGlobalLabelConfig: ', $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->getGlobalLabelConfig();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getGlobalLabelConfig: $@\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_label_config()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getGlobalLabelConfig: %s\n" % e)

Parameters

Responses

Status: default - Global Label configuration


getLabels


/labels/{projKey}/{repoSlug}/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/labels/{projKey}/{repoSlug}/{id}"
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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Long id = 789; // Long | 
        try {
            array[RestLabel] result = apiInstance.getLabels(projKey, repoSlug, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getLabels");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance getLabelsWith:projKey
    repoSlug:repoSlug
    id:id
              completionHandler: ^(array[RestLabel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var id = 789; // {{Long}} 

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

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var id = 789;  // Long | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$id = 789; // Long | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getLabels(projKey => $projKey, repoSlug => $repoSlug, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getLabels: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
id = 789 # Long | 

try: 
    api_response = api_instance.get_labels(projKey, repoSlug, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getLabels: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
repoSlug*
String
Required
id*
Long (int64)
Required

Responses

Status: 200 - Labels associated with pull request


getProjectColumnConfig


/globalcfg/columnConfig/project/{projKey}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg/columnConfig/project/{projKey}"
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 projKey = projKey_example; // String | 
        try {
            RestColumnConfig result = apiInstance.getProjectColumnConfig(projKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectColumnConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance getProjectColumnConfigWith:projKey
              completionHandler: ^(RestColumnConfig output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 

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

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 

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

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

eval { 
    my $result = $api_instance->getProjectColumnConfig(projKey => $projKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getProjectColumnConfig: $@\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()
projKey = projKey_example # String | 

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

Parameters

Path parameters
Name Description
projKey*
String
Required

Responses

Status: default - Project column configuration


getProjectLabelConfig


/globalcfg/labelconfig/project/{projKey}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg/labelconfig/project/{projKey}"
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 projKey = projKey_example; // String | 
        try {
            RestLabelConfig result = apiInstance.getProjectLabelConfig(projKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectLabelConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance getProjectLabelConfigWith:projKey
              completionHandler: ^(RestLabelConfig output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 

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

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 

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

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

eval { 
    my $result = $api_instance->getProjectLabelConfig(projKey => $projKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getProjectLabelConfig: $@\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()
projKey = projKey_example # String | 

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

Parameters

Path parameters
Name Description
projKey*
String
Required

Responses

Status: default - Project label config


getPullRequest


/pull-requests/{projKey}/{repoSlug}/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/pull-requests/{projKey}/{repoSlug}/{id}"
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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Integer id = 56; // Integer | 
        try {
            apiInstance.getPullRequest(projKey, repoSlug, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getPullRequest");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance getPullRequestWith:projKey
    repoSlug:repoSlug
    id:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var id = 56; // {{Integer}} 

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

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var id = 56;  // Integer | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$id = 56; // Integer | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $id = 56; # Integer | 

eval { 
    $api_instance->getPullRequest(projKey => $projKey, repoSlug => $repoSlug, id => $id);
};
if ($@) {
    warn "Exception when calling DefaultApi->getPullRequest: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
id = 56 # Integer | 

try: 
    api_instance.get_pull_request(projKey, repoSlug, id)
except ApiException as e:
    print("Exception when calling DefaultApi->getPullRequest: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
repoSlug*
String
Required
id*
Integer (int32)
Required

Responses

Status: default - default response


getPullRequestIndexDoc


/pull-requests/index/{projKey}/{repoSlug}/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: */*"\
"http://localhost:7990/bitbucket/rest/organizr/latest/pull-requests/index/{projKey}/{repoSlug}/{id}"
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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Integer id = 56; // Integer | 
        try {
            apiInstance.getPullRequestIndexDoc(projKey, repoSlug, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getPullRequestIndexDoc");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance getPullRequestIndexDocWith:projKey
    repoSlug:repoSlug
    id:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var id = 56; // {{Integer}} 

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

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var id = 56;  // Integer | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$id = 56; // Integer | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $id = 56; # Integer | 

eval { 
    $api_instance->getPullRequestIndexDoc(projKey => $projKey, repoSlug => $repoSlug, id => $id);
};
if ($@) {
    warn "Exception when calling DefaultApi->getPullRequestIndexDoc: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
id = 56 # Integer | 

try: 
    api_instance.get_pull_request_index_doc(projKey, repoSlug, id)
except ApiException as e:
    print("Exception when calling DefaultApi->getPullRequestIndexDoc: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
repoSlug*
String
Required
id*
Integer (int32)
Required

Responses

Status: default - default response


getPullRequests


/pull-requests

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/pull-requests?q=&page=&size="
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 q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestMetaPullRequest] result = apiInstance.getPullRequests(q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getPullRequests");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestMetaPullRequest] result = apiInstance.getPullRequests(q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getPullRequests");
            e.printStackTrace();
        }
    }
}
String *q = q_example; //  (optional)
Integer *page = 56; //  (optional)
Integer *size = 56; //  (optional)

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

[apiInstance getPullRequestsWith:q
    page:page
    size:size
              completionHandler: ^(array[RestMetaPullRequest] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var opts = { 
  'q': q_example, // {{String}} 
  'page': 56, // {{Integer}} 
  'size': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPullRequests(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var q = q_example;  // String |  (optional) 
            var page = 56;  // Integer |  (optional) 
            var size = 56;  // Integer |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$q = q_example; // String | 
$page = 56; // Integer | 
$size = 56; // Integer | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $q = q_example; # String | 
my $page = 56; # Integer | 
my $size = 56; # Integer | 

eval { 
    my $result = $api_instance->getPullRequests(q => $q, page => $page, size => $size);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getPullRequests: $@\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()
q = q_example # String |  (optional)
page = 56 # Integer |  (optional)
size = 56 # Integer |  (optional)

try: 
    api_response = api_instance.get_pull_requests(q=q, page=page, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getPullRequests: %s\n" % e)

Parameters

Query parameters
Name Description
q
String
page
Integer (int32)
size
Integer (int32)

Responses

Status: default - Get pull requests that match the Organizr query


getReindexStatus


/globalcfg/reindexstatus

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg/reindexstatus"
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 {
            apiInstance.getReindexStatus();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getReindexStatus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance getReindexStatusWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

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

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

            var apiInstance = new DefaultApi();

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

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

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

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

eval { 
    $api_instance->getReindexStatus();
};
if ($@) {
    warn "Exception when calling DefaultApi->getReindexStatus: $@\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_instance.get_reindex_status()
except ApiException as e:
    print("Exception when calling DefaultApi->getReindexStatus: %s\n" % e)

Parameters

Responses

Status: default - default response


getRepoColumnConfig


/globalcfg/columnConfig/project/{projKey}/repo/{repoSlug}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg/columnConfig/project/{projKey}/repo/{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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            RestColumnConfig result = apiInstance.getRepoColumnConfig(projKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getRepoColumnConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance getRepoColumnConfigWith:projKey
    repoSlug:repoSlug
              completionHandler: ^(RestColumnConfig output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_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.getRepoColumnConfig(projKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

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

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

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

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

eval { 
    my $result = $api_instance->getRepoColumnConfig(projKey => $projKey, repoSlug => $repoSlug);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getRepoColumnConfig: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 

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

Parameters

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

Responses

Status: default - Repository column configuration


getRepositoryLabelConfig


/globalcfg/labelconfig/project/{projKey}/repo/{repoSlug}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg/labelconfig/project/{projKey}/repo/{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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        try {
            RestLabelConfig result = apiInstance.getRepositoryLabelConfig(projKey, repoSlug);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getRepositoryLabelConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance getRepositoryLabelConfigWith:projKey
    repoSlug:repoSlug
              completionHandler: ^(RestLabelConfig output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_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.getRepositoryLabelConfig(projKey, repoSlug, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 

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

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

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

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

eval { 
    my $result = $api_instance->getRepositoryLabelConfig(projKey => $projKey, repoSlug => $repoSlug);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getRepositoryLabelConfig: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 

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

Parameters

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

Responses

Status: default - Repository label config


getRequired


/dependency/{repositoryId}/{pullRequestId}/required

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/dependency/{repositoryId}/{pullRequestId}/required"
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();
        Integer repositoryId = 56; // Integer | 
        Long pullRequestId = 789; // Long | 
        try {
            array[RestPullRequest] result = apiInstance.getRequired(repositoryId, pullRequestId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getRequired");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer repositoryId = 56; // Integer | 
        Long pullRequestId = 789; // Long | 
        try {
            array[RestPullRequest] result = apiInstance.getRequired(repositoryId, pullRequestId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getRequired");
            e.printStackTrace();
        }
    }
}
Integer *repositoryId = 56; // 
Long *pullRequestId = 789; // 

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

[apiInstance getRequiredWith:repositoryId
    pullRequestId:pullRequestId
              completionHandler: ^(array[RestPullRequest] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var repositoryId = 56; // {{Integer}} 
var pullRequestId = 789; // {{Long}} 

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

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

            var apiInstance = new DefaultApi();
            var repositoryId = 56;  // Integer | 
            var pullRequestId = 789;  // Long | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$repositoryId = 56; // Integer | 
$pullRequestId = 789; // Long | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $repositoryId = 56; # Integer | 
my $pullRequestId = 789; # Long | 

eval { 
    my $result = $api_instance->getRequired(repositoryId => $repositoryId, pullRequestId => $pullRequestId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getRequired: $@\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()
repositoryId = 56 # Integer | 
pullRequestId = 789 # Long | 

try: 
    api_response = api_instance.get_required(repositoryId, pullRequestId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getRequired: %s\n" % e)

Parameters

Path parameters
Name Description
repositoryId*
Integer (int32)
Required
pullRequestId*
Long (int64)
Required

Responses

Status: default - default response


getRequiredBy


/dependency/{repositoryId}/{pullRequestId}/requiredBy

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/dependency/{repositoryId}/{pullRequestId}/requiredBy"
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();
        Integer repositoryId = 56; // Integer | 
        Long pullRequestId = 789; // Long | 
        try {
            array[RestPullRequest] result = apiInstance.getRequiredBy(repositoryId, pullRequestId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getRequiredBy");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer repositoryId = 56; // Integer | 
        Long pullRequestId = 789; // Long | 
        try {
            array[RestPullRequest] result = apiInstance.getRequiredBy(repositoryId, pullRequestId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getRequiredBy");
            e.printStackTrace();
        }
    }
}
Integer *repositoryId = 56; // 
Long *pullRequestId = 789; // 

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

[apiInstance getRequiredByWith:repositoryId
    pullRequestId:pullRequestId
              completionHandler: ^(array[RestPullRequest] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var repositoryId = 56; // {{Integer}} 
var pullRequestId = 789; // {{Long}} 

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

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

            var apiInstance = new DefaultApi();
            var repositoryId = 56;  // Integer | 
            var pullRequestId = 789;  // Long | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$repositoryId = 56; // Integer | 
$pullRequestId = 789; // Long | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $repositoryId = 56; # Integer | 
my $pullRequestId = 789; # Long | 

eval { 
    my $result = $api_instance->getRequiredBy(repositoryId => $repositoryId, pullRequestId => $pullRequestId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getRequiredBy: $@\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()
repositoryId = 56 # Integer | 
pullRequestId = 789 # Long | 

try: 
    api_response = api_instance.get_required_by(repositoryId, pullRequestId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getRequiredBy: %s\n" % e)

Parameters

Path parameters
Name Description
repositoryId*
Integer (int32)
Required
pullRequestId*
Long (int64)
Required

Responses

Status: default - default response


indexPullRequest


/pull-requests/index/{projKey}/{repoSlug}/{id}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
"http://localhost:7990/bitbucket/rest/organizr/latest/pull-requests/index/{projKey}/{repoSlug}/{id}"
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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Integer id = 56; // Integer | 
        try {
            apiInstance.indexPullRequest(projKey, repoSlug, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#indexPullRequest");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance indexPullRequestWith:projKey
    repoSlug:repoSlug
    id:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var id = 56; // {{Integer}} 

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

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var id = 56;  // Integer | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$id = 56; // Integer | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $id = 56; # Integer | 

eval { 
    $api_instance->indexPullRequest(projKey => $projKey, repoSlug => $repoSlug, id => $id);
};
if ($@) {
    warn "Exception when calling DefaultApi->indexPullRequest: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
id = 56 # Integer | 

try: 
    api_instance.index_pull_request(projKey, repoSlug, id)
except ApiException as e:
    print("Exception when calling DefaultApi->indexPullRequest: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
repoSlug*
String
Required
id*
Integer (int32)
Required

Responses

Status: default - default response



listGlobalLabels


/labels/list

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/labels/list?q=&page=&size="
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 q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestLabel] result = apiInstance.listGlobalLabels(q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listGlobalLabels");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestLabel] result = apiInstance.listGlobalLabels(q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listGlobalLabels");
            e.printStackTrace();
        }
    }
}
String *q = q_example; //  (optional)
Integer *page = 56; //  (optional)
Integer *size = 56; //  (optional)

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

[apiInstance listGlobalLabelsWith:q
    page:page
    size:size
              completionHandler: ^(array[RestLabel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var opts = { 
  'q': q_example, // {{String}} 
  'page': 56, // {{Integer}} 
  'size': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listGlobalLabels(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var q = q_example;  // String |  (optional) 
            var page = 56;  // Integer |  (optional) 
            var size = 56;  // Integer |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$q = q_example; // String | 
$page = 56; // Integer | 
$size = 56; // Integer | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $q = q_example; # String | 
my $page = 56; # Integer | 
my $size = 56; # Integer | 

eval { 
    my $result = $api_instance->listGlobalLabels(q => $q, page => $page, size => $size);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->listGlobalLabels: $@\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()
q = q_example # String |  (optional)
page = 56 # Integer |  (optional)
size = 56 # Integer |  (optional)

try: 
    api_response = api_instance.list_global_labels(q=q, page=page, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->listGlobalLabels: %s\n" % e)

Parameters

Query parameters
Name Description
q
String
page
Integer (int32)
size
Integer (int32)

Responses

Status: 200 - Labels with global scope


listProjectLabels


/labels/project/{projKey}/list

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/labels/project/{projKey}/list?q=&page=&size="
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 projKey = projKey_example; // String | 
        String q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestLabel] result = apiInstance.listProjectLabels(projKey, q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listProjectLabels");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projKey = projKey_example; // String | 
        String q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestLabel] result = apiInstance.listProjectLabels(projKey, q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listProjectLabels");
            e.printStackTrace();
        }
    }
}
String *projKey = projKey_example; // 
String *q = q_example; //  (optional)
Integer *page = 56; //  (optional)
Integer *size = 56; //  (optional)

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

[apiInstance listProjectLabelsWith:projKey
    q:q
    page:page
    size:size
              completionHandler: ^(array[RestLabel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var opts = { 
  'q': q_example, // {{String}} 
  'page': 56, // {{Integer}} 
  'size': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listProjectLabels(projKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var q = q_example;  // String |  (optional) 
            var page = 56;  // Integer |  (optional) 
            var size = 56;  // Integer |  (optional) 

            try
            {
                array[RestLabel] result = apiInstance.listProjectLabels(projKey, q, page, size);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.listProjectLabels: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$q = q_example; // String | 
$page = 56; // Integer | 
$size = 56; // Integer | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $q = q_example; # String | 
my $page = 56; # Integer | 
my $size = 56; # Integer | 

eval { 
    my $result = $api_instance->listProjectLabels(projKey => $projKey, q => $q, page => $page, size => $size);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->listProjectLabels: $@\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()
projKey = projKey_example # String | 
q = q_example # String |  (optional)
page = 56 # Integer |  (optional)
size = 56 # Integer |  (optional)

try: 
    api_response = api_instance.list_project_labels(projKey, q=q, page=page, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->listProjectLabels: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
Query parameters
Name Description
q
String
page
Integer (int32)
size
Integer (int32)

Responses

Status: 200 - Labels with project scope

Status: 204 - Project not found


listRepositoryLabels


/labels/project/{projKey}/repo/{repoSlug}/list

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/labels/project/{projKey}/repo/{repoSlug}/list?q=&page=&size="
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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        String q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestLabel] result = apiInstance.listRepositoryLabels(projKey, repoSlug, q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listRepositoryLabels");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        String q = q_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        try {
            array[RestLabel] result = apiInstance.listRepositoryLabels(projKey, repoSlug, q, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listRepositoryLabels");
            e.printStackTrace();
        }
    }
}
String *projKey = projKey_example; // 
String *repoSlug = repoSlug_example; // 
String *q = q_example; //  (optional)
Integer *page = 56; //  (optional)
Integer *size = 56; //  (optional)

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

[apiInstance listRepositoryLabelsWith:projKey
    repoSlug:repoSlug
    q:q
    page:page
    size:size
              completionHandler: ^(array[RestLabel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'q': q_example, // {{String}} 
  'page': 56, // {{Integer}} 
  'size': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listRepositoryLabels(projKey, repoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var q = q_example;  // String |  (optional) 
            var page = 56;  // Integer |  (optional) 
            var size = 56;  // Integer |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$q = q_example; // String | 
$page = 56; // Integer | 
$size = 56; // Integer | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $q = q_example; # String | 
my $page = 56; # Integer | 
my $size = 56; # Integer | 

eval { 
    my $result = $api_instance->listRepositoryLabels(projKey => $projKey, repoSlug => $repoSlug, q => $q, page => $page, size => $size);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->listRepositoryLabels: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
q = q_example # String |  (optional)
page = 56 # Integer |  (optional)
size = 56 # Integer |  (optional)

try: 
    api_response = api_instance.list_repository_labels(projKey, repoSlug, q=q, page=page, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->listRepositoryLabels: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
repoSlug*
String
Required
Query parameters
Name Description
q
String
page
Integer (int32)
size
Integer (int32)

Responses

Status: 200 - Labels with repository scope


setDueDate


/meta/duedate/{projKey}/{repoSlug}/{id}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/meta/duedate/{projKey}/{repoSlug}/{id}"
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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Long id = 789; // Long | 
        RestMetadata body = ; // RestMetadata | 
        try {
            apiInstance.setDueDate(projKey, repoSlug, id, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setDueDate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Long id = 789; // Long | 
        RestMetadata body = ; // RestMetadata | 
        try {
            apiInstance.setDueDate(projKey, repoSlug, id, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setDueDate");
            e.printStackTrace();
        }
    }
}
String *projKey = projKey_example; // 
String *repoSlug = repoSlug_example; // 
Long *id = 789; // 
RestMetadata *body = ; //  (optional)

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

[apiInstance setDueDateWith:projKey
    repoSlug:repoSlug
    id:id
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{RestMetadata}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setDueDate(projKeyrepoSlugid, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var id = 789;  // Long | 
            var body = new RestMetadata(); // RestMetadata |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$id = 789; // Long | 
$body = ; // RestMetadata | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::RestMetadata->new(); # RestMetadata | 

eval { 
    $api_instance->setDueDate(projKey => $projKey, repoSlug => $repoSlug, id => $id, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setDueDate: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
id = 789 # Long | 
body =  # RestMetadata |  (optional)

try: 
    api_instance.set_due_date(projKey, repoSlug, id, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setDueDate: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
repoSlug*
String
Required
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setGlobalColumnConfig


/globalcfg/columnConfig

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg/columnConfig"
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();
        RestColumnConfig body = ; // RestColumnConfig | 
        try {
            apiInstance.setGlobalColumnConfig(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setGlobalColumnConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

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

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

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

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

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

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

try {
    $api_instance->setGlobalColumnConfig($body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setGlobalColumnConfig: ', $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::RestColumnConfig->new(); # RestColumnConfig | 

eval { 
    $api_instance->setGlobalColumnConfig(body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setGlobalColumnConfig: $@\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 =  # RestColumnConfig |  (optional)

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

Parameters

Body parameters
Name Description
body

Responses

Status: default - default response


setGlobalConfig


/globalcfg

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg"
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();
        GlobalConfigModel body = ; // GlobalConfigModel | 
        try {
            apiInstance.setGlobalConfig(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();
        GlobalConfigModel body = ; // GlobalConfigModel | 
        try {
            apiInstance.setGlobalConfig(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setGlobalConfig");
            e.printStackTrace();
        }
    }
}
GlobalConfigModel *body = ; //  (optional)

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

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

var api = new OrganizrRestApi.DefaultApi()
var opts = { 
  'body':  // {{GlobalConfigModel}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setGlobalConfig(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 body = new GlobalConfigModel(); // GlobalConfigModel |  (optional) 

            try
            {
                apiInstance.setGlobalConfig(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();
$body = ; // GlobalConfigModel | 

try {
    $api_instance->setGlobalConfig($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 $body = WWW::SwaggerClient::Object::GlobalConfigModel->new(); # GlobalConfigModel | 

eval { 
    $api_instance->setGlobalConfig(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()
body =  # GlobalConfigModel |  (optional)

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

Parameters

Body parameters
Name Description
body

Responses

Status: default - default response


setGlobalLabel


/label

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: */*"\
"http://localhost:7990/bitbucket/rest/organizr/latest/label"
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();
        RestLabel body = ; // RestLabel | 
        try {
            apiInstance.setGlobalLabel(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setGlobalLabel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

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

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

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

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

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

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

try {
    $api_instance->setGlobalLabel($body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setGlobalLabel: ', $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::RestLabel->new(); # RestLabel | 

eval { 
    $api_instance->setGlobalLabel(body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setGlobalLabel: $@\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 =  # RestLabel |  (optional)

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

Parameters

Body parameters
Name Description
body

Responses

Status: 204 - Add label with global scope success

Status: 404 - Add label with global scope error


setGlobalLabelConfig


/globalcfg/labelconfig

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg/labelconfig"
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();
        RestLabelConfig body = ; // RestLabelConfig | 
        try {
            apiInstance.setGlobalLabelConfig(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setGlobalLabelConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

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

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

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

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

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

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

try {
    $api_instance->setGlobalLabelConfig($body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->setGlobalLabelConfig: ', $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::RestLabelConfig->new(); # RestLabelConfig | 

eval { 
    $api_instance->setGlobalLabelConfig(body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setGlobalLabelConfig: $@\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 =  # RestLabelConfig |  (optional)

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

Parameters

Body parameters
Name Description
body

Responses

Status: default - default response


setLabels


/labels/{projKey}/{repoSlug}/{id}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/labels/{projKey}/{repoSlug}/{id}"
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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Long id = 789; // Long | 
        RestLabels body = ; // RestLabels | 
        try {
            apiInstance.setLabels(projKey, repoSlug, id, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setLabels");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        Long id = 789; // Long | 
        RestLabels body = ; // RestLabels | 
        try {
            apiInstance.setLabels(projKey, repoSlug, id, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setLabels");
            e.printStackTrace();
        }
    }
}
String *projKey = projKey_example; // 
String *repoSlug = repoSlug_example; // 
Long *id = 789; // 
RestLabels *body = ; //  (optional)

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

[apiInstance setLabelsWith:projKey
    repoSlug:repoSlug
    id:id
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{RestLabels}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setLabels(projKeyrepoSlugid, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var id = 789;  // Long | 
            var body = new RestLabels(); // RestLabels |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$id = 789; // Long | 
$body = ; // RestLabels | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::RestLabels->new(); # RestLabels | 

eval { 
    $api_instance->setLabels(projKey => $projKey, repoSlug => $repoSlug, id => $id, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setLabels: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
id = 789 # Long | 
body =  # RestLabels |  (optional)

try: 
    api_instance.set_labels(projKey, repoSlug, id, body=body)
except ApiException as e:
    print("Exception when calling DefaultApi->setLabels: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
repoSlug*
String
Required
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: default - default response


setProjectColumnConfig


/globalcfg/columnConfig/project/{projKey}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg/columnConfig/project/{projKey}"
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 projKey = projKey_example; // String | 
        RestColumnConfig body = ; // RestColumnConfig | 
        try {
            apiInstance.setProjectColumnConfig(projKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setProjectColumnConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance setProjectColumnConfigWith:projKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

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

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var body = new RestColumnConfig(); // RestColumnConfig |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$body = ; // RestColumnConfig | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $body = WWW::SwaggerClient::Object::RestColumnConfig->new(); # RestColumnConfig | 

eval { 
    $api_instance->setProjectColumnConfig(projKey => $projKey, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setProjectColumnConfig: $@\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()
projKey = projKey_example # String | 
body =  # RestColumnConfig |  (optional)

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

Parameters

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

Responses

Status: default - default response


setProjectLabel


/label/project/{projKey}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: */*"\
"http://localhost:7990/bitbucket/rest/organizr/latest/label/project/{projKey}"
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 projKey = projKey_example; // String | 
        RestLabel body = ; // RestLabel | 
        try {
            apiInstance.setProjectLabel(projKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setProjectLabel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance setProjectLabelWith:projKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

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

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var body = new RestLabel(); // RestLabel |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$body = ; // RestLabel | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $body = WWW::SwaggerClient::Object::RestLabel->new(); # RestLabel | 

eval { 
    $api_instance->setProjectLabel(projKey => $projKey, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setProjectLabel: $@\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()
projKey = projKey_example # String | 
body =  # RestLabel |  (optional)

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

Parameters

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

Responses

Status: 204 - Add label with project scope success

Status: 404 - Add label with project scope error


setProjectLabelConfig


/globalcfg/labelconfig/project/{projKey}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg/labelconfig/project/{projKey}"
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 projKey = projKey_example; // String | 
        RestLabelConfig body = ; // RestLabelConfig | 
        try {
            apiInstance.setProjectLabelConfig(projKey, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setProjectLabelConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance setProjectLabelConfigWith:projKey
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

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

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var body = new RestLabelConfig(); // RestLabelConfig |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$body = ; // RestLabelConfig | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $body = WWW::SwaggerClient::Object::RestLabelConfig->new(); # RestLabelConfig | 

eval { 
    $api_instance->setProjectLabelConfig(projKey => $projKey, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setProjectLabelConfig: $@\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()
projKey = projKey_example # String | 
body =  # RestLabelConfig |  (optional)

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

Parameters

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

Responses

Status: default - default response


setRepoColumnConfig


/globalcfg/columnConfig/project/{projKey}/repo/{repoSlug}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg/columnConfig/project/{projKey}/repo/{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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestColumnConfig body = ; // RestColumnConfig | 
        try {
            apiInstance.setRepoColumnConfig(projKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setRepoColumnConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance setRepoColumnConfigWith:projKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{RestColumnConfig}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setRepoColumnConfig(projKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new RestColumnConfig(); // RestColumnConfig |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // RestColumnConfig | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = WWW::SwaggerClient::Object::RestColumnConfig->new(); # RestColumnConfig | 

eval { 
    $api_instance->setRepoColumnConfig(projKey => $projKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setRepoColumnConfig: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # RestColumnConfig |  (optional)

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

Parameters

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

Responses

Status: default - default response


setRepoLabel


/label/project/{projKey}/repo/{repoSlug}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: */*"\
"http://localhost:7990/bitbucket/rest/organizr/latest/label/project/{projKey}/repo/{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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestLabel body = ; // RestLabel | 
        try {
            apiInstance.setRepoLabel(projKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setRepoLabel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance setRepoLabelWith:projKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{RestLabel}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setRepoLabel(projKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new RestLabel(); // RestLabel |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // RestLabel | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = WWW::SwaggerClient::Object::RestLabel->new(); # RestLabel | 

eval { 
    $api_instance->setRepoLabel(projKey => $projKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setRepoLabel: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # RestLabel |  (optional)

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

Parameters

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

Responses

Status: 204 - Add label with repo scope success

Status: 404 - Add label with repo scope error


setRepositoryLabelConfig


/globalcfg/labelconfig/project/{projKey}/repo/{repoSlug}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/globalcfg/labelconfig/project/{projKey}/repo/{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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestLabelConfig body = ; // RestLabelConfig | 
        try {
            apiInstance.setRepositoryLabelConfig(projKey, repoSlug, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setRepositoryLabelConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance setRepositoryLabelConfigWith:projKey
    repoSlug:repoSlug
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{RestLabelConfig}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setRepositoryLabelConfig(projKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new RestLabelConfig(); // RestLabelConfig |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // RestLabelConfig | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = WWW::SwaggerClient::Object::RestLabelConfig->new(); # RestLabelConfig | 

eval { 
    $api_instance->setRepositoryLabelConfig(projKey => $projKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->setRepositoryLabelConfig: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # RestLabelConfig |  (optional)

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

Parameters

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

Responses

Status: default - default response



updateGlobalLabel


/label

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: */*"\
"http://localhost:7990/bitbucket/rest/organizr/latest/label?label="
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();
        RestLabel body = ; // RestLabel | 
        String label = label_example; // String | 
        try {
            apiInstance.updateGlobalLabel(body, label);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateGlobalLabel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance updateGlobalLabelWith:body
    label:label
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

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

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

            var apiInstance = new DefaultApi();
            var body = new RestLabel(); // RestLabel |  (optional) 
            var label = label_example;  // String |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = ; // RestLabel | 
$label = label_example; // String | 

try {
    $api_instance->updateGlobalLabel($body, $label);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateGlobalLabel: ', $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::RestLabel->new(); # RestLabel | 
my $label = label_example; # String | 

eval { 
    $api_instance->updateGlobalLabel(body => $body, label => $label);
};
if ($@) {
    warn "Exception when calling DefaultApi->updateGlobalLabel: $@\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 =  # RestLabel |  (optional)
label = label_example # String |  (optional)

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

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
label
String

Responses

Status: 204 - Update global label success

Status: 404 - Update global label error


updateProjectLabel


/label/project/{projKey}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: */*"\
"http://localhost:7990/bitbucket/rest/organizr/latest/label/project/{projKey}?label="
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 projKey = projKey_example; // String | 
        RestLabel body = ; // RestLabel | 
        String label = label_example; // String | 
        try {
            apiInstance.updateProjectLabel(projKey, body, label);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateProjectLabel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance updateProjectLabelWith:projKey
    body:body
    label:label
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var opts = { 
  'body':  // {{RestLabel}} 
  'label': label_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateProjectLabel(projKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var body = new RestLabel(); // RestLabel |  (optional) 
            var label = label_example;  // String |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$body = ; // RestLabel | 
$label = label_example; // String | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $body = WWW::SwaggerClient::Object::RestLabel->new(); # RestLabel | 
my $label = label_example; # String | 

eval { 
    $api_instance->updateProjectLabel(projKey => $projKey, body => $body, label => $label);
};
if ($@) {
    warn "Exception when calling DefaultApi->updateProjectLabel: $@\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()
projKey = projKey_example # String | 
body =  # RestLabel |  (optional)
label = label_example # String |  (optional)

try: 
    api_instance.update_project_label(projKey, body=body, label=label)
except ApiException as e:
    print("Exception when calling DefaultApi->updateProjectLabel: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
Body parameters
Name Description
body
Query parameters
Name Description
label
String

Responses

Status: 204 - Update project label success

Status: 404 - Update project label error


updateQueryFilter


/filters/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/organizr/latest/filters/{id}"
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();
        Integer id = 56; // Integer | 
        RestQueryFilter body = ; // RestQueryFilter | 
        try {
            apiInstance.updateQueryFilter(id, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateQueryFilter");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

[apiInstance updateQueryFilterWith:id
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

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

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

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | 
            var body = new RestQueryFilter(); // RestQueryFilter |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | 
$body = ; // RestQueryFilter | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | 
my $body = WWW::SwaggerClient::Object::RestQueryFilter->new(); # RestQueryFilter | 

eval { 
    $api_instance->updateQueryFilter(id => $id, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->updateQueryFilter: $@\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()
id = 56 # Integer | 
body =  # RestQueryFilter |  (optional)

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

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
body

Responses

Status: default - default response


updateRepoLabel


/label/project/{projKey}/repo/{repoSlug}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: */*"\
"http://localhost:7990/bitbucket/rest/organizr/latest/label/project/{projKey}/repo/{repoSlug}?label="
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 projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestLabel body = ; // RestLabel | 
        String label = label_example; // String | 
        try {
            apiInstance.updateRepoLabel(projKey, repoSlug, body, label);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateRepoLabel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projKey = projKey_example; // String | 
        String repoSlug = repoSlug_example; // String | 
        RestLabel body = ; // RestLabel | 
        String label = label_example; // String | 
        try {
            apiInstance.updateRepoLabel(projKey, repoSlug, body, label);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateRepoLabel");
            e.printStackTrace();
        }
    }
}
String *projKey = projKey_example; // 
String *repoSlug = repoSlug_example; // 
RestLabel *body = ; //  (optional)
String *label = label_example; //  (optional)

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

[apiInstance updateRepoLabelWith:projKey
    repoSlug:repoSlug
    body:body
    label:label
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OrganizrRestApi = require('organizr___rest_api');

var api = new OrganizrRestApi.DefaultApi()
var projKey = projKey_example; // {{String}} 
var repoSlug = repoSlug_example; // {{String}} 
var opts = { 
  'body':  // {{RestLabel}} 
  'label': label_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateRepoLabel(projKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new DefaultApi();
            var projKey = projKey_example;  // String | 
            var repoSlug = repoSlug_example;  // String | 
            var body = new RestLabel(); // RestLabel |  (optional) 
            var label = label_example;  // String |  (optional) 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$projKey = projKey_example; // String | 
$repoSlug = repoSlug_example; // String | 
$body = ; // RestLabel | 
$label = label_example; // String | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projKey = projKey_example; # String | 
my $repoSlug = repoSlug_example; # String | 
my $body = WWW::SwaggerClient::Object::RestLabel->new(); # RestLabel | 
my $label = label_example; # String | 

eval { 
    $api_instance->updateRepoLabel(projKey => $projKey, repoSlug => $repoSlug, body => $body, label => $label);
};
if ($@) {
    warn "Exception when calling DefaultApi->updateRepoLabel: $@\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()
projKey = projKey_example # String | 
repoSlug = repoSlug_example # String | 
body =  # RestLabel |  (optional)
label = label_example # String |  (optional)

try: 
    api_instance.update_repo_label(projKey, repoSlug, body=body, label=label)
except ApiException as e:
    print("Exception when calling DefaultApi->updateRepoLabel: %s\n" % e)

Parameters

Path parameters
Name Description
projKey*
String
Required
repoSlug*
String
Required
Body parameters
Name Description
body
Query parameters
Name Description
label
String

Responses

Status: 204 - Update repo label success

Status: 404 - Update repo label error