- Authorize Module(authorize)
- User Module(user)
- Organization Module(org)
- Project Module(project)
- Issue Module(issue)
- Get Issue Type List
- Get Issue Scheme
- Get Issue Fields
- Get Issue Field Detail
- Batch Add Issue
- New Issue
- Batch Update Issue
- Update Issue
- Get Issue Detail V2
- Get Issue Detail
- Get Issue Detail By Issue Number
- Remove Issue
- Batch Remove Issue
- Query Issue List
- Query Issue List V2
- Get Project Issue Filter Fields
- Get Issue Select Options
- Get Issue Relations
- Add Issue Relation
- Remove Issue Relation
- Batch Add Subtasks
- Remove Subtask
- Update Subtask
- Get Subtask List
- Update Subtask Status
- Get Subtask Field List
- Add Labour Record
- Update Labour Record
- Remove Labour Record
- Labour Record List
- Get Trash Select Option List(The free version does not support)
- Get Trash List(The free version does not support)
- Restore Issue(The free version does not support)
- Get Finished Issue List
- Sprint Module(sprint)
- Workflow Module(workflow)
- Tag Module(tag)
- Epic Module(epic)
- Version Module(version)
- Webhook Module(webhook)
- Comment Module(comment)
- File Module(file)
- Personal Message Module(msg)
Upload File
POST
https://app.leiga.com/openapi/api/file/upload
File Module(file)
Request
Header Params
Content-Type
string
required
Example:
multipart/form-data
accessToken
string
required
Example:
{{accessToken}}
Body Params application/json
file
object
optional
Example
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.leiga.com/openapi/api/file/upload' \
--header 'accessToken: ' \
--header 'Content-Type: multipart/form-data' \
--data-raw ''
Responses
🟢200OK
application/json
Body
uploadUserId
integer <int64>
optional
fileName
string
optional
fileSize
integer <int64>
optional
fileSuffix
string
optional
uploadUserName
string
optional
fileKey
string
optional
originalUrl
string
optional
uploadTime
string <date>
optional
fileType
string
optional
Example
{
"code": "0",
"data": {
"uploadUserId": 1,
"fileName": "xxx",
"fileSize": 1,
"fileSuffix": ".webp",
"uploadUserName": "xxx",
"fileKey": "xxx",
"originalUrl": "https://xxx.net",
"uploadTime": 1661167046919,
"fileType": "document"
}
}
Modified at 2024-06-12 06:46:49