UploadAppLogo Documentation
UploadAppLogo
Draft documentation version
Documentation is partial and not validated !
Description
Version | V1 |
---|---|
Require User context | |
Authorization | |
Errors |
Request
Route
Parameters
Parameter | Required | Sample | Description |
---|---|---|---|
AppID | 5 | ID of App | |
FileBinary | [01100110] | Picture as byte Array | |
MimeType | image/png | Picture mime type | |
WAC | WAC123456789012 | Code of BusinessAccount |
Remarks
- To override Content-type in your clients HTTP Accept Header, append the
.json
suffix or?format=json
- To embed the response in a jsonp callback, append
?callback=myCallback
Post Data sample
POST /json/reply/UploadAppLogo HTTP/1.1
Host: localhost
Content-Type: application/json
Content-Length: length
{"wType":"UploadAppLogo","appID":0,"fileBinary":"AA==","mimeType":"String","wac":"String"}
cURL command sample
curl -k -H "Authorization: Bearer [YOUR_ACCESS_TOKEN]" -H "Content-Type:application/json" -X POST -d @filename.json https://api.wit-datacenter.com/App/5/Logo
Remark
@filename.json
contain your request parameters serialized in JSON as described in Post Data sample bottom
Response
Returned Entity
Uploaded App logo GuidJSON Sample
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length "00000000000000000000000000000000"