--- title: "updateScenario" slug: "pub-wms-v2-scenarios-updatescenario" updated: 2026-11-24T09:24:28Z published: 2026-11-24T09:24:28Z canonical: "api.ncloud-docs.com/pub-wms-v2-scenarios-updatescenario" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # updateScenario 이 가이드는 API 명세를 기반으로 자동 생성했습니다. VPC 환경에서 이용 가능합니다. Ncloud API 표준 규격을 적용한 API입니다. 시나리오 설정을 부분 변경합니다. 요청에 포함되지 않은 필드는 기존 값을 유지하며, `enabled`가 `false`면 모니터링이 정지됩니다. 변경에 성공하면 응답 본문 없이 204를 반환합니다. 호출 계정에 권한이 없는 시나리오를 요청하면 자원의 존재 여부와 무관하게 403 을 반환하고, 권한이 있는 계정이 존재하지 않는 시나리오를 요청하면 404 를 반환합니다. ## 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | PATCH | /api/v2/scenarios/{scenarioId} | ### 요청 헤더 Web Service Monitoring System API에서 공통으로 사용하는 헤더에 대한 정보는 [Web Service Monitoring System 요청 헤더](/docs/pub-wms-v2-overview#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 요청 경로 파라미터 요청 경로 파라미터에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `scenarioId` | String | Required | 시나리오 ID - 패턴: `^[0-9]+$` - <예시> 1024 | ### 요청 바디 요청 바디에 대한 설명은 다음과 같습니다. 요청 바디는 `application/merge-patch+json`, `application/json` 형식을 지원하며, `Content-Type` 헤더로 형식을 지정합니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `intervalMinutes` | Integer (int32) | Optional | 모니터링 주기(분) - `1` \| `5` \| `10` - <예시> 5 | | `requestTimeoutMilliseconds` | Integer (int64) | Optional | 요청 타임아웃(밀리초) - `5000` \| `10000` \| `30000` - <예시> 10000 | | `runTimeoutMilliseconds` | Integer (int64) | Optional | 실행 타임아웃(밀리초) - `30000` \| `40000` \| `50000` \| `60000` - <예시> 30000 | | `enabled` | Boolean | Optional | 모니터링 사용 여부 - `true` \| `false` - `true`: 주기마다 실행하여 결과 수집 - `false`: 모니터링 정지, 결과 수집 안 함 - <예시> false | ### 요청 예시 요청 예시는 다음과 같습니다. ``` curl --location --request PATCH 'https://wms.apigw.ntruss.com/api/v2/scenarios/1024' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \ --header 'Content-Type: application/json' \ --data '{ "enabled": false }' ``` ## 응답 응답 형식을 설명합니다. ### 응답 헤더 응답 헤더에 대한 설명은 다음과 같습니다. | 필드 | 필수 여부 | 설명 | | --- | --- | --- | | `accept-patch` | - | PATCH 요청에서 지원하는 미디어 타입 목록 (415 응답) | Web Service Monitoring System API에서 공통으로 사용하는 헤더에 대한 정보는 [Web Service Monitoring System 응답 헤더](/docs/pub-wms-v2-overview#%EC%9D%91%EB%8B%B5%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 응답 상태 코드 호출에 실패하면 [기본 오류 응답](/docs/type-error-response) 형식의 응답 바디를 반환하며, 오류 코드는 `error.errorCode` 값입니다. 응답 상태 코드에 대한 설명은 다음과 같습니다. | HTTP 상태 코드 | 코드 | 메시지 | 설명 | | --- | --- | --- | --- | | 204 | - | - | No Content | | 400 | `InvalidParameter` | `The specified parameter is invalid.` | 경로의 scenarioId 가 숫자 형식이 아니거나, intervalMinutes·requestTimeoutMilliseconds·runTimeoutMilliseconds 가 허용 값이 아닌 경우. detail·fieldErrors 의 원인을 확인한 뒤 다시 요청 | | 400 | `BadRequest` | `The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.` | 요청 본문을 JSON 으로 해석할 수 없는 경우. 본문 형식을 확인한 뒤 다시 요청 | | 403 | `Forbidden` | `You do not have sufficient permissions to perform this action.` | 호출 계정에 권한이 없는 시나리오를 요청한 경우. 서브 계정이면 관리자에게 WMS 변경 권한을 받은 뒤 다시 요청 | | 404 | `NotFound` | `One or more of the resources in the request does not exist in the system.` | 권한이 있는 계정이 존재하지 않는 시나리오를 요청한 경우. 시나리오 목록 조회로 scenarioId 를 확인한 뒤 다시 요청 | | 415 | `UnsupportedMediaType` | `The content type of the request body is not supported.` | 지원하지 않는 미디어 타입 (요청 본문 Content-Type이 merge-patch+json·json이 아님) | 참고 Web Service Monitoring System API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 [Web Service Monitoring System 응답 상태 코드](/docs/pub-wms-v2-overview#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)를 참조해 주십시오.