Skip to content

Delete a card file

DELETE
/boards/{board}/cards/{card}/files/{file}
curl --request DELETE \
--url https://projects.work.optidata.cloud/api/boards/1/cards/1/files/example \
--header 'Authorization: Bearer <token>'

Removes the file from the card. Blocked with 422 while the card has unsatisfied required custom fields.

board
required
integer

Board id.

card
required
integer

Card id (must belong to the board).

file
required
string

File identifier (opaque string, not the numeric id).

Confirmation message.

Media typeapplication/json
string
Example
File deleted successfully

Missing, invalid or expired bearer passport.

Media typeapplication/json
object
error
string
Example
{
"error": "JWT passport exception: Missing bearer token in request"
}

The authenticated user lacks the required board permission.

Media typeapplication/json
object
message
string
Example
{
"message": "This action is unauthorized."
}

Resource not found, or a nested resource does not belong to its parent in the path.

Media typeapplication/json
object
message
string
Example
{
"message": "Not found."
}

Validation failed.

Media typeapplication/json
object
message

First validation error message.

string
errors

Map of field name → list of error messages.

object
key
additional properties
Array<string>
Example
{
"message": "The name field is required.",
"errors": {
"name": [
"The name field is required."
]
}
}