Field attachments reference
Field attachments endpoint authentication, parameters, request and response contracts.
Last updated:
On this page
GET /api/p/{pid}/eklerPOST /api/p/{pid}/ekler/{eid}/dosyaGET /api/p/{pid}/ekler/{eid}/dosyaPaths, methods, parameters and available schemas are generated from the OpenAPI document in the repository.
Note: These endpoints form the browser application contract and do not provide the same versioning assurance as v1. Use the versioned API for external integrations.
GET /api/p/{pid}/ekler
List attachments
Authentication: User session (cookie). Scope: Relevant organisation/project membership and operation permission; writes also check the current role, module and licence permissions.
Parameters
| Name | Location | Type | Required |
|---|---|---|---|
pid | path | integer | Yes |
hedef_entity | query | string | Yes |
hedef_id | query | string | Yes |
Responses
HTTP 200
application/json
This OpenAPI document does not define a body schema. See the relevant developer guide for details.
HTTP 422
application/json
| Field | Type | Required | Description |
|---|---|---|---|
detail | ValidationError[] | No |
For error meanings and client actions, see the error code glossary.
POST /api/p/{pid}/ekler/{eid}/dosya
Upload attachment file
Authentication: User session (cookie). Scope: Relevant organisation/project membership and operation permission; writes also check the current role, module and licence permissions.
Parameters
| Name | Location | Type | Required |
|---|---|---|---|
pid | path | integer | Yes |
eid | path | string | Yes |
version | query | integer | null | No |
Request body
multipart/form-data
| Field | Type | Required | Description |
|---|---|---|---|
file | string | Yes |
Responses
HTTP 200
application/json
This OpenAPI document does not define a body schema. See the relevant developer guide for details.
HTTP 422
application/json
| Field | Type | Required | Description |
|---|---|---|---|
detail | ValidationError[] | No |
For error meanings and client actions, see the error code glossary.
GET /api/p/{pid}/ekler/{eid}/dosya
Download attachment file
Authentication: User session (cookie). Scope: Relevant organisation/project membership and operation permission; writes also check the current role, module and licence permissions.
Parameters
| Name | Location | Type | Required |
|---|---|---|---|
pid | path | integer | Yes |
eid | path | string | Yes |
kucuk | query | integer | No |
Responses
HTTP 200
application/json
This OpenAPI document does not define a body schema. See the relevant developer guide for details.
HTTP 422
application/json
| Field | Type | Required | Description |
|---|---|---|---|
detail | ValidationError[] | No |
For error meanings and client actions, see the error code glossary.