Workspaces: updateProposal

GTM Workspace 제안서를 업데이트합니다. 지금 사용해 보기

요청

HTTP 요청

PUT https://www.googleapis.com/tagmanager/v2/path

매개변수

매개변수 이름 설명
경로 매개변수
path string GTM 작업공간 제안서의 상대 경로: 예: accounts/{aid}/containers/{cid}/workspace/{wid}/workspace_proposal

요청 본문

요청 본문에 다음과 같은 구조의 데이터를 제공합니다.

{
  "status": string,
  "reviewers": [
    {
      "type": string,
      "gaiaId": long
    }
  ],
  "newComment": {
    "content": string
  },
  "fingerprint": string
}
속성 이름 설명 Notes
status string 해당하는 경우 Workspace 제안서의 상태가 업데이트됩니다.

사용 가능한 값은 다음과 같습니다.
  • "approved"
  • "cancelled"
  • "completed"
  • "requested"
  • "reviewed"
  • "statusUnspecified"
reviewers[] list Workspace 제안서 검토자 목록이 있는 경우 업데이트됩니다.
reviewers[].type string 사용자 유형은 사용자와 Google 태그 관리자 시스템을 구분합니다.

사용 가능한 값은 다음과 같습니다.
  • "gaiaId"
  • "system"
reviewers[].gaiaId long 사용자와 연결된 GAIA ID로, Google 태그 관리자 시스템에는 없습니다.
newComment nested object 해당하는 경우 새 의견이 작업공간 제안서 기록에 추가됩니다.
newComment.content string 리뷰 작성자 또는 작성자 댓글의 콘텐츠입니다.
fingerprint string 제공되는 경우 이 지문은 저장소에 있는 제안서의 지문과 일치해야 합니다.

응답

요청에 성공할 경우 이 메소드는 다음과 같은 구조의 응답 본문을 반환합니다.

{
  "path": string,
  "status": string,
  "authors": [
    {
      "type": string,
      "gaiaId": long
    }
  ],
  "reviewers": [
    {
      "type": string,
      "gaiaId": long
    }
  ],
  "history": [
    {
      "type": string,
      "comment": {
        "content": string
      },
      "statusChange": {
        "oldStatus": string,
        "newStatus": string
      },
      "createdBy": {
        "type": string,
        "gaiaId": long
      },
      "createdTimestamp": {
        "seconds": long,
        "nanos": integer
      }
    }
  ],
  "fingerprint": string
}
속성 이름 설명 Notes
path string GTM 작업공간 제안의 상대 경로입니다.
status string 작업공간 제안서가 검토될 때의 상태입니다.

사용 가능한 값은 다음과 같습니다.
  • "approved"
  • "cancelled"
  • "completed"
  • "requested"
  • "reviewed"
  • "statusUnspecified"
authors[] list Workspace 제안서의 작성자 목록입니다.
authors[].type string 사용자 유형은 사용자와 Google 태그 관리자 시스템을 구분합니다.

사용 가능한 값은 다음과 같습니다.
  • "gaiaId"
  • "system"
authors[].gaiaId long 사용자와 연결된 GAIA ID로, Google 태그 관리자 시스템에는 없습니다.
reviewers[] list 작업공간 제안서 검토자 목록입니다.
reviewers[].type string 사용자 유형은 사용자와 Google 태그 관리자 시스템을 구분합니다.

사용 가능한 값은 다음과 같습니다.
  • "gaiaId"
  • "system"
reviewers[].gaiaId long 사용자와 연결된 GAIA ID로, Google 태그 관리자 시스템에는 없습니다.
history[] list 댓글 및 상태 변경 기록을 기록합니다.
history[].type string 댓글과 상태 변경을 구분하는 기록 유형입니다.

사용 가능한 값은 다음과 같습니다.
  • "comment"
  • "statusChange"
  • "unspecified"
history[].comment nested object 사용자 또는 리뷰 작성자 댓글입니다.
history[].comment.content string 리뷰 작성자 또는 작성자 댓글의 콘텐츠입니다.
history[].statusChange nested object 제안서 상태 변경입니다.
history[].statusChange.oldStatus string 상태가 변경되기 전의 이전 제안서 상태입니다.

사용 가능한 값은 다음과 같습니다.
  • "approved"
  • "cancelled"
  • "completed"
  • "requested"
  • "reviewed"
  • "statusUnspecified"
history[].statusChange.newStatus string 상태가 변경된 후의 새 제안서 상태입니다.

사용 가능한 값은 다음과 같습니다.
  • "approved"
  • "cancelled"
  • "completed"
  • "requested"
  • "reviewed"
  • "statusUnspecified"
history[].createdBy nested object 기록 변경에 책임이 있는 당사자입니다.
history[].createdBy.type string 사용자 유형은 사용자와 Google 태그 관리자 시스템을 구분합니다.

사용 가능한 값은 다음과 같습니다.
  • "gaiaId"
  • "system"
history[].createdBy.gaiaId long 사용자와 연결된 GAIA ID로, Google 태그 관리자 시스템에는 없습니다.
history[].createdTimestamp nested object 이 기록 이벤트가 작업공간 제안서에 추가된 시점입니다.
history[].createdTimestamp.seconds long Unix epoch 1970-01-01T00:00:00Z 이후 UTC 시간의 초 단위로 표현합니다. 0001-01-01T00:00:00Z ~ 9999-12-31T23:59:59Z(포함) 사이여야 합니다.
history[].createdTimestamp.nanos integer 나노초 단위의 음수가 아닌 초수입니다. 음수의 초수 값에는 시간에 반영되는 음수가 아닌 나노초 값이 있어야 합니다. 범위는 0~999,999,999(포함)이어야 합니다.
fingerprint string 저장 시점에 계산된 GTM 작업공간 제안서의 지문입니다. 이 값은 제안서가 수정될 때마다 다시 계산됩니다.

사용해 보기

아래의 API 탐색기를 사용하여 실시간 데이터를 대상으로 이 메소드를 호출하고 응답을 확인해 보세요.