WebService::BitbucketServer::AccessTokens::V1 - Bindings for a Bitbucket Server REST API
version 0.605
my $stash = WebService::BitbucketServer->new( base_url => 'https://stash.example.com/', username => 'bob', password => 'secret', ); my $api = $stash->access_tokens;
This is a Bitbucket Server REST API for AccessTokens::V1.
Original API documentation created by and copyright Atlassian.
Get the instance of WebService::BitbucketServer passed to "new".
$api = WebService::BitbucketServer::AccessTokens::V1->new(context => $webservice_bitbucketserver_obj);
Create a new API.
Normally you would use $webservice_bitbucketserver_obj->access_tokens instead.
$webservice_bitbucketserver_obj->access_tokens
Create an access token for the user according to the given request
PUT access-tokens/1.0/users/{userSlug}
Responses:
200 - accessToken, type: application/json
200
A response containing the raw access token and associated details
400 - errors, type: application/json
400
One of the following error cases occurred (check the error message for more details):
The request does not contain a token name
The request does not contain a list of permissions, or the list of permissions is empty
One of the provided permission levels are unknown
The user already has their maximum number of tokens
401 - errors, type: application/json
401
The currently authenticated user is not permitted to create an access token on behalf of this user or authentication failed
Get all access tokens associated with the given user
GET access-tokens/1.0/users/{userSlug}
A response containing a page of access tokens and associated details
The currently authenticated user is not permitted to get access tokens on behalf of this user or authentication failed
404 - errors, type: application/json
404
The specified user does not exist
Modify an access token for the user according to the given request. Any fields not specified will not be altered
POST access-tokens/1.0/users/{userSlug}/{tokenId}
Parameters:
tokenId - string, default: none
tokenId
the ID of the token
A response containing the updated access token and associated details
The currently authenticated user is not permitted to update an access token on behalf of this user or authentication failed
Get an access token for the user according to the given ID
GET access-tokens/1.0/users/{userSlug}/{tokenId}
A response containing the access token and associated details
The specified user or token does not exist
Delete an access token for the user according to the given ID
DELETE access-tokens/1.0/users/{userSlug}/{tokenId}
The currently authenticated user is not permitted to delete an access token on behalf of this user or authentication failed
204 - data, type: application/json
204
an empty response indicating that the token has been deleted
WebService::BitbucketServer
https://developer.atlassian.com/bitbucket/server/docs/latest/
Please report any bugs or feature requests on the bugtracker website https://github.com/chazmcgarvey/WebService-BitbucketServer/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Charles McGarvey <chazmcgarvey@brokenzipper.com>
This software is copyright (c) 2018 by Charles McGarvey.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WebService::BitbucketServer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::BitbucketServer
CPAN shell
perl -MCPAN -e shell install WebService::BitbucketServer
For more information on module installation, please visit the detailed CPAN module installation guide.