Skip to content

Image upload

Request

The response object has the following fields:

FieldTypeDescription
image_bindedbooleanStatus of linking images to an entity
image_groupobjectImage group object
Security
BearerPartnerUser
Path
entitystringrequired

entity name (team_member for team members, service for services)

Example:"master"
Headers
Acceptstringrequired

e.g. application/vnd.api.v2+json

Example:application/vnd.api.v2+json
Content-Typestringrequired

form-data

Authorizationstringrequired

Bearer partner_token, User user_token

Bodymultipart/form-datarequired
imagestringrequired

transferred image (image/jpeg, image/png)

location_idnumber

Location ID for image binding (for entity=service)

service_idnumber

Service ID for image binding (for entity=service)

team_member_idnumber

Team Member ID for image binding (for entity=team_member)

curl -i -X POST \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/images/"master"' \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: multipart/form-data' \
  -F location_id=0 \
  -F service_id=0 \
  -F team_member_id=0 \
  -F image=string

Responses

OK

Bodyapplication/json
image_groupobject(image_group)required
ImageGroupobject(image_group)
Response
{ "success": true, "data": { "image_binded": false, "image_group ": { … } }, "meta": [] }