Update the partner profile
const url = 'https://public.api.barestho.com/api/v1/partnership/profile/';const options = { method: 'PATCH', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"name":"example","description":{"fr":"example","nl":"example","en":"example","de":"example"},"website_url":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://public.api.barestho.com/api/v1/partnership/profile/ \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "description": { "fr": "example", "nl": "example", "en": "example", "de": "example" }, "website_url": "example" }'Partially updates the authenticated partner’s profile. Only the fields present in the request body will be modified.
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”Represents a partner profile. It contains information shown to restaurants in their partners list.
object
Unique partner UUID used for authentication.
Partner’s display name. This value is shown to restaurants.
Object containing localized partner descriptions (e.g. { fr: "Partenaire Barestho", nl: "Partner van Barestho" }). This value is shown to restaurants.
object
French translation.
Dutch translation.
English translation.
German translation.
Url to the partner website. This value is shown to restaurants.
Example generated
{ "name": "example", "description": { "fr": "example", "nl": "example", "en": "example", "de": "example" }, "website_url": "example"}Responses
Section titled “ Responses ”The updated partner profile.
Represents a partner profile. It contains information shown to restaurants in their partners list.
object
Unique partner UUID used for authentication.
Partner’s display name. This value is shown to restaurants.
Object containing localized partner descriptions (e.g. { fr: "Partenaire Barestho", nl: "Partner van Barestho" }). This value is shown to restaurants.
object
French translation.
Dutch translation.
English translation.
German translation.
Url to the partner website. This value is shown to restaurants.
Example generated
{ "name": "example", "description": { "fr": "example", "nl": "example", "en": "example", "de": "example" }, "website_url": "example"}