Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Folder

특정 유저의 폴더를 생성합니다.

POST https://service-stage.pic-origin.com/api/v1/users/{user_id}/folders

Path Parameters

Name
Type
Description

user_id*

String

유저의 id

ex)8BfE96V8Xc

Headers

Name
Type
Description

Authorization*

String

User ${Token}

Request Body

Name
Type
Description

title*

String

폴더의 제목(default=None)

ex)강남구

parent_id

String

해당 폴더의 상위 폴더의 id(default=None)

ex)JC4Ub4EZo7

{
    "status_code": 200,
    "message": "성공",
    "result": {
        "id": "4tb42KfHHB",
        "user_id": "EabHTVpYYm",
        "title": "test_biz",
        "parent_id": null,
        "created_at": "20240110_150924",
        "updated_at": "20240110_150924",
        "delete_at": null
    }
}

특정 유저의 모든 폴더를 조회합니다.

GET https://service-stage.pic-origin.com/api/v1/users/{user_id}/folders

Path Parameters

Name
Type
Description

user_id*

String

유저의 id

ex)8BfE96V8Xc

Query Parameters

Name
Type
Description

has_delete_at

Bool

휴지통 여부(default=None)

ex)True

Headers

Name
Type
Description

Authorization*

String

User ${Token}

특정 유저의 특정 폴더를 조회합니다.

GET https://service-stage.pic-origin.com/api/v1/users/{user_id}/folders/{folder_id}

Path Parameters

Name
Type
Description

user_id*

String

유저의 id

ex)8BfE96V8Xc

folder_id*

String

해당 폴더의 id

ex)JC4Ub4EZo7

Query Parameters

Name
Type
Description

sort_by

String

정렬 기준(default=created_at)[created_at, updated_at,name]

ex)created_at

sort_order

String

정렬 방식(default=asc)[asc, desc]

ex)desc

get_image

Bool

이미지 포함 여부(default=True)

ex)True

last_index

Int

페이지 시작 인덱스 (default=None)

ex) 10

page_size

Int

한 페이지 당 크기(default=60)

ex)60

with_history

Bool

이미지수정 내역 공개 여부(default=False)

ex)True

has_delete_at

Bool

휴지통 여부(default=None)

ex)True

with_custom

Bool

이미지 커스텀 공개 여부 (default=None)

ex) True

with_memo

Bool

이미지 메모 공개 여부 (default=None)

ex) True

Headers

Name
Type
Description

Authorization*

String

User ${Token}

특정 유저의 특정 폴더를 수정합니다.

PUT https://service-stage.pic-origin.com/api/v1/users/{user_id}/folders/{folder_id}

Path Parameters

Name
Type
Description

user_id*

String

유저의 id

ex)8BfE96V8Xc

folder_id*

String

해당 폴더의 id

ex)JC4Ub4EZo7

Query Parameters

Name
Type
Description

delete

String

폴더 삭제 여부 (대소문자 구분 없이 'true' or 'false') (default=None)

ex)True

Headers

Name
Type
Description

Authorization*

String

User ${Token}

Request Body

Name
Type
Description

parent_id

String

상위 폴더의 id(default="UNSET")

ex)JC4Ub4EZo7

title

String

폴더의 제목(default=None)

ex)강남구

특정 유저의 특정 폴더를 삭제합니다.

DELETE https://service-stage.pic-origin.com/api/v1/users/{user_id}/folders/{folder_id}

Path Parameters

Name
Type
Description

user_id*

String

유저의 id

ex)8BfE96V8Xc

folder_id*

String

해당 폴더의 id

ex)JC4Ub4EZo7

Headers

Name
Type
Description

Authorization*

String

User ${Token}

Last updated