Create a generic project file

POST /apps/{app-slug}/generic-project-files

Create a temporary pre-signed upload URL (expires in 10 minutes) for the generic project file and upload it to AWS with a simple curl request. To complete the uploading process and view your files on the Code Signing tab of your app, continue with the POST /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded endpoint. Read more in our Creating and uploading files to Generic File Storage guide.

Path parameters

  • app-slug string Required

    App slug

Body Required

Generic project file parameters

  • upload_file_name string Required
  • upload_file_size integer Required
  • user_env_key string Required

Responses

  • 201

    Created

    Hide response attribute Show response attribute object
    • data object

      Additional properties are allowed.

      Hide data attributes Show data attributes object
      • exposed_meta_datastore object

        Additional properties are allowed.

      • is_expose boolean
      • is_protected boolean
      • processed boolean
      • slug string
      • upload_file_name string
      • upload_file_size integer
      • upload_url string
      • user_env_key string
  • 400

    Bad Request

    Hide response attribute Show response attribute object
    • message string
  • 401

    Unauthorized

    Hide response attribute Show response attribute object
    • message string
  • 404

    Not Found

    Hide response attribute Show response attribute object
    • message string
  • 500

    Internal Server Error

    Hide response attribute Show response attribute object
    • message string
POST /apps/{app-slug}/generic-project-files
curl \
 --request POST 'https://api.bitrise.io/v0.1/apps/{app-slug}/generic-project-files' \
 --header "Authorization: $API_KEY" \
 --data '{"upload_file_name":"string","upload_file_size":42,"user_env_key":"string"}'
Request examples
{
  "upload_file_name": "string",
  "upload_file_size": 42,
  "user_env_key": "string"
}
Response examples (201)
{
  "data": {
    "exposed_meta_datastore": {},
    "is_expose": true,
    "is_protected": true,
    "processed": true,
    "slug": "string",
    "upload_file_name": "string",
    "upload_file_size": 42,
    "upload_url": "string",
    "user_env_key": "string"
  }
}
Response examples (400)
{
  "message": "string"
}
Response examples (401)
{
  "message": "string"
}
Response examples (404)
{
  "message": "string"
}
Response examples (500)
{
  "message": "string"
}