Upload new avatar
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
Path parameters
-
contactId
Query parameters
-
note string
note
-
requestHeaders.ETag string
-
requestHeaders.acceptLanguage[0].weight number(double)
-
requestHeaders.acceptPatch[0].qualityValue number(double)
-
requestHeaders.accept[0].qualityValue number(double)
-
requestHeaders.accessControlAllowHeaders array[string]
-
requestHeaders.accessControlAllowMethods array[string]
Values are
GET
,HEAD
,POST
,PUT
,PATCH
,DELETE
,OPTIONS
, orTRACE
. -
requestHeaders.accessControlExposeHeaders array[string]
-
requestHeaders.accessControlMaxAge integer(int64)
-
requestHeaders.accessControlRequestHeaders array[string]
-
Values are
GET
,HEAD
,POST
,PUT
,PATCH
,DELETE
,OPTIONS
, orTRACE
. -
requestHeaders.allow array[string]
Values are
GET
,HEAD
,POST
,PUT
,PATCH
,DELETE
,OPTIONS
, orTRACE
. -
requestHeaders.cacheControl string
-
requestHeaders.connection array[string]
-
requestHeaders.contentDisposition.creationDate string(date-time)
-
requestHeaders.contentDisposition.modificationDate string(date-time)
-
requestHeaders.contentDisposition.readDate string(date-time)
-
requestHeaders.contentDisposition.size integer(int64)
-
requestHeaders.contentLanguage.unicodeLocaleAttributes array[string]
-
requestHeaders.contentLanguage.unicodeLocaleKeys array[string]
-
requestHeaders.contentLength integer(int64)
-
requestHeaders.contentType.qualityValue number(double)
-
requestHeaders.date integer(int64)
-
requestHeaders.expires integer(int64)
-
requestHeaders.host.address.address string(byte)
-
requestHeaders.host.hostName string
-
requestHeaders.host.port integer(int32)
-
requestHeaders.host.unresolved boolean
-
requestHeaders.ifMatch array[string]
-
requestHeaders.ifModifiedSince integer(int64)
-
requestHeaders.ifNoneMatch array[string]
-
requestHeaders.ifUnmodifiedSince integer(int64)
-
requestHeaders.lastModified integer(int64)
-
requestHeaders.location.absolute boolean
-
requestHeaders.location.host string
-
requestHeaders.location.opaque boolean
-
requestHeaders.location.path string
-
requestHeaders.location.port integer(int32)
-
requestHeaders.origin string
-
requestHeaders.pragma string
-
requestHeaders.upgrade string
-
requestHeaders.vary array[string]
-
requestMethod string
Values are
GET
,HEAD
,POST
,PUT
,PATCH
,DELETE
,OPTIONS
, orTRACE
.
POST /api-v1/attachment/upload-avatar/{contactId}
curl \
-X POST http://wyzio.app/api-v1/attachment/upload-avatar/{contactId} \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string"
Response examples (200)
{
"content": "string",
"id": 42,
"mimeType": "string",
"name": "string",
"remark": "string",
"size": 42
}