> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobilerun.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Mark app upload as failed

> Sets the app status to failed.



## OpenAPI

````yaml /api-reference/apps-ref.yaml post /apps/{id}/mark-failed
openapi: 3.1.0
info:
  title: Apps Cloud Storage
  version: v1
servers:
  - description: Droidrun Cloud API
    url: https://api.mobilerun.ai/v1
security:
  - bearerAuth: []
paths:
  /apps/{id}/mark-failed:
    post:
      tags:
        - Apps Cloud Storage
      summary: Mark app upload as failed
      description: Sets the app status to failed.
      operationId: markUploadFailedPublic
      parameters:
        - in: path
          name: id
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                  success:
                    enum:
                      - true
                    type: boolean
                required:
                  - success
                  - message
                type: object
          description: App marked as failed
        '400':
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/AppsApiErrorResponse'
                  - $ref: '#/components/schemas/ApiErrorEnvelope'
          description: Bad Request or request validation failure
        '401':
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ApiErrorEnvelope'
                  - $ref: '#/components/schemas/AppsLegacyUnauthorizedError'
          description: Unauthorized
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppsInternalServerError'
          description: Internal Server Error
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Mobilerun from '@mobilerun/sdk';


            const client = new Mobilerun({
              apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
            });


            const response = await
            client.apps.markFailed('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');


            console.log(response.message);
        - lang: Python
          source: |-
            import os
            from mobilerun_sdk import Mobilerun

            client = Mobilerun(
                api_key=os.environ.get("MOBILERUN_CLOUD_API_KEY"),  # This is the default and can be omitted
            )
            response = client.apps.mark_failed(
                "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            )
            print(response.message)
components:
  schemas:
    AppsApiErrorResponse:
      properties:
        code:
          $ref: '#/components/schemas/AppsErrorCode'
        message:
          type: string
      required:
        - code
        - message
      type: object
    ApiErrorEnvelope:
      properties:
        code:
          type: string
        details: {}
        message:
          type: string
        retryAfterSeconds:
          type: number
        traceId:
          type: string
      required:
        - code
        - message
      type: object
    AppsLegacyUnauthorizedError:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
    AppsInternalServerError:
      properties:
        code:
          enum:
            - internal_error
          type: string
        message:
          type: string
        traceId:
          type: string
      required:
        - code
        - message
      type: object
    AppsErrorCode:
      enum:
        - bad_request
        - not_found
        - conflict
        - rate_limited
        - temporarily_unavailable
        - internal_error
      type: string
  securitySchemes:
    bearerAuth:
      bearerFormat: Opaque
      description: Bearer token via Authorization header
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.