Skip to content

Files

Latest commit

 

History

History
48 lines (33 loc) · 1011 Bytes

api-repotoken-createToken.adoc

File metadata and controls

48 lines (33 loc) · 1011 Bytes

createToken

POST /api/v1/repository/{repository}/tokens/

Authorizations: oauth2_implicit (repo:admin)

Path parameters

Type Name Description Schema

path

repository
required

The full path of the repository. e.g. namespace/name

string

Request body schema (application/json)

Description of a new token.

Name Description Schema

friendlyName
required

Friendly name to help identify the token

string

Responses

HTTP Code Description Schema

201

Successful creation

400

Bad Request

401

Session required

403

Unauthorized access

404

Not found