Gamma API
ProjectsAttachments

List project attachments

GET
/api/projects/{projectId}/attachments

Every file in the project on the kinds of record the caller may read, newest first; 500 at most.

Who may call it: Anyone on the project. API keys: yes.

Authorization

cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

projectId*string

The project's id.

Query Parameters

ownerType?string
Value in"form""issue""marker""comment"
ownerId?string

Needs ownerType.

Length1 <= length
ownerField?string

Needs ownerId.

Length1 <= length
kind?string

image: images only; file: everything else.

Value in"image""file"

Response Body

OK.

application/json
  1. response
attachments*array<>
Example Request
curl -X GET 'http://localhost:3000/api/projects/string/attachments'
Example Response
{  "attachments": [    {      "id": "string",      "ownerType": "form",      "ownerId": "string",      "ownerField": "string",      "fileName": "string",      "contentType": "string",      "sizeBytes": -9007199254740991,      "createdById": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ]}