/v1/projects/{projectId}/suppliers/me.
The profile includes the fields the public
GET /v1/projects/{projectId}/suppliers/{supplierId} leaves out: phone, email,
address, active, timezone, service and skill ids, languages and locales.
Edit the profile
GET /suppliers/meto fill the form. For the pickers, callGET /v1/projects/{projectId}/services?status=LIVEandGET /v1/projects/{projectId}/skillswith the API key alone. Withoutstatus=LIVE, the service list also holdsDRAFTandINACTIVEservices, which aren’t published to clients. See What the status controls.PATCH /suppliers/mewith only the fields that changed.200returns the updated profile.
firstName, lastName, phone, the address fields,
timezone, bio, languages, serviceIds and skillIds. serviceIds and
skillIds replace the whole set when sent. Take every id from the pickers:
serviceIds from GET /services?status=LIVE, and skillIds from
GET /skills. Never type or invent an id. An id the project doesn’t have is
refused before anything is written, with 400 BAD_REQUEST naming it:
“Unknown serviceId(s): srv_01kv60qg9w4c3n8t2p6x5y7zab”. Only ids being added
are checked, so keeping a service that was since deleted still saves.
active, email, externalId, externalData, maxTravelTime or
defaultLocale is refused whole, whatever the value:
400 VALIDATION_ERROR.
Change the photo
POST /avatar/upload-urlwithcontentType(image/jpeg,image/pngorimage/webp) andcontentLength(the real size in bytes, at most 5 MB).PUTthe image bytes to the returnedurlwithin 5 minutes. Send exactly the returnedheadersand no others — an extra header fails the upload.PUT /avatarwith a body ofuploadIdandvariantId, exactly as step 1 returned them.
400 BAD_REQUEST with “Avatar variant not ready yet. Retry shortly.” That is a
retry signal: wait a second or two and call again.
Confirming a different variantId replaces the current photo and deletes the
old images for good. Re-confirming the same one is harmless. To swap a photo,
confirm the new one instead of removing the old one first.
If another confirm or remove changes the photo while yours is being saved,
PUT /avatar and DELETE /avatar answer 409:
GET /suppliers/me, then retry if the photo
still isn’t the one the supplier chose.