Project attachment

A project attachment.

Create a project attachment

Create a new attachment or update an existing attachment for a project.

For a new attachment the request will return the 201 response. For updating an existing attachment the request will return a 200 response.

SecurityJWT
Request
Request Body schema: multipart/form-data

A JSON object containing project attachment information.

file
required
string <binary>

The upload file.

The file name is used to identify the attachment in Falcon. If an attachment with the name of the uploaded file already exists (on the project) the attachment will be replaced without further notice.

project
required
string or integer

The project of the attachment.

Without a project the request will always return a 403 Forbidden response.

Responses
200

Successful operation

201

Successful operation

404

Not Found

422

Unprocessable Content

post/projectattachment
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "1ae90e61fe35c03230c7758abadc865f3b6e34e7",
  • "data": {
    },
  • "timestamp": 1668611674212
}

Get all project attachments

Get all attachments for a project.

SecurityJWT
Request
query Parameters
project
string or integer

Filter the project attachments for a project.

program
string or integer

Filter the project attachments for a program.

created_user
string or integer

Filter the project attachments for a created user.

modified_user
string or integer

Filter the project attachments for a modified user.

page
integer
Default: 1

The page number of the response.

Responses
200

Successful operation

422

Unprocessable Content

get/projectattachment
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "f1851209187b379309ba934138a229a1a1c31193",
  • "data": [
    ],
  • "meta": {
    },
  • "timestamp": 1660565970348
}