Skip to content

Latest commit

 

History

History
1675 lines (1137 loc) · 63.8 KB

File metadata and controls

1675 lines (1137 loc) · 63.8 KB

AttributeApi

All URIs are relative to https://api.api2cart.local.com/v1.1

Method HTTP request Description
attributeAdd POST /attribute.add.json attribute.add
attributeAddWithHttpInfo POST /attribute.add.json attribute.add
attributeAssignGroup POST /attribute.assign.group.json attribute.assign.group
attributeAssignGroupWithHttpInfo POST /attribute.assign.group.json attribute.assign.group
attributeAssignSet POST /attribute.assign.set.json attribute.assign.set
attributeAssignSetWithHttpInfo POST /attribute.assign.set.json attribute.assign.set
attributeAttributesetList GET /attribute.attributeset.list.json attribute.attributeset.list
attributeAttributesetListWithHttpInfo GET /attribute.attributeset.list.json attribute.attributeset.list
attributeCount GET /attribute.count.json attribute.count
attributeCountWithHttpInfo GET /attribute.count.json attribute.count
attributeDelete DELETE /attribute.delete.json attribute.delete
attributeDeleteWithHttpInfo DELETE /attribute.delete.json attribute.delete
attributeGroupList GET /attribute.group.list.json attribute.group.list
attributeGroupListWithHttpInfo GET /attribute.group.list.json attribute.group.list
attributeInfo GET /attribute.info.json attribute.info
attributeInfoWithHttpInfo GET /attribute.info.json attribute.info
attributeList GET /attribute.list.json attribute.list
attributeListWithHttpInfo GET /attribute.list.json attribute.list
attributeTypeList GET /attribute.type.list.json attribute.type.list
attributeTypeListWithHttpInfo GET /attribute.type.list.json attribute.type.list
attributeUnassignGroup POST /attribute.unassign.group.json attribute.unassign.group
attributeUnassignGroupWithHttpInfo POST /attribute.unassign.group.json attribute.unassign.group
attributeUnassignSet POST /attribute.unassign.set.json attribute.unassign.set
attributeUnassignSetWithHttpInfo POST /attribute.unassign.set.json attribute.unassign.set
attributeUpdate PUT /attribute.update.json attribute.update
attributeUpdateWithHttpInfo PUT /attribute.update.json attribute.update
attributeValueAdd POST /attribute.value.add.json attribute.value.add
attributeValueAddWithHttpInfo POST /attribute.value.add.json attribute.value.add
attributeValueDelete DELETE /attribute.value.delete.json attribute.value.delete
attributeValueDeleteWithHttpInfo DELETE /attribute.value.delete.json attribute.value.delete
attributeValueUpdate PUT /attribute.value.update.json attribute.value.update
attributeValueUpdateWithHttpInfo PUT /attribute.value.update.json attribute.value.update

attributeAdd

attributeAdd(attributeAddRequest): ApiRequest[AttributeAdd200Response]

attribute.add

Add new attribute

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")
    val `type`: String = text // String | Defines attribute's type

    val name: String = Specification // String | Defines attributes's name

    val code: String = code // String | Entity code

    val storeId: String = 1 // String | Store Id

    val langId: String = 3 // String | Language id

    val visible: Boolean = true // Boolean | Set visibility status

    val required: Boolean = true // Boolean | Defines if the option is required

    val position: Int = 5 // Int | Attribute`s position

    val attributeGroupId: String = 202 // String | Filter by attribute_group_id

    val isGlobal: String = Global // String | Attribute saving scope

    val isSearchable: Boolean = false // Boolean | Use attribute in Quick Search

    val isFilterable: String = No // String | Use In Layered Navigation

    val isComparable: Boolean = true // Boolean | Comparable on Front-end

    val isHtmlAllowedOnFront: Boolean = true // Boolean | Allow HTML Tags on Frontend

    val isFilterableInSearch: Boolean = true // Boolean | Use In Search Results Layered Navigation

    val isConfigurable: Boolean = true // Boolean | Use To Create Configurable Product

    val isVisibleInAdvancedSearch: Boolean = true // Boolean | Use in Advanced Search

    val isUsedForPromoRules: Boolean = true // Boolean | Use for Promo Rule Conditions

    val usedInProductListing: Boolean = true // Boolean | Used in Product Listing

    val usedForSortBy: Boolean = true // Boolean | Used for Sorting in Product Listing

    val applyTo: String = Global // String | Types of products which can have this attribute

    val idempotencyKey: String = 098f6bcd4621d373cade4e832627b4f6 // String | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
    
    val request = apiInstance.attributeAdd(`type`, name, code, storeId, langId, visible, required, position, attributeGroupId, isGlobal, isSearchable, isFilterable, isComparable, isHtmlAllowedOnFront, isFilterableInSearch, isConfigurable, isVisibleInAdvancedSearch, isUsedForPromoRules, usedInProductListing, usedForSortBy, applyTo, idempotencyKey)
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeAdd")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeAdd")
            exception.printStackTrace();
    }
}

Parameters

Name Type Description Notes
type String Defines attribute's type [enum: text, select, media, color, textarea, date, price, multiselect, boolean]
name String Defines attributes's name
code String Entity code [optional]
storeId String Store Id [optional]
langId String Language id [optional]
visible Boolean Set visibility status [optional]
required Boolean Defines if the option is required [optional]
position Int Attribute`s position [optional]
attributeGroupId String Filter by attribute_group_id [optional]
isGlobal String Attribute saving scope [optional]
isSearchable Boolean Use attribute in Quick Search [optional]
isFilterable String Use In Layered Navigation [optional]
isComparable Boolean Comparable on Front-end [optional]
isHtmlAllowedOnFront Boolean Allow HTML Tags on Frontend [optional]
isFilterableInSearch Boolean Use In Search Results Layered Navigation [optional]
isConfigurable Boolean Use To Create Configurable Product [optional]
isVisibleInAdvancedSearch Boolean Use in Advanced Search [optional]
isUsedForPromoRules Boolean Use for Promo Rule Conditions [optional]
usedInProductListing Boolean Used in Product Listing [optional]
usedForSortBy Boolean Used for Sorting in Product Listing [optional]
applyTo String Types of products which can have this attribute [optional]
idempotencyKey String A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> [optional]

Return type

ApiRequest[AttributeAdd200Response]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -

attributeAssignGroup

attributeAssignGroup(attributeAssignGroupRequest): ApiRequest[AttributeAssignGroup200Response]

attribute.assign.group

Assign attribute to the group

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")
    val id: String = 10 // String | Entity id

    val groupId: String = 3 // String | Attribute group_id

    val attributeSetId: String = 4 // String | Attribute set id

    val idempotencyKey: String = 098f6bcd4621d373cade4e832627b4f6 // String | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
    
    val request = apiInstance.attributeAssignGroup(id, groupId, attributeSetId, idempotencyKey)
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeAssignGroup")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeAssignGroup")
            exception.printStackTrace();
    }
}

Parameters

Name Type Description Notes
id String Entity id
groupId String Attribute group_id
attributeSetId String Attribute set id [optional]
idempotencyKey String A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> [optional]

Return type

ApiRequest[AttributeAssignGroup200Response]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -

attributeAssignSet

attributeAssignSet(attributeAssignSetRequest): ApiRequest[AttributeAssignGroup200Response]

attribute.assign.set

Assign attribute to the attribute set

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")
    val id: String = 10 // String | Entity id

    val attributeSetId: String = 4 // String | Attribute set id

    val groupId: String = 3 // String | Attribute group_id

    val idempotencyKey: String = 098f6bcd4621d373cade4e832627b4f6 // String | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
    
    val request = apiInstance.attributeAssignSet(id, attributeSetId, groupId, idempotencyKey)
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeAssignSet")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeAssignSet")
            exception.printStackTrace();
    }
}

Parameters

Name Type Description Notes
id String Entity id
attributeSetId String Attribute set id
groupId String Attribute group_id [optional]
idempotencyKey String A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> [optional]

Return type

ApiRequest[AttributeAssignGroup200Response]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -

attributeAttributesetList

attributeAttributesetList(attributeAttributesetListRequest): ApiRequest[ModelResponseAttributeAttributesetList]

attribute.attributeset.list

Get attribute_set list

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")
    val start: Int = 0 // Int | This parameter sets the number from which you want to get entities

    val count: Int = 20 // Int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250

    val responseFields: String = {result} // String | Set this parameter in order to choose which entity fields you want to retrieve

    val params: String = id,name // String | Set this parameter in order to choose which entity fields you want to retrieve

    val exclude: String = id,name // String | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all
    
    val request = apiInstance.attributeAttributesetList(start, count, responseFields, params, exclude)
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeAttributesetList")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeAttributesetList")
            exception.printStackTrace();
    }
}

Parameters

Name Type Description Notes
start Int This parameter sets the number from which you want to get entities [optional]
count Int This parameter sets the entity amount that has to be retrieved. Max allowed count=250 [optional]
responseFields String Set this parameter in order to choose which entity fields you want to retrieve [optional]
params String Set this parameter in order to choose which entity fields you want to retrieve [optional]
exclude String Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all [optional]

Return type

ApiRequest[ModelResponseAttributeAttributesetList]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -

attributeCount

attributeCount(attributeCountRequest): ApiRequest[AttributeCount200Response]

attribute.count

Get attributes count

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")
    val `type`: String = text // String | Defines attribute's type

    val attributeSetId: String = 4 // String | Filter items by attribute set id

    val storeId: String = 1 // String | Store Id

    val langId: String = 3 // String | Language id

    val visible: Boolean = true // Boolean | Filter items by visibility status

    val required: Boolean = true // Boolean | Defines if the option is required

    val system: Boolean = false // Boolean | True if attribute is system
    
    val request = apiInstance.attributeCount(`type`, attributeSetId, storeId, langId, visible, required, system)
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeCount")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeCount")
            exception.printStackTrace();
    }
}

Parameters

Name Type Description Notes
type String Defines attribute's type [optional]
attributeSetId String Filter items by attribute set id [optional]
storeId String Store Id [optional]
langId String Language id [optional]
visible Boolean Filter items by visibility status [optional]
required Boolean Defines if the option is required [optional]
system Boolean True if attribute is system [optional]

Return type

ApiRequest[AttributeCount200Response]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -

attributeDelete

attributeDelete(attributeDeleteRequest): ApiRequest[AttributeDelete200Response]

attribute.delete

Delete attribute from store

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")
    val id: String = 10 // String | Entity id

    val storeId: String = 1 // String | Store Id
    
    val request = apiInstance.attributeDelete(id, storeId)
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeDelete")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeDelete")
            exception.printStackTrace();
    }
}

Parameters

Name Type Description Notes
id String Entity id
storeId String Store Id [optional]

Return type

ApiRequest[AttributeDelete200Response]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -

attributeGroupList

attributeGroupList(attributeGroupListRequest): ApiRequest[ModelResponseAttributeGroupList]

attribute.group.list

Get attribute group list

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")
    val start: Int = 0 // Int | This parameter sets the number from which you want to get entities

    val count: Int = 20 // Int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250

    val attributeSetId: String = 4 // String | Attribute set id

    val langId: String = 3 // String | Language id

    val responseFields: String = {result} // String | Set this parameter in order to choose which entity fields you want to retrieve

    val params: String = id,name // String | Set this parameter in order to choose which entity fields you want to retrieve

    val exclude: String = id,name // String | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all
    
    val request = apiInstance.attributeGroupList(start, count, attributeSetId, langId, responseFields, params, exclude)
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeGroupList")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeGroupList")
            exception.printStackTrace();
    }
}

Parameters

Name Type Description Notes
start Int This parameter sets the number from which you want to get entities [optional]
count Int This parameter sets the entity amount that has to be retrieved. Max allowed count=250 [optional]
attributeSetId String Attribute set id [optional]
langId String Language id [optional]
responseFields String Set this parameter in order to choose which entity fields you want to retrieve [optional]
params String Set this parameter in order to choose which entity fields you want to retrieve [optional]
exclude String Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all [optional]

Return type

ApiRequest[ModelResponseAttributeGroupList]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -

attributeInfo

attributeInfo(attributeInfoRequest): ApiRequest[AttributeInfo200Response]

attribute.info

Get information about a specific global attribute by its ID.

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")
    val id: String = 10 // String | Entity id

    val attributeSetId: String = 4 // String | Attribute set id

    val storeId: String = 1 // String | Store Id

    val langId: String = 3 // String | Language id

    val responseFields: String = {result} // String | Set this parameter in order to choose which entity fields you want to retrieve

    val params: String = force_all // String | Set this parameter in order to choose which entity fields you want to retrieve

    val exclude: String = name // String | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all
    
    val request = apiInstance.attributeInfo(id, attributeSetId, storeId, langId, responseFields, params, exclude)
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeInfo")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeInfo")
            exception.printStackTrace();
    }
}

Parameters

Name Type Description Notes
id String Entity id
attributeSetId String Attribute set id [optional]
storeId String Store Id [optional]
langId String Language id [optional]
responseFields String Set this parameter in order to choose which entity fields you want to retrieve [optional]
params String Set this parameter in order to choose which entity fields you want to retrieve [optional]
exclude String Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all [optional]

Return type

ApiRequest[AttributeInfo200Response]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -

attributeList

attributeList(attributeListRequest): ApiRequest[ModelResponseAttributeList]

attribute.list

Get a list of global attributes.

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")
    val start: Int = 0 // Int | This parameter sets the number from which you want to get entities

    val count: Int = 20 // Int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250

    val pageCursor: String =  // String | Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter)

    val attributeIds: String = 1,2,3 // String | Filter attributes by ids

    val attributeSetId: String = 4 // String | Filter items by attribute set id

    val storeId: String = 1 // String | Store Id

    val langId: String = 3 // String | Retrieves attributes on specified language id

    val `type`: String = text // String | Defines attribute's type

    val visible: Boolean = true // Boolean | Filter items by visibility status

    val required: Boolean = true // Boolean | Defines if the option is required

    val system: Boolean = false // Boolean | True if attribute is system

    val responseFields: String = {return_code,return_message,pagination,result} // String | Set this parameter in order to choose which entity fields you want to retrieve

    val params: String = id,name // String | Set this parameter in order to choose which entity fields you want to retrieve

    val exclude: String = id,name // String | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all
    
    val request = apiInstance.attributeList(start, count, pageCursor, attributeIds, attributeSetId, storeId, langId, `type`, visible, required, system, responseFields, params, exclude)
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeList")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeList")
            exception.printStackTrace();
    }
}

Parameters

Name Type Description Notes
start Int This parameter sets the number from which you want to get entities [optional]
count Int This parameter sets the entity amount that has to be retrieved. Max allowed count=250 [optional]
pageCursor String Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter) [optional]
attributeIds String Filter attributes by ids [optional]
attributeSetId String Filter items by attribute set id [optional]
storeId String Store Id [optional]
langId String Retrieves attributes on specified language id [optional]
type String Defines attribute's type [optional]
visible Boolean Filter items by visibility status [optional]
required Boolean Defines if the option is required [optional]
system Boolean True if attribute is system [optional]
responseFields String Set this parameter in order to choose which entity fields you want to retrieve [optional]
params String Set this parameter in order to choose which entity fields you want to retrieve [optional]
exclude String Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all [optional]

Return type

ApiRequest[ModelResponseAttributeList]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -

attributeTypeList

attributeTypeList(): ApiRequest[AttributeTypeList200Response]

attribute.type.list

Get list of supported attributes types

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")    
    val request = apiInstance.attributeTypeList()
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeTypeList")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeTypeList")
            exception.printStackTrace();
    }
}

Parameters

This endpoint does not need any parameter.

Return type

ApiRequest[AttributeTypeList200Response]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -

attributeUnassignGroup

attributeUnassignGroup(attributeUnassignGroupRequest): ApiRequest[AttributeUnassignGroup200Response]

attribute.unassign.group

Unassign attribute from group

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")
    val id: String = 10 // String | Entity id

    val groupId: String = 3 // String | Customer group_id

    val idempotencyKey: String = 098f6bcd4621d373cade4e832627b4f6 // String | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
    
    val request = apiInstance.attributeUnassignGroup(id, groupId, idempotencyKey)
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeUnassignGroup")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeUnassignGroup")
            exception.printStackTrace();
    }
}

Parameters

Name Type Description Notes
id String Entity id
groupId String Customer group_id
idempotencyKey String A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> [optional]

Return type

ApiRequest[AttributeUnassignGroup200Response]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -

attributeUnassignSet

attributeUnassignSet(attributeUnassignSetRequest): ApiRequest[AttributeUnassignGroup200Response]

attribute.unassign.set

Unassign attribute from attribute set

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")
    val id: String = 10 // String | Entity id

    val attributeSetId: String = 4 // String | Attribute set id

    val idempotencyKey: String = 098f6bcd4621d373cade4e832627b4f6 // String | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
    
    val request = apiInstance.attributeUnassignSet(id, attributeSetId, idempotencyKey)
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeUnassignSet")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeUnassignSet")
            exception.printStackTrace();
    }
}

Parameters

Name Type Description Notes
id String Entity id
attributeSetId String Attribute set id
idempotencyKey String A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> [optional]

Return type

ApiRequest[AttributeUnassignGroup200Response]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -

attributeUpdate

attributeUpdate(attributeUpdateRequest): ApiRequest[AttributeUpdate200Response]

attribute.update

Update attribute data

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")
    val id: String = 10 // String | Entity id

    val name: String = Test name // String | Defines new attributes's name

    val visible: Boolean = true // Boolean | Set visibility status

    val position: Int = 5 // Int | Attribute`s position

    val storeId: String = 1 // String | Store Id

    val langId: String = 3 // String | Language id

    val idempotencyKey: String = 098f6bcd4621d373cade4e832627b4f6 // String | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
    
    val request = apiInstance.attributeUpdate(id, name, visible, position, storeId, langId, idempotencyKey)
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeUpdate")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeUpdate")
            exception.printStackTrace();
    }
}

Parameters

Name Type Description Notes
id String Entity id
name String Defines new attributes's name [optional]
visible Boolean Set visibility status [optional]
position Int Attribute`s position [optional]
storeId String Store Id [optional]
langId String Language id [optional]
idempotencyKey String A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> [optional]

Return type

ApiRequest[AttributeUpdate200Response]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -

attributeValueAdd

attributeValueAdd(attributeValueAddRequest): ApiRequest[AttributeAdd200Response]

attribute.value.add

Add new value to attribute.

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")
    val attributeId: String = 156 // String | Attribute Id

    val name: String = Test name // String | Defines attribute value's name

    val code: String = code // String | Entity code

    val description: String = Test value // String | Defines attribute value's description

    val storeId: String = 1 // String | Store Id

    val langId: String = 3 // String | Language id

    val idempotencyKey: String = 098f6bcd4621d373cade4e832627b4f6 // String | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
    
    val request = apiInstance.attributeValueAdd(attributeId, name, code, description, storeId, langId, idempotencyKey)
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeValueAdd")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeValueAdd")
            exception.printStackTrace();
    }
}

Parameters

Name Type Description Notes
attributeId String Attribute Id
name String Defines attribute value's name
code String Entity code [optional]
description String Defines attribute value's description [optional]
storeId String Store Id [optional]
langId String Language id [optional]
idempotencyKey String A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> [optional]

Return type

ApiRequest[AttributeAdd200Response]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -

attributeValueDelete

attributeValueDelete(attributeValueDeleteRequest): ApiRequest[AttributeValueDelete200Response]

attribute.value.delete

Delete attribute value.

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")
    val id: String = 10 // String | Entity id

    val attributeId: String = 156 // String | Attribute Id

    val storeId: String = 1 // String | Store Id
    
    val request = apiInstance.attributeValueDelete(id, attributeId, storeId)
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeValueDelete")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeValueDelete")
            exception.printStackTrace();
    }
}

Parameters

Name Type Description Notes
id String Entity id
attributeId String Attribute Id
storeId String Store Id [optional]

Return type

ApiRequest[AttributeValueDelete200Response]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -

attributeValueUpdate

attributeValueUpdate(attributeValueUpdateRequest): ApiRequest[AttributeUpdate200Response]

attribute.value.update

Update attribute value.

Example

// Import classes:
import 
import org.openapitools.client.core._
import org.openapitools.client.core.CollectionFormats._
import org.openapitools.client.core.ApiKeyLocations._

import akka.actor.ActorSystem
import scala.concurrent.Future
import scala.util.{Failure, Success}

object Example extends App {
    
    implicit val system: ActorSystem = ActorSystem()
    import system.dispatcher
    
    // Configure API key authorization: StoreKeyAuth
    implicit val StoreKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    // Configure API key authorization: ApiKeyAuth
    implicit val ApiKeyAuth: ApiKeyValue = ApiKeyValue("YOUR API KEY")

    val apiInvoker = ApiInvoker()
    val apiInstance = AttributeApi("https://api.api2cart.local.com/v1.1")
    val id: String = 10 // String | Defines attribute value's id

    val attributeId: String = 156 // String | Attribute Id

    val name: String = Test name // String | Defines attribute value's name

    val description: String = Test value // String | Defines new attribute value's description

    val code: String = code // String | Entity code

    val storeId: String = 1 // String | Store Id

    val langId: String = 3 // String | Language id

    val idempotencyKey: String = 098f6bcd4621d373cade4e832627b4f6 // String | A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>
    
    val request = apiInstance.attributeValueUpdate(id, attributeId, name, description, code, storeId, langId, idempotencyKey)
    val response = apiInvoker.execute(request)

    response.onComplete {
        case Success(ApiResponse(code, content, headers)) =>
            System.out.println(s"Status code: $code}")
            System.out.println(s"Response headers: ${headers.mkString(", ")}")
            System.out.println(s"Response body: $content")
        
        case Failure(error @ ApiError(code, message, responseContent, cause, headers)) =>
            System.err.println("Exception when calling AttributeApi#attributeValueUpdate")
            System.err.println(s"Status code: $code}")
            System.err.println(s"Reason: $responseContent")
            System.err.println(s"Response headers: ${headers.mkString(", ")}")
            error.printStackTrace();

        case Failure(exception) => 
            System.err.println("Exception when calling AttributeApi#attributeValueUpdate")
            exception.printStackTrace();
    }
}

Parameters

Name Type Description Notes
id String Defines attribute value's id
attributeId String Attribute Id
name String Defines attribute value's name [optional]
description String Defines new attribute value's description [optional]
code String Entity code [optional]
storeId String Store Id [optional]
langId String Language id [optional]
idempotencyKey String A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> [optional]

Return type

ApiRequest[AttributeUpdate200Response]

Authorization

StoreKeyAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 successful operation -