POST (Header:PUT) api.ashx/v2/users/{userid}/coverphoto.{json|xml}
Add or update a user's cover photo
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
FileData | Byte[] | Request Body | Image FileData. URL or FileData or FileUploadContext and FileName are required. OBSOLETE in 12: Use Url or FileUploadContext instead | Optional | ||
FileName | string | Request Body | Image FileName. URL or FileData or FileUploadContext and FileName are required | Optional | ||
FileUploadContext | string | Request Body | Image FileUploadContext. URL or FileData or FileUploadContext and FileName are required | Optional | ||
Url | string | Request Body | Image Url. URL or FileData or FileUploadContext and FileName are required. | Optional |
Example Requests
Widget Javascript
jQuery.telligent.evolution.put({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/users/{userid}/coverphoto.json' }).then(function(response) { // use response });
Example Responses
JSON
{ "UserCoverPhoto": { "Url": "url", "Warnings": [], "Errors": [] }, "Errors": [ "string", "string" ] }
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <UserCoverPhoto> <Url>url</Url> </UserCoverPhoto> <Errors> <Message>string</Message> <Message>string</Message> </Errors> </Response>