프로젝트 수정
    • PDF

    프로젝트 수정

    • PDF

    Article Summary

    개요

    SourcePipeline 프로젝트를 수정합니다.

    요청

    API URL

    PATCH  {SOURCEPIPELINE_API_URL}/project/{projectId}
    

    요청 Parameter

    항목타입필수여부설명비고
    projectIdstringY프로젝트 ID

    요청 Query

    없음

    요청 Body

    {
        "description": "string",
        "tasks": [
            {
                "name": "string",
                "type": "string",
                "config": {
                    "projectId": "number",
                    "target": {
                        "info": {
                            "branch": "string"
                        }
                    }
                },
                "linkedTasks": ["string"]
            }
        ],
        "trigger": {
            "repository": [
                {
                    "type": "string",
                    "name": "string",
                    "branch": "string"
                }
            ],
            "sourcepipeline": [
                {
                    "id" : "number"
                }
            ],
            "schedule": [
                {
                    "day": ["string"],
                    "time": "string",
                    "timeZone": "string",
                    "scheduleOnlyWithChange" : "boolean"
                }
            ],
        }
    }
    
    항목타입필수여부설명비고
    descriptionstringN프로젝트 설명
    tasks.namestringY태스크 이름
    tasks.typestringY태스크 타입SourceBuild | SourceDeploy
    tasks.config.projectIdnumberY태스크 프로젝트 IDsourceBuildProjectList API로 조회
    sourceDeployProjectList API로 조회
    tasks.config.stageIdnumberN
    (tasks.type = SourceDeploy일 때 필수)
    SourceDeploy stage IDsourceDeployStageList API 로 조회
    tasks.config.scenarioIdnumberN
    (tasks.type = SourceDeploy 일 때 필수)
    SourceDeploy scenario IDsourceDeployScenarioList API 로 조회
    tasks.config.target.info.branchstringN
    ( tasks.type= SourceBuild 일 때 선택 입력)
    연결 정보 - 브랜치sourceCommitBranchList API 로 조회
    tasks.linkedTasksstring[]Y
    선행 작업. 앞서 실행될 태스크의 이름
    trigger.repository.typestringN
    (trigger.repository 가 있을 때, 필수)
    Push 트리거 - 리파지토리 타입"sourcecommit"
    trigger.repository.namestringN
    (trigger.repository 가 있을 때, 필수)
    Push 트리거 - 리파지토리 이름sourceCommitRepoisotryList API 로 조회
    trigger.repository.branchstringN
    (trigger.repository 가 있을 때, 필수)
    Push 트리거 - 브랜치sourceCommitBranchList API 로 조회
    trigger.sourcepipeline.idnumberN
    (trigger.sourcepipeline 이 있을 때, 필수)
    파이프라인 트리거 - 파이프라인 IDsourcePipelineProjectList API 로 조회
    trigger.schedule.daystring[]N
    (trigger.schedule 이 있을 때, 필수)
    예약 트리거 - 요일"MON" | "TUE" | "WED"| "THU" | "FRI" | "SAT" | "SUN"
    trigger.schedule.timestringN
    (trigger.schedule 이 있을 때, 필수)
    예약 트리거 - 시간[HH:mm] 형태로 입력. 예시: "13:10"
    trigger.schedule.timeZonestringN
    (trigger.schedule 이 있을 때, 필수)
    예약 트리거 - 타임존sourcePipelineTimeZone API 로 조회
    trigger.schedule.scheduleOnlyWithChangebooleanN
    (trigger.schedule 이 있을 때, 필수)
    예약 트리거 - 변경 시 실행 여부

    응답

    응답 Body

    {
        "result": "boolean"
    }
    
    항목타입설명비고
    resultboolean프로젝트 변경 결과

    이 문서가 도움이 되었습니까?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.