API Finish Endpoint: HTTP 400 Error

Hello,

I am trying to register an app via the api.

I cannot finish the registration. when I send a request to https://api.bitrise.io/v0.1/apps/APP-SLUG/finish, I get a 400 http error with this message {“error_msg”:“Failed to save project”}

The request body is as follows:
{
“project_type”: “android”,
“stack_id”: “linux-docker-android”,
“config”: “default-android-config”,
“mode”: “manual”,
“envs”: {},
“organization_slug”: “XXXXXXXXXXXXX”
}

I am not sure why I getting this error. If anybody has an idea or knows the reason that would be great.

Thank you for your help in advance!

P.S. This thread looked promising, but it was missing an answer at the end!

Hello,

Can you try with “stack_id”:“linux-docker-android-20.4”. The stack you have specified is no longer available for new apps.

Hi Cathy,

Thank you so much for responding. I have made the suggested change but the issue persists.

If this is helpful, here is the data I am sending the the register endpoint:

body = {
“git_owner”: “XXXXXX”,
“git_repo_slug”: “XXXXXX”,
“is_public”: False,
“repo_url”: “git@XXXXXXXXXX”,
“organization_slug”: “XXXXXXXXXXX”,
“provider”: “bitbucket”
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.