Delete an asset by ID

DELETE /assets/{assetId}

Delete a video asset along with its data.

Path parameters

  • assetId string(uuid) Required

    The asset Id is assigned a universal unique identifier, which can contain a maximum of 255 characters

Responses

  • 200 application/json

    Delete a video asset

    Hide response attribute Show response attribute object
    • success boolean

      It demonstrates either the request is successfull or not.

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • success boolean

      It demonstrates either the request is successfull or not.

    • error object
      Hide error attributes Show error attributes
      • code integer

        Displays the status code of the error.

      • message string

        It demonstrates the cause of the error.

  • 404 application/json

    Asset Not Found

    Hide response attributes Show response attributes object
    • success boolean

      It demonstrates either the request is successfull or not.

    • error object
      Hide error attributes Show error attributes
      • code number

        It demonstrates either the request is successfull or not.

      • message string

        It demonstrates the cause of the error.

  • 422 application/json

    Payload Validation Failed

    Hide response attributes Show response attributes object
    • success boolean Required

      It demonstrates either the request is successfull or not.

    • error object Required
      Hide error attributes Show error attributes
      • code integer Required

        Displays the status code of the error.

      • message string Required

        It demonstrates the cause of the error.

      • fields array[object] Required
        Hide fields attributes Show fields attributes object
        • field string

          Shows the field name related to the error.

        • message string

          Shows why the error occur.

DELETE /assets/{assetId}
curl \
 -X DELETE https://api.fastpix.io/v1/video/assets/{"availableValue"=>"4fa85f64-5717-4562-b3fc-2c963f66afa6"} \
 --user "username:password"
Response examples (200)
{
  "success": true
}
Response examples (401)
{
  "success": false,
  "error": {
    "code": 401,
    "message": "Unauthorized"
  }
}
Response examples (404)
{
  "success": false,
  "error": {
    "code": 404,
    "message": "Asset Not Found"
  }
}
Response examples (422)
{
  "success": false,
  "error": {
    "code": 422,
    "message": "payload validation failed",
    "fields": [
      {
        "field": "fieldName",
        "message": "must not be null"
      }
    ]
  }
}