Споделяне чрез


Get support profile

Applies to: Partner Center | Partner Center for Microsoft Cloud for US Government

Gets an object representing a user's support profile.

Prerequisites

C#

To get your support profile, use your IAggregatePartner.Profiles collection. Call the SupportProfile property, followed by the Get() or GetAsync() methods.

// IAggregatePartner partnerOperations;

SupportProfile supportProfile = partnerOperations.Profiles.SupportProfile.Get();

Sample: Console test app. Project: PartnerCenterSDK.FeaturesSamples Class: GetSupportProfile.cs

REST request

Request syntax

Method Request URI
GET {baseURL}/v1/profiles/support HTTP/1.1

Request headers

For more information, see Partner Center REST headers.

Request body

None.

Request example

GET https://api.partnercenter.microsoft.com/v1/profiles/support HTTP/1.1
Authorization: Bearer <token>
Accept: application/json
MS-RequestId: 07029132-385d-416f-a9a6-df5e9e4c78d3
MS-CorrelationId: aaaa0000-bb11-2222-33cc-444444dddddd

REST response

If successful, this method returns a SupportProfile object in the response body.

Response success and error codes

Each response comes with an HTTP status code that indicates success or failure and additional debugging information. Use a network trace tool to read this code, error type, and additional parameters. For the full list, see Error Codes.

Response example

HTTP/1.1 200 OK 
Content-Length: 502 
Content-Type: application/json 
MS-CorrelationId: aaaa0000-bb11-2222-33cc-444444dddddd 
MS-RequestId: 07029132-385d-416f-a9a6-df5e9e4c78d3 
Date: Wed, 25 Nov 2015 07:16:17 GMT 

{ 
    "email": "email@sample.com", 
    "telephone": "4255555555", 
    "website": "www.microsoft.com", 
    "profileType": " SupportProfile", 

    "links": { 
        "self": { 
            "uri": "/v1/profiles/support", 
            "method": "GET", 
            "headers": [] 
        } 
    }, 

    "attributes": { 
        "objectType": "SupportProfile" 
    } 
}