POST
/
property
/
{id}
/
photo
curl --request POST \
  --url https://flatbay.fr/fr/api/property/{id}/photo \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "<string>",
  "type": "document.type.propertyPrincipal",
  "roomId": "<string>"
}'
1

Il faudra que l’equipe flatbay vous fournisse une clé d’api pour utiliser cette route.

La photo doit être envoyée en base64 dans le champ “content”.

Path Parameters

id
enum<integer>
required

Identifiant du bien

Available options:
1,
3,
4,
5,
6,
7,
8,
9,
10
Example:

1

Query Parameters

apiKey
string
required

Mot de passe pour l'accès sécurisé

Example:

"api_key_here"

Body

application/json
content
string

Buffer en base64

type
enum<string>

Type de photo

document.type.propertyPrincipal - Photo principale

document.type.property - Photo annexes

Available options:
document.type.propertyPrincipal,
document.type.property
roomId
string

Id de la chambre

Response

200
application/json
Détails de l'établissement récupérés avec succès

Identifiant du bien

Available options:
1,
3,
4,
5,
6,
7,
8,
9,
10
Example:

1