PATCH api/SocialDriver/Service?serviceId={serviceId}
Update a service you own. Set values to null to keep their existing value.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
serviceId |
The id of the service to update |
unsigned integer |
Required |
Body Parameters
The values to be updated
PatchServiceRequestName | Description | Type | Additional information |
---|---|---|---|
Name |
The name of the service |
string |
None. |
ImageData |
The service image encoded as a Base64 string, set as an empty string to remove the image |
string |
None. |
Recovering |
Set the device into recovery, the app cannot set it out of recovery |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "ImageData": "sample string 2", "Recovering": true }
application/xml, text/xml
Sample:
<PatchServiceRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Name>sample string 1</Name> <ImageData>sample string 2</ImageData> <Recovering>true</Recovering> </PatchServiceRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Returns 200 on a success
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |