[#37] updating image in addservice API

Migrated from Redmine #37 | Author: deepak ev
Status: Closed | Priority: Immediate, there is BUG! | Created: 2017-09-04


Hi ,
Wanted to use the API addService ($data) for adding a service .
1.Can this API can be accessed with user with junior employee right?
2. How to pass the image url . The API doc does not talk about data type of param.
“picture”:null,
“picture_sub_path”:null,
“picture_path”:null,
Do i need to pass an image path from some CMS ?

Regards,
Deepak

Dmytro Bondarev wrote:

Hi! You need to pass only file_id to change picture.
But there is no way upload image through the API at the moment.

deepak ev wrote:

What is file_id ? . Nothing is mentioned in the API documentation.

Dmytro Bondarev wrote:

This is file identifier. But, as i said before, there is no way upload image through the API at the moment.

deepak ev wrote:

Yes file_id from name i could guess as file identifier . But my question is,which file is associated with file_id ? How to create this id .Is this image id and is not exposed outside world , i mean not possible to use file_id using these API’s ?

So it is not possible to create and update all the data for service and service provider through API at the moment ?

What is “seo_url” and “is_public” params meaning and usage ?

Dmytro Bondarev wrote:

Yes, you are right. It is not possible to create file via API at this moment.

deepak ev wrote:

So there no way i can update service or service provider images through API ?

Dmytro Bondarev wrote:

Yes, you are right.

(Short original content)