Custom

νŠΉμ • μœ μ €μ˜ νŠΉμ • μ΄λ―Έμ§€μ˜ μ»€μŠ€ν…€μ„ μƒμ„±ν•©λ‹ˆλ‹€.

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

Path Parameters

Name
Type
Description

user_id*

String

μœ μ €μ˜ id

ex)8BfE96V8Xc

image_id*

String

μ΄λ―Έμ§€μ˜ id

ex) d06054b8-9bee-4f41-84c1-8154731094bd

Headers

Name
Type
Description

Authorization*

String

User ${Token}

Request Body

Name
Type
Description

key*

String

key (proptier μΈ‘μ—μ„œ μ‚¬μš©ν•  key)

ex) area

value*

String

value ( key 의 λ°Έλ₯˜)

ex) 30

{
    "status_code": 200,
    "message": "성곡",
    "result": {
        "id": "FUVr4LfwcR",
        "image_id": "d06054b8-9bee-4f41-84c1-8154731094bd",
        "key": "area",
        "value": "30",
        "created_at": "20240305_154643",
        "updated_at": "20240305_154643"
    }
}
curl --location --request POST 'https://service-stage.pic-origin.com/api/v1/users/{user_id}/images/{image_id}/customs' \
--header 'Authorization: User {YOUR_TOKEN}' \
--form 'key="{YOUR_KEY}"' \
--form 'value="{YOUR_VALUE}"'

νŠΉμ • μœ μ €μ˜ νŠΉμ • μ΄λ―Έμ§€μ˜ μ»€μŠ€ν…€μ„ μ‘°νšŒν•©λ‹ˆλ‹€.

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

Path Parameters

Name
Type
Description

user_id*

String

μœ μ €μ˜ id

ex)8BfE96V8Xc

image_id*

String

μ΄λ―Έμ§€μ˜ id

ex) d06054b8-9bee-4f41-84c1-8154731094bd

Headers

Name
Type
Description

Authorization*

String

User ${Token}

{
    "status_code": 200,
    "message": "성곡",
    "result": [
        {
            "id": "4ynQSwzvsV",
            "image_id": "865d2610-24ba-46ba-958c-3059769477eb",
            "key": "test",
            "value": "test",
            "created_at": "20240304_103113",
            "updated_at": "20240304_103113"
        }
    ]
}
curl --location --request GET 'https://service-stage.pic-origin.com/api/v1/users/{user_id}/images/{image_id}/customs' \
--header 'Authorization: User {YOUR_TOKEN}' 

νŠΉμ • μœ μ €μ˜ νŠΉμ • μ΄λ―Έμ§€μ˜ μ»€μŠ€ν…€μ„ μˆ˜μ •ν•©λ‹ˆλ‹€.

PUT https://service-stage.pic-origin.com/api/v1/users/{user_id}/images/{image_id}/customs/{custom_id}

Path Parameters

Name
Type
Description

user_id*

String

μœ μ €μ˜ id

ex)8BfE96V8Xc

image_id*

String

μ΄λ―Έμ§€μ˜ id

ex) d06054b8-9bee-4f41-84c1-8154731094bd

Headers

Name
Type
Description

Authorization*

String

User ${Token}

Request Body

Name
Type
Description

key

String

key (proptier μΈ‘μ—μ„œ μ‚¬μš©ν•  key)

ex) area

value

String

value ( key 의 λ°Έλ₯˜)

ex) 30

{
    "status_code": 200,
    "message": "성곡",
    "result": {
        "id": "FUVr4LfwcR",
        "image_id": "d06054b8-9bee-4f41-84c1-8154731094bd",
        "key": "area",
        "value": "30",
        "created_at": "20240305_154643",
        "updated_at": "20240305_154643"
    }
}
curl --location --request PUT 'https://service-stage.pic-origin.com/api/v1/users/{user_id}/images/{image_id}/customs/{custom_id}' \
--header 'Authorization: User {YOUR_TOKEN}' \
--form 'key="{YOUR_KEY}"' \
--form 'value="{YOUR_VALUE}"'

νŠΉμ • μœ μ €μ˜ νŠΉμ • μ΄λ―Έμ§€μ˜ μ»€μŠ€ν…€μ„ μ‚­μ œν•©λ‹ˆλ‹€.

DELETE https://service-stage.pic-origin.com/api/v1/users/{user_id}/images/{image_id}/customs/{custom_id}

Path Parameters

Name
Type
Description

user_id*

String

μœ μ €μ˜ id

ex)8BfE96V8Xc

image_id*

String

μ΄λ―Έμ§€μ˜ id

ex) d06054b8-9bee-4f41-84c1-8154731094bd

Headers

Name
Type
Description

Authorization*

String

User ${Token}

{
    "status_code": 200,
    "message": "성곡",
    "result": {
        "deleted_custom": "7tSLqjfx4j"
    }
}
curl --location --request DELETE 'https://service-stage.pic-origin.com/api/v1/users/{user_id}/images/{image_id}/customs/{custom_id}' \
--header 'Authorization: User {YOUR_TOKEN}' 

Last updated