API UpdateImage

Z Podpora.nextis.cz
Verze z 6. 4. 2021, 14:43, kterou vytvořil Chrzaszcz (diskuse | příspěvky) (Založena nová stránka s textem „==== Description ==== Method allows You to update image in system. ==== Exact name ==== <code>API_UpdateImage</code> ==== Type ==== Standard executable s…“)
(rozdíl) ← Starší verze | zobrazit aktuální verzi (rozdíl) | Novější verze → (rozdíl)
Přejít na: navigace, hledání

Description

Method allows You to update image in system.

Exact name

API_UpdateImage

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@ID int Internal system id
@ProduktGroupID int Produkt group ID API_GetProductGroups.ID
@Sorting int Sorting, numbers from 0 up
@ImageURL nvarchar(260) Image URL
@IsFeedImage int Is feed image

NO=0; YES=1

Return

0 : OK
100 : Item could not be updated

Example

 DECLARE @return_value int
 DECLARE @ID int 
 DECLARE @ProduktGroupID int
 DECLARE @Sorting int
 DECLARE @ImageURL nvarchar(260)
 DECLARE @IsFeedImage int
 
 SELECT @ID = [ID], 
       @ProduktGroupID = [ProduktGroupID], 
       @Sorting = [Sorting], 
       @ImageURL = [ImageURL],
       @IsFeedImage = 1
 FROM   [API_GetImage] 
 WHERE  id = 2345
 
 EXECUTE @return_value = [API_UpdateImage] 
  @ID, 
  @ProduktGroupID, 
  @Sorting,
  @ImageURL,
  @IsFeedImage

Notices

None.