TravelyfeHelp
开发者ReferenceAccount

Set Your Account Image

PUT
/v1/account/image

Sets your account image from a JPEG.

Only available to the Travelyfe apps. Tokens issued to other apps receive forbidden.

AuthorizationBearer <token>

A Travelyfe access token.

In: header

Request Body

application/octet-stream

A JPEG, sent with Content-Type: image/jpeg.

TypeScript Definitions

Use the request body type in TypeScript.

body*file
Formatbinary

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/account/image" \  -H "Content-Type: application/octet-stream" \  -d 'string'
{  "url": "http://example.com"}