서비스 요청 업데이트
적용 대상: 파트너 센터 | Microsoft Cloud for US Government 파트너 센터
클라우드 솔루션 공급자가 고객을 대신하여 Microsoft에 제출한 기존 고객 서비스 요청을 업데이트하는 방법입니다.
파트너 센터에서 이 작업은 먼저 고객을 선택하여 수행할 수 있습니다. 그런 다음 왼쪽 사이드바에서 서비스 요청을 선택한 다음 해당 서비스 요청을 선택합니다. 완료하려면 서비스 요청을 원하는 변경한 다음 제출을 선택합니다.
필수 구성 요소
자격 증명(파트너 센터 인증에서 설명). 이 시나리오는 앱 + 사용자 자격 증명을 사용한 인증만 지원합니다.
서비스 요청 ID입니다.
C#
고객의 서비스 요청을 업데이트하려면 서비스 요청 ID를 사용하여 IServiceRequestCollection.ById 메서드를 호출하여 서비스 요청 인터페이스를 식별하고 반환합니다. 그런 다음 , IServiceRequest.Patch 또는 PatchAsync 메서드를 호출하여 서비스 요청을 업데이트합니다. 업데이트된 값을 제공하려면 비어 있는 새 ServiceRequest 개체를 만들고 변경할 속성 값만 설정합니다. 그런 다음 Patch 또는 PatchAsync 메서드 호출에서 해당 개체를 전달합니다.
// IAggregatePartner partnerOperations;
// ServiceRequest existingServiceRequest;
ServiceRequest updatedServiceRequest = partnerOperations.ServiceRequests.ById(existingServiceRequest.Id).Patch(new ServiceRequest
{
NewNote = note
});
샘플: 콘솔 테스트 앱. 프로젝트: 파트너 센터 SDK 샘플 클래스: UpdatePartnerServiceRequest.cs
REST 요청
요청 구문
방법 | 요청 URI |
---|---|
PATCH | {baseURL}/v1/servicerequests/{servicerequest-id} HTTP/1.1 |
URI 매개 변수
다음 URI 매개 변수를 사용하여 서비스 요청을 업데이트합니다.
Name | 형식 | 필수 | Description |
---|---|---|---|
servicerequest-id | guid | Y | 서비스 요청을 식별하는 GUID입니다. |
요청 헤더
자세한 내용은 파트너 센터 REST 헤더를 참조하세요.
요청 본문
요청 본문에는 ServiceRequest 리소스가 포함되어야 합니다. 유일하게 필요한 값은 업데이트할 값입니다.
요청 예제
PATCH https://api.partnercenter.microsoft.com/v1/servicerequests/616122292874576 HTTP/1.1
Authorization: Bearer <token>
Accept: application/json
MS-RequestId: f9a030bd-e492-4c1a-9c70-021f18234981
MS-CorrelationId: aaaa0000-bb11-2222-33cc-444444dddddd
X-Locale: en-US
Content-Type: application/json
Host: api.partnercenter.microsoft.com
Content-Length: 508
Expect: 100-continue
{
"Id": null,
"Title": null,
"Description": null,
"Severity": "unknown",
"SupportTopicId": null,
"SupportTopicName": null,
"Status": "none",
"Organization": null,
"PrimaryContact": null,
"LastUpdatedBy": null,
"ProductName": null,
"ProductId": null,
"CreatedDate": "0001-01-01T00:00:00",
"LastModifiedDate": "0001-01-01T00:00:00",
"LastClosedDate": "0001-01-01T00:00:00",
"NewNote": {
"CreatedByName": null,
"CreatedDate": null,
"Text": "Sample Note"
},
"Notes": null,
"CountryCode": null,
"FileLinks": null,
"Attributes": {
"ObjectType": "ServiceRequest"
}
}
REST 응답
성공하면 이 메서드는 응답 본문에 업데이트된 속성이 있는 서비스 요청 리소스를 반환합니다.
응답 성공 및 오류 코드
각 응답에는 성공 또는 실패와 추가 디버깅 정보를 나타내는 HTTP 상태 코드가 함께 제공됩니다. 네트워크 추적 도구를 사용하여 이 코드, 오류 유형 및 추가 매개 변수를 읽을 수 있습니다. 전체 목록은 파트너 센터 REST 오류 코드를 참조하세요.
응답 예제
HTTP/1.1 200 OK
Content-Length: 566
Content-Type: application/json; charset=utf-8
MS-CorrelationId: aaaa0000-bb11-2222-33cc-444444dddddd
MS-RequestId: f9a030bd-e492-4c1a-9c70-021f18234981
MS-CV: rjLONPum/Uq94UQA.0
MS-ServerId: 030011719
Date: Mon, 09 Jan 2017 23:31:15 GMT
{
"title": "TrialSR",
"description": "Ignore this SR",
"severity": "critical",
"supportTopicId": "32444671",
"supportTopicName": "Cannot manage my profile",
"id": "616122292874576",
"status": "open",
"organization": {
"id": "aaaabbbb-0000-cccc-1111-dddd2222eeee",
"name": "TEST_TEST_BugBash1"
},
"productId": "15960",
"createdDate": "2016-12-22T20:31:17.24Z",
"lastModifiedDate": "2017-01-09T23:31:15.373Z",
"lastClosedDate": "0001-01-01T00:00:00",
"notes": [{
"createdByName": "Account",
"createdDate": "2017-01-09T23:31:15.373",
"text": "Sample Note"
}
],
"attributes": {
"objectType": "ServiceRequest"
}
}