curl --request POST \
--url https://api.icepanel.io/v1/organizations/{organizationId}/bitbucket-server/tokens \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"serverUrl": "<string>",
"token": "<string>",
"username": "<string>"
}'
{
"bitbucketServerToken": {
"serverUrl": "<string>",
"token": "<string>",
"username": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "user",
"createdById": "<string>",
"id": "<string>",
"organizationId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "user",
"updatedById": "<string>"
}
}
Create a Bitbucket server token
curl --request POST \
--url https://api.icepanel.io/v1/organizations/{organizationId}/bitbucket-server/tokens \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"serverUrl": "<string>",
"token": "<string>",
"username": "<string>"
}'
{
"bitbucketServerToken": {
"serverUrl": "<string>",
"token": "<string>",
"username": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "user",
"createdById": "<string>",
"id": "<string>",
"organizationId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "user",
"updatedById": "<string>"
}
}
OK
The response is of type object
.